/* ==========================================================================
   Windsor Excavation — stylesheet (hand-written, never generated)
   Rerun build.py after editing this file so the cache fingerprint updates.

   Direction (Taste, "One motif"): the section of a properly sloped trench,
   wide at the top and narrow at the floor, is the one shape on the site.
   It masks every photograph, shapes the primary button, marks every list
   item, sits huge and cropped in the hero, and closes the footer.
   Colour: soot and hi-vis lime (the colour of a site safety vest), on white.
   Type: Archivo (self-hosted variable woff2), one family, five sizes.
   Square corners everywhere. No shadows at rest, no gradients, no rules.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* colour — every pair below is checked numerically in HANDOVER.md */
  --color-primary: #141412;          /* soot: hero, dark bands, footer */
  --soot: #141412;
  --soot-2: #22221f;                 /* one tone step up on soot */
  --soot-3: #2e2e2a;
  --paper: #ffffff;
  --stone: #eeeeec;                  /* one tone step down on paper */
  --ink: #141412;
  --ink-soft: #45453f;               /* secondary text on paper and stone */
  --on-soot: #ffffff;
  --on-soot-soft: #c4c4bb;           /* secondary text on soot */
  --lime: #dafa9c;                   /* the one accent: actions and the motif */
  --lime-press: #c6ef75;
  --olive: #4a5e12;                  /* link underline on paper */
  --border-strong: #6f6f66;          /* form control borders, 3:1+ on paper */
  --error: #b3261e;
  --success-ink: #1f4d12;

  /* type: five sizes */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.3125rem, 1.15rem + 0.7vw, 1.75rem);
  --step-head: clamp(1.75rem, 1.1rem + 3.4vw, 4rem);
  --step-display: clamp(2.3rem, 0.9rem + 6.9vw, 7.25rem);

  /* space */
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --section: clamp(4rem, 2.75rem + 5vw, 7.5rem);
  --gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  --header-h: 72px;
  --container: 1280px;

  /* the motif: a sloped trench section */
  --trench: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
  --trench-soft: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
  --trench-btn: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 12px 100%);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 220ms;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 750; letter-spacing: -0.02em; line-height: 1.02; color: inherit; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; box-shadow: 0 0 0 6px var(--soot); }
::selection { background: var(--lime); color: var(--soot); }
ul, ol { margin: 0; padding: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 780px); margin-left: max(var(--gutter), calc((100% - var(--container)) / 2)); margin-right: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--lime); color: var(--soot); padding: 0.75rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- buttons
   One shape: the trench section. Lime is the action colour. */
.btn {
  --btn-bg: var(--lime); --btn-ink: var(--soot);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.8rem 1.6rem;
  font: inherit; font-weight: 700; font-size: var(--step-body); line-height: 1.1;
  text-decoration: none; text-align: center;
  color: var(--btn-ink); background: var(--btn-bg);
  border: 0; border-radius: 0; cursor: pointer;
  clip-path: var(--trench-btn);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), color var(--t);
}
.btn:hover { background: var(--lime-press); transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { clip-path: none; }
.btn--lg { min-height: 56px; padding: 1rem 2rem; }
.btn--sm { min-height: 42px; padding: 0.55rem 1.2rem; font-size: var(--step-small); }
.btn--block { width: 100%; }
/* secondary actions are flat soot (on paper) or flat white (on soot) */
.btn--outline, .btn--secondary { --btn-bg: var(--soot); --btn-ink: var(--on-soot); }
.btn--outline:hover, .btn--secondary:hover { background: var(--soot-3); }
.btn--ghost { --btn-bg: var(--paper); --btn-ink: var(--soot); }
.btn--ghost:hover { background: var(--stone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-row.is-centered { justify-content: flex-start; }

/* ---------------------------------------------------------------- topbar + header */
.topbar { background: var(--soot); color: var(--on-soot-soft); font-size: var(--step-small); }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; }
.topbar p { margin: 0; }
.topbar a { color: var(--on-soot); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--soot); color: var(--on-soot); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--on-soot); text-decoration: none; flex-shrink: 0; }
.logo img { width: 40px; height: 40px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; max-width: 15ch; line-height: 1.1; }
.logo__tag { font-size: var(--step-small); color: var(--on-soot-soft); }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav__link {
  display: block; padding: 0.6rem 0.75rem; color: var(--on-soot); text-decoration: none;
  font: inherit; font-size: var(--step-small); font-weight: 600; white-space: nowrap;
  background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--lime); }
