/* ==========================================================================
   Cannon Automotive Specialists
   1 fonts · 2 tokens · 3 reset · 4 typography · 5 utilities · 6 header + nav
   7 mobile bar · 8 hero · 9 services · 10 symptoms · 11 why-us · 12 process
   13 sectors · 14 areas · 15 proof · 16 faq · 17 contact · 18 footer
   19 motion states · 20 responsive · 21 print
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/barlow-latin-600-normal.woff2") format("woff2");
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --bg: #F4F6FA; --surface: #FFFFFF; --text: #0C1220; --muted: #4C5975;
  /* Blue is the brand: buttons, links, markers, focus. Red is reserved for the
     one action the site exists for — dialling the shop. Nothing else is red. */
  --primary: #1D4ED8; --primary-ink: #1E40AF; --primary-bright: #8FB2FF;
  --accent: #DC2626; --accent-ink: #C0182A; --accent-bright: #FF5F65;
  --bg-dark: #070E1F; --surface-dark: #141D33; --text-dark: #EFF2F8; --muted-dark: #9AA6BE;
  --border: rgba(12, 18, 32, .10); --border-dark: rgba(255, 255, 255, .14);
  --radius: 6px; --pill: 999px; --shadow: 0 8px 24px rgba(12, 18, 32, .08);
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --h1: clamp(3rem, 8vw, 7.5rem); --h2: clamp(2rem, 4.5vw, 4rem); --h3: 1.5rem;
  --margin: 80px; --section: 120px; --header-h: 72px;
}
@media (max-width: 900px) { :root { --margin: 20px; --section: 72px; } }

:root {
  interpolate-size: allow-keywords;
}

/* 3. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* 4. Typography ----------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: .95; letter-spacing: -0.03em; }
h2 { font-size: var(--h2); line-height: 1.02; letter-spacing: -0.02em; }
h3 { font-size: var(--h3); line-height: 1.15; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

/* 5. Utilities ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(1320px + var(--margin) * 2);
  margin-inline: auto;
  padding-inline: var(--margin);
}
.container.narrow { max-width: calc(760px + var(--margin) * 2); }
.section { padding-block: var(--section); }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  color: var(--muted);
  max-width: 62ch;
  margin-top: 20px;
}

.btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--pill);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(0); }
/* .btn-call is the red one: every control that dials the shop, and only those. */
.btn-call { background: var(--accent); color: #FFFFFF; }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, .55); color: var(--text-dark); }
.btn-dark { background: var(--surface-dark); color: var(--text-dark); }
.btn-outline { border: 1.5px solid var(--primary-ink); color: var(--primary-ink); background: transparent; }
.btn-icon { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }


.logo-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand-logo { height: 40px; width: auto; }

/* The bright ring is only ever used where the surface behind it is dark: light
   blue #8FB2FF on the light base is ~1.9:1 and would fail WCAG 1.4.11. The header
   is light while the nav panel is open and on every secondary page, so both are
   excluded; the mobile bar is always light and uses the default ink ring. */
:focus-visible { outline: 3px solid var(--primary-ink); outline-offset: 3px; }
.hero :focus-visible,
.site-footer :focus-visible,
body:not(.page-light) .skip-link:focus-visible,
html:not(.nav-open) body:not(.page-light) .site-header:not(.is-scrolled) :focus-visible { outline-color: var(--primary-bright); }

/* 6. Header + nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--text-dark);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.site-header.is-scrolled,
html.nav-open .site-header {
  background: var(--bg);
  color: var(--text);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; align-items: center; gap: 28px; }
.site-nav ul a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.btn-phone { min-height: 42px; padding: 0 18px; font-size: 15px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  color: inherit;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* 7. Mobile bar ----------------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  z-index: 70;
  inset: auto 0 0 0;
  gap: 12px;
  padding: 10px var(--margin) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(244, 246, 250, .94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.mobile-cta .btn { flex: 1 1 0; }
html.nav-open .mobile-cta { display: none; }
html.nav-open { overflow: hidden; }

/* 8. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 88vh;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 92px;
  background: var(--bg-dark);
  color: var(--text-dark);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: linear-gradient(120deg, #070E1F 0%, #141D33 100%); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-mark {
  position: absolute;
  right: -3%;
  bottom: -10%;
  width: min(46vw, 520px);
  height: auto;
  color: var(--text-dark);
  opacity: .08;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(244, 246, 250, 0) 94%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 14, 31, .88) 0%, rgba(7, 14, 31, .64) 55%, rgba(7, 14, 31, .36) 100%),
    linear-gradient(rgba(7, 14, 31, .46), rgba(7, 14, 31, .46));
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { color: var(--primary-bright); margin-bottom: 22px; }
.hero-title { max-width: 12ch; margin-bottom: 26px; }
/* Room for descenders inside the overflow-hidden line slots. */
.hero-title .split-line { padding-bottom: .2em; margin-bottom: -.2em; }
.hero-sub {
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  color: #D8DEEA;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; max-width: 640px; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; margin-bottom: 26px; }
.chip {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 14px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--text-dark);
}
.hero-hours { font-size: 15px; color: var(--muted-dark); }

/* 9. Services ------------------------------------------------------------- */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 48px 80px;
  align-items: start;
}
.services-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.services-intro .lead { max-width: 40ch; }

