/* Hallmark · redesign: full · theme: brand (logo lawn green #3f6b22, logo sky blue for links and focus) · genre: editorial · job: hire a local crew (call or quote) · hero: Stage (/), Settled (service pages), Banner (/services/) · nav: edge-aligned logo, links, phone · footer: three columns, name, phone and hours first · signature: the before/after slider set big under a wide, truck-lettering headline · type: Archivo variable, width 125 for display, 100 for text · surface: washed-concrete paper, chalk cards · copy: verbatim (owner's words) */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: S, a green trades site is a familiar genre; the width-125 headline and the before/after doing the selling are what only this crew's site has */
/* Hallmark · waive 42 · nav: edge-aligned logo, links, phone · local trades sites put the phone at top right and the phone is the main job */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  /* Surfaces */
  --paper: #f3f5f0;
  --paper-2: #e5eadf;
  --chalk: #fbfcf8;
  /* Ink */
  --ink: #18210f;
  --ink-2: #4b5544;
  --line: #cdd3c6;
  --line-strong: #6d7666;
  /* Brand */
  --green: #3f6b22;
  --green-ink: #2e5118;
  --blue: #1b659f;
  --blue-light: #8cc4ee;
  --star: #b87800;
  --error: #a32020;
  --on-dark: #fbfcf8;
  --scrim: rgba(24, 33, 15, 0.82);
  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 125%;
  --semi: 112%;
  --text-display: clamp(30px, 1rem + 2.6vw, 52px);
  --text-display-2: clamp(32px, 1.4rem + 2.2vw, 54px);
  --text-section: clamp(28px, 1.2rem + 1.6vw, 44px);
  --text-title: 22px;
  --text-body: 18px;
  --text-small: 15px;
  /* Shape and size */
  --radius: 2px;
  --radius-input: 6px;
  --control: 48px;
  --container: 1240px;
  --gutter: 24px;
  --section: 128px;
  --gap: 48px;
  --header: 80px;
  /* Motion */
  --brass: #a8740f;
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-press: 140ms;
  --dur-ui: 220ms;
  --dur-move: 420ms;
  --shimmer: rgba(251, 252, 248, 0.38);
  --spot: rgba(63, 107, 34, 0.10);
  --spot-edge: rgba(168, 116, 15, 0.35);
  --shimmer-dark: rgba(63, 107, 34, 0.18);
  --backdrop: rgba(14, 20, 9, 0.92);
  --mask: #000;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); -webkit-tap-highlight-color: rgba(63, 107, 34, 0.18); color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--text-body); line-height: 1.6; font-stretch: 100%; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.band-dark :focus-visible, .site-footer :focus-visible, .mobile-bar :focus-visible { outline-color: var(--blue-light); }