.nav__link[aria-current="page"] { color: var(--lime); }
.nav__item--has-menu { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav__toggle::after {
  content: ""; width: 0.6em; height: 0.4em; background: currentColor;
  clip-path: var(--trench); transition: transform var(--t) var(--ease);
}
.nav__toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.nav__submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  list-style: none; padding: 0.5rem; background: var(--soot-2); display: none;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);   /* a menu truly floats */
}
.nav__submenu.is-open { display: block; }
.nav__submenu a { display: block; padding: 0.55rem 0.75rem; color: var(--on-soot); text-decoration: none; font-size: var(--step-small); }
.nav__submenu a:hover, .nav__submenu a:focus-visible, .nav__submenu a[aria-current="page"] { background: var(--soot-3); color: var(--lime); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: none; color: var(--on-soot); font-weight: 700; text-decoration: none; font-size: var(--step-small); }
.header-phone__label { color: var(--on-soot-soft); font-weight: 500; margin-right: 0.25rem; }
@media (min-width: 1360px) { .header-phone { display: inline-flex; } }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 48px; height: 48px; padding: 0 12px; background: var(--lime); border: 0; cursor: pointer;
}
.nav-burger span { display: block; height: 3px; background: var(--soot); transition: transform var(--t), opacity var(--t); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------------------------------------------------------------- breadcrumbs */
.breadcrumbs { background: var(--soot); color: var(--on-soot-soft); font-size: var(--step-small); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; list-style: none; padding-block: 0.5rem 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--on-soot-soft); }
.breadcrumbs a { color: var(--on-soot); }

/* ---------------------------------------------------------------- hero
   Soot ground. The motif appears once at enormous scale: a lime trench
   section, cropped by the bottom-right of the band. No prose in any hero. */
.hero { position: relative; background: var(--soot); color: var(--on-soot); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -12vw; bottom: -1px; width: 62vw; height: 64%;
  background: var(--lime); clip-path: var(--trench);
}
.hero__inner { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.hero h1 { font-size: var(--step-head); max-width: 22ch; margin-bottom: 0; }
.hero .btn-row { margin-top: 2rem; }

/* home: headline and actions, then the trench-masked photograph, beside the form */
.hero--home .hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  grid-template-areas: "intro intro" "detail form"; gap: 2.5rem var(--gap); align-items: start;
}
.hero--home .hero__intro { grid-area: intro; }
.hero--home h1 { font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.035em; max-width: none; }
.hero--home .hero__detail { grid-area: detail; }
.hero--home .hero-form { grid-area: form; align-self: center; }
.hero--home::before { width: 56vw; height: 58%; right: -6vw; }

.hero__bg { position: relative; clip-path: var(--trench-soft); background: var(--soot-2); aspect-ratio: 16 / 9; }
.hero__bg picture, .hero__bg img { width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; }
.hero__fade { position: absolute; inset: 0; opacity: 0; animation: crossfade 21s linear infinite; }
.hero__fade--1 { animation-delay: 7s; }
.hero__fade--2 { animation-delay: 14s; }
@keyframes crossfade {
  0% { opacity: 0; } 8% { opacity: 1; } 33% { opacity: 1; } 41% { opacity: 0; } 100% { opacity: 0; }
}
.hero__bg > picture:last-child img { animation: drift 24s var(--ease) infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }

/* the home estimate form: a white card standing on the lime shape */
.hero-form { background: var(--paper); color: var(--ink); padding: 0 0 1.5rem; }
.hero-form__title {
  font-size: var(--step-lead); margin: 0 0 1.25rem; padding: 1.1rem 1.5rem 1.25rem;
  background: var(--soot-2); color: var(--on-soot); clip-path: var(--trench-soft);
}
.hero-form > *:not(.hero-form__title):not(.form-success) { margin-inline: 1.5rem; }
.hero-form .form-success { margin: 0 1.5rem 1rem; }

