/* ==========================================================================
   BF LOGISTICS — Design System
   Built to Website Blueprint v2, Part 10 (Branding).
   Light, white-dominant direction matching the fleet. 70 / 20 / 10.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Palette — Blueprint §10.2 */
  --bf-yellow:      #FCC10F;
  --bf-yellow-dark: #E0A800;
  --bf-yellow-soft: #FFF6DA;
  --ink:            #232323;
  --ink-deep:       #151515;
  --steel:          #3D4A5C;
  --steel-dark:     #2E3846;
  --steel-soft:     #EEF1F5;
  --white:          #FFFFFF;
  --mist:           #F5F6F8;
  --fog:            #E4E7EB;
  --slate:          #6B7280;
  --graphite:       #374151;

  --success: #16A34A;
  --warning: #F59E0B;
  --danger:  #DC2626;

  /* Type */
  --font-display: "Saira", "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Space */
  --gutter: 1.5rem;
  --container: 1200px;
  --container-narrow: 820px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(21, 21, 21, .06), 0 1px 3px rgba(21, 21, 21, .04);
  --sh-md: 0 2px 6px rgba(21, 21, 21, .06), 0 8px 24px rgba(21, 21, 21, .07);
  --sh-lg: 0 4px 12px rgba(21, 21, 21, .07), 0 20px 48px rgba(21, 21, 21, .10);

  /* Motion — §10.5: fast, confident, ease-out */
  --ease: cubic-bezier(.16, .84, .44, 1);
  --t-fast: 140ms;
  --t-med: 240ms;

  /* Chrome heights */
  --utility-h: 38px;
  --header-h: 74px;
}

/* --- 2. Reset & base ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 60px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 1.55rem + 3.1vw, 3.9rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 1.32rem + 1.9vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: clamp(1.25rem, 1.11rem + .62vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-color: var(--bf-yellow); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

strong, b { font-weight: 600; color: var(--ink); }
small { font-size: .8125rem; }

hr { border: 0; border-top: 1px solid var(--fog); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--bf-yellow-dark);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--bf-yellow); color: var(--ink); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Prices and any figure that must align in a column — §10.3 */
.num, .rate-table td, .calc-line span:last-child, .price {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --- 3. Layout ----------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(3rem, 2rem + 4.4vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.25rem, 1.7rem + 2.5vw, 3.5rem) 0; }
.section--mist { background: var(--mist); }
.section--fog-top { border-top: 1px solid var(--fog); }

/* The single dark band — §10.1 */
.section--dark {
  background: var(--ink-deep);
  color: #C9CDD3;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: #fff; }
.section--dark .eyebrow { color: var(--bf-yellow); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Two-column hub layouts collapse before the generic grids do, because the
   right-hand column is usually a calculator or a rate list that needs width. */
@media (max-width: 1000px) {
  .hub-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 2rem !important; }
}

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* --- 4. Type helpers ----------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .85rem;
}
.eyebrow--yellow { color: var(--bf-yellow-dark); }
.eyebrow--steel { color: var(--steel); }

.lead {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6;
  color: var(--graphite);
}

/* The double rule under headings — hero mock in §2.1 */
.rule::after {
  content: "";
  display: block;
  width: 84px; height: 6px;
  background: var(--bf-yellow);
  border-radius: 3px;
  margin-top: .7rem;
}
.rule--center::after { margin-inline: auto; }
.rule--steel::after { background: var(--steel); }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--slate); margin-bottom: 0; }

.muted { color: var(--slate); }
.tiny { font-size: .8125rem; line-height: 1.5; color: var(--slate); }

/* --- 5. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1;
  padding: .95rem 1.5rem;
  min-height: 46px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

/* §10.2: yellow always carries dark text, never white. */
.btn-primary { background: var(--bf-yellow); color: var(--ink); border-color: var(--bf-yellow); }
.btn-primary:hover { background: var(--bf-yellow-dark); border-color: var(--bf-yellow-dark); color: var(--ink); }

.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }

.btn-steel { background: var(--steel); color: #fff; border-color: var(--steel); }
.btn-steel:hover { background: var(--steel-dark); border-color: var(--steel-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--fog); }
.btn-outline:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

.btn-lg { font-size: 1rem; padding: 1.1rem 1.9rem; min-height: 54px; }
.btn-sm { font-size: .8125rem; padding: .6rem 1rem; min-height: 38px; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- 6. Utility bar ------------------------------------------------------ */

.utility {
  background: var(--ink-deep);
  color: #B9BEC6;
  font-size: .8125rem;
  min-height: var(--utility-h);
  display: flex;
  align-items: center;
}
.utility a { color: #E6E8EB; text-decoration: none; }
.utility a:hover { color: var(--bf-yellow); }

.utility-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: .35rem;
}
.utility-item { display: inline-flex; align-items: center; gap: .45rem; }
.utility-item svg { flex: none; opacity: .7; }
.utility-spacer { margin-left: auto; }

/* The sitewide cutoff clock — §1.4: this replaces the v1 tracking button. */
.utility .cutoff {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color: #C9CDD3;
  font-size: .8125rem;
  padding: .28rem .8rem;
}
.utility .cutoff b { color: #fff; }
.utility .cutoff.is-urgent { background: var(--bf-yellow); border-color: var(--bf-yellow); color: var(--ink); }
.utility .cutoff.is-urgent b { color: var(--ink); }
.utility .cutoff.is-closed { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #868C95; }
.utility .cutoff.is-closed b { color: #B9BEC6; }

@media (max-width: 860px) {
  .utility { display: none; }
}

/* --- 7. Header & navigation ---------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--fog);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 34px; width: auto; }
@media (max-width: 480px) { .brand img { height: 28px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--graphite);
  text-decoration: none;
  padding: .7rem .85rem;
  border-radius: var(--r-sm);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--mist); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-link .chev { transition: transform var(--t-fast) var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Mega menu — §1.4 */
.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 560px;
  background: #fff;
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast);
}
.mega--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 440px; }
.nav-item.is-open .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-col h2 {
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 .6rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--fog);
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin: 0; }
.mega-col a {
  display: block;
  padding: .45rem .55rem;
  margin-left: -.55rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--graphite);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.mega-col a:hover { background: var(--mist); color: var(--ink); }
.mega-col a b { display: block; color: var(--ink); font-weight: 600; }
.mega-col a span { display: block; font-size: .8125rem; color: var(--slate); }
.mega-cta {
  display: block; margin-top: .6rem; padding: .7rem .85rem;
  background: var(--bf-yellow-soft); border-radius: var(--r-sm);
  font-weight: 600; font-size: .875rem; color: var(--ink); text-decoration: none;
}
.mega-cta:hover { background: var(--bf-yellow); }

.header-cta { flex: none; margin-left: .5rem; }

@media (max-width: 1040px) {
  .nav, .header-cta { display: none; }
}

/* Mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: var(--mist);
  border: 1px solid var(--fog);
  border-radius: var(--r-sm);
  cursor: pointer;
}
@media (max-width: 1040px) { .nav-toggle { display: inline-flex; } }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #fff;
  padding: 1rem var(--gutter) 6rem;
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--t-med) var(--ease), visibility var(--t-med);
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.mobile-nav-close {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--mist); border: 1px solid var(--fog); border-radius: var(--r-sm); cursor: pointer;
}
.mobile-nav h2 {
  font-family: var(--font-display); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate);
  margin: 1.75rem 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--fog);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { margin: 0; }
.mobile-nav li a {
  display: block; padding: .8rem 0; border-bottom: 1px solid var(--mist);
  color: var(--graphite); text-decoration: none; font-size: 1rem;
}
.mobile-nav li a:hover { color: var(--ink); }

/* Mobile sticky bottom bar — §1.4 */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  display: none;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem;
  min-height: 58px;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.1);
}
.mobile-bar a:last-child { border-right: 0; }
.mobile-bar a.is-accent { background: var(--bf-yellow); color: var(--ink); }
@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 58px; }
}

/* --- 8. Hero — §2.1 ------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% center; }
/* Soft white-to-transparent scrim on the LEFT only — the van stays bright. */
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    #fff 0%, rgba(255,255,255,.97) 18%, rgba(255,255,255,.72) 38%, rgba(255,255,255,0) 68%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  min-height: clamp(500px, 62vh, 660px);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.hero-copy { max-width: 34rem; }
.hero-copy h1 { margin-bottom: .65rem; }
.hero-copy .lead { color: var(--graphite); margin-bottom: 1.75rem; }
.hero-copy .btn-row { margin-bottom: 1.5rem; }

@media (max-width: 980px) {
  .hero-media { position: relative; inset: auto; height: 260px; margin-inline: calc(var(--gutter) * -1); }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 45%);
  }
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 1.5rem; padding-block: 2rem 2.5rem; }
  .hero-copy { max-width: none; }
  .hero-media { order: -1; }
}

