/* Layout: On Target brand palette (logo charcoal + teal), teal used for calls to action and markers.
   Single centered column (max 1120px) with full-width color bands; content wraps to one column under 760px. */
:root {
  --bg: #f4f6f6;          /* sea fog */
  --surface: #ffffff;
  --ink: #17262a;         /* deep spruce-ink */
  --muted: #4d5f62;       /* granite */
  --line: #d5ddda;
  --spruce: #2c3435;      /* band color: logo charcoal */
  --spruce-ink: #eef4f3;  /* text on charcoal */
  --accent: #127d81;      /* logo teal */
  --accent-ink: #ffffff;
  --tint: #e3eeee;
  --logo-dark-show: block;   /* logo with charcoal lettering */
  --logo-light-show: none;   /* logo with light lettering, for dark theme */

  --font-display: "Montserrat", "Arial", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.8rem, 3.2vw, 2.4rem);
  --step-4: clamp(2.3rem, 5.4vw, 3.9rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a1b; --surface: #182224; --ink: #e6eeeb; --muted: #a3b4b2; --line: #2a3c40;
    --spruce: #20282a; --spruce-ink: #e6f0ef; --accent: #3cbcc0; --accent-ink: #0b1a1b; --tint: #1b2e30; --logo-dark-show: none; --logo-light-show: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121a1b; --surface: #182224; --ink: #e6eeeb; --muted: #a3b4b2; --line: #2a3c40;
  --spruce: #20282a; --spruce-ink: #e6f0ef; --accent: #3cbcc0; --accent-ink: #0b1a1b; --tint: #1b2e30; --logo-dark-show: none; --logo-light-show: block;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }

.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1120px; margin: 0 auto; }
.prose { max-width: 66ch; display: grid; gap: 1rem; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 46px; width: auto; max-width: 100%; }
.brand .logo-dark { display: var(--logo-dark-show); }
.brand .logo-light { display: var(--logo-light-show); }
.site-footer .brand img { height: 52px; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.header-call { font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.25rem; border-radius: 4px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer; font-family: var(--font-body);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Hero */
.hero { background: var(--spruce); color: var(--spruce-ink); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding-block: 64px 72px; }
.hero .eyebrow { color: color-mix(in srgb, var(--spruce-ink) 72%, transparent); }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero-lede { font-size: var(--step-1); max-width: 40ch; color: color-mix(in srgb, var(--spruce-ink) 88%, transparent); }
.hero .btn-ghost { color: var(--spruce-ink); }
.hero-mark { justify-self: center; width: min(320px, 100%); aspect-ratio: 1; max-width: 100%; }
.hero-mark img { width: 100%; height: 100%; object-fit: contain; }
.page-hero .wrap { padding-block: 52px 56px; grid-template-columns: minmax(0, 1fr); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }

/* Readout strip: real figures, monospace */
.readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid color-mix(in srgb, var(--spruce-ink) 25%, transparent); margin-top: 0.5rem; }
.readout div { padding: 0.9rem 1rem 0 0; display: grid; gap: 2px; min-width: 0; }
.readout strong { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; }
.readout span { font-size: 0.85rem; color: color-mix(in srgb, var(--spruce-ink) 75%, transparent); }

/* Sections */
.section .wrap { padding-block: 64px; display: grid; gap: 2rem; }
.section-head { display: grid; gap: 0.6rem; max-width: 66ch; }
.section-head p { color: var(--muted); }
.tint { background: var(--tint); }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--surface); padding: 1.6rem; display: grid; gap: 0.6rem; align-content: start; text-decoration: none; min-width: 0; }
.service:hover h3 { color: var(--accent); }
.service p { color: var(--muted); }
.service .more { font-weight: 700; font-size: 0.95rem; margin-top: 0.3rem; }
.service .tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.two-col > * { min-width: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0.7rem; }
.checklist li::before {
  content: ""; width: 14px; height: 14px; margin-top: 0.42em; border-radius: 50%;
  border: 3px solid var(--accent); box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 6px var(--accent);
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.4rem; align-content: start; border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.steps p { color: var(--muted); font-size: 0.97rem; }

.panel { background: var(--surface); border: 1px solid var(--line); padding: 1.6rem; display: grid; gap: 0.9rem; }

table.data { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
table.data th, table.data td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.data td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.fine { font-size: 0.85rem; color: var(--muted); }

.towns { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.towns li { border: 1px solid var(--line); background: var(--surface); padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.93rem; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 66ch; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style-position: outside; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

.cta { background: var(--spruce); color: var(--spruce-ink); }
.cta .wrap { padding-block: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta .btn-ghost { color: var(--spruce-ink); }
.cta-phone { font-family: var(--font-mono); font-size: var(--step-2); font-weight: 600; user-select: all; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-list { display: grid; gap: 1.1rem; }
.contact-list dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
form.quote { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); width: 100%;
}
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.form-status { padding: 0.9rem 1rem; border-left: 4px solid var(--accent); background: var(--tint); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 40px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; font-size: 0.95rem; }
.site-footer h3 { font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-note { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero .wrap, .two-col, .contact-grid, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 44px 52px; }
  .hero-mark { display: none; }
  .services, .field-row { grid-template-columns: minmax(0, 1fr); }
  .readout { grid-template-columns: minmax(0, 1fr); }
  .readout div { padding-right: 0; }
  .section .wrap { padding-block: 48px; }
}
@media (max-width: 480px) {
  .brand img { height: 38px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .header-call { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-mark img { animation: settle 1.2s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { transform: scale(1.06) rotate(-4deg); } to { transform: none; } }
}

/* Charts: horizontal bars, values read from the label, not color alone */
.chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 1.6rem; display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.chart figcaption { display: grid; gap: 0.35rem; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 3.4rem; gap: 0.75rem; align-items: center; font-size: 0.93rem; }
.bar-label { line-height: 1.25; }
.bar-label small { display: block; color: var(--muted); font-size: 0.78rem; }
.bar-track { height: 14px; background: var(--tint); border-radius: 2px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--v); background: var(--accent); border-radius: 2px; }
.bar-val { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.note { border-left: 4px solid var(--accent); background: var(--surface); padding: 1.1rem 1.3rem; display: grid; gap: 0.5rem; max-width: 80ch; }
.note p { color: var(--muted); font-size: 0.97rem; }
.product-specs { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }
@media (prefers-reduced-motion: no-preference) {
  .bar-fill { animation: grow 0.9s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
  @keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
}
@media (max-width: 760px) {
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .bars li { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 3rem; gap: 0.5rem; }
}

/* "Are you protected?" band, after the flyer: charcoal with a teal diagonal slab */
.protect { position: relative; background: var(--spruce); color: var(--spruce-ink); overflow: hidden; isolation: isolate; }
.protect::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 46%; background: var(--accent); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); z-index: -1; opacity: .92; }
.protect .wrap { padding-block: 56px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.protect-head { display: grid; gap: 0.9rem; min-width: 0; }
.protect-icons { display: flex; gap: 0.6rem; }
.protect-icons span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 55%, var(--spruce)); }
.protect-icons svg { width: 28px; height: 28px; stroke: var(--spruce-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.protect-kicker { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; font-size: var(--step-2); color: color-mix(in srgb, var(--spruce-ink) 80%, var(--accent)); }
.protect h2 { font-size: var(--step-4); font-weight: 800; text-transform: uppercase; line-height: 1; }
.protect-head p:last-child { max-width: 44ch; color: color-mix(in srgb, var(--spruce-ink) 85%, transparent); font-size: var(--step-1); }
.tech { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; min-width: 0; }
.tech li { background: color-mix(in srgb, var(--spruce) 82%, transparent); border-left: 4px solid var(--spruce-ink); padding: 0.7rem 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.slogan { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.82rem; color: var(--accent); }
.print-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.print-grid figure { margin: 0; display: grid; gap: 0.6rem; min-width: 0; }
.print-grid img { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; display: block; }
.cards { display: grid; gap: 1rem; }
@media (max-width: 760px) {
  .protect .wrap, .print-grid { grid-template-columns: minmax(0, 1fr); }
  .protect::before { width: 100%; top: auto; height: 46%; clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%); }
}

/* Job photo gallery: three across, one column on phones */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 4px; background: var(--tint); }
.gallery figcaption { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

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

/* Portrait job photos, four across */
.gallery-tall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-tall img { aspect-ratio: 3 / 4; }
.ba { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-right: 0.35rem; }
@media (max-width: 960px) { .gallery-tall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Product feature: image beside a spec list */
.product-feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.product-feature > * { min-width: 0; }
.product-feature figure { margin: 0; }
.product-feature img { width: 100%; height: auto; display: block; border-radius: 4px; }
.spec-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.spec-row div { border: 1px solid var(--line); background: var(--surface); padding: 0.7rem 1rem; display: grid; gap: 2px; }
.spec-row strong { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; }
.spec-row span { font-size: 0.85rem; color: var(--muted); }

/* Particle size scale: log axis, MERV size ranges shaded behind */
.psize { background: var(--surface); border: 1px solid var(--line); padding: 1.6rem; display: grid; gap: 1rem; }
.psize-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.psize-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.9rem; align-items: center; font-size: 0.93rem; }
.psize-row .lab small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 0.76rem; }
.psize-track { position: relative; height: 26px; }
.psize-bands { position: absolute; inset: 0; }
.psize-band { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 12%, transparent); border-left: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.psize-band.b2 { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.psize-band.b3 { background: color-mix(in srgb, var(--accent) 28%, transparent); border-right: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.psize-bar { position: absolute; top: 7px; height: 12px; min-width: 12px; border-radius: 999px; background: var(--ink); }
.psize-row.hl .psize-bar { background: var(--accent); }
.psize-axis { position: relative; height: 1.4rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.psize-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.psize-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.85rem; color: var(--muted); }
.psize-legend i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 0.4rem; border-radius: 2px; }
@media (max-width: 760px) {
  .product-feature { grid-template-columns: minmax(0, 1fr); }
  .psize { padding: 1rem; }
  .psize-row { grid-template-columns: 7.2rem minmax(0, 1fr); gap: 0.5rem; font-size: 0.85rem; }
}

.gallery-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .gallery-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gallery-8 { grid-template-columns: minmax(0, 1fr); } }

/* Vertical video beside text */
.video-feature { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.video-feature > * { min-width: 0; }
.video-feature video { width: 100%; height: auto; aspect-ratio: 9 / 16; display: block; border-radius: 6px; background: var(--spruce); }
.qr-card { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.qr-card img { width: 100%; height: auto; display: block; background: #fff; border-radius: 12px; }
@media (max-width: 760px) {
  .video-feature { grid-template-columns: minmax(0, 1fr); }
  .video-feature video { max-width: 340px; margin: 0 auto; }
  .qr-card { grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 1rem; }
}
.qr-card .prose { min-width: 0; overflow-wrap: anywhere; }

/* Project story: two large photos, then three */
.gallery-story { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gallery-story figure { grid-column: span 2; }
.gallery-story figure:nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 760px) {
  .gallery-story { grid-template-columns: minmax(0, 1fr); }
  .gallery-story figure, .gallery-story figure:nth-child(-n+2) { grid-column: auto; }
}

/* Accessibility helpers */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 0.7rem 1rem; border-radius: 4px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a.cta-phone { text-decoration: none; }
summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Conversion layer: top bar, grouped menu, header CTA, mobile call bar ---------- */
.topbar { background: var(--spruce); color: var(--spruce-ink); font-size: 0.9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; justify-content: center; padding-block: 7px; text-align: center; }
.topbar a { font-family: var(--font-mono); font-weight: 600; color: var(--spruce-ink); text-underline-offset: 3px; }

.site-header .wrap { flex-wrap: nowrap; }
.nav { align-items: center; }
.nav > a, .nav-group-btn { color: var(--muted); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav-group { position: relative; }
.nav-group-btn { font: inherit; font-size: 0.95rem; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-group-btn::after { content: ""; width: 0.45em; height: 0.45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-group-btn:hover, .nav > a:hover { color: var(--ink); }
.nav-group.is-current > .nav-group-btn { color: var(--ink); border-bottom-color: var(--accent); }
.nav-sub { display: grid; gap: 0.1rem; }
.nav-sub a { text-decoration: none; color: var(--ink); padding: 0.5rem 0.75rem; border-radius: 4px; white-space: nowrap; }
.nav-sub a:hover { background: var(--tint); }
.nav-sub a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.js .nav-sub { display: none; position: absolute; top: calc(100% + 8px); left: -0.75rem; z-index: 60; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.js .nav-group.open .nav-sub { display: grid; }
html:not(.js) .nav-sub { padding-left: 0.5rem; }
.menu-toggle { display: none; }

.header-cta { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.92rem; }

.mobile-cta { display: none; }

@media (max-width: 1080px) {
  .site-header .wrap { flex-wrap: wrap; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto; font: inherit; font-weight: 700; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 0.5rem 0.85rem; cursor: pointer; }
  .js .menu-toggle::before { content: ""; width: 18px; height: 12px; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
  .js .menu-toggle[aria-expanded="true"]::before { background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat; }
  .nav { order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); margin-top: 0.4rem; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav > a, .nav-group-btn { padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1.02rem; color: var(--ink); width: 100%; justify-content: space-between; }
  .nav > a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); font-weight: 700; }
  .nav-group.is-current > .nav-group-btn { border-bottom-color: var(--line); }
  .js .nav-sub { position: static; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0.2rem 0 0.4rem 0.75rem; min-width: 0; }
  .nav-sub a { padding: 0.6rem 0.5rem; }
  .header-cta { display: none; }
}
@media (max-width: 760px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 4px; font-weight: 700; text-decoration: none; }
  .mobile-cta .call { border: 2px solid var(--ink); color: var(--ink); }
  .mobile-cta .quote { background: var(--accent); color: var(--accent-ink); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .topbar { font-size: 0.85rem; }
}

/* Who we serve */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.audience a { display: grid; gap: 0.45rem; align-content: start; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 1.2rem; text-decoration: none; border-radius: 4px; }
.audience a:hover h3 { color: var(--accent); }
.audience p { color: var(--muted); font-size: 0.95rem; }
.audience .more { font-weight: 700; font-size: 0.92rem; margin-top: 0.2rem; }

/* Contact: form first, reassurance line */
.form-head { display: grid; gap: 0.4rem; }
.form-head p { color: var(--muted); }
.req { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
[aria-invalid="true"] { border-color: #b3261e !important; outline: 2px solid #b3261e; outline-offset: 1px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.92rem; color: color-mix(in srgb, var(--spruce-ink) 85%, transparent); }
.trust li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.hero .trust li::before { color: color-mix(in srgb, var(--accent) 60%, var(--spruce-ink)); }
.contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* tighten header so the menu stays on one line */
.site-header .nav { gap: 0.25rem 1rem; font-size: 0.93rem; flex-wrap: nowrap; white-space: nowrap; }
.nav-group-btn { font-size: 0.93rem; }
@media (max-width: 1280px) { .header-cta .header-call { display: none; } }
.tb-short { display: none; }
@media (max-width: 760px) { .tb-long, .topbar a { display: none; } .tb-short { display: inline; } }

/* Text-us and free-estimate additions */
@media (max-width: 760px) { .mobile-cta { grid-template-columns: 1fr 1fr 1.3fr; } .mobile-cta a { font-size: 0.95rem; } }
.mobile-cta .text { border: 2px solid var(--ink); color: var(--ink); }
.free-note { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .topbar .wrap > span { display: none; } }

/* Customer review */
.review-band { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 1.6rem; display: grid; gap: 0.8rem; }
.review-top { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.stars { color: #8a6400; letter-spacing: 0.1em; font-size: 1.15rem; }
:root[data-theme="dark"] .stars { color: #f2c14e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stars { color: #f2c14e; } }
.review-src { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 1.08rem; line-height: 1.6; }
.review figcaption { font-weight: 700; color: var(--muted); font-size: 0.95rem; }
.contact-side { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
@media (max-width: 760px) { .review-band { grid-template-columns: minmax(0, 1fr); } }
