/* Millenial Air Conditioning: site styles (v4 design system, 2026-10-15)
   Warm, calm, premium, local. Paper backgrounds, Fraunces display + Figtree body (self-hosted),
   navy structure, ember for the primary button only. No gradients, no glow, no scroll reveals.
   Component markup comes from site-build/ui.py; class names here match it. */

/* ---------- Fonts (latin subset, self-hosted) + metric-matched fallbacks ---------- */
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 107.4%; ascent-override: 91.1%; descent-override: 23.8%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-style: italic; size-adjust: 100.9%; ascent-override: 96.9%; descent-override: 25.3%; line-gap-override: 0%; }
@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 100.2%; ascent-override: 94.8%; descent-override: 25%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --paper: #FAF7F2;
  --paper-2: #F3EEE6;
  --card: #FFFFFF;
  --ink: #111A3F;
  --text: #3B4566;
  --muted: #5B6584;
  --navy: #202E75;
  --navy-950: #0A1033;
  --on-dark: #FAF7F2;
  --on-dark-2: #C4CBE6;
  --ember: #E8603C;
  --ember-hover: #F2714D;
  --ember-ink: #B4421F;
  --cool: #17609E;
  --line: rgba(32, 46, 117, .12);
  --line-strong: rgba(32, 46, 117, .22);
  --line-dark: rgba(250, 247, 242, .14);
  --star: #F4B400;
  --ok: #157F4A;
  --danger: #B42318;
  --draft: #6F5400;
  --draft-bg: #FFF8DC;
  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-body: "Figtree", "Figtree Fallback", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
  --gap: 16px;
  --sec: 64px;
  --r-panel: 28px;
  --r-card: 20px;
  --r-input: 14px;
  --shadow: 0 1px 2px rgba(17, 26, 63, .06), 0 12px 32px -12px rgba(17, 26, 63, .18);
  --header-h: 64px;
  --mbar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bg: var(--paper);
}
@media (min-width: 700px) { :root { --gutter: 28px; --gap: 24px; } }
@media (min-width: 900px) { :root { --sec: 112px; --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 27px; color: var(--text);
  background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 18px; line-height: 28px; } }