.service-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.service-list .service-row:last-child { border-bottom: 1px solid var(--border); }
.row-main { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 8px; }
.index {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  padding-top: 9px;
  transition: color .25s ease;
}
.row-text h3 { margin-bottom: 10px; transition: color .25s ease; }
.service-row:focus-within .index { color: var(--primary); }
.service-row:focus-within .row-text h3 { color: var(--primary); }
.row-text p { color: var(--muted); font-size: 17px; max-width: 62ch; margin-bottom: 14px; }
.row-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-ink);
  text-decoration: none;
}
/* Red, because it dials the shop — same rule as .btn-call. */
.row-cta::after { content: "→"; transition: transform .25s ease; }

/* Card layout is the default: image on top, no expand. */
.row-media {
  order: -1;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-dark);
}
.row-media img { width: 100%; height: 100%; object-fit: cover; }

/* 10. Symptoms ------------------------------------------------------------ */
.symptoms { background: var(--surface); }
.symptoms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
  margin-top: 48px;
}
.symptom-list { display: grid; gap: 10px; align-content: start; }
.symptom {
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.symptom.is-active {
  background: var(--text);
  color: var(--text-dark);
  border-color: var(--text);
  border-left-color: var(--primary-bright);
}

.symptom-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-dark); }
.panel-body { padding: 30px; }
.panel-body h3 { font-size: 1.75rem; margin-bottom: 22px; }
.symptom-facts { display: grid; gap: 18px; margin-bottom: 26px; }
.symptom-facts dt {
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 7px;
}
.symptom-facts dd { color: var(--muted); font-size: 17px; }
.footnote { margin-top: 30px; font-size: 15px; color: var(--muted); max-width: 74ch; }

/* 11. Why-us -------------------------------------------------------------- */
.why-us { background: var(--bg); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 52px 0 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats li { display: flex; flex-direction: column; gap: 6px; padding: 28px 0; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}
.stat-label { font-size: 14px; color: var(--muted); }

.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-dark);
  aspect-ratio: 4 / 3;
}
.media-card .loop { width: 100%; height: 100%; object-fit: cover; }
/* Parallax moves the media +-8% of its own height; it has to overhang the card
   at both ends or the card background shows as a strip. */
.parallax-card .loop,
.parallax-card img { position: absolute; left: 0; top: -12%; height: 124%; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.reason { border-top: 2px solid var(--primary); padding-top: 16px; }
.reason h3 { font-size: 1.3125rem; margin-bottom: 8px; }
.reason p { color: var(--muted); font-size: 16px; }

/* 12. Process ------------------------------------------------------------- */
.process { background: var(--surface); }
.timeline-wrap { position: relative; margin-top: 56px; }
.timeline-line {
  position: absolute;
  z-index: 0;
  top: 23px;
  left: 27px;
  width: calc(100% - 54px);
  height: 8px;
  overflow: visible;
}
.timeline-line path { fill: none; stroke: var(--primary); stroke-width: 2; }
.timeline-line-v { display: none; }
.timeline { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1;
  margin-bottom: 22px;
}
.step h3 { font-size: 1.3125rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* 13. Sectors ------------------------------------------------------------- */
.sectors { background: var(--bg); }
.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 52px; }
.sector-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-icon { color: var(--primary); }
.sector-card h3 { font-size: 1.4375rem; }
.sector-card > p { color: var(--muted); font-size: 16px; flex: 1 1 auto; }
.dashes { display: grid; gap: 9px; padding-top: 18px; border-top: 1px solid var(--border); }
.dashes li { position: relative; padding-left: 20px; font-size: 15px; color: var(--muted); }
.dashes li::before { content: ""; position: absolute; left: 0; top: .72em; width: 11px; height: 2px; background: var(--primary); }

/* 14. Areas --------------------------------------------------------------- */
.areas { background: var(--surface); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.pills li {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--bg);
  font-size: 15px;
  font-weight: 600;
}
.marquee { margin-top: 60px; background: var(--bg); }
.marquee-track li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.closing { margin-top: 48px; font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); font-weight: 600; max-width: 52ch; text-wrap: balance; }