/* interior pages */
.hero--page .hero__inner { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.hero--page::before { width: 40vw; height: 70%; right: -10vw; }
.hero--split .hero__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--gap); align-items: center; }
.hero__media { clip-path: var(--trench-soft); aspect-ratio: 4 / 3; background: var(--soot-2); }
.hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- intro band (prose below the hero) */
.intro-band .prose { max-width: none; }
.intro-band { padding-block: clamp(3rem, 2rem + 3vw, 5rem); background: var(--paper); }
.intro-band p { max-width: 62ch; }
.intro-band p:first-of-type { font-size: var(--step-lead); line-height: 1.32; font-weight: 500; letter-spacing: -0.01em; max-width: 36ch; }
.intro-band .container--narrow { width: min(100% - 2 * var(--gutter), var(--container)); max-width: none; }
.intro-band h2 { font-size: var(--step-lead); margin-bottom: 1rem; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section--alt { background: var(--stone); }
.section--alt + .section--alt { background: var(--paper); }
.section-head { max-width: none; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head h2 { max-width: none; }
.lead { font-size: var(--step-lead); line-height: 1.35; color: var(--ink); }
.section-head .lead { font-size: var(--step-body); color: var(--ink-soft); line-height: 1.55; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink); }
.content-block h2, .intro-band h2 { font-size: var(--step-lead); line-height: 1.12; margin-top: 0; }

.prose a, .intro-band a, .benefit-list a, .commit-list a, .steps a, .faq__panel a, .svc__body p a {
  text-decoration-color: var(--olive);
}

/* trust strip: the service list as one wrapped line of plain links */
.trust-strip { background: var(--paper); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.trust-strip ul { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; list-style: none; }
.trust-strip a { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; text-decoration: none; }
.trust-strip a::before, .svc-dot::before {
  content: ""; width: 0.85em; height: 0.55em; background: var(--soot); clip-path: var(--trench); flex-shrink: 0;
  transition: background var(--t);
}
.trust-strip a:hover { text-decoration: underline; text-decoration-color: var(--olive); }
.trust-strip a:hover::before { background: var(--olive); }

/* ---------------------------------------------------------------- services menu
   Two columns; each item has a trench-shaped photograph where a bullet
   would be. No boxes. */
.section--services { background: var(--paper); }
.svc-menu { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 4rem; }
.svc { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.svc__media { width: 112px; aspect-ratio: 1; clip-path: var(--trench); background: var(--stone); overflow: hidden; }
.svc__media picture, .svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__media img { transition: transform 600ms var(--ease); }
.svc:hover .svc__media img { transform: scale(1.08); }
.svc__title { font-size: var(--step-lead); line-height: 1.12; margin: 0.15rem 0 0.4rem; }
.svc__title a { text-decoration: none; }
.svc__title a:hover { text-decoration: underline; text-decoration-color: var(--olive); }
.svc__body p { color: var(--ink-soft); margin-bottom: 0.6rem; font-size: var(--step-body); }
.svc__link { font-weight: 700; font-size: var(--step-small); text-decoration-color: var(--olive); }
.svc-menu--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.svc--compact { grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 1rem; }
.svc--compact .svc__media { width: 64px; }
.svc--compact .svc__title { font-size: var(--step-body); margin: 0; }

/* ---------------------------------------------------------------- benefits: sticky heading + list */
.benefits h2 { margin-bottom: 2rem; }
.benefit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.benefit-list, .commit-list, .panel-list { list-style: none; }
.benefit-list li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; }
.benefit-list li + li { margin-top: 0.25rem; }
.benefit-list li::before, .commit-list li::before {
  content: ""; width: 1.4rem; height: 0.9rem; margin-top: 0.4em; background: var(--soot); clip-path: var(--trench);
}
.benefit-list p { margin: 0; font-size: var(--step-body); line-height: 1.45; font-weight: 600; }

/* ---------------------------------------------------------------- commitments: an inset soot panel */
.commitments { padding-block: var(--section); }
.commitments > .container {
  width: min(100% - 2 * var(--gutter), var(--container));
  background: var(--soot); color: var(--on-soot);
  padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem var(--gap);
  position: relative; overflow: hidden; isolation: isolate; align-items: start;
}
.commitments > .container::after {
  content: ""; position: absolute; z-index: -1; left: -8%; bottom: -1px; width: 46%; height: 42%;
  background: var(--lime); clip-path: var(--trench);
}
.commitments h2 { grid-column: 1 / -1; }
.commitments .lead { grid-column: 1; color: var(--on-soot); margin: 0; }
.commitments .commit-list { grid-column: 2; grid-row: 2 / span 2; }
.commitments .btn-row { grid-column: 1; grid-row: 3; align-self: end; }
.commit-list li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 1rem; padding-block: 0.9rem; color: var(--on-soot); }
.commit-list li::before { background: var(--lime); }
.commitments .btn--outline { --btn-bg: var(--paper); --btn-ink: var(--soot); }

/* ---------------------------------------------------------------- detail column + sidebar */
.layout-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.layout-split--even { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); align-items: center; }
.content-block + .content-block, .content-block + .cta-inline, .cta-inline + .content-block { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1rem; }
.card { background: var(--soot); color: var(--on-soot); padding: 1.75rem; }
.card h3 { font-size: var(--step-lead); }
.card p { color: var(--on-soot-soft); }
.card .btn-row { margin-top: 1.25rem; flex-direction: column; }
.card .btn--outline { --btn-bg: var(--paper); --btn-ink: var(--soot); }
.sidebar-phone { display: inline-block; font-size: var(--step-lead); font-weight: 800; color: var(--lime); text-decoration: none; }
.sidebar-phone:hover { text-decoration: underline; }
.panel { background: var(--stone); padding: 1.5rem 1.75rem; }
.panel h3 { font-size: var(--step-body); font-weight: 800; letter-spacing: 0; }
.panel-list li { padding-block: 0.3rem; }
.panel-list a { display: inline-flex; gap: 0.6rem; align-items: center; text-decoration: none; font-weight: 600; font-size: var(--step-small); }
.panel-list a::before { content: ""; width: 0.8em; height: 0.5em; background: var(--soot); clip-path: var(--trench); }
.panel-list a:hover { text-decoration: underline; text-decoration-color: var(--olive); }
.section--alt .panel { background: var(--paper); }