/* Type */
h1, h2, h3 { font-weight: 800; line-height: 1.08; margin: 0 0 16px; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: var(--text-display-2); font-stretch: var(--wide); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: var(--text-section); font-stretch: var(--semi); letter-spacing: -0.005em; }
h3 { font-size: var(--text-title); line-height: 1.2; }
p { margin: 0 0 16px; }
p, li { text-wrap: pretty; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 52ch; }
.small { font-size: var(--text-small); color: var(--ink-2); }
.measure { max-width: 64ch; }
.container.measure { max-width: var(--container); }
.container.measure > * { max-width: 64ch; }
.container.measure > h2 { max-width: 28ch; }
.num { font-variant-numeric: tabular-nums; }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.band { background: var(--paper-2); }
.band + .section, .section + .band { padding-top: var(--section); }
.band-dark { background: var(--green); color: var(--on-dark); }
.band-dark a { color: var(--on-dark); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.head-row h2 { margin: 0; }
.head-row p { margin: 8px 0 0; color: var(--ink-2); max-width: 56ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split > div > h2:not(:first-child), .measure > h2:not(:first-child), .container > h2:not(:first-child) { margin-top: 64px; }
.split > div > h3, .faq h3 { margin-top: 32px; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-dark); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header); }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand img { width: 112px; height: auto; border-radius: 0; }
.brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav a:hover { color: var(--green-ink); text-decoration: underline; text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { color: var(--green-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 16px; background: var(--chalk); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.menu-btn:hover { border-color: var(--ink); }
.menu-btn:active { background: var(--paper-2); }

/* Buttons: one primary (filled green), one secondary (outlined) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control); padding: 0 24px; border: 2px solid var(--green); border-radius: var(--radius); background: var(--green); color: var(--on-dark); font: inherit; font-size: 17px; font-weight: 700; line-height: 1.1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-press) var(--ease-out), border-color var(--dur-press) var(--ease-out), color var(--dur-press) var(--ease-out), scale var(--dur-press) var(--ease-out); position: relative; overflow: hidden; isolation: isolate; }
.btn:hover { background: var(--green-ink); border-color: var(--green-ink); color: var(--on-dark); }
.btn:active { scale: 0.96; }
.btn-ghost { background: transparent; color: var(--green-ink); }
.btn-ghost:hover { background: var(--green); border-color: var(--green); color: var(--on-dark); }
.band-dark .btn { background: var(--on-dark); color: var(--green-ink); border-color: var(--on-dark); }
.band-dark .btn:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }
.band-dark .btn-ghost { background: transparent; color: var(--on-dark); }
.band-dark .btn-ghost:hover { background: var(--on-dark); color: var(--green-ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.7; cursor: not-allowed; scale: 1; }
.btn.is-loading { position: relative; cursor: progress; }
.btn.is-loading::before { display: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.header-call { white-space: nowrap; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { padding: 48px 0 96px; }
.hero + .section:not(.band) { padding-top: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); align-items: center; }
.hero-grid h1 { font-size: clamp(30px, 1rem + 1.8vw, 44px); font-stretch: var(--semi); line-height: 1.06; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { margin-top: 8px; }
.trust { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 24px 0 0; font-size: var(--text-small); color: var(--ink-2); }
.hero .rating-mini { margin-top: 16px; }

/* Home hero: wide headline, then the before/after with its service bar, then the actions */
.hero-home { padding-top: 40px; }
.hero-home .hero-title { font-size: var(--text-display); max-width: 32ch; margin: 0 0 32px; }
.hero-stage { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap); align-items: center; }
.hero-side { padding-top: 4px; }
.hero-side .actions { flex-direction: column; align-items: stretch; margin-top: 24px; }
.hero-side .btn { width: 100%; }
.hero-note { margin: 0 0 8px; font-size: 20px; line-height: 1.45; color: var(--ink); max-width: 30ch; }
.hero-side .trust { flex-direction: column; gap: 4px; }

/* Services page banner hero: buttons lead */
.hero-plain .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-plain h1 { font-size: var(--text-display); max-width: 20ch; }
.hero-cta { margin-top: 32px; }

/* Before/after slider (the one motion moment is the drag itself) */
.ba { --pos: 50%; margin: 0; }
.ba-frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1600 / 1195; background: var(--paper-2); touch-action: pan-y; }
.hero-home .ba-frame { aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) 0 0; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--on-dark); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--on-dark); color: var(--green-ink); border: 2px solid var(--green); }
.ba-knob svg { width: 28px; height: 28px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; border: 0; min-height: 0; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible { opacity: 0; }
.ba-frame:has(.ba-range:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.ba-tag { position: absolute; top: 12px; padding: 4px 12px; background: var(--scrim); color: var(--on-dark); font-size: 14px; font-weight: 700; border-radius: var(--radius); pointer-events: none; }
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; background: var(--green); }

/* Service bar under the home slider */
.svc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--chalk); }
.svc-tab { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 12px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink-2); font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; transition: color 120ms ease-out, background-color 120ms ease-out; }
.svc-tab:first-child { border-left: 0; }
.svc-tab::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: transparent; }
.svc-tab:hover { color: var(--ink); background: var(--paper); }
.svc-tab:active { background: var(--paper-2); }
.svc-tab:focus-visible { outline-offset: -3px; }
.svc-tab[aria-selected="true"] { color: var(--green-ink); font-weight: 800; background: var(--paper); }
.svc-tab[aria-selected="true"]::before { background: var(--green); }
.svc-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.svc-meta .svc-tab-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Google rating */
.stars { display: inline-flex; gap: 2px; line-height: 0; }
.stars svg { width: 18px; height: 18px; fill: var(--star); }
.rating-mini { display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.3; }
.rating-mini:hover .rating-mini-top span:last-child { text-decoration: underline; }
.rating-mini-top { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 15px; }

/* Grouped service index (home and services pages) */
.container > h2 + .svc-index { margin-top: 40px; }
.svc-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.svc-index h3 { margin: 0 0 8px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-stretch: var(--semi); }
.svc-index ul { list-style: none; margin: 0; padding: 0; }
.svc-index li { border-bottom: 1px solid var(--line); }
.svc-index a { display: block; padding: 16px 0; color: var(--ink); text-decoration: none; }
.svc-index a strong { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; }
.svc-index a span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.svc-index a:hover strong { color: var(--green-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Tables (contact page) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--chalk); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 700; }
.source { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 8px; background: var(--green); }