body.has-mbar { padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-mbar { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
blockquote, figure, dl, dd { margin: 0; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 500; }
h1 { font-size: clamp(38px, 2.6vw + 23px, 60px); line-height: 1.07; letter-spacing: -.025em; max-width: 16ch; }
h2 { font-size: clamp(30px, 1.5vw + 24px, 44px); line-height: 1.1; letter-spacing: -.02em; }
h3 { font-size: 19px; line-height: 26px; font-weight: 700; letter-spacing: -.005em; }
@media (min-width: 900px) { h3 { font-size: 22px; line-height: 28px; } }
.accent { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 20px; line-height: 28px; color: var(--navy); }
@media (min-width: 900px) { .accent { font-size: 24px; line-height: 32px; } }
.eyebrow { font-size: 13px; line-height: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.lede { max-width: 60ch; }
small, .small { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-cool { color: var(--cool); }
.ico-heat { color: var(--ember-ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.sec-dark :focus-visible, .site-footer :focus-visible, .quote-bar:focus-visible { outline-color: var(--on-dark); }

/* ---------- Buttons, links, chips, stars ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border: 1.5px solid transparent; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 20px;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .16s, border-color .16s, color .16s, transform .16s;
}
.btn .ico { width: 18px; height: 18px; }
.btn-ember { background: var(--ember); color: var(--ink); }
.btn-ember:hover { background: var(--ember-hover); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--ink); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--card); }
.btn-light { border-color: var(--on-dark-2); color: var(--on-dark); background: transparent; }
.btn-ghost { color: var(--navy); background: transparent; padding-inline: 8px; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 16px; }
.btn-lg { min-height: 56px; padding: 16px 28px; }
.btn-block { display: flex; width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .16s; }
.link-arrow:hover .ico { transform: translateX(3px); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink); background: var(--paper-2); }
.chip-link { text-decoration: none; border: 1px solid var(--line); background: var(--card); }
.chip-link:hover { border-color: var(--line-strong); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.g-logo { width: 20px; height: 20px; }

/* ---------- Draft banner ---------- */
.draft-banner { background: var(--draft-bg); border-bottom: 1px solid #EFDF9F; color: var(--draft); font-size: 14px; line-height: 20px; }
.draft-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.draft-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--draft); cursor: pointer; }
.draft-close .ico { width: 16px; height: 16px; }
.draft-hidden .draft-banner { display: none; }
@media (max-width: 699px) { .draft-more { display: none; } }

/* ---------- Quote bar ---------- */
.quote-bar { display: block; background: var(--navy-950); color: var(--on-dark-2); text-decoration: none; font-size: 13px; line-height: 18px; }
.qb-inner { display: block; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.quote-bar .stars { vertical-align: -1px; margin-right: 6px; }
.quote-bar .stars .ico { width: 12px; height: 12px; }
.qb-q { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--on-dark); margin-right: 6px; }
.qb-who { font-weight: 600; }
.qb-more { display: none; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .qb-inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; } .qb-q { font-size: 15px; margin: 0; } .quote-bar .stars { margin: 0; } .qb-more { display: inline; } }
.quote-bar:hover .qb-q { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); transition: min-height .16s; }
.logo { display: block; flex: none; color: var(--navy); margin-right: auto; }
.logo-svg { width: 138px; height: auto; }
@media (min-width: 480px) { .logo-svg { width: 168px; } }
@media (min-width: 1080px) { .logo-svg { width: 196px; } }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.hdr-call { display: none; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; text-align: right; }
.hdr-call small { font-size: 13px; line-height: 16px; }
.hdr-call b { font-size: 17px; }
.hdr-actions [data-hdr-quote] { display: none; }
.hdr-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--navy); }
.hdr-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ember); color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.bars { position: relative; width: 18px; height: 10px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.nav-open .bars { height: 2px; border-bottom: 0; }
@media (max-width: 419px) { .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .menu-btn { padding: 0; justify-content: center; } }

.nav { display: none; }
.nav-open .nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 8px var(--gutter) 20px; max-height: calc(100vh - 120px); overflow-y: auto;
}
.nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; border-bottom: 1px solid var(--line); }
.nav-link[aria-current="page"] { color: var(--navy); }
.chev { width: 18px; height: 18px; transition: transform .16s; }
.is-open > .sub-toggle .chev { transform: rotate(180deg); }
.sub { display: none; padding: 4px 0 8px; }
.is-open > .sub { display: block; }
.sub-link { display: block; padding: 10px 8px; text-decoration: none; color: var(--ink); border-radius: 10px; }
.sub-link b { font-weight: 600; font-size: 16px; }
.sub-link small { display: block; font-size: 13px; line-height: 18px; font-weight: 500; }
.sub-link.is-child { padding-left: 24px; }
.sub-link:hover, .sub-link[aria-current="page"] { background: var(--paper); }
.nav-mobile-ctas { display: grid; gap: 8px; margin-top: 16px; }

