/* ==========================================================================
   Best Comfort HVAC - shared stylesheet
   Mobile-first, no frameworks, no preprocessor.

   Design language: "utility instrument". A homeowner lands here with a dead
   furnace and two minutes of patience, so the page is built around real,
   legible status (clock, arrival window, phone) rather than marketing shapes.

   Shape system (locked): interactive things are full-pill, surfaces use the
   --r-sm/md/lg scale, nothing else invents a radius.
   Accent system (locked): --salmon is the only action colour. --ice appears
   only on cooling content, because the palette carries the actual subject
   (heat vs cold), not decoration.

   Order: 1 tokens  2 base  3 layout  4 actions  5 placeholders  6 chrome
          7 footer  8 hero + dispatch  9 service index  10 stat band
          11 quotes  12 area  13 cta  14 accordion  15 products  16 forms
          17 motion  18 breakpoints  19 dark mode
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Brand */
  --salmon: #ff5c57;          /* electric salmon: the only action colour */
  --salmon-deep: #cc322c;     /* text-on-light variant, 5.10:1 on --bg */
  --pink: #ff3d8b;            /* used once, on the CTA band */
  --ice: #2aa7c4;             /* cooling content only */
  --navy: #0a1f44;
  --navy-lift: #14305c;

  /* Semantic surfaces (dark mode swaps these, section 19) */
  --bg: #fffbf9;
  --bg-sunk: #fff4f0;
  --surface: #fffefd;
  --ink: #0b1526;
  --ink-dim: #55637a;
  --line: #e7e2df;
  --line-strong: #cfc8c4;
  --on-dark: #ffffff;
  --on-dark-dim: rgba(255, 255, 255, 0.72);

  /* Type: one variable family, three roles via width + weight axes */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.0625rem;
  --t-xl: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  --t-2xl: clamp(1.6rem, 1.3rem + 1.5vw, 2.15rem);
  --t-3xl: clamp(2rem, 1.5rem + 2.4vw, 2.9rem);
  --t-4xl: clamp(2.4rem, 1.7rem + 3.4vw, 3.75rem);

  /* Space, shape, depth */
  --sp-1: 0.5rem;  --sp-2: 0.75rem; --sp-3: 1rem;   --sp-4: 1.5rem;
  --sp-5: 2rem;    --sp-6: 3rem;    --sp-7: 4.25rem;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(11, 21, 38, 0.05);
  --shadow-2: 0 8px 24px -8px rgba(11, 21, 38, 0.16);
  --shadow-3: 0 28px 60px -18px rgba(11, 21, 38, 0.34);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --wrap: 1220px;
  --nav-h: 64px;
  --util-h: 38px;
}