/* Big sourced figure */
.stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 24px; padding: 24px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.stat-num { font-size: clamp(64px, 2rem + 6vw, 120px); font-weight: 800; font-stretch: var(--wide); line-height: 0.95; letter-spacing: -0.02em; color: var(--green-ink); font-variant-numeric: lining-nums; }
.stat-label { flex: 1 1 16ch; font-size: 19px; font-weight: 600; line-height: 1.35; max-width: 24ch; }

/* Photo strip (pages without job photos) */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.photos figcaption { font-size: var(--text-small); color: var(--ink-2); margin-top: 8px; }

/* Single featured review (about page) */
.review { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--chalk); }
.review.featured { border: 2px solid var(--green); }
.review blockquote { margin: 0 0 12px; font-size: 19px; }
.review figcaption { font-size: var(--text-small); color: var(--ink-2); }

/* Related service links */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a { display: flex; align-items: center; min-height: 56px; color: var(--ink); text-decoration: none; font-weight: 700; }
.svc-list a:hover { color: var(--green-ink); text-decoration: underline; text-decoration-thickness: 2px; }

/* Rails: job photos and reviews scroll sideways, aligned to the container on the left and bleeding off the right edge */
.rail { --inset: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.carousel-viewport { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--inset, 0px); cursor: grab; }
.carousel[data-autoplay] .carousel-viewport { scroll-snap-type: none; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport.dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
.carousel-viewport.dragging * { pointer-events: none; }
.carousel-viewport:focus-visible { outline-offset: -3px; }
.carousel-track { display: flex; gap: 24px; width: max-content; margin: 0; padding: 0 var(--inset, 0px); list-style: none; }
.carousel-track > li { scroll-snap-align: start; }
.carousel-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.carousel-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--chalk); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: border-color 120ms ease-out, color 120ms ease-out; }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover { border-color: var(--green); color: var(--green-ink); }
.carousel-btn:active { background: var(--paper-2); }
.carousel-pause { width: auto; padding: 0 16px; }
.carousel-all { display: inline-flex; align-items: center; min-height: 44px; margin-left: 8px; }

/* Job photo cards */
.job-card figure { margin: 0; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.job-imgs { display: flex; gap: 4px; }
.job-img { position: relative; flex: 1 1 0; min-width: 0; }
.job-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.job-img .ba-tag { top: 8px; font-size: 13px; padding: 4px 8px; }
.job-img .ba-tag-before { left: 8px; }
.job-img .ba-tag-after { right: 8px; }
.job-card figcaption { font-size: 16px; color: var(--ink); font-weight: 600; line-height: 1.4; max-width: 44ch; }
.jobs-carousel { --pair: 600px; }
.jobs-carousel .job-card { flex: 0 0 auto; width: calc((var(--pair) - 4px) / 2); }
.jobs-carousel .job-card.job-pair { width: var(--pair); }
.jobs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.jobs-grid .job-pair { grid-column: span 2; }

/* Review cards */
.review-card { flex: 0 0 auto; width: 380px; display: flex; }
.review-card figure { display: flex; flex-direction: column; gap: 16px; width: 100%; margin: 0; padding: 32px; background: var(--chalk); border: 1px solid var(--line); border-radius: var(--radius); }
.review-card blockquote { margin: 0; flex: 1; }
.review-card blockquote p { margin: 0; font-size: 20px; line-height: 1.5; }
.review-empty { margin: 0; flex: 1; color: var(--ink-2); font-size: 18px; }
.review-card figcaption { font-size: var(--text-small); color: var(--ink-2); }
.review-card figcaption strong { color: var(--ink); font-size: 16px; }
.reviews-foot { margin-top: 24px; }

/* Towns */
.towns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gap); list-style: none; margin: 0 0 32px; padding: 0; border-top: 2px solid var(--ink); }
.towns li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 700; font-stretch: var(--semi); line-height: 1.2; }
.towns li:first-child { color: var(--green-ink); }

/* FAQ */
.faq h3 { margin-top: 32px; }

/* Quote strip */
.section-tight { padding: 48px 0; }
.quote-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px var(--gap); }
.quote-strip h2 { margin: 0 0 8px; font-size: 30px; }
.quote-strip p { margin: 0; max-width: 58ch; }
.quote-strip .actions { margin: 0; }