@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; }
  .site-header.is-shrunk { --header-h: 64px; box-shadow: var(--shadow); }
  .hdr-call { display: flex; }
  .hdr-actions [data-hdr-quote] { display: inline-flex; }
  .hdr-icon, .hdr-pill { display: none; }
}
@media (min-width: 1080px) {
  .hdr { gap: 24px; }
  .logo { margin-right: 0; }
  .menu-btn, .nav-mobile-ctas, .nav-mobile-only { display: none; }
  .nav, .nav-open .nav { display: flex; align-items: center; gap: 4px; position: static; padding: 0; box-shadow: none; border: 0; max-height: none; overflow: visible; margin-right: auto; background: none; }
  .nav-item { position: relative; }
  .nav-link { width: auto; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; font-size: 16px; gap: 4px; }
  .nav-link:hover { background: var(--paper); }
  .sub { position: absolute; top: calc(100% + 8px); left: 0; width: 300px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
}
.site-header-min .hdr { justify-content: space-between; }
.site-header-min .logo { margin-right: 0; }
.site-header-min .hdr-actions .btn { min-height: 44px; }

/* ---------- Sections ---------- */
.sec { --bg: var(--paper); background: var(--bg); padding: var(--sec) 0; }
.sec-alt { --bg: var(--paper-2); }
.sec-dark { --bg: var(--navy-950); color: var(--on-dark-2); }
.sec-dark h2, .sec-dark h3 { color: var(--on-dark); }
.sec-dark a { color: var(--on-dark); }
.sec-tight { padding: calc(var(--sec) * .6) 0; }
.sec-head { max-width: 760px; margin-bottom: 32px; }
.sec-sub { margin-top: 12px; font-size: 18px; line-height: 28px; }
.sec-foot { margin-top: 32px; }
@media (min-width: 900px) { .sec-head { margin-bottom: 48px; } }
@media (min-width: 1100px) {
  .ruled { position: relative; }
  .ruled::before, .ruled::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
  .ruled::before { left: max(0px, calc(50% - var(--wrap) / 2)); }
  .ruled::after { right: max(0px, calc(50% - var(--wrap) / 2)); }
}
.cols-2 { display: grid; gap: 32px; }
@media (min-width: 900px) { .cols-2 { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* ---------- Hero panel ---------- */
.hero { padding: 12px; }
@media (min-width: 900px) { .hero { padding: 24px; } }
.hero-panel { max-width: calc(var(--wrap) + 48px); margin: 0 auto; background: var(--paper-2); border-radius: var(--r-panel); padding: 24px 20px; display: grid; gap: 24px; }
.hero-copy { display: grid; gap: 16px; align-content: start; min-width: 0; }
.hero-copy h1 { margin-top: 4px; }
.hero-repair { font-size: 15px; line-height: 22px; }
@media (max-width: 899px) { .photo-card.hero-photo { aspect-ratio: 3 / 2; } .hero-photo img { object-position: 50% 40%; } }
@media (min-width: 900px) {
  .hero-panel { padding: 56px; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
  .hero-copy { grid-column: 1 / -1; gap: 20px; }
  .hero-has-photo .hero-copy { grid-column: 1 / 8; }
  .hero-photo { grid-column: 8 / 13; justify-self: end; width: 100%; max-width: 460px; align-self: start; }
  .hero-panel .facts { grid-column: 1 / -1; }
}

/* ---------- Offer list ---------- */
.offers { display: grid; gap: 10px; }
.offers li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--ink); }
@media (min-width: 700px) { .offers li { font-size: 16px; line-height: 22px; } }
.offers .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--navy); stroke-width: 2.25; }
@media (min-width: 900px) { .offers-hero li { font-size: 18px; line-height: 26px; } .offers .ico { margin-top: 3px; } }
.offer-terms { font-size: 13px; line-height: 19px; color: var(--muted); }