/* --- 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  font: 400 var(--t-md)/1.6 var(--font);
  font-stretch: 100%;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--salmon-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-weight: 800; font-stretch: 112%; line-height: 1.04;
  letter-spacing: -0.028em; text-wrap: balance;
}
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); letter-spacing: -0.02em; }
h4 { font-size: var(--t-lg); font-stretch: 105%; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--salmon); outline-offset: 2px; border-radius: 3px; }
.skip-link {
  position: fixed; left: var(--sp-3); top: -100px; z-index: 300;
  padding: var(--sp-2) var(--sp-3); background: var(--navy); color: var(--on-dark);
  border-radius: var(--r-sm); text-decoration: none; font-weight: 700; transition: top 0.2s;
}
.skip-link:focus { top: var(--sp-3); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Numerals are data: tabular, monospaced, never re-flowing as they tick */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* --- 3. Layout ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-4); }
.section { padding-block: var(--sp-6); }
.section--sunk { background: var(--bg-sunk); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.grid { display: grid; gap: var(--sp-4); }
.lead { font-size: var(--t-lg); color: var(--ink-dim); max-width: 60ch; }
.muted { color: var(--ink-dim); }
.section--dark .lead, .section--dark .muted { color: var(--on-dark-dim); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
/* Section headers stack vertically. No left-headline / right-floater split. */
.head { max-width: 40rem; margin-bottom: var(--sp-5); }
.head p { margin-top: var(--sp-3); }
/* Used at most once every three sections, never in the hero. */
.eyebrow {
  display: block; margin-bottom: var(--sp-2); font-size: var(--t-xs); font-weight: 700;
  font-stretch: 105%; letter-spacing: 0.1em; text-transform: uppercase; color: var(--salmon-deep);
}
.section--dark .eyebrow { color: var(--salmon); }

/* --- 4. Actions --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.4em; border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-stretch: 105%; font-size: var(--t-md); line-height: 1.1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--salmon); color: #240604; }
.btn--primary:hover { background: #ff7b77; }
.btn--dark { background: var(--navy); color: var(--on-dark); }
.btn--dark:hover { background: var(--navy-lift); }
.btn--line { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
/* On photography a ghost button needs its own scrim to stay readable. */
.btn--onmedia {
  border-color: rgba(255, 255, 255, 0.45); background: rgba(10, 31, 68, 0.45);
  color: #fff; backdrop-filter: blur(6px);
}
.btn--onmedia:hover { border-color: #fff; background: rgba(10, 31, 68, 0.7); }
.btn--lg { padding: 0.95em 1.7em; font-size: var(--t-lg); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill {
  display: inline-flex; align-items: center; gap: 0.4em; padding: 0.35em 0.8em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: var(--t-xs); font-weight: 700; color: var(--ink-dim); white-space: nowrap;
}
.pill--warm { border-color: rgba(255, 92, 87, 0.4); color: var(--salmon-deep); }
.pill--cool { border-color: rgba(42, 167, 196, 0.45); color: var(--ice); }

/* --- 5. Image placeholders (auto-swap to real photos) ------------------- */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: var(--ph-ratio, 16 / 10); border-radius: var(--r-md);
  background: var(--navy) center / cover no-repeat; color: var(--on-dark);
}
.ph::after {
  content: ""; position: absolute; inset: 0; opacity: 0.45;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 92, 87, 0.3) 12px 24px);
}
.ph__label {
  position: relative; z-index: 1; display: grid; gap: 0.15em; max-width: 90%;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  background: rgba(10, 31, 68, 0.78); text-align: center;
  font-size: var(--t-xs); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere;
}
.ph__label small { font-weight: 400; opacity: 0.7; font-size: 0.85em; }
.ph.is-live::after, .ph.is-live .ph__label { display: none; }
.ph--portrait { --ph-ratio: 4 / 5; }
.ph--wide { --ph-ratio: 8 / 3; }

/* --- 6. Chrome: utility bar + nav --------------------------------------- */
/* The utility bar carries live dispatch state, so it is real status, not
   decoration. It scrolls away; only the nav sticks. */
.util {
  background: var(--navy); color: var(--on-dark-dim); font-size: var(--t-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.util__row { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--util-h); }
/* On narrow screens the clock is redundant with the dispatch card below. */
.util [data-dispatch-clock] { display: none; }
.state { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; }
.state .lamp {
  width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.22);
}
.state[data-state="after-hours"] .lamp { background: var(--salmon); box-shadow: 0 0 0 3px rgba(255, 92, 87, 0.25); }
.util .state { color: #fff; }
.util__phone { margin-left: auto; color: #fff; font-weight: 700; text-decoration: none; }
.util__phone:hover { color: var(--salmon); }

.header {
  position: sticky; top: 0; z-index: 100; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header.is-stuck { box-shadow: var(--shadow-2); }
.header__row { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 0.55em; margin-right: auto; text-decoration: none; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; }
.brand__name { font-weight: 800; font-stretch: 112%; letter-spacing: -0.035em; font-size: 1.02rem; line-height: 1.05; }
.brand__name span {
  display: block; font-size: 0.58rem; font-weight: 600; font-stretch: 100%;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim);
}
.nav__toggle {
  display: grid; place-items: center; gap: 5px; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
}
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  padding: var(--sp-2) var(--sp-4) var(--sp-4); background: var(--bg);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.nav__panel.is-open { display: block; }
.nav__list { display: grid; gap: 1px; }
.nav__list a {
  display: block; padding: 0.65em 0.7em; border-radius: var(--r-sm);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.nav__list a:hover { background: var(--bg-sunk); }
.nav__list a[aria-current="page"] { color: var(--salmon-deep); }
.nav__cta { margin-top: var(--sp-3); display: grid; }

/* --- 7. Footer ---------------------------------------------------------- */
.footer { background: var(--navy); color: var(--on-dark-dim); padding-block: var(--sp-6) var(--sp-4); }
.footer h2 {
  color: #fff; margin-bottom: var(--sp-2); font-size: var(--t-xs); font-weight: 700;
  font-stretch: 105%; letter-spacing: 0.12em; text-transform: uppercase;
}
.footer a { color: var(--on-dark-dim); text-decoration: none; }
.footer a:hover { color: var(--salmon); text-decoration: underline; }
.footer__grid { display: grid; gap: var(--sp-5); }
.footer__grid ul { display: grid; gap: 0.4em; font-size: var(--t-sm); }
.footer .brand { color: #fff; margin-bottom: var(--sp-2); }
.footer .brand__name span { color: var(--on-dark-dim); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: space-between;
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: var(--t-xs);
}

/* --- 8. Hero: full-bleed media + the dispatch instrument ---------------- */
/* Not a left-text/right-image split. One photograph the width of the page,
   copy anchored to its lower-left, and the live dispatch card breaking the
   bottom edge so the first thing in reach is the thing you act on. */
.hero {
  position: relative; background: var(--navy);
  display: grid; align-content: end; row-gap: var(--sp-4);
  min-height: calc(100svh - var(--nav-h) - var(--util-h));
  padding-block: var(--sp-6) var(--sp-5);
}
.hero__media { position: absolute; inset: 0; border-radius: 0; --ph-ratio: auto; background-position: 42% center; }
.hero__media .ph__label { transform: translateY(-4vh); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 31, 68, 0.72) 0%, rgba(10, 31, 68, 0.3) 38%, rgba(10, 31, 68, 0.9) 100%),
    linear-gradient(90deg, rgba(6, 18, 40, 0.92) 0%, rgba(6, 18, 40, 0.55) 42%, rgba(6, 18, 40, 0.12) 78%);
}
.hero__inner { position: relative; display: grid; gap: var(--sp-4); color: #fff; }
.hero__copy > * + * { margin-top: var(--sp-3); }
.hero h1 { max-width: 20ch; font-size: clamp(1.9rem, 0.6rem + 2.85vw, 3.1rem); }
.hero h1 em { font-style: normal; color: var(--salmon); }
.hero__sub { font-size: var(--t-lg); color: rgba(255, 255, 255, 0.86); max-width: 46ch; }
.hero .btn-row { margin-top: var(--sp-4); }

/* The signature element. Real clock, real derived state, real arrival window. */
.dispatch {
  position: relative; z-index: 2; display: grid; gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--r-lg);
  background: rgba(6, 18, 40, 0.82); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-3); color: #fff;
}
.dispatch__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-3);
  padding-bottom: var(--sp-3); border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.dispatch__title { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.dispatch__clock { margin-left: auto; font-size: var(--t-sm); color: rgba(255, 255, 255, 0.82); }
.dispatch__grid { display: grid; gap: var(--sp-3); }
.dispatch__cell { display: grid; gap: 0.15rem; }
.dispatch__k { font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.dispatch__v { font-size: var(--t-xl); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; }
.dispatch__v .num { font-weight: 700; }
.dispatch__note { font-size: var(--t-sm); color: rgba(255, 255, 255, 0.7); max-width: 62ch; }
.dispatch__cta { display: grid; gap: var(--sp-2); }

/* --- 9. Service index (asymmetric: one feature + a hairline register) --- */
.svcx { display: grid; gap: var(--sp-4); }
.svcx__feature {
  display: grid; align-content: end; gap: var(--sp-3); position: relative;
  min-height: 380px; padding: var(--sp-4); overflow: hidden;
  border-radius: var(--r-lg); background: var(--navy); color: #fff; text-decoration: none;
}
/* Layer order matters here: photo (0), scrim (1), copy (2). The photo must be
   excluded from the z-index rule below, or it lifts above the scrim and the
   copy loses its dark ground. */
.svcx__feature .ph { position: absolute; inset: 0; z-index: 0; border-radius: 0; --ph-ratio: auto; }
.svcx__feature .ph__label { transform: translateY(-2rem); }
.svcx__feature::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6, 18, 40, 0) 0%, rgba(6, 18, 40, 0.45) 30%, rgba(6, 18, 40, 0.93) 52%, rgba(6, 18, 40, 0.98) 100%);
}
.svcx__feature > *:not(.ph) { position: relative; z-index: 2; }
.svcx__feature h3 { font-size: var(--t-2xl); }
.svcx__feature .pill { justify-self: start; background: rgba(6, 18, 40, 0.75); border-color: rgba(255, 92, 87, 0.55); color: #ffb3b0; }
.svcx__feature p { color: rgba(255, 255, 255, 0.82); max-width: 36ch; }
.svcx__feature:hover .svcx__go { gap: 0.8em; }
.svcx__go { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 700; transition: gap 0.2s var(--ease); }
.svcx__go::after { content: "\2192"; }

.reg { display: grid; }
.reg__item {
  display: grid; grid-template-columns: 1.7em 1fr; gap: var(--sp-2) var(--sp-3);
  align-items: start; padding-block: var(--sp-3);
  border-top: 1px solid var(--line); text-decoration: none; color: inherit;
}
.reg__item:last-child { border-bottom: 1px solid var(--line); }
.reg__item:hover h3 { color: var(--salmon-deep); }
.reg__item .ico { font-size: 1.15rem; line-height: 1.35; }
.reg__item p { grid-column: 2; color: var(--ink-dim); font-size: var(--t-sm); }

/* Inner-page header band. Same navy tone as the stat band and footer, so the
   page keeps one theme rather than flipping between light and dark. */
.pagehead { background: var(--navy); color: var(--on-dark); padding-block: var(--sp-6); }
.pagehead h1 { max-width: 24ch; }
.pagehead p { margin-top: var(--sp-3); color: var(--on-dark-dim); font-size: var(--t-lg); max-width: 54ch; }
.crumbs { font-size: var(--t-xs); color: rgba(255, 255, 255, 0.55); margin-bottom: var(--sp-3); }
.crumbs a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.crumbs a:hover { color: var(--salmon); }

/* Payment options read as a comparison register, not three identical cards. */
.plans { display: grid; }
.plans > div { display: grid; gap: var(--sp-3); padding-block: var(--sp-4); border-top: 1px solid var(--line); }
.plans > div:last-child { border-bottom: 1px solid var(--line); }
.plans__name { display: grid; gap: var(--sp-2); align-content: start; }
.plans h3 { font-size: var(--t-2xl); }
.plans p { color: var(--ink-dim); max-width: 46ch; }

/* --- 10. Stat band (no boxes: numbers, hairlines, one line) ------------- */
.band { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.band > li { display: grid; gap: 0.2rem; padding-block: var(--sp-3); border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.band b { font-size: var(--t-xl); overflow-wrap: anywhere; font-weight: 800; font-stretch: 112%; letter-spacing: -0.04em; color: var(--salmon); }
.band span { font-size: var(--t-sm); color: var(--on-dark-dim); }

/* --- 11. Quotes (one featured, two compact) ----------------------------- */
.quotes { display: grid; gap: var(--sp-4); }
.quote { display: grid; gap: var(--sp-3); align-content: start; }
.quote__stars { color: #e08a1e; letter-spacing: 0.08em; font-size: var(--t-sm); }
.quote blockquote { font-size: var(--t-lg); font-weight: 500; }
.quote--lead {
  padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.quote--lead blockquote { font-size: var(--t-2xl); font-weight: 600; font-stretch: 105%; letter-spacing: -0.02em; line-height: 1.22; }
.quote figcaption { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--t-sm); }
.quote figcaption .ph { --ph-ratio: 1; width: 42px; flex: 0 0 auto; border-radius: 50%; }
.quote figcaption .ph::after { opacity: 0.8; }
.quote figcaption .ph__label { padding: 1px; font-size: 6px; }
.quote figcaption b { display: block; }
.quote figcaption small { color: var(--ink-dim); }
.quote--plain { padding-top: var(--sp-3); border-top: 1px solid var(--line); }

/* --- 12. Service area (map-led, pills overlaid) ------------------------- */
.area { position: relative; display: grid; gap: var(--sp-4); }
/* Real embedded maps rather than illustrations, so the pin is the actual
   office address. OpenStreetMap needs no API key and no JS library. */
.map { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-sunk); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map--area { aspect-ratio: 4 / 3; }
.map--office { aspect-ratio: 8 / 5; }
.area__card {
  padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.area__list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--sp-3); }
.area__list li { font-size: var(--t-sm); color: var(--ink-dim); }
.area__list li::after { content: "/"; margin-left: 0.45rem; color: var(--line-strong); }
.area__list li:last-child::after { content: ""; }

/* --- 13. CTA band ------------------------------------------------------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff; }
.cta__bg { position: absolute; inset: 0; border-radius: 0; --ph-ratio: auto; }
.cta__bg .ph__label { transform: translateY(-1.5rem); }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10, 31, 68, 0.94) 0%, rgba(10, 31, 68, 0.72) 46%, rgba(204, 50, 44, 0.55) 100%);
}
.cta__body { position: relative; z-index: 2; padding: var(--sp-6) var(--sp-4); display: grid; gap: var(--sp-3); max-width: 46rem; }
.cta__body p { color: rgba(255, 255, 255, 0.9); }
.cta .btn-row { margin-top: var(--sp-2); }

/* --- 14. Accordion ------------------------------------------------------ */
.acc { display: grid; }
.acc__item { border-top: 1px solid var(--line); background: var(--bg); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__item.is-open { background: var(--bg-sunk); }
.acc__btn {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  padding: var(--sp-3) var(--sp-1); border: 0; background: none; text-align: left;
  cursor: pointer; color: var(--ink);
  font-size: var(--t-xl); font-weight: 800; font-stretch: 110%; letter-spacing: -0.025em;
}
.acc__btn:hover { color: var(--salmon-deep); }
.acc__ico { font-size: 1.2rem; line-height: 1; flex: 0 0 auto; }
.acc__btn > span:not(.acc__ico):not(.acc__sign) { flex: 1; }
.acc__sign { position: relative; flex: 0 0 auto; width: 26px; height: 26px; }
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; inset: 50% 10%; height: 2px; margin-top: -1px;
  background: var(--salmon); transition: transform 0.28s var(--ease);
}
.acc__sign::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__body { display: grid; gap: var(--sp-4); padding: 0 var(--sp-1) var(--sp-5); }

/* Spec pairs. Grouped key/value cells, not a hairline-per-row table. */
.specs { display: grid; gap: var(--sp-2); margin: 0; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.specs > div { display: grid; gap: 0.1rem; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.specs dt { font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); }
.specs dd { margin: 0; font-weight: 700; font-size: var(--t-sm); }

/* --- 15. Products ------------------------------------------------------- */
.product { display: grid; gap: var(--sp-4); padding-block: var(--sp-5); border-top: 1px solid var(--line); }
.product:last-of-type { border-bottom: 1px solid var(--line); }
.gallery { display: grid; gap: var(--sp-2); }
.gallery__main { --ph-ratio: 1; border-radius: var(--r-md); background-color: var(--bg-sunk); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.gallery__thumb {
  padding: 0; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: none;
  cursor: pointer; overflow: hidden; transition: border-color 0.15s;
}
.gallery__thumb:hover { border-color: var(--line-strong); }
.gallery__thumb[aria-current="true"] { border-color: var(--salmon); }
.gallery__thumb .ph { --ph-ratio: 1; border-radius: 0; }
.gallery__thumb .ph__label { padding: 1px 2px; font-size: 7px; line-height: 1.1; }
.gallery__thumb .ph__label small { display: none; }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.product__price { margin-left: auto; text-align: right; }
.product__price b { display: block; font-size: var(--t-xl); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; }
.product__price small { color: var(--ink-dim); font-size: var(--t-xs); }

/* --- 16. Sequence, team, forms ----------------------------------------- */
/* A service visit genuinely is ordered, so the numerals carry information. */
.steps { display: grid; gap: 0; counter-reset: s; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: var(--sp-3); padding-block: var(--sp-3); border-top: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-num); font-size: var(--t-lg); font-weight: 700; color: var(--salmon);
}
.steps h3 { font-size: var(--t-lg); margin-bottom: 0.2rem; }
.steps p { color: var(--ink-dim); font-size: var(--t-sm); }

.ticks { display: grid; gap: var(--sp-2); }
.ticks li { padding-left: 1.9em; text-indent: -1.9em; }
.ticks li::before { content: attr(data-icon); display: inline-block; width: 1.9em; text-indent: 0; font-size: 1.02em; }

.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.team figure { display: grid; gap: var(--sp-2); }
.team .ph { border-radius: var(--r-md); }
.team figcaption { font-size: var(--t-sm); }
.team figcaption b { display: block; }
.team figcaption small { color: var(--ink-dim); }

.form { display: grid; gap: var(--sp-3); }
.field { display: grid; gap: 0.3em; }
.field > label { font-weight: 600; font-size: var(--t-sm); }
.field > label .req { color: var(--salmon-deep); }
.field input, .field select, .field textarea {
  padding: 0.75em 0.9em; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder, .field textarea::placeholder { color: #7c8798; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--salmon); box-shadow: 0 0 0 3px rgba(255, 92, 87, 0.25);
}
.field textarea { resize: vertical; min-height: 118px; }
.field .hint { font-size: var(--t-xs); color: var(--ink-dim); }
.field .err { display: none; font-size: var(--t-xs); font-weight: 700; color: var(--salmon-deep); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--salmon-deep); }
.field.is-invalid .err { display: block; }
.form__note { font-size: var(--t-xs); color: var(--ink-dim); }
.form__ok {
  display: none; gap: var(--sp-3); padding: var(--sp-4);
  border: 1px solid var(--salmon); border-radius: var(--r-lg); background: var(--bg-sunk);
}
.form__ok.is-shown { display: grid; }
.form__ok-ico { font-size: 2rem; line-height: 1; }
.form__ok b { font-size: var(--t-xl); font-weight: 800; font-stretch: 110%; }
.form.is-sent { display: none; }

.infolist { display: grid; gap: var(--sp-3); }
.infolist > div { display: grid; grid-template-columns: 1.9em 1fr; gap: var(--sp-2); }
.infolist .ico { font-size: 1.15rem; line-height: 1.35; }
.infolist b { display: block; }
.hours { display: grid; gap: 0; font-size: var(--t-sm); }
.hours > div { display: flex; justify-content: space-between; gap: var(--sp-3); padding-block: 0.45em; border-top: 1px solid var(--line); }
.hours > div:last-child { border-bottom: 1px solid var(--line); }

/* --- 17. Motion --------------------------------------------------------- */
/* One motivated move: content entering the viewport settles upward once, so
   the eye is led down the page in reading order. Nothing loops. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .dispatch, .btn--onmedia { backdrop-filter: none; background: #061228; }
}

/* --- 18. Breakpoints ---------------------------------------------------- */
@media (min-width: 40em) {
  .section { padding-block: var(--sp-7); }
  .util [data-dispatch-clock] { display: inline; }
  .hero__media { background-position: center; }
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: repeat(4, 1fr); gap: 0 var(--sp-4); }
  .band > li { border-bottom: 0; }
  .team { grid-template-columns: repeat(4, 1fr); }
  .reg--2 { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-5); }
  .reg--2 .reg__item:nth-child(2) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-5); }
  .steps > li:nth-child(2) { border-top: 1px solid var(--line); }
  .steps > li:last-child { border-bottom: 0; }
  .dispatch { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--sp-5); padding: var(--sp-5); }
  .dispatch__head { grid-column: 1 / -1; }
  .dispatch__grid { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
  .dispatch__cta { grid-column: 2; grid-row: 2; }
  .dispatch__note { grid-column: 1 / -1; }
  .cta__body { padding: var(--sp-7) var(--sp-6); }
  .pagehead { padding-block: var(--sp-7); }
  .form { grid-template-columns: repeat(2, 1fr); }
  .field--wide, .form > .btn-row, .form > .form__note { grid-column: 1 / -1; }
}
@media (min-width: 60em) {
  :root { --nav-h: 72px; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-6); align-items: center; }
  /* Columns of unequal length align to the top, not the middle. */
  .split--top { align-items: start; }
  .split--flip { grid-template-columns: 0.85fr 1.15fr; }
  .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; }
  .nav__toggle { display: none; }
  .nav__panel { display: flex; align-items: center; gap: var(--sp-4); position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav__list { display: flex; gap: var(--sp-1); }
  .nav__list a { padding: 0.45em 0.6em; font-size: var(--t-sm); }
  .nav__cta { margin: 0; }
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; column-gap: var(--sp-6); }
  .hero__copy { grid-column: 1; }
  .dispatch { grid-column: 1 / -1; }
  /* Asymmetric: the feature holds 5 of 12 columns, the register takes 7. */
  .svcx { grid-template-columns: 5fr 7fr; gap: var(--sp-6); align-items: start; }
  .svcx__feature { min-height: 100%; padding: var(--sp-5); }
  .quotes { grid-template-columns: 1.25fr 0.75fr; gap: var(--sp-5); }
  .quotes__side { display: grid; gap: var(--sp-4); align-content: start; }
  .area { grid-template-columns: 7fr 5fr; align-items: center; gap: var(--sp-6); }
  .area__card { margin-left: calc(var(--sp-6) * -1); }
  .product { grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-6); padding-block: var(--sp-6); }
  .plans > div { grid-template-columns: 15rem minmax(0, 1fr); column-gap: var(--sp-6); align-items: start; }
  .plans__terms { grid-column: 2; }
}

@media (min-width: 40em) and (max-height: 760px) {
  .hero { padding-block: var(--sp-4); row-gap: var(--sp-3); }
  .hero h1 { font-size: clamp(1.75rem, 0.5rem + 2.6vw, 2.6rem); }
  .hero__sub { font-size: var(--t-md); }
  .hero .btn--lg { padding: 0.8em 1.4em; font-size: var(--t-md); }
  .dispatch { padding: var(--sp-3) var(--sp-4); gap: var(--sp-2); }
  .dispatch__head { padding-bottom: var(--sp-2); }
}

/* --- 19. Dark mode (system preference; same hierarchy, same accent) ----- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1220; --bg-sunk: #121a2b; --surface: #162033;
    --ink: #eef2f8; --ink-dim: #9aa8bf;
    --line: #23304a; --line-strong: #354564;
    --salmon-deep: #ff8480;   /* lightened so links stay AA on dark */
    --navy: #070d1a; --navy-lift: #121d33;
  }
  .field input::placeholder, .field textarea::placeholder { color: #8794aa; }
  .quote__stars { color: #f2b45a; }
  .ph { background-color: #0d1729; }
}
