/* ==========================================================================
   Varre Cleaning Services — style-h1
   Fresh rebuild, adapted from the REBUILDD template dossier
   (design-refs/_template-library/rebuildd/dossier.md + tokens.json).

   What carries over from the reference (structure + motion, nothing copied):
     · bold Swiss-editorial hero, split copy / photo, one-line tagline,
       scroll-down chevron
     · ~1s entrance on hero elements (opacity + transform, JS-gated)
     · scroll reveals (opacity + translate, ~0.7s) via the shared wizard JS
       hooks (.reveal-up / -left / -right -> .is-pending -> .is-in)
     · measured CTA hover morph: icon holder 30px -> 41.7px, arrow redraws
       from a diagonal up-right arrow to a horizontal arrow
     · kinetic-type closing CTA: the headline is pre-split into word spans
       that cascade in as the band scrolls into view
   The page's signature is the SCOPE SHEET — the one asset the owner forbids
   touching: what a clean actually includes, set as a specification document.

   OWNER HARD CONSTRAINTS (these override template fidelity):
   1. Canvas is WHITE (#FFFFFF). Light grey wash bands only — no dark bands,
      so no dark-band text-accent token is needed.
   2. --teal #00665D carries ALL text and UI (6.87:1 on white). --mark
      #48897B is DECORATIVE ONLY (4.09:1) — it appears as blade patterns
      and bullet squares, never as text.
   3. The reference's 4-count stat strip is owner-BANNED. Its trust slot is
      filled instead by the scope sheet's "every visit" cadence and the hero
      facts row (static facts, not counters).
   4. The reference's 3-step process band is owner-BANNED — the concept is
      deleted, not renamed. No "how it works", no steps, no numbered cards.
      Neighbouring sections close up: scope sheet -> work-with-us -> area ->
      final CTA.
   5. No emoji. Icons are inline SVG only.
   6. Secondary actions are PLAIN TEXT LINKS with a resting underline —
      never outline buttons.
   7. Fonts (Google Fonts only): Archivo for display, Public Sans for body.
      Rationale: Archivo 800 is a sharp, squared grotesque — the confident
      spec-sheet voice the dossier's "bold Swiss-editorial" register asks
      for; Public Sans is neutral and legible, quiet under loud headlines.
      Neither is on the sibling-claimed ban list.
   8-11. All end tags closed. No-JS safe (content visible; animation layers
      on top). prefers-reduced-motion respected, visible :focus-visible,
      responsive to 390px with no horizontal overflow. radius 0 throughout.
   ========================================================================== */

:root {
  /* The two teals are not interchangeable. */
  --teal: #00665D;        /* ALL text + UI ink — 6.87:1 on white */
  --teal-deep: #00443E;   /* solid-button hover */
  --mark: #48897B;        /* DECORATIVE ONLY — 4.09:1, never carries text */
  --ink: #0B211E;         /* display-heading ink (neutral, passes) */
  --body: #2C3A37;        /* body copy */
  --muted: #5E6B68;       /* captions and cadence tags (≈5.6:1, passes) */
  --paper: #FFFFFF;       /* the canvas — owner directive */
  --wash: #F2F5F4;        /* light grey wash bands */
  --rule: #D8E0DD;        /* hairlines */

  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --sans: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --stack: clamp(72px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip; /* safety net — layout is honest below */
  /* Reserve the scrollbar gutter permanently. Opening a wizard sets
     overflow:hidden on THIS element (it is the scroller — see wizards-v2.css),
     which removes the scrollbar; without a reserved gutter the whole page jumps
     wider by the scrollbar width on platforms that use classic, space-taking
     scrollbars. Invisible where scrollbars overlay (macOS default). */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 2000;
  background: var(--teal);
  color: #FFFFFF;
  padding: 12px 18px;
  font-weight: 600;
}

/* ---- Type ---------------------------------------------------------------- */

.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin: 0;
  color: var(--teal);
}
/* The hero cap is deliberate: "PHILADELPHIA" in Archivo 800 uppercase is
   ~8.6em wide, so the display size is bounded so that word fits the
   narrowest column (390px included) with no overflow. */
h1.display { font-size: clamp(28px, 3.1vw, 40px); }
h2.display { font-size: clamp(31px, 4.4vw, 58px); }
h3.display { font-size: clamp(23px, 2.3vw, 30px); line-height: 1; }