/* 15. Proof --------------------------------------------------------------- */
.proof { background: var(--bg); }
.proof-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 24px;
  margin-top: 52px;
  align-items: stretch;
}
.rating-card, .quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.rating-card { box-shadow: var(--shadow); }
.rating-value { display: flex; align-items: baseline; gap: 10px; }
.rating-value .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.rating-value .of { font-size: 15px; color: var(--muted); }
.stars { display: flex; gap: 4px; }
.stars svg { width: 22px; height: 22px; fill: var(--primary); }
.rating-count { font-size: 15px; color: var(--muted); }
.rating-card .link { margin-top: auto; align-self: flex-start; }

.quote { border-left: 3px solid var(--primary); gap: 18px; }
.quote p { font-size: 1.0625rem; }
.quote p::before { content: "“"; font-family: var(--font-display); font-size: 2.5rem; line-height: 0; vertical-align: -0.35em; color: var(--primary); margin-right: 4px; }
.quote footer {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 16. FAQ ----------------------------------------------------------------- */
.faq { background: var(--surface); }
.faq-list { margin-top: 44px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.chev {
  flex: none;
  width: 13px;
  height: 13px;
  margin-right: 4px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform .3s ease;
}
.faq-item[open] .chev { transform: rotate(225deg); }
.faq-body { padding-bottom: 24px; }
.faq-body p { color: var(--muted); max-width: 68ch; }
/* Height animation on open/close where ::details-content is supported. */
.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .35s ease, content-visibility .35s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

/* 17. Contact ------------------------------------------------------------- */
.contact { background: var(--bg); }
.contact-title { margin-bottom: 4px; }
.contact-title .split-line { padding-bottom: .2em; margin-bottom: -.2em; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px;
  margin-top: 48px;
  align-items: start;
}
.text-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.text-card h3 { font-size: 1.75rem; }
.text-card p { color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); }
.text-card .btn { justify-self: start; }
.msg-icon { width: 22px; height: 22px; flex: none; }
.mobile-cta .msg-icon { width: 20px; height: 20px; }


.contact-side { display: grid; gap: 20px; align-content: start; }
.contact-side .media-card { aspect-ratio: 16 / 9; }
.side-note { font-size: 16px; color: var(--muted); }
.side-address { font-style: normal; font-weight: 600; }
.side-phone .btn, .side-directions .btn { width: 100%; }
.hours { width: 100%; font-size: 15px; }
.hours caption {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 12px;
}
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--border); }
.hours th { text-align: left; font-weight: 400; color: var(--muted); }
.hours td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.side-pay { font-size: 14px; color: var(--muted); }

/* 18. Footer -------------------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: var(--text-dark); padding: 76px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .brand-logo { margin-bottom: 22px; }
.footer-brand p { max-width: 44ch; font-size: 15px; color: var(--muted-dark); }
.footer-brand a { color: var(--text-dark); text-decoration: underline; text-underline-offset: 3px; }
/* Same rule as .btn-call: anything that dials the shop is red, here in the
   bright variant so it clears 4.5:1 on the dark footer. */
.site-footer a[href^="tel:"] { color: var(--accent-bright); }
.footer-h {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 18px;
}
.site-footer nav ul { display: grid; gap: 11px; }
.site-footer nav a { font-size: 15px; text-decoration: none; transition: color .2s ease; }
.legal { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border-dark); }
.legal p { font-size: 14px; color: var(--muted-dark); }