.cta-inline { background: var(--lime); color: var(--soot); padding: 1.75rem 2rem; display: grid; gap: 1rem; clip-path: var(--trench-soft); padding-inline: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.cta-inline p { margin: 0; font-size: var(--step-lead); font-weight: 700; line-height: 1.2; }
.cta-inline .btn-row { margin: 0; }
.cta-inline .btn { --btn-bg: var(--soot); --btn-ink: var(--on-soot); }
.cta-inline .btn--outline { --btn-bg: var(--paper); --btn-ink: var(--soot); }

/* ---------------------------------------------------------------- estimator: the live thing */
.estimator { background: var(--stone); }
.estimator__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.estimator__copy h2 { max-width: none; }
.estimator__copy { display: contents; }
.estimator__copy h2 { grid-column: 1 / -1; margin-bottom: 1rem; }
.estimator__copy p { grid-column: 1; }
.estimator__tool { grid-column: 2; grid-row: 2 / span 2; }
.estimator__grid { row-gap: 0.5rem; }
.estimator__copy p { max-width: 44ch; }
.estimator__note-copy { color: var(--ink-soft); font-size: var(--step-small); }
.estimator__tool { background: var(--soot); color: var(--on-soot); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); display: grid; gap: 1.25rem; }
.estimator__tool label { color: var(--on-soot); }
.estimator__out { background: var(--lime); color: var(--soot); padding: 1.25rem 1.5rem; clip-path: var(--trench-soft); }
.estimator__out[hidden] { display: none; }
.estimator__label { margin: 0; font-weight: 700; font-size: var(--step-small); }
.estimator__range { margin: 0.2rem 0 0.4rem; font-size: var(--step-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.estimator__note { margin: 0; font-size: var(--step-small); }
.estimator__tool .btn { --btn-bg: var(--lime); }

/* ---------------------------------------------------------------- process: the trench widens step by step */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gap); counter-reset: none; }
.step { position: relative; padding-top: 2.75rem; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; height: 1.4rem; background: var(--soot); clip-path: var(--trench);
  width: calc(25% + var(--w, 0%)); transition: width 900ms var(--ease);
}
.step:nth-child(2)::before { --w: 12%; }
.step:nth-child(3)::before { --w: 24%; }
.step:nth-child(4)::before { --w: 36%; }
.step:nth-child(5)::before { --w: 48%; }
.step:nth-child(6)::before { --w: 60%; background: var(--olive); }
.step p { margin: 0; font-size: var(--step-body); line-height: 1.45; font-weight: 600; }