/* Eyebrow = label ONLY. Owner ban 2026-08-24: a short tag with a hairline rule
   running off it is a vibecode tell and is not used anywhere on this site. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.lede {
  font-size: clamp(17px, 1.4vw, 19.5px);
  line-height: 1.6;
  max-width: 58ch;
  margin: 0;
  color: var(--body);
}

/* ---- Buttons ------------------------------------------------------------- */
/* .btn is shared with the wizard (its Back/Next/Send use .btn--ghost and
   .btn--primary); the wizard CSS styles none of these, so they live here. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 17px 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--solid,
.btn--primary {
  background: var(--teal);
  color: #FFFFFF;
  border-color: var(--teal);
}
.btn--solid:hover,
.btn--primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

/* Quiet control used by the wizard's Back button inside the modals. */
.btn--ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--rule);
}
.btn--ghost:hover {
  border-color: var(--teal);
}

/* The reference's measured CTA hover morph: the icon holder resizes
   30px -> 41.7px while the arrow redraws from a diagonal up-right arrow
   to a horizontal arrow. Reproduced as a width transition + two
   crossfading SVG paths. */
.btn__arrow {
  position: relative;
  width: 30px;
  height: 18px;
  flex: none;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn__arrow svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.18s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn__arrow-horiz {
  opacity: 0;
  transform: translateX(-6px) scale(0.7);
}
.btn--solid:hover .btn__arrow,
.btn--primary:hover .btn__arrow {
  width: 41.7px;
}
.btn--solid:hover .btn__arrow-diag,
.btn--primary:hover .btn__arrow-diag {
  opacity: 0;
  transform: translate(-3px, -3px) scale(0.75);
}
.btn--solid:hover .btn__arrow-horiz,
.btn--primary:hover .btn__arrow-horiz {
  opacity: 1;
  transform: none;
}

/* ---- Secondary actions: plain text links, underlined at rest ------------ */

.link {
  display: inline-block;
  padding: 14px 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease;
}
.link:hover { color: var(--teal-deep); }
.link-wrap { margin: 6px 0 0; }

/* ---- Header -------------------------------------------------------------- */

.head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  padding-block: 18px;
}
.head__in {
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
}
.brand img { height: 40px; width: auto; }
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 0.92;
  letter-spacing: 0.01em;
  font-size: 20px;
}
.brand__name small {
  display: block;
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  padding: 6px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--teal); }

/* Mobile disclosure — the preserved wizards-v1.js wires this button to
   #site-nav's .is-open class and body.nav-open; the panel sits in flow so
   opening it nudges the canvas down instead of covering the headline. */
.site-header__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  cursor: pointer;
}
.site-header__toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.site-header__toggle-bars::before,
.site-header__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}
.site-header__toggle-bars::before { top: 1px; }
.site-header__toggle-bars::after { bottom: 1px; }

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--paper);
  padding-block: clamp(96px, 9vw, 124px) clamp(36px, 4vw, 56px);
  overflow: hidden;
}

/* The logo is a set of raked blades; the rake repeats as the only ambient
   mark. Decorative only — --mark at low opacity, masked so it never
   fights the copy. */
.hero__blades {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    76deg,
    rgba(72, 137, 123, 0.14) 0 1px,
    transparent 1px 72px
  );
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 32%, transparent 68%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, transparent 32%, transparent 68%, #000 100%);
}

.hero__in { position: relative; }

.hero__split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero__copy h1 { max-width: 15ch; }
.hero__copy .lede { margin-top: 18px; max-width: 46ch; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin-top: 24px;
}

.hero__media {
  margin: 0;
  /* width:100% + min-width:0 are load-bearing on mobile: without them the img's
     intrinsic ratio pushed the figure to 513px inside a 350px grid column and the
     photo was clipped. A grid item does not shrink below its content by default. */
  width: 100%;
  min-width: 0;
  height: clamp(240px, 38vh, 470px);
  overflow: hidden;
  background: var(--wash);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Static facts, not counters — the banned stat strip's slot. */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: clamp(24px, 3vw, 36px);
}
.hero__fact { padding: 20px 24px; border-left: 1px solid var(--rule); }
.hero__fact:first-child { border-left: 0; padding-left: 0; }
.hero__fact dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.hero__fact dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.1;
}
.hero__fact dd a { color: inherit; text-decoration: none; }
.hero__fact dd a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero__chevron {
  display: flex;
  justify-content: center;
  color: var(--teal);
  margin-top: 30px;
}
.hero__chevron svg {
  width: 22px;
  height: 22px;
}