/* CTA band */
.cta-band { padding: 112px 0; }
.cta-band h2 { max-width: 22ch; font-size: clamp(30px, 1.2rem + 2vw, 48px); font-stretch: var(--wide); }
.cta-band p { max-width: 56ch; font-size: 20px; }

/* Forms */
.quote-card { border: 2px solid var(--green); border-radius: var(--radius); background: var(--chalk); padding: 32px; }
.split > div:last-child > .quote-card { position: sticky; top: calc(var(--header) + 24px); }
.quote-card h2 { font-size: 30px; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: var(--text-small); font-weight: 700; }
input, select, textarea { width: 100%; min-height: var(--control); padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-input); background-color: var(--chalk); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.3; transition: border-color 120ms ease-out; }
select { appearance: auto; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--ink); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.6; cursor: not-allowed; background-color: var(--paper-2); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.err { color: var(--error); font-size: 14px; font-weight: 600; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-size: 16px; }
.form-status:empty { display: none; }
.form-status.error { color: var(--error); font-weight: 600; }
.quote-form .actions { margin-top: 24px; }
.quote-form .btn { min-width: 200px; }

/* Breadcrumbs */
.crumbs { font-size: var(--text-small); color: var(--ink-2); padding-top: 24px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 80px 0 48px; font-size: 16px; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--on-dark); text-decoration-thickness: 2px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--gap); }
.site-footer h2 { font-size: 19px; font-stretch: 100%; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-phone { font-size: 24px; font-weight: 800; font-stretch: var(--semi); font-variant-numeric: tabular-nums; }
.footer-base { border-top: 1px solid var(--ink-2); margin-top: 48px; padding-top: 24px; font-size: 14px; }

/* Sticky mobile bar */
.mobile-bar { display: none; }

@media (max-width: 1099px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 24px 16px; }
  .nav a { min-height: 48px; font-size: 18px; }
  .header-call { display: none; }
  .svc-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .towns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --section: 80px; --gap: 32px; }
  .hero { padding: 32px 0 64px; }
  .hero-grid, .hero-stage, .split, .split-wide, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-ba .hero-grid .ba { order: -1; }
  .hero-home .hero-title { margin-bottom: 20px; }
  .hero-side { padding-top: 0; }
  .hero-side .actions { flex-direction: row; }
  .hero-side .btn { width: auto; flex: 1 1 200px; }
  .hero-side .trust { flex-direction: row; gap: 4px 20px; }
  .svc-meta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
  .split > div:last-child > .quote-card { position: static; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-list { grid-template-columns: minmax(0, 1fr); }
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-strip { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 80px 0; }
}
@media (max-width: 767px) {
  :root { --section: 64px; --gutter: 20px; --header: 72px; }
  body { font-size: 17px; }
  .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .mobile-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding-bottom: env(safe-area-inset-bottom); background: var(--ink); border-top: 1px solid var(--ink-2); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 700; text-decoration: none; color: var(--on-dark); background: var(--green); }
  .mobile-bar a + a { background: var(--ink); }
  .mobile-bar a:active { background: var(--green-ink); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-card { padding: 24px 20px; }
  .brand img { width: 96px; }
  .svc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-tab:nth-child(3) { border-left: 0; }
  .svc-tab:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc-tab { min-height: 52px; font-size: 16px; }
  .svc-index { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .towns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .towns li { font-size: 19px; }
  .jobs-carousel { --pair: min(86vw, 520px); }
  .hero-home .hero-title { font-stretch: var(--semi); font-size: 32px; line-height: 1.05; }
  .review-card { width: 82vw; max-width: 360px; }
  .review-card figure { padding: 24px; }
  .review-card blockquote p { font-size: 18px; }
  .jobs-grid { grid-template-columns: minmax(0, 1fr); }
  .jobs-grid .job-pair { grid-column: auto; }
  .head-row { margin-bottom: 24px; }
  .stat { padding: 16px 0; }
  .lede { font-size: 18px; }
}
@media (max-width: 400px) {
  .rating-mini { font-size: 13px; }
  .rating-mini-top { font-size: 14px; gap: 4px; }
  .rating-mini .stars svg { width: 14px; height: 14px; }
  .svc-meta .svc-tab-link { font-size: 15px; }
  .photos { grid-template-columns: minmax(0, 1fr); }
  .svc-tab { font-size: 15px; padding: 8px; }
  .hero-side .btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:active { scale: 1; }
  .btn::before, .spot::before { display: none !important; }
}
.container .container { padding: 0; }
.container .rail { --inset: 0px; }

/* ---------- Engagement layer (Kyle, Nov 21): motion that answers the visitor ---------- */

/* Shimmer: a light sweep across primary buttons on first view, then every 7s */
.btn:not(.btn-ghost)::before { content: ""; position: absolute; inset: -2px; z-index: -1; background: linear-gradient(105deg, transparent 30%, var(--shimmer) 50%, transparent 70%); transform: translateX(-120%); animation: shimmer 7s var(--ease-in-out) 1.2s infinite; pointer-events: none; }
.band-dark .btn:not(.btn-ghost)::before { --shimmer: var(--shimmer-dark); }
@keyframes shimmer { 0% { transform: translateX(-120%); } 16%, 100% { transform: translateX(120%); } }

/* Press feedback on every tap target */
.svc-tab, .carousel-btn, .menu-btn, .mobile-bar a, .job-zoom { transition-property: color, background-color, border-color, scale; transition-duration: var(--dur-press); transition-timing-function: var(--ease-out); }
.svc-tab:active, .carousel-btn:active, .menu-btn:active, .mobile-bar a:active { scale: 0.96; }

/* Cursor spotlight on cards (mouse only, added by script) */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 65%); opacity: 0; transition: opacity var(--dur-move) var(--ease-out); pointer-events: none; }
.spot:hover::before { opacity: 1; }
.review-card figure.spot::after, .quote-card.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--spot-edge), transparent 70%); -webkit-mask: linear-gradient(var(--mask) 0 0) content-box, linear-gradient(var(--mask) 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity var(--dur-move) var(--ease-out); pointer-events: none; }
.review-card figure.spot:hover::after, .quote-card.spot:hover::after { opacity: 1; }