/* ---------- ZIP start form ---------- */
.zip-start { display: grid; gap: 8px; max-width: 520px; }
.zs-label { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.zs-row { display: grid; gap: 8px; }
.zip-start input, .field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-input);
  background: var(--card); color: var(--ink); font: 600 18px/24px var(--font-body);
}
.zip-start input::placeholder { color: var(--muted); font-weight: 500; }
.zip-start input:focus, .field input:focus, .field textarea:focus { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.zip-start .btn { min-height: 52px; width: 100%; }
.zs-hint { font-size: 14px; line-height: 20px; font-weight: 600; min-height: 0; }
.zs-hint:empty { display: none; }
.zs-hint.is-in { color: var(--ok); }
.zs-hint.is-out { color: var(--text); }
.zs-micro { font-size: 14px; line-height: 20px; color: var(--muted); }
@media (min-width: 600px) {
  .zs-hero .zs-row, .zs-band .zs-row { grid-template-columns: minmax(0, 1fr) auto; }
  .zs-hero input, .zs-band input, .zs-hero .btn, .zs-band .btn { min-height: 56px; }
  .zs-hero .btn, .zs-band .btn { width: auto; padding-inline: 28px; }
}
.zs-band { margin: 24px auto 0; text-align: left; }
.zs-band .zs-label, .sec-dark .zs-label { color: var(--on-dark); }
.sec-dark .zs-hint.is-in { color: #7BD8A6; }
.sec-dark .zs-hint.is-out, .sec-dark .zs-micro { color: var(--on-dark-2); }
.sec-dark .zip-start input { border-color: transparent; }

/* ---------- Fact row ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); padding-top: 16px; }
.fact { display: grid; align-content: start; gap: 4px; padding: 0 10px; text-decoration: none; color: var(--text); min-width: 0; }
.fact:first-child { padding-left: 0; }
.fact + .fact { border-left: 1px solid var(--line-strong); }
.fact-n { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 32px; color: var(--ink); letter-spacing: -.02em; }
.fact-t { display: grid; gap: 4px; font-size: 13px; line-height: 18px; font-weight: 600; }
.fact .stars .ico { width: 13px; height: 13px; }
a.fact:hover .fact-t span { text-decoration: underline; }
@media (min-width: 900px) {
  .facts { padding-top: 28px; }
  .fact { padding: 0 28px; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
  .fact-n { font-size: 36px; line-height: 40px; }
  .fact-t { font-size: 14px; line-height: 20px; }
}

/* ---------- Photo cards + before/after ---------- */
.photo-card { position: relative; margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.chip-photo { position: absolute; left: 12px; bottom: 12px; background: rgba(250, 247, 242, .92); color: var(--ink); max-width: calc(100% - 24px); }
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 900px) { .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .jobs-2 { max-width: 800px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ba { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; }
.ba > img, .ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--card); pointer-events: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:focus-within { outline: 3px solid var(--navy); outline-offset: 2px; }
.ba-chip { position: absolute; top: 12px; background: rgba(250, 247, 242, .92); pointer-events: none; }
.ba-chip-b { left: 12px; }
.ba-chip-a { right: 12px; }
.ba-cap { position: absolute; left: 12px; bottom: 12px; pointer-events: none; }

/* ---------- Offer card + repair card (aside) ---------- */
.offer-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: grid; gap: 16px; }
.oc-title { font-family: var(--font-display); font-size: 24px; line-height: 30px; color: var(--ink); }
.oc-text, .oc-call { font-size: 15px; line-height: 22px; }
.oc-lic { font-size: 13px; line-height: 18px; color: var(--muted); font-weight: 600; }
.offer-card .zip-start { max-width: none; }

/* ---------- Article + aside ---------- */
.sec-article { padding-top: 32px; }
.split { display: grid; gap: 40px; }
.aside { min-width: 0; }
@media (max-width: 899px) { .aside .oc-form { display: none; } }
@media (min-width: 900px) {
  .sec-article { padding-top: 64px; }
  .split { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "main aside"; gap: 64px; align-items: start; }
  .split > .prose { grid-area: main; }
  .split > .aside { grid-area: aside; }
  .aside-sticky { position: sticky; top: 96px; }
}

/* ---------- Prose ---------- */
.prose { min-width: 0; max-width: 72ch; }
.prose-wide { max-width: 860px; }
.prose > * + * { margin-top: 16px; }
.prose > h2 { margin-top: 56px; font-size: clamp(28px, 1.2vw + 22px, 36px); }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 32px; }
.prose p { max-width: 68ch; }
.prose strong, .prose b { color: var(--ink); }
.prose ul:not([class]) { list-style: disc; padding-left: 22px; }
.ticks, .num-list { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.num-list { counter-reset: n; }
.num-list li { counter-increment: n; position: relative; padding-left: 44px; }
.num-list li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--navy); }
.sign-grid, .option-grid { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.sign-grid li, .option-grid li { background: var(--bg); padding: 20px 4px; display: flex; gap: 14px; }
.option-grid li { display: block; }
.option-grid li h3 { font-size: 19px; line-height: 26px; }
.option-grid li p { margin-top: 6px; }
.sign-grid .si { flex: none; display: grid; color: var(--navy); margin-top: 3px; }
.sign-grid.t-cool .si { color: var(--cool); }
.sign-grid b { display: block; color: var(--ink); }
@media (min-width: 700px) { .sign-grid, .option-grid { grid-template-columns: 1fr 1fr; } .sign-grid li, .option-grid li { padding: 20px; } }
.callout { display: flex; gap: 12px; padding: 16px 20px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line); }
.callout .ico { color: var(--navy); margin-top: 3px; }
.callout-warm { border-color: rgba(180, 66, 31, .3); }
.callout-warm .ico { color: var(--ember-ink); }

/* ---------- Symptom tiles ---------- */
.symptoms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .symptoms { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); } }
.symptom {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 88px; height: 100%; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 17px; line-height: 22px; transition: transform .16s, border-color .16s;
}
.symptom .ico { width: 24px; height: 24px; }
.symptom:hover, .area-card:hover, .tile:hover span { border-color: var(--line-strong); transform: translateY(-2px); }