/* Entrance: the reference's ~1s coordinated load animation (opacity +
   transform, staggered). Gated on .has-js so the no-JS state is plain
   visible content. */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-media-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

/* ---- Sections ------------------------------------------------------------ */

.sect { padding-block: var(--stack); }
.sect--wash { background: var(--wash); }

.sect__head {
  max-width: 64ch;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.sect__head h2 { margin: 0 0 18px; }
.sect__head .lede { margin-inline: auto; }
.sect__head .eyebrow { justify-content: center; }

/* ---- SIGNATURE: the scope sheet ------------------------------------------
   NOTE: a stray ".sect__head" used to sit at the head of this comment with no
   declaration block. CSS then parsed the selector below as ".sect__head .scope",
   a descendant that matches nothing, so .scope never got display:grid and the two
   panels stacked full-width on desktop. The media query's grid-template-columns
   was inert because the element was not a grid. ------------------------------ */

.scope {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
}
/* Closes the section rather than splitting the heading from the lists. Source is
   2:3 portrait; height:auto releases the width/height attributes (kept for CLS) so
   aspect-ratio can crop it to a band. */
.scope__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 55%;
  margin: clamp(40px, 5vw, 64px) 0 0;
}

@media (min-width: 920px) {
  .scope {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
  }
}

.sheet {
  border-top: 3px solid var(--teal);
  padding-top: 22px;
}
.sheet__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  margin-bottom: 8px;
}
.sheet__title h3 { margin: 0; }
.sheet__tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.sheet__note { margin: 0 0 24px; color: var(--muted); font-size: 15.5px; }

.sheet__group {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.rows { list-style: none; margin: 10px 0 0; padding: 0; }
.rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
.rows li > span:last-child {
  font-family: var(--display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}
/* On-request rows read differently at a glance: the tag drops to muted
   ink instead of teal. (--mark can't carry this text — 4.09:1.) */
.rows--opt li > span:last-child { color: var(--muted); }

/* ---- Work with us -------------------------------------------------------- */

.work {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .work { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}
.work__copy .lede { margin-bottom: 24px; max-width: 46ch; }
.work__panel { border-top: 3px solid var(--teal); padding-top: 22px; }
/* The source is 2:3 portrait; a fixed aspect-ratio + cover crops it to a band that
   sits beside the copy without making this column twice the height of the other. */
.work__photo {
  display: block;
  width: 100%;
  /* height:auto is REQUIRED. The width/height attributes on the <img> (kept for
     CLS) map to a presentational height:1600px, and aspect-ratio cannot take
     effect until that is released. Without this the image renders 1600px tall. */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 40%;
  margin: 0 0 24px;
}
.work__list { list-style: none; margin: 0; padding: 0; }
.work__list li {
  position: relative;
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
}
/* Decorative square bullet — --mark as a shape, never as text. */
.work__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 8px;
  height: 8px;
  background: var(--mark);
}

/* ---- Service area -------------------------------------------------------- */

.area {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 900px) {
  .area { grid-template-columns: 1fr 1.1fr; gap: 72px; }
}
.area .lede { margin: 18px 0 24px; max-width: 42ch; }
.area__list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
  border-top: 1px solid var(--rule);
}
.area__list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  break-inside: avoid;
  font-size: 15.5px;
}

/* ---- Final CTA ----------------------------------------------------------- */
/* The reference's kinetic-type band, scaled down: the headline is split
   into word spans that cascade in on scroll via the shared reveal hooks. */

.cta {
  text-align: center;
  border-top: 3px solid var(--teal);
}
.cta .eyebrow { justify-content: center; }
.cta .cta .lede { margin-inline: auto; }
.cta__title {
  max-width: 18ch;
  margin-inline: auto;
}
.cta__title .reveal-up {
  display: inline-block;
  transition-delay: 0s;
}
.cta__title .reveal-up:nth-child(2) { transition-delay: 0.06s; }
.cta__title .reveal-up:nth-child(3) { transition-delay: 0.12s; }
.cta__title .reveal-up:nth-child(4) { transition-delay: 0.18s; }
.cta__title .reveal-up:nth-child(5) { transition-delay: 0.24s; }
.cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 30px;
  margin-top: 34px;
}

/* ---- Footer -------------------------------------------------------------- */