/* ---------------------------------------------------------------- service area + map */
.map-wrap { clip-path: var(--trench-soft); background: var(--soot-2); aspect-ratio: 4 / 3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.6) contrast(1.05); }

/* ---------------------------------------------------------------- CTA bands: soot, the motif cropped at the right */
.cta-band { position: relative; background: var(--soot); color: var(--on-soot); padding-block: clamp(4rem, 3rem + 4vw, 7rem); overflow: hidden; isolation: isolate; }
.cta-band::after {
  content: ""; position: absolute; z-index: -1; right: -6vw; top: 0; width: 38vw; height: 100%;
  background: var(--lime); clip-path: polygon(30% 0, 100% 0, 100% 100%, 46% 100%);
}
.cta-band h2 { max-width: 22ch; }
.cta-band p { max-width: 50ch; color: var(--on-soot-soft); font-size: var(--step-lead); line-height: 1.35; }
.cta-band .container { position: relative; }

/* ---------------------------------------------------------------- forms */
.form-wrap { background: var(--soot); color: var(--on-soot); padding: clamp(1.5rem, 1rem + 3vw, 3.25rem); }
#quote .container--narrow, [id^="quote"] .container--narrow { width: min(100% - 2 * var(--gutter), 980px); }
#quote .section-head, [id^="quote"] .section-head { margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--step-small); }
.req { color: var(--lime); }
.hero-form .req { color: var(--olive); }
.opt { font-weight: 400; color: var(--ink-soft); }
.form-wrap .opt { color: var(--on-soot-soft); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 2px solid var(--border-strong); border-radius: 0; appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.form-wrap input, .form-wrap select, .form-wrap textarea { border-color: var(--paper); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--lime); outline-offset: 0; border-color: var(--soot); }
input::placeholder, textarea::placeholder { color: #6a6a62; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field__error { min-height: 1em; font-size: var(--step-small); font-weight: 600; color: var(--error); }
.form-wrap .field__error { color: #ffb4a8; }
.form-note { margin-top: 0.75rem; font-size: var(--step-small); color: var(--on-soot-soft); }
.form-success { display: none; background: var(--lime); color: var(--soot); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.form-success.is-visible { display: block; }
.form-success strong { display: block; margin-bottom: 0.25rem; }
.form-success a { color: var(--soot); font-weight: 700; }

/* ---------------------------------------------------------------- FAQ: sticky heading + filled tiles */
#faq .faq { max-width: 980px; }
.faq { display: grid; gap: 8px; }
.faq__item { background: var(--paper); transition: background var(--t) var(--ease); }
.section--alt .faq__item { background: var(--paper); }
.faq__item.is-open { background: var(--lime); }
.faq__question { margin: 0; font-size: inherit; letter-spacing: 0; }
.faq__trigger {
  width: 100%; min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: var(--step-body); font-weight: 650; color: var(--ink); line-height: 1.3;
}
.faq__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform var(--t) var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__trigger[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__panel { display: none; padding: 0 1.5rem 1.4rem; max-width: 60ch; }
.faq__panel.is-open { display: block; }
.faq__panel p { margin-bottom: 0.75rem; }

/* ---------------------------------------------------------------- footer: the mark, built large */
.site-footer { background: var(--soot); color: var(--on-soot-soft); padding-top: clamp(4rem, 3rem + 4vw, 7rem); font-size: var(--step-small); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2.5rem var(--gap); }
.footer-brand p { max-width: 36ch; margin-top: 1rem; }
.footer-logo img { width: 88px; height: 88px; }
.site-footer h3 { font-size: var(--step-body); color: var(--on-soot); letter-spacing: 0; margin-bottom: 0.9rem; }
.footer-list { list-style: none; display: grid; gap: 0.45rem; }
.site-footer a:not(.btn) { color: var(--on-soot); text-decoration-color: rgba(218, 250, 156, 0.6); }
.footer-phone { display: inline-block; margin-top: 0.5rem; font-size: var(--step-lead); font-weight: 800; color: var(--lime) !important; text-decoration: none; }
.footer-mark {
  margin: clamp(3rem, 2rem + 4vw, 6rem) 0 0; color: var(--lime);
  font-size: clamp(2.2rem, 0.1rem + 8.3vw, 8.3rem); font-weight: 850; letter-spacing: -0.05em; line-height: 0.9;
  white-space: normal; max-width: 13ch;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; }

/* sticky phone bar on small screens, back-to-top */
.call-bar { display: none; position: fixed; inset: auto 0 0 0; z-index: 95; background: var(--soot); padding: 0.6rem var(--gutter); gap: 0.6rem; }
.call-bar .btn { flex: 1; min-height: 48px; padding-inline: 0.75rem; }
.call-bar .btn--secondary { --btn-bg: var(--paper); --btn-ink: var(--soot); }
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 48px; height: 48px;
  display: grid; place-items: center; background: var(--soot); color: var(--lime); border: 0; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* lightbox (only rendered when a gallery exists) */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,20,18,.94); display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-height: 80vh; width: auto; }
.lightbox__caption { color: var(--on-soot); margin-top: 0.75rem; }
.lightbox__close, .lightbox__nav { width: 48px; height: 48px; background: var(--lime); color: var(--soot); border: 0; font-size: 1.5rem; cursor: pointer; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }

/* ---------------------------------------------------------------- motion: entrances (added by script.js) */
.rise { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.rise.is-in { opacity: 1; transform: none; }
.step.rise::before { width: 0; }
.step.rise.is-in::before { width: calc(25% + var(--w, 0%)); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hero--home .hero__inner { grid-template-columns: 1fr; grid-template-areas: "intro" "detail" "form"; }
  .hero--home .hero-form { max-width: 560px; }
  .hero--home::before { width: 110vw; height: 34%; right: -30vw; }
  .layout-split { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; max-height: calc(100vh - var(--header-h));
    overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; display: none;
    background: var(--soot); padding: 1rem var(--gutter) 2rem;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { font-size: var(--step-body); padding: 0.85rem 0; }
  .nav__item--has-menu { position: static; }
  .nav__toggle { width: 100%; justify-content: space-between; }
  .nav__submenu { position: static; box-shadow: none; padding: 0 0 0.75rem 1rem; background: none; }
  .header-cta { margin-top: 1rem; }
  .header-cta .btn { width: 100%; }
  .topbar__inner p:first-child { display: none; }
  .hero--split .hero__inner, .estimator__grid, .benefit-list, .layout-split--even, #faq .container { grid-template-columns: 1fr; }
  .commitments > .container { grid-template-columns: 1fr; }
  .commitments h2, .commitments .lead, .commitments .commit-list, .commitments .btn-row { grid-column: 1; grid-row: auto; }
  .svc-menu, .svc-menu--compact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .estimator__tool { grid-column: 1; grid-row: auto; }
  .call-bar { display: flex; }
  body { padding-bottom: 70px; }
  .to-top { bottom: 80px; }
  .cta-band::after { width: 60vw; right: -30vw; }
  .hero--page::before { width: 80vw; height: 18%; right: -34vw; }
  .hero--page .hero__inner { padding-bottom: 4.5rem; }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; }
  .svc__media { width: 84px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-form > *:not(.hero-form__title):not(.form-success) { margin-inline: 1.1rem; }
  .hero-form__title { padding-inline: 1.1rem; }
  .logo__tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__fade { display: none; }
  .rise { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .call-bar, .cta-band, .cta-inline, .form-wrap, .topbar, .hero::before { display: none !important; }
  .faq__panel { display: block !important; }
}

/* ---------------------------------------------------------------- gallery: a wall of trench-cut photographs */
#gallery .section-head { margin-bottom: 2rem; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gallery__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--soot-2); cursor: zoom-in; overflow: hidden; text-align: left; }
.gallery__btn picture, .gallery__btn img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery__btn img { transition: transform 700ms var(--ease); }
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__btn { clip-path: var(--trench-soft); }
.gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.9rem; background: var(--soot); color: var(--on-soot); font-size: var(--step-small); line-height: 1.35; transform: translateY(100%); transition: transform var(--t) var(--ease); }
.gallery__btn:hover .gallery__caption, .gallery__btn:focus-visible .gallery__caption { transform: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the footer wordmark never forces sideways scrolling */
.site-footer { overflow-x: clip; }