/* 18b. Secondary pages (privacy, accessibility, 404) ---------------------- */
body.page-light .site-header {
  background: var(--bg);
  color: var(--text);
  border-bottom-color: var(--border);
}
.page { padding-block: 72px var(--section); }
/* Secondary pages use the h2 step: the h1 display size belongs to the home hero. */
.page-title { font-size: var(--h2); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 28px; }
.prose { display: grid; gap: 18px; max-width: 66ch; }
.prose p { color: var(--muted); }
.page-meta { font-size: 15px; }
.page-back { margin-top: 40px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.page-404 .prose p { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); }

/* 18c. Hover states — pointer devices only ------------------------------- */
/* Behind (hover: hover) so a tap on a touch screen cannot leave an element
   stuck in its hover style, which is what turned the hero button amber-bright
   on the phone screenshot. Solid buttons darken on hover; the red Call button
   darkens to --accent-ink, which still clears 3:1 on the dark hero (3.12:1). */
@media (hover: hover) {
  .btn:not([disabled]):hover { transform: translateY(-1px); }
  .btn-call:not([disabled]):hover { background: var(--accent-ink); }
  .btn-primary:not([disabled]):hover { background: var(--primary-ink); }
  .btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .9); }
  .btn-outline:hover { background: var(--primary-ink); color: #FFFFFF; }
  .btn-dark:hover { background: #1F2A45; }
  .link:hover { color: var(--primary-ink); text-decoration-thickness: 2px; }
  .site-nav ul a:hover::after { transform: scaleX(1); }
  .service-row:hover .index { color: var(--primary); }
  .service-row:hover .row-text h3 { color: var(--primary); }
  .row-cta:hover { text-decoration: underline; text-underline-offset: 4px; }
  .row-cta:hover::after { transform: translateX(4px); }
  .symptom:hover { background: #E8ECF5; border-color: rgba(12, 18, 32, .22); }
  .symptom.is-active:hover { background: #18203A; }
  .faq-item summary:hover { color: var(--primary); }
  .site-footer nav a:hover { color: var(--primary-bright); text-decoration: underline; text-underline-offset: 3px; }
  .site-footer a[href^="tel:"]:hover { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
}

/* 19. Motion states ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }
html.no-motion .reveal { opacity: 1; transform: none; transition: none; }
html.reveal-off .reveal { opacity: 1; transform: none; transition: none; }
.split-line { display: block; overflow: hidden; }
.split-line > .split-inner { display: block; will-change: transform; }
.marquee { overflow: hidden; display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-track { display: flex; gap: 24px; flex: none; list-style: none; margin: 0; padding: 0; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 24px)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }
html.no-motion .marquee-track { animation: none; }

/* Project rule: reduced motion disables every animation in the stylesheet, not
   just the two above. Declared for the media query (which is the only path when
   JavaScript is off) and for html.no-motion, which the head script also sets for
   Save-Data. ::details-content needs naming because * does not match it. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, *::backdrop {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .faq-item::details-content { transition: none !important; }
}
html.no-motion *,
html.no-motion *::before,
html.no-motion *::after,
html.no-motion *::backdrop {
  animation-duration: 1ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
  transition-delay: 0ms !important;
}
html.no-motion .faq-item::details-content { transition: none !important; }
html.no-motion { scroll-behavior: auto !important; }

/* Stagger: containers set --stagger, children get their index from --i. */
.reveal { transition-delay: calc(var(--i, 0) * var(--stagger, 0ms)); }
.stagger > *:nth-child(1) { --i: 0; }
.stagger > *:nth-child(2) { --i: 1; }
.stagger > *:nth-child(3) { --i: 2; }
.stagger > *:nth-child(4) { --i: 3; }
.stagger > *:nth-child(5) { --i: 4; }
.stagger > *:nth-child(6) { --i: 5; }
.stagger > *:nth-child(7) { --i: 6; }
.stagger > *:nth-child(8) { --i: 7; }
.stagger > *:nth-child(9) { --i: 8; }
.stagger > *:nth-child(10) { --i: 9; }
.stagger > *:nth-child(11) { --i: 10; }
.stagger > *:nth-child(12) { --i: 11; }
.stagger > *:nth-child(13) { --i: 12; }
.stagger > *:nth-child(14) { --i: 13; }
.stagger > *:nth-child(15) { --i: 14; }
.stagger > *:nth-child(16) { --i: 15; }
.stagger > *:nth-child(17) { --i: 16; }
.stagger > *:nth-child(18) { --i: 17; }
.stagger > *:nth-child(19) { --i: 18; }
.stagger > *:nth-child(20) { --i: 19; }
.stagger > *:nth-child(n + 21) { --i: 20; }

/* Elements the GSAP intro animates in. Released after 3 s if GSAP never runs. */
html.has-motion .pre-hide { opacity: 0; }
html.no-prehide .pre-hide { opacity: 1; }
html.reveal-off .pre-hide { opacity: 1; }

/* Reduced motion / save-data: posters and flat surfaces instead of video. */
html.no-motion .hero-video { display: none; }
html.no-motion .hero-media {
  background-image: url("../assets/hero-poster.jpg");
  background-size: cover;
  background-position: center;
}
/* The loops keep their box and show their poster frame: main.js pauses them and
   strips autoplay, and a <video> that has never played renders its poster. */

/* Wide screens: name and phone share a row. */
@media (min-width: 901px) {
}

/* Hover-expand: pointer devices on wide screens only. */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .service-row { display: block; }
  .row-media {
    height: 0;
    overflow: hidden;
    aspect-ratio: auto;
    width: min(280px, 100%);
    margin-left: auto;
    background: none;
    border-radius: 0;
  }
  .row-media img {
    height: 184px;
    margin-top: 16px;
    border-radius: var(--radius);
    background: var(--surface-dark);
  }
}

/* 20. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-intro { position: static; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .rating-card { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .mobile-cta { display: flex; }
  .site-footer { padding-bottom: 110px; }

  .site-header { position: sticky; }
  .header-inner { position: static; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    padding: 12px var(--margin) 26px;
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    /* visibility flips instantly on open, and only after the fade on close. */
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
  }
  .site-nav ul { display: grid; gap: 0; }
  .site-nav ul li + li { border-top: 1px solid var(--border); }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 17px; }
  .site-nav ul a::after { display: none; }
  .btn-phone { display: flex; margin-top: 18px; }

  .hero { min-height: 80vh; padding-top: calc(var(--header-h) + 24px); }
  .hero-title { max-width: 14ch; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .stats li { padding: 22px 0; }
  .stats li:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .reasons { grid-template-columns: 1fr; gap: 26px; }

  .symptoms-grid { grid-template-columns: 1fr; gap: 28px; }
  .symptom-list { grid-template-columns: 1fr; }
  .symptom-panel.is-inline { margin: 4px 0 10px; box-shadow: none; border-color: rgba(12, 18, 32, .18); }
  .symptom-panel.is-inline .panel-media { aspect-ratio: 21 / 9; }
  .symptom { font-size: 15px; padding: 13px 15px; }
  .panel-body { padding: 24px; }

  .timeline-line { display: none; }
  /* The rail runs from the first number down past the last; fade out the tail. */
  .timeline-line-v {
    display: block;
    top: 27px;
    left: 26px;
    width: 8px;
    height: calc(100% - 54px);
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 96%);
    mask-image: linear-gradient(to bottom, #000 72%, transparent 96%);
  }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .step { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-areas: "num title" "num text"; gap: 4px 20px; }
  .step-num { grid-area: num; margin-bottom: 0; }
  .step h3 { grid-area: title; align-self: center; }
  .step p { grid-area: text; }

  .sector-grid { grid-template-columns: 1fr; }
  .sector-card { padding: 26px; }
  .proof-grid { grid-template-columns: 1fr; }
  .rating-card, .quote { padding: 26px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .legal { margin-top: 44px; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .brand-logo { height: 34px; }
  .hero-title { max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .row-main { grid-template-columns: 1fr; }
  .index { padding-top: 0; margin-bottom: 6px; }
  .symptom-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .rating-value .big { font-size: 3.5rem; }
  .faq-item summary { font-size: 1.1875rem; }
}

/* 21. Print --------------------------------------------------------------- */
@media print {
  .site-header, .mobile-cta, .marquee, .hero-media, video, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; padding-bottom: 0; }
  .hero { min-height: 0; margin-top: 0; padding: 24pt 0; background: #fff; color: #000; }
  .hero-eyebrow, .hero-hours, .chip { color: #000; }
  .section { padding-block: 24pt; }
  .reveal { opacity: 1; transform: none; }
  .faq-item::details-content { block-size: auto; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