/* ---------- Receipt card ---------- */
.receipt { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.rc-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--navy-950); color: var(--on-dark); font-weight: 700; font-size: 15px; }
.rc-head span + span { color: var(--on-dark-2); font-weight: 600; text-align: right; }
.rc-rows { padding: 0 20px; }
.rc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px dotted var(--line-strong); }
.rc-row:last-child { border-bottom: 0; }
.rc-row dt { color: var(--ink); font-weight: 600; font-size: 16px; line-height: 22px; }
.rc-row dt small { font-size: 14px; color: var(--muted); font-weight: 500; }
.rc-row dd { text-align: right; font-weight: 600; white-space: nowrap; }
.rc-free { color: var(--ember-ink); font-weight: 700 !important; text-transform: uppercase; letter-spacing: .04em; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--paper-2); font-weight: 700; color: var(--ink); }
.receipt-wrap { display: grid; gap: 32px; }
.side-quote p { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 30px; color: var(--ink); }
.side-quote footer { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.receipt-side { display: grid; gap: 16px; align-content: start; }
.receipt-links { font-weight: 600; }
@media (min-width: 900px) {
  .receipt-wrap { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); column-gap: 64px; row-gap: 32px; }
  .receipt-copy { grid-column: 1 / -1; }
  .receipt-side { padding-top: 16px; }
}
.cols-receipt { align-items: center; }

/* ---------- Services grid (hairlines, no boxes) ---------- */
.svc-grid { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.svc-card { background: var(--bg); padding: 28px 4px; display: grid; gap: 10px; align-content: start; }
.svc-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 32px; letter-spacing: -.015em; }
.svc-card h3 a { color: var(--ink); text-decoration: none; }
.svc-card h3 a:hover { text-decoration: underline; }
.svc-card .link-arrow { margin-top: 4px; }
.svc-cta { background: var(--paper-2); padding: 28px 20px; }
.sec-alt .svc-cta { background: var(--card); }
.svc-cta .btn { justify-self: start; margin-top: 6px; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-card { padding: 32px; } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Area cards ---------- */
.area-bento, .area-grid { display: grid; gap: var(--gap); }
.area-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); transition: transform .16s, border-color .16s; }
.area-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 34px; letter-spacing: -.015em; }
.area-card h3 a { color: var(--ink); text-decoration: none; }
.area-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ac-zips { font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 600; }
.ac-zips:empty { display: none; }
.ac-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.area-card .link-arrow { margin-top: 8px; }
@media (min-width: 900px) {
  .area-bento { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); }
  .area-card-lg { grid-row: 1 / 4; padding: 40px; display: flex; flex-direction: column; gap: 12px; }
  .area-card-lg .link-arrow { margin-top: auto; }
  .area-card-lg h3 { font-size: 44px; line-height: 48px; }
  .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Reviews (pull cards divided by hairlines) ---------- */
.pulls { display: grid; border-block: 1px solid var(--line); }
.pull { display: grid; gap: 14px; align-content: start; padding: 28px 0; }
.pull + .pull { border-top: 1px solid var(--line); }
.pull-top { display: flex; align-items: center; gap: 10px; }
.pull-q p { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 20px; line-height: 30px; color: var(--ink); }
.pull-text p { font-size: 17px; line-height: 27px; color: var(--ink); }
.pull-who { font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 600; }
.pull-who b { display: block; color: var(--ink); font-size: 15px; }
.pull-who span + span::before { content: "\00B7"; margin: 0 8px 0 4px; }
.pull-more summary { display: inline-flex; min-height: 44px; align-items: center; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--navy); list-style: none; }
.pull-more summary::-webkit-details-marker { display: none; }
.pull-more summary::after { content: "+"; margin-left: 6px; font-size: 18px; }
.pull-more[open] summary::after { content: "\2212"; }
.pull-more p { font-size: 16px; line-height: 25px; margin-top: 4px; }
.pulls-more { margin-top: 32px; }
.review-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 900px) {
  .pulls-2, .pulls-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulls-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pulls-2, .pulls-3, .pulls-4 { border-bottom: 0; }
  .pull { padding: 32px; border-bottom: 1px solid var(--line); }
  .pull + .pull { border-top: 0; }
  .pulls-2 .pull:nth-child(2n+1), .pulls-4 .pull:nth-child(2n+1), .pulls-3 .pull:first-child { padding-left: 0; }
  .pulls-2 .pull:nth-child(2n), .pulls-4 .pull:nth-child(2n), .pulls-3 .pull + .pull { border-left: 1px solid var(--line); }
}