/* Page hero for interior pages */
.page-hero {
  background: var(--mist);
  border-bottom: 1px solid var(--fog);
  padding: clamp(2.25rem, 1.7rem + 2.6vw, 3.75rem) 0;
}
.page-hero .lead { max-width: 46rem; }
.page-hero--steel { background: var(--steel-soft); }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  list-style: none; margin: 0 0 1.1rem; padding: 0;
  font-size: .8125rem; color: var(--slate);
}
.breadcrumb li { margin: 0; }
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--fog); }

/* --- 9. Cutoff clock — §2.1, §10.5 --------------------------------------- */

.cutoff {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--mist);
  border: 1px solid var(--fog);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--graphite);
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.cutoff b { color: var(--ink); font-weight: 700; }
.cutoff .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--success); flex: none;
}
/* Final 30 minutes: neutral -> yellow. Never red — red signals error, not urgency. */
.cutoff.is-urgent { background: var(--bf-yellow-soft); border-color: var(--bf-yellow); }
.cutoff.is-urgent .dot { background: var(--bf-yellow-dark); }
.cutoff.is-closed { background: var(--mist); border-color: var(--fog); color: var(--slate); }
.cutoff.is-closed .dot { background: var(--slate); }

.cutoff--bar {
  display: flex;
  width: 100%;
  border-radius: 0;
  border-width: 0 0 1px;
  justify-content: center;
  padding: .6rem 1rem;
  font-size: .875rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- 10. Gateway — §2.2 -------------------------------------------------- */

.gateway { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 820px) { .gateway { grid-template-columns: minmax(0, 1fr); } }

.gate {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--fog);
  background: var(--white);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.gate::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
}
.gate--courier::before { background: var(--bf-yellow); }
.gate--logistics::before { background: var(--steel); }
.gate:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: transparent; }
.gate h3 {
  font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .35rem;
}
.gate .gate-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: var(--r-sm); margin-bottom: 1rem; width: fit-content;
}
.gate--courier .gate-tag { background: var(--bf-yellow-soft); color: #8A6400; }
.gate--logistics .gate-tag { background: var(--steel-soft); color: var(--steel); }
.gate p { color: var(--slate); }
.gate ul { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; }
.gate li {
  position: relative; padding-left: 1.4rem; margin-bottom: .5rem;
  font-size: .9375rem; color: var(--graphite);
}
.gate li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px; border-radius: 50%;
}
.gate--courier li::before { background: var(--bf-yellow); }
.gate--logistics li::before { background: var(--steel); }
.gate-foot {
  margin-top: auto; padding-top: .5rem;
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  font-weight: 600; color: var(--ink);
}
.gate-foot .price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.gate-foot .arrow { color: var(--slate); transition: transform var(--t-fast) var(--ease); }
.gate:hover .gate-foot .arrow { transform: translateX(4px); }

/* --- 11. Cards ----------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}
.card--flat { box-shadow: none; }
.card--pad-lg { padding: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }

.card-link {
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.card-link:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: transparent; }

.icon-badge {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--bf-yellow-soft);
  color: #8A6400;
  margin-bottom: 1rem;
  flex: none;
}
.icon-badge--steel { background: var(--steel-soft); color: var(--steel); }
.icon-badge--ink { background: var(--mist); color: var(--ink); }

/* Service tier cards — §2.3 item 4 */
.tier {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.tier:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.tier.is-featured { border-color: var(--bf-yellow); box-shadow: 0 0 0 1px var(--bf-yellow); }
.tier-flag {
  position: absolute; top: -12px; left: 1.75rem;
  background: var(--bf-yellow); color: var(--ink);
  font-family: var(--font-display); font-weight: 700;
  font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: var(--r-sm);
}
.tier h3 { margin-bottom: .2rem; font-size: 1.45rem; font-weight: 800; }
.tier .tier-time { font-size: .9375rem; color: var(--slate); margin-bottom: 1.1rem; }
.tier-price {
  display: flex; align-items: baseline; gap: .4rem;
  padding-block: .9rem; margin-bottom: 1rem;
  border-block: 1px solid var(--fog);
}
.tier-price .from { font-size: .8125rem; color: var(--slate); }
.tier-price .amt {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.1rem; color: var(--ink); line-height: 1;
}
.tier-price .unit { font-size: .8125rem; color: var(--slate); }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tier li {
  position: relative; padding-left: 1.5rem; margin-bottom: .55rem; font-size: .9375rem;
}
.tier li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 12px; height: 7px; border-left: 2px solid var(--bf-yellow-dark);
  border-bottom: 2px solid var(--bf-yellow-dark); transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; }