/* Tilt needs perspective on the photo pair */
.job-card figure { perspective: 900px; }
.job-imgs { transform-style: preserve-3d; will-change: transform; }

/* Before/after: a quiet hint until the visitor takes over */
.ba-hint { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 8px 16px; background: var(--scrim); color: var(--on-dark); font-size: 14px; font-weight: 600; border-radius: 999px; pointer-events: none; transition: opacity var(--dur-move) var(--ease-out), translate var(--dur-move) var(--ease-out); }
.ba.is-touched .ba-hint { opacity: 0; translate: -50% 8px; }
.js .ba-knob { transition: scale var(--dur-ui) var(--ease-out); }
.js .ba-frame:hover .ba-knob, .js .ba.is-touched .ba-knob { scale: 1.08; }

/* Headline words rise from a mask */
.w { display: inline-block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; vertical-align: top; }
.wi { display: inline-block; }
.js .will-rise { opacity: 0; }

/* Brass rule under the rain figure */
.stat { position: relative; }
.stat-rule { position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--brass); transform-origin: left center; }
.js .will-draw .stat-rule { transform: scaleX(0); }

/* Reading progress on long pages */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; overflow: clip; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--brass)); transform: scaleX(0); transform-origin: left center; }

/* Sticky call bar tucks away while the hero is on screen */
@media (max-width: 767px) {
  .mobile-bar { transition: transform var(--dur-move) var(--ease-lux); }
  .mobile-bar.is-tucked { transform: translateY(calc(100% + env(safe-area-inset-bottom))); }
}

/* Job photo zoom */
.job-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.job-zoom:active { scale: 0.98; }
.job-zoom img { width: 100%; }
.lightbox { width: fit-content; max-width: 92vw; max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: var(--backdrop); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: auto; height: auto; max-width: 92vw; max-height: 80vh; border-radius: var(--radius); transform-origin: center; }
.lightbox figcaption { margin-top: 12px; max-width: 60ch; color: var(--on-dark); font-size: 16px; }
.lightbox-close { position: absolute; top: -56px; right: 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--on-dark); border-radius: var(--radius); background: transparent; color: var(--on-dark); font: inherit; font-weight: 700; cursor: pointer; }
.lightbox-close:hover { background: var(--on-dark); color: var(--ink); }
.lightbox-close:focus-visible { outline-color: var(--blue-light); }

/* Quote form progress */
.form-meter { height: 4px; margin: 0 0 8px; background: var(--paper-2); border-radius: 999px; overflow: clip; }
.form-meter span { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-move) var(--ease-lux); }
.form-meter-label { margin: 0 0 16px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Thank-you check */
.done-check { width: 72px; height: 72px; margin-bottom: 16px; color: var(--green); }
.js .done-check { animation: pop 600ms var(--ease-lux) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .js .will-rise { opacity: 1; }
  .js .will-draw .stat-rule { transform: none; }
  .mobile-bar.is-tucked { transform: none; }
  .read-progress { display: none; }
}