.foot {
  background: var(--paper);
  border-top: 3px solid var(--teal);
  padding-block: clamp(48px, 6vw, 80px) 30px;
}
.foot__grid {
  display: grid;
  gap: 44px;
}
@media (min-width: 860px) {
  .foot__grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.foot img { height: 76px; width: auto; margin-bottom: 20px; }
.foot p { max-width: 42ch; margin: 0; font-size: 15px; color: var(--muted); }
.foot h4 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.foot a {
  display: block;
  padding: 6px 0;
  color: var(--body);
  text-decoration: none;
}
.foot a:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* "Save our contact" is a plain text link, not an outline box. */
.foot__vcard {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 6px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.foot__vcard svg { width: 16px; height: 16px; flex: none; }
.foot__base {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* ---- Scroll reveals ------------------------------------------------------ */
/* Shared JS hooks from wizards-v1.js: elements are fully visible by
   default (no-JS and editor-preview safe); the script arms .is-pending
   just-in-time, then swaps to .is-in. */

.reveal-up,
.reveal-left,
.reveal-right {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up.is-pending { opacity: 0; transform: translateY(26px); }
.reveal-left.is-pending { opacity: 0; transform: translateX(-28px); }
.reveal-right.is-pending { opacity: 0; transform: translateX(28px); }
.reveal-up.is-in,
.reveal-left.is-in,
.reveal-right.is-in { opacity: 1; transform: none; }

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
  .hero__split { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 860px) {
  .head {
    position: static;
    padding-block: 14px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .head__in { flex-wrap: wrap; }
  .hero { padding-top: clamp(48px, 12vw, 88px); }
  .head__cta { display: none; }
  .site-header__toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    order: 9;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 18px;
  }
  .nav.is-open { display: flex; }
  /* min-height rather than more padding: the target must clear 44px
     regardless of what the 12.5px label's line box happens to compute to. */
  .nav a { padding: 13px 0; width: 100%; min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 560px) {
  .hero__facts { grid-template-columns: 1fr; }
  .hero__fact {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 16px 0;
  }
  .hero__fact:first-child { border-top: 0; }
  .area__list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hero lockup sits above the headline, so the mark reads before the words.
   Sized off the headline rather than the column so the two scale together. */
.hero__logo {
  width: auto;
  height: clamp(64px, 6vw, 92px);
  margin: 0 0 18px;
}

/* ==========================================================================
   Estimator + coverage checker
   ========================================================================== */

.est {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  text-align: left;
  align-items: start;
}
@media (min-width: 900px) { .est { grid-template-columns: 1.15fr 0.85fr; } }

.est__form { display: grid; gap: 26px; margin: 0; }






@media (min-width: 620px) {  }





/* The output is the one place a number appears, so it gets the weight. */
.est__out { border-top: 2px solid var(--ink); padding-top: 22px; }
.est__label {
  font-family: var(--mono, monospace);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.est__range {
  font-family: var(--display, sans-serif);
  font-weight: 800; font-size: clamp(38px, 5vw, 58px); line-height: 1;
  color: var(--teal); margin: 0;
}
.est__detail { font-size: 15px; color: var(--muted); margin: 10px 0 0; }
.est__cta { margin-top: 22px; }
/* The disclaimer is deliberately not fine print — an estimate presented as a
   quote is the thing that turns into an argument on the doorstep. */
.est__disclaimer {
  font-size: 14px; line-height: 1.6; color: var(--muted);
  margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--rule);
}

.coverage { margin-top: 26px; max-width: 460px; }
.coverage__label {
  display: block;
  font-family: var(--mono, monospace);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
/* flex-wrap is load-bearing, not cosmetic. A NOWRAP flex container's min-content
   width is the SUM of its items, and .area's grid item inherits that as a floor it
   cannot shrink below (grid items are min-width:auto) — which pushed the whole page
   to 358px wide at a 320px viewport. With wrap, min-content becomes the LARGEST
   single item and the floor collapses. Measured: nowrap 358, wrap 320. Nothing
   moves at normal widths; the row still fits on one line. */
.coverage__row { display: flex; flex-wrap: wrap; gap: 10px; }
.coverage__input {
  min-width: 0;   /* let the field shrink inside the flex row */
  font: inherit; font-size: 16px; padding: 13px 14px; flex: 1; min-width: 0;
  border: 1px solid var(--rule); border-radius: 0; background: #fff; color: var(--ink);
}
.coverage__input:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.coverage__result {
  margin: 14px 0 0; padding: 13px 15px; font-size: 15.5px; line-height: 1.5;
  border-left: 3px solid var(--teal); background: var(--wash);
}
.coverage__result--ask { border-left-color: var(--mark, #48897B); }
/* A typo is not a business outcome, so it must not borrow the answer colours. */
.coverage__result--err { border-left-color: var(--muted, #6B6F70); }
/* flex + fit-content puts the CTA on its own line under the answer.
   The [hidden] rule is required: an author `display` beats the UA sheet's
   [hidden]{display:none}, so without it the button never hides. */
.coverage__cta { display: flex; width: fit-content; margin-top: 13px; }
.coverage__cta[hidden] { display: none; }
.coverage__note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }


/* ==========================================================================
   Estimator controls — segmented toggles, steppers, chips.
   No radius anywhere: state is carried by fill and border weight, which is
   what keeps a "modern" control from drifting into rounded-SaaS.
   ========================================================================== */

.est__block { margin-bottom: 30px; }
.est__block--split { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.est__legend {
  font-family: var(--mono, monospace);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}

/* Segmented control ------------------------------------------------------- */
.seg { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--ink); }
.seg--four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .seg--four { grid-template-columns: repeat(4, 1fr); } }

.seg__opt { position: relative; display: block; }
.seg__opt input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.seg__opt span {
  display: block; text-align: center;
  padding: 14px 10px;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  color: var(--body); background: #fff;
  border-right: 1px solid var(--rule);
  transition: background-color .16s ease, color .16s ease;
  cursor: pointer;
}
.seg__opt:last-child span { border-right: 0; }
.seg__opt input:checked + span { background: var(--teal); color: #fff; }
.seg__opt input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: -3px; }
.seg__opt input:not(:checked):hover + span { background: var(--wash); }

/* Stepper ----------------------------------------------------------------- */
.stepper__row { display: grid; grid-template-columns: 52px 1fr 52px; border: 1px solid var(--ink); }
.stepper__btn {
  font: inherit; font-size: 22px; line-height: 1;
  border: 0; background: #fff; color: var(--teal);
  cursor: pointer; padding: 0;
  transition: background-color .16s ease;
}
.stepper__btn:hover { background: var(--teal); color: #fff; }
.stepper__btn:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.stepper__val {
  font-family: var(--display, sans-serif);
  font-weight: 800; font-size: 24px; text-align: center;
  border: 0; border-inline: 1px solid var(--rule);
  background: #fff; color: var(--ink);
  padding: 13px 4px; width: 100%;
  -moz-appearance: textfield;
}
.stepper__val::-webkit-outer-spin-button,
.stepper__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__val:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }

/* Chips ------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; display: inline-block; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 11px 17px;
  font-size: 14.5px;
  border: 1px solid var(--rule);
  background: #fff; color: var(--body);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.chip input:checked + span {
  border-color: var(--teal); background: var(--teal); color: #fff;
}
.chip input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.chip input:not(:checked):hover + span { border-color: var(--ink); }

/* The readout sticks while the controls scroll past it. */
@media (min-width: 900px) {
  .est__out { position: sticky; top: 96px; }
}
.est__range { transition: color .16s ease; }

@media (max-width: 520px) {
  .est__block--split { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Touch targets. A phone number is the single most-tapped thing on a service
   business's site on a phone; 20px tall is a miss waiting to happen.
   ========================================================================== */
@media (pointer: coarse), (max-width: 860px) {
  .hero__fact dd a,
  .foot a[href^="tel:"],
  .foot a[href^="mailto:"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .foot__vcard { min-height: 44px; padding-block: 12px; }
  .site-header__toggle { min-height: 44px; min-width: 44px; }
  .chip span, .seg__opt span { min-height: 46px; display: flex; align-items: center; justify-content: center; }
  .stepper__btn { min-height: 46px; }
  /* The footer's plain nav links were never covered by the tel:/mailto: rule
     above and sat at 40px. Excluded here so the inline-flex treatment those two
     already get is not overridden. */
  .foot__grid a:not([href^="tel:"]):not([href^="mailto:"]) {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  /* Header wordmark (40px) and the hero scroll hint (22px tall, wide but thin). */
  .brand { min-height: 44px; }
  .hero__chevron { min-height: 44px; display: flex; align-items: center; justify-content: center; }
}