/* ---------- Promise (renders only with OWNER) ---------- */
.promise { display: grid; gap: 32px; }
.owner-card { margin: 0; }
.owner-card img { border-radius: var(--r-card); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.owner-card figcaption { margin-top: 12px; font-size: 15px; line-height: 22px; }
.owner-quote { display: block; margin-top: 8px; font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 28px; color: var(--navy); }
.promise-list { display: grid; margin: 24px 0; border-top: 1px solid var(--line); }
.promise-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.promise-list .ico { color: var(--navy); margin-top: 4px; }
.promise-list b { color: var(--ink); }
@media (min-width: 900px) { .promise { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }

/* ---------- Link lists (where we do this, services in, nearby, related) ---------- */
.link-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); padding: 14px 0; display: grid; gap: 2px; }
.link-list a { font-weight: 700; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list span { font-size: 15px; line-height: 22px; color: var(--muted); }
@media (min-width: 700px) { .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (min-width: 1000px) { .link-list:not(.link-list-notes) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- FAQ (two columns) ---------- */
.faq-grid { display: grid; gap: 24px; }
.faq-intro p { margin-top: 12px; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; line-height: 26px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 22px; height: 22px; color: var(--navy); transition: transform .16s; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq-a { padding: 0 0 20px; max-width: 68ch; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
  .faq-intro { position: sticky; top: 112px; }
}

/* ---------- Final CTA ---------- */
.sec-final { text-align: center; }
.final { max-width: 720px; margin: 0 auto; }
.final-sub { margin-top: 16px; font-size: 18px; line-height: 28px; }
.final-alt { margin-top: 20px; }
.final-lic { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--on-dark-2); opacity: .85; }

/* ---------- Forms (quote page, contact) ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; font-weight: 500; font-size: 17px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.opt { font-weight: 500; color: var(--muted); }
.field-error { display: none; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--danger); }
.field-error.has-error { display: block; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.consent { font-size: 13px; line-height: 19px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-panel { margin-top: 48px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.simple-form { display: grid; gap: 16px; margin-top: 20px; }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-list > li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .ico { color: var(--navy); margin-top: 4px; }
.contact-list b { display: block; color: var(--ink); }
.hours li { font-size: 15px; }

/* ---------- /quote/ ---------- */
.quote-page { padding: 24px 0 64px; }
.quote-wrap { display: grid; gap: 32px; }
.q-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px 20px; }
.q-card h1 { font-size: clamp(32px, 2vw + 22px, 44px); }
.q-sub { margin-top: 8px; }
.q-form { display: grid; gap: 20px; margin-top: 20px; }
.q-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.q-q { padding: 0; font-family: var(--font-display); font-size: 24px; line-height: 30px; color: var(--ink); }
.q-progress { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.q-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.q-fill { display: block; height: 100%; width: 33.3%; background: var(--navy); transition: width .2s var(--ease); }
.q-step { display: grid; gap: 20px; }
.js .q-step { display: none; }
.js .q-step.is-active { display: grid; }
.no-js .q-progress, .no-js .q-nav { display: none; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .tiles:not(.tiles-2) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile span { display: flex; flex-direction: column; gap: 10px; min-height: 88px; height: 100%; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--card); font-weight: 600; font-size: 16px; line-height: 21px; color: var(--ink); transition: border-color .16s, background-color .16s, transform .16s; }
.tile-sm span { min-height: 56px; justify-content: center; }
.tile .ico { width: 24px; height: 24px; color: var(--navy); }
.tile input:checked + span { border-color: var(--navy); background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--navy); }
.tile input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.q-asap { display: none; padding: 14px 16px; border-radius: 14px; background: var(--paper-2); font-weight: 600; color: var(--ink); }
.is-asap .q-asap { display: block; }
.no-js .q-asap { display: block; }
.q-zip-known { font-weight: 600; }
.link-btn { border: 0; background: none; padding: 0; color: var(--navy); font-weight: 700; text-decoration: underline; cursor: pointer; }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.q-nav [data-next] { margin-left: auto; }
.q-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; background: none; font-weight: 700; color: var(--navy); cursor: pointer; }
.q-foot { margin-top: 20px; font-size: 15px; }
.q-side { display: grid; gap: 20px; align-content: start; }
.q-lic { font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 600; }
@media (min-width: 900px) {
  .quote-page { padding: 48px 0 96px; }
  .quote-wrap { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
  .q-card { padding: 40px; }
  .q-side { padding-top: 24px; }
}

/* ---------- Thank-you ---------- */
.steps-list { display: grid; gap: 12px; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding-left: 44px; font-weight: 600; color: var(--ink); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); padding: 64px 0 24px; font-size: 15px; line-height: 23px; border-top: 1px solid var(--line-dark); }
.site-footer a { color: var(--on-dark); }
.ft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.ft-brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; }
.logo-light { color: var(--on-dark); }
.ft-h { font-weight: 700; color: var(--on-dark); margin-bottom: 12px; font-size: 15px; }
.site-footer nav li + li { margin-top: 8px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.ft-lic { font-size: 14px; }
.ft-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.ft-min { display: grid; gap: 6px; text-align: center; font-size: 14px; }
.site-footer-min { padding: 32px 0; }
@media (min-width: 900px) { .ft-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; } .ft-brand { grid-column: auto; } }

