/* Buckeye Business Machines — website styles
   Built on the brand guidelines: Work Sans, process-colour accents, generous whitespace. */

@font-face { font-family: "Work Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/WorkSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/WorkSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/WorkSans-SemiBold.woff2") format("woff2"); }

:root {
  /* primary */
  --bbm-cyan: #00AEEF;
  --bbm-magenta: #EC008C;
  --bbm-yellow: #FFDD00;
  --bbm-key: #171717;
  --bbm-white: #FFFFFF;
  /* secondary */
  --bbm-cyan-deep: #0072A0;
  --bbm-magenta-deep: #B5006B;
  --bbm-cyan-tint: #E6F7FE;
  --bbm-yellow-tint: #FFF8CC;
  /* neutral */
  --bbm-ink: #121923;
  --bbm-graphite: #3A3F47;
  --bbm-slate: #5F6670;
  --bbm-steel: #9AA0A8;
  --bbm-mist: #DDE0E4;
  --bbm-paper: #F6F7F9;

  --font: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 8px;
  --strip: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 27px;
  color: var(--bbm-key);
  background: var(--bbm-white);
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--bbm-cyan-deep); text-underline-offset: 3px; }
a:hover { color: var(--bbm-key); }
:focus-visible { outline: 3px solid var(--bbm-cyan); outline-offset: 2px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bbm-key); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* process strip: four equal segments, C M Y K (K becomes white on dark) */
.strip { height: var(--strip); background: linear-gradient(90deg,
  var(--bbm-cyan) 0 25%, var(--bbm-magenta) 25% 50%, var(--bbm-yellow) 50% 75%, var(--bbm-key) 75% 100%); }
.strip--dark { background: linear-gradient(90deg,
  var(--bbm-cyan) 0 25%, var(--bbm-magenta) 25% 50%, var(--bbm-yellow) 50% 75%, var(--bbm-white) 75% 100%); }
.strip--short { width: 64px; height: 4px; }

/* type */
.eyebrow { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bbm-slate); margin: 0 0 16px; }
h1, h2, h3 { font-weight: 500; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.07; letter-spacing: -.015em; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.lead { font-size: 20px; line-height: 31px; color: var(--bbm-graphite); max-width: 34em; }
.small { font-size: 14px; line-height: 20px; color: var(--bbm-slate); }
.placeholder { background: var(--bbm-yellow-tint); padding: 0 .2em; border-radius: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/20px var(--font); letter-spacing: .01em;
  padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--primary { background: var(--bbm-cyan); color: var(--bbm-key); }
.btn--primary:hover { background: var(--bbm-key); color: var(--bbm-white); }
.btn--secondary { border-color: var(--bbm-key); color: var(--bbm-key); background: transparent; }
.btn--secondary:hover { background: var(--bbm-key); color: var(--bbm-white); }
.btn--yellow { background: var(--bbm-yellow); color: var(--bbm-key); }
.btn--yellow:hover { background: var(--bbm-white); }
.btn--ghost-light { border-color: var(--bbm-white); color: var(--bbm-white); }
.btn--ghost-light:hover { background: var(--bbm-white); color: var(--bbm-key); }
.btn svg { width: 20px; height: 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--bbm-mist); background: var(--bbm-white); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 88px; }
.brand { flex: none; }
.brand img { width: 220px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--bbm-key); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--bbm-cyan-deep); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-phone { font-weight: 600; color: var(--bbm-key); text-decoration: none; white-space: nowrap; }

/* hero */
.hero { padding: 96px 0 112px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero p.lead { margin: 24px 0 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .area { margin-top: 28px; }
.hero-visual { position: relative; aspect-ratio: 5 / 4; }
.hero-visual .halftone { position: absolute; inset: -10% -30% 0 30%; background: url("../img/graphics/halftone-cyan.svg") center / cover no-repeat; }
.hero-visual .photo { position: absolute; inset: 8% 6% 8% 0; border-radius: var(--radius); overflow: hidden; background: var(--bbm-paper); }
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* services */
.services { padding: 104px 0; background: var(--bbm-paper); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.section-head p { margin: 0; color: var(--bbm-graphite); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--bbm-white); border-radius: var(--radius); padding: 32px 28px 36px; border: 1px solid var(--bbm-mist); }
.card svg.icon { width: 40px; height: 40px; color: var(--bbm-key); margin-bottom: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0 0 20px; font-size: 16px; line-height: 25px; color: var(--bbm-graphite); }
.card a { font-weight: 600; text-decoration: none; }

/* steps */
.steps { padding: 104px 0; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--bbm-key); padding-top: 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 600; font-size: 13px;
  letter-spacing: .16em; color: var(--bbm-cyan-deep); margin-bottom: 16px; }
.steps li p { margin: 8px 0 0; color: var(--bbm-graphite); }

/* support band */
.support { background: var(--bbm-ink); color: var(--bbm-white); }
.support .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; padding: 88px 0; }
.support .eyebrow { color: var(--bbm-yellow); }
.support p { color: var(--bbm-mist); margin: 20px 0 0; }
.support .actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
.support .hl { color: var(--bbm-yellow); text-decoration: none; }
.contact dd a, .steps a { color: var(--bbm-cyan-deep); }
.site-footer li { overflow-wrap: anywhere; }

/* contact */
.contact { padding: 104px 0; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact dl { margin: 32px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; }
.contact dt { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bbm-slate); padding-top: 3px; }
.contact dd { margin: 0; }
form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border: 0; margin: 0; padding: 0; min-width: 0; }
form .full { grid-column: 1 / -1; }
.form-status { margin: 0 0 24px; padding: 16px 20px; border-radius: var(--radius); background: var(--bbm-yellow-tint); color: var(--bbm-key); }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { background: var(--bbm-paper); border-color: var(--bbm-mist); cursor: not-allowed; }
fieldset:disabled label { color: var(--bbm-slate); }
fieldset:disabled .btn { background: var(--bbm-mist); color: var(--bbm-slate); cursor: not-allowed; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: 400 16px/24px var(--font); color: var(--bbm-key); padding: 11px 14px;
  border: 1px solid var(--bbm-slate); border-radius: 6px; background: var(--bbm-white); }
textarea { min-height: 128px; resize: vertical; }

/* footer */
.site-footer { background: var(--bbm-ink); color: var(--bbm-mist); font-size: 15px; line-height: 24px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 56px; }
.site-footer img { width: 200px; }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bbm-white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--bbm-mist); text-decoration: none; }
.site-footer a:hover { color: var(--bbm-cyan); }
.legal { border-top: 1px solid var(--bbm-graphite); }
.legal .wrap { display: flex; justify-content: space-between; padding: 20px 0 28px; grid-template-columns: none; font-size: 14px; color: var(--bbm-steel); }

/* responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap, .section-head, .support .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps ol { grid-template-columns: 1fr; gap: 32px; }
  .support .actions { justify-content: flex-start; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}
@media (max-width: 560px) {
  .brand img { width: 168px; }
  .site-header .wrap { min-height: 72px; gap: 16px; }
  .header-cta .btn { padding: 10px 16px; font-size: 15px; }
  .cards, form fieldset { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .legal .wrap { flex-direction: column; gap: 4px; }
}