.cutoff-note {
  display: flex; align-items: flex-start; gap: .55rem;
  background: var(--mist); border-radius: var(--r-sm);
  padding: .7rem .85rem; margin-bottom: 1.1rem;
  font-size: .8125rem; line-height: 1.5; color: var(--graphite);
}
.cutoff-note svg { flex: none; margin-top: 2px; color: var(--bf-yellow-dark); }

/* Why cards / stat cards */
.why {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
}
.why h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.why p { font-size: .9375rem; color: var(--slate); margin: 0; }

.stat { text-align: center; padding: 1.25rem .75rem; }
.stat .stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 1.6rem + 1.3vw, 2.6rem);
  color: var(--ink); line-height: 1;
}
.stat .stat-label { font-size: .875rem; color: var(--slate); margin-top: .35rem; }
.section--dark .stat .stat-num { color: var(--bf-yellow); }
.section--dark .stat .stat-label { color: #9AA1AA; }

/* Steps — How it works */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.5rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bf-yellow);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  border-radius: var(--r-md);
}
.step h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.step p { font-size: .9375rem; color: var(--slate); margin: 0; }

/* --- 12. Calculator — §2.3, §6.2, §9.5 ----------------------------------- */

.calc {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.calc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.4rem;
  background: var(--ink);
  color: #fff;
}
.calc-head h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.calc-head .cutoff {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16);
  color: #D8DCE1; font-size: .8125rem; padding: .45rem .8rem;
}
.calc-head .cutoff b { color: #fff; }
.calc-head .cutoff.is-urgent { background: var(--bf-yellow); border-color: var(--bf-yellow); color: var(--ink); }
.calc-head .cutoff.is-urgent b { color: var(--ink); }

.calc-body { padding: 1.4rem; }

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  align-items: end;
}

.calc-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.svc {
  position: relative;
  display: flex; flex-direction: column; gap: .1rem;
  padding: .7rem .8rem;
  border: 2px solid var(--fog);
  border-radius: var(--r-sm);
  cursor: pointer;
  background: var(--white);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc .svc-name { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.svc .svc-time { font-size: .75rem; color: var(--slate); }
.svc:hover { border-color: var(--slate); }
.svc:has(input:checked) { border-color: var(--bf-yellow); background: var(--bf-yellow-soft); }
.svc:has(input:focus-visible) { outline: 3px solid var(--bf-yellow-dark); outline-offset: 2px; }
@media (max-width: 560px) { .calc-services { grid-template-columns: minmax(0, 1fr); } }

.calc-result {
  margin-top: 1.25rem;
  border-top: 1px solid var(--fog);
  padding-top: 1.25rem;
}
.calc-lines { margin: 0 0 1rem; }
.calc-line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0;
  font-size: .9375rem;
  border-bottom: 1px dashed var(--fog);
}
.calc-line span:first-child { color: var(--graphite); }
.calc-line span:last-child { font-weight: 600; color: var(--ink); }
.calc-line.is-sub { border-bottom-style: solid; }
.calc-line.is-total {
  border-bottom: 0; padding-top: .9rem;
  font-family: var(--font-display); font-weight: 800;
}
.calc-line.is-total span { font-size: 1.5rem; color: var(--ink); }
.calc-line.is-muted span { color: var(--slate); font-weight: 400; }

.calc-notice {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .9rem 1rem; border-radius: var(--r-sm);
  background: var(--mist); font-size: .875rem; line-height: 1.55;
}
.calc-notice svg { flex: none; margin-top: 3px; }
.calc-notice--warn { background: var(--bf-yellow-soft); color: #6B4E00; }
.calc-notice--warn svg { color: var(--bf-yellow-dark); }

.calc-disclaimer { margin-top: .9rem; font-size: .8125rem; color: var(--slate); }

.calc-empty { color: var(--slate); font-size: .9375rem; }

/* Compact inline band variant — homepage §2.3 item 3 */
.calc--inline .calc-body { padding: 1.25rem; }
.calc--inline .calc-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- 13. Forms ----------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8125rem; color: var(--slate); }
.field .req { color: var(--danger); }
.field .opt { color: var(--slate); font-weight: 400; }

.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* never below 16px — stops iOS zoom on focus */
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-sm);
  padding: .75rem .9rem;
  min-height: 48px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--slate); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--bf-yellow-dark);
  box-shadow: 0 0 0 3px rgba(252, 193, 15, .28);
}
.textarea { min-height: 120px; resize: vertical; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.5rem;
}