/* ---------- Sticky mobile bar ---------- */
.mbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(17, 26, 63, .25); }
.mbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.mbar .ico { width: 18px; height: 18px; }
.mbar-call { background: var(--navy); color: #fff; }
.mbar-text { background: var(--paper-2); color: var(--navy); }
.mbar-quote { background: var(--ember); color: var(--ink); }
@media (min-width: 900px) { .mbar { display: none; } }
.nav-open .mbar { display: none; }

/* ---------- Home page only (scoped to .page-home: spacing and layouts from the homepage spec) ---------- */
.page-home #reviews { padding-top: 40px; }
@media (max-width: 899px) {
  .page-home .pull { padding: 22px 0; gap: 10px; }
  .page-home .pull-q p { font-size: 19px; line-height: 28px; }
}
@media (min-width: 900px) {
  .page-home #reviews { padding-top: 80px; }
  /* v4 QA: "Recent work" uses this heading-left layout on every page, not just home */
  #work .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  #work .sec-head { grid-column: 1 / 5; margin: 0; position: sticky; top: 96px; }
  #work .jobs { grid-column: 5 / -1; max-width: none; }
  .page-home .area-card-lg .ac-chips { flex-direction: column; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
  .page-home .area-card-lg .chip-link { justify-content: space-between; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font: 500 22px/28px var(--font-display); }
  .page-home .area-card-lg .chip-link::after { content: "\2192"; font: 600 18px/1 var(--font-body); color: var(--navy); }
  .page-home .area-card-lg .chip-link:hover { color: var(--navy); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Pages block (offers, guide, landing): repair-or-replace table, landing "how it works" ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.rr-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.rr-table th, .rr-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.rr-table thead th { border-top: 0; background: var(--paper-2); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--muted); }
.rr-table tbody th { width: 52%; font-weight: 600; color: var(--ink); }
.rr-table td b { display: block; color: var(--navy); }
.rr-table td span { display: block; margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--muted); }
.how-copy { display: grid; gap: 24px; align-content: start; }
.how-copy .zip-start { margin-top: 8px; }
.prose a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 899px) { .how-photo { aspect-ratio: 3 / 2; } }

/* ---------- Services block: 3-column comparison table (.cmp inside .table-wrap) ---------- */
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.cmp thead th { border-top: 0; background: var(--paper-2); font-size: 14px; line-height: 20px; color: var(--muted); }
.cmp tbody th { color: var(--ink); }
@media (min-width: 700px) { .cmp { font-size: 16px; line-height: 24px; } .cmp th, .cmp td { padding: 14px 16px; } }

/* ---------- v4 QA pass: keep-together tokens, no-photo hero review card, quote legend ---------- */
.nw { white-space: nowrap; }
.fact-t a { justify-self: start; }
.q-q { margin-bottom: 14px; }
.hero-side .pull { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; gap: 10px; }
.hero-side .pull-q p { font-size: 19px; line-height: 28px; }
@media (max-width: 899px) {
  .hero-side .pull-who span { display: block; }
  .hero-side .pull-who span + span::before { content: none; }
}
@media (min-width: 900px) {
  .hero-has-side .hero-copy { grid-column: 1 / 8; }
  .hero-side { grid-column: 8 / 13; justify-self: end; align-self: center; width: 100%; max-width: 440px; }
  .hero-side .pull { padding: 32px; gap: 14px; }
  .hero-side .pull-q p { font-size: 22px; line-height: 32px; }
}