.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { display: none; font-size: .8125rem; color: var(--danger); font-weight: 500; }
.field.has-error .field-error { display: block; }

.check {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .9375rem; line-height: 1.55; cursor: pointer;
  margin-bottom: .9rem;
}
.check input {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  accent-color: var(--bf-yellow-dark); cursor: pointer;
}

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 620px) { .field-row, .field-row--3 { grid-template-columns: minmax(0, 1fr); } }

.fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
.fieldset legend {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); padding: 0; margin-bottom: 1rem;
  width: 100%; padding-bottom: .6rem; border-bottom: 1px solid var(--fog);
}

/* Multi-step progress — §6.2 */
.steps-bar { display: flex; gap: .5rem; margin-bottom: 2rem; }
.steps-bar li {
  flex: 1; list-style: none; margin: 0;
  padding-top: .7rem;
  border-top: 4px solid var(--fog);
  font-size: .8125rem; font-weight: 600; color: var(--slate);
}
.steps-bar li.is-active { border-top-color: var(--bf-yellow); color: var(--ink); }
.steps-bar li.is-done { border-top-color: var(--bf-yellow-dark); color: var(--graphite); }

.form-step { display: none; }
.form-step.is-active { display: block; }

.form-nav { display: flex; gap: .75rem; justify-content: space-between; margin-top: 1.75rem; }

.honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* Demo-mode notice — remove when a backend is connected */
.demo-note {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--bf-yellow-soft);
  border: 1px solid var(--bf-yellow);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  margin-bottom: 1.75rem;
  font-size: .875rem; line-height: 1.55; color: #6B4E00;
}
.demo-note svg { flex: none; margin-top: 2px; color: var(--bf-yellow-dark); }
.demo-note b { color: #4F3A00; }

/* --- 14. Tables — rate charts §2.5 --------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.rate-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.rate-table caption {
  text-align: left; padding: 1.1rem 1.25rem .25rem;
  font-size: .875rem; color: var(--slate);
}
.rate-table th, .rate-table td {
  padding: .85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--fog);
  font-size: .9375rem;
}
.rate-table thead th {
  background: var(--mist);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--graphite);
  white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
.rate-table td.n, .rate-table th.n { text-align: right; }
.rate-table tbody tr:hover { background: var(--mist); }
.rate-table tbody tr:last-child td { border-bottom: 0; }
.rate-table .zone-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bf-yellow);
  font-family: var(--font-display); font-weight: 700; font-size: .875rem;
}
.rate-table .price-cell { font-weight: 600; color: var(--ink); }
.rate-table .price-cell--lead { color: var(--ink); font-weight: 700; }
.rate-table .quote-cell { color: var(--slate); font-style: italic; font-size: .875rem; }

.table-filter {
  display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.table-filter .input { max-width: 320px; }
.table-filter .count { font-size: .875rem; color: var(--slate); }

.oot-table { min-width: 420px; }
.oot-table tr[hidden] { display: none; }

/* --- 15. Zone map -------------------------------------------------------- */

.zonemap {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  overflow-x: auto;
}
.zonemap svg { min-width: 620px; }
.zonemap .zm-node { cursor: default; }
.zonemap .zm-card { fill: #fff; stroke: var(--fog); stroke-width: 1.5; }
.zonemap .zm-node:hover .zm-card { stroke: var(--ink); }
.zonemap .zm-bar { }
.zonemap .zm-zone {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  fill: var(--slate); letter-spacing: .08em;
}
.zonemap .zm-city {
  font-family: var(--font-body); font-weight: 600; font-size: 14px; fill: var(--ink);
}
.zonemap .zm-price {
  font-family: var(--font-display); font-weight: 800; font-size: 17px; fill: var(--ink);
}
.zonemap .zm-link { stroke: var(--fog); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.zonemap .zm-lake { fill: #EDF2F7; }
.zonemap .zm-lake-label {
  font-family: var(--font-body); font-size: 13px; fill: #9AA5B1;
  letter-spacing: .16em; text-transform: uppercase;
}

.zone-legend {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  margin-top: 1rem; font-size: .8125rem; color: var(--slate);
}
.zone-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.zone-legend i { width: 16px; height: 6px; border-radius: 3px; display: inline-block; }

/* --- 16. Accordion / FAQ ------------------------------------------------- */

.accordion { border-top: 1px solid var(--fog); }
.accordion details {
  border-bottom: 1px solid var(--fog);
}
.accordion summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.15rem .25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  margin-top: .35rem;
  border-right: 2.5px solid var(--slate);
  border-bottom: 2.5px solid var(--slate);
  transform: rotate(45deg);
  transition: transform var(--t-fast) var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion summary:hover { color: var(--bf-yellow-dark); }
.accordion .acc-body { padding: 0 .25rem 1.35rem; color: var(--graphite); font-size: .9375rem; }
.accordion .acc-body > :last-child { margin-bottom: 0; }

/* --- 17. Misc components ------------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  background: var(--mist); color: var(--graphite);
}
.pill--yellow { background: var(--bf-yellow-soft); color: #8A6400; }
.pill--steel { background: var(--steel-soft); color: var(--steel); }
.pill--ink { background: var(--ink); color: var(--bf-yellow); }

/* Sticky sub-nav — §2.4 */
.subnav {
  position: sticky; top: var(--header-h); z-index: 150;
  background: var(--bf-yellow);
  border-bottom: 1px solid var(--bf-yellow-dark);
}
.subnav--steel { background: var(--steel); border-bottom-color: var(--steel-dark); }
.subnav-inner { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  padding: .8rem .9rem;
  font-size: .875rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.subnav a:hover, .subnav a[aria-current="page"] { border-bottom-color: var(--ink); }
.subnav--steel a { color: #fff; }
.subnav--steel a:hover, .subnav--steel a[aria-current="page"] { border-bottom-color: #fff; }

/* Final CTA band — §2.3 item 12: solid yellow, black text */
.cta-band { background: var(--bf-yellow); padding: clamp(2.75rem, 2.2rem + 2.6vw, 4.25rem) 0; }
.cta-band h2 { color: var(--ink); margin-bottom: .6rem; }
.cta-band p { color: #5C4700; font-size: 1.0625rem; max-width: 44rem; }
.cta-band .btn-row { margin-top: 1.75rem; }
.cta-band--steel { background: var(--steel); }
.cta-band--steel h2 { color: #fff; }
.cta-band--steel p { color: #C6CEDA; }

.callout {
  display: flex; gap: .9rem; align-items: flex-start;
  border-left: 4px solid var(--bf-yellow);
  background: var(--mist);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.1rem 1.25rem;
}
.callout svg { flex: none; margin-top: 3px; color: var(--bf-yellow-dark); }
.callout--steel { border-left-color: var(--steel); }
.callout--steel svg { color: var(--steel); }
.callout p { font-size: .9375rem; }

/* Placeholder blocks for content the client still owes — §14 */
.placeholder {
  border: 2px dashed var(--fog);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--slate);
  background: var(--mist);
}
.placeholder h3 { color: var(--graphite); font-size: 1.05rem; margin-bottom: .4rem; }
.placeholder p { font-size: .875rem; margin: 0; }

.logo-strip {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center;
}
.logo-strip .slot {
  width: 140px; height: 56px;
  border: 1px dashed var(--fog); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--slate); background: var(--white);
}

.contact-line {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .9rem 0; border-bottom: 1px solid var(--fog);
}
.contact-line:last-child { border-bottom: 0; }
.contact-line svg { flex: none; margin-top: 4px; color: var(--slate); }
.contact-line b { display: block; color: var(--ink); }
.contact-line a { color: var(--graphite); }

/* --- 18. Footer ---------------------------------------------------------- */

.footer {
  background: var(--ink-deep);
  color: #9AA1AA;
  padding: clamp(3rem, 2.4rem + 2.5vw, 4.5rem) 0 0;
  font-size: .9375rem;
}
.footer a { color: #C9CDD3; text-decoration: none; }
.footer a:hover { color: var(--bf-yellow); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.footer-brand img { height: 34px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .875rem; line-height: 1.6; max-width: 30ch; }
.footer h2 {
  font-family: var(--font-display); color: #fff;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; font-size: .875rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 1.4rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8125rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-bottom li { margin: 0; }

@media (max-width: 760px) { .footer-bottom { padding-bottom: 5rem; } }

/* --- 19. Print ----------------------------------------------------------- */

@media print {
  .utility, .header, .subnav, .mobile-bar, .mobile-nav, .cta-band, .footer .footer-grid { display: none !important; }
  body { padding-bottom: 0; }
  .table-wrap { overflow: visible; border: 0; }
  .rate-table { min-width: 0; }
  a[href]::after { content: ""; }
}
