/* ==========================================================================
   Barrhaven Attic Insulation — Main Stylesheet (hand-written, not generated)

   Design layer: Taste (tasteskill v2), direction "Dressed as something else",
   seed 611186065. Borrowed category: a printed work order / clip-out coupon.
   Palette: bottle green and gold. Type: Unbounded (display) and Onest (text),
   self-hosted. Hero: half-bleed (solid green left half with the H1 and two
   buttons, photograph filling the right half edge to edge), quote coupon in a
   band below. Signature: the sealant bead, a row of round gold dots, which
   runs under the hero, through the coupon as its perforation and along the
   top of the work-order sheet.

   Every text/background pair below was computed (WCAG), see HANDOVER.md.
   ========================================================================== */

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/onest-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/onest-latin-600-normal.woff2") format("woff2"); }

:root {
  /* ground, ink, accent */
  --green:      #133621;   /* bottle green: hero, dark fields, primary */
  --green-2:    #1a4429;   /* one step lighter: panels on green */
  --green-3:    #24573a;
  --green-4:    #356b4a;
  --gold:       #f4d96c;   /* the accent: actions on dark, display type on green */
  --gold-2:     #e7c84f;   /* hover */
  --paper:      #f2f2ee;   /* light stone ground for reading */
  --paper-2:    #e4e4dc;   /* one tone step down */
  --sage:       #c9d8c1;   /* light tint of the green, for the last stairs */
  --ink:        #10261a;   /* running text on paper */
  --ink-2:      #34473a;   /* secondary text on paper */
  --on-green:   #eef0e4;   /* running text on green */
  --line:       #5f7264;   /* form control borders (3:1 on paper and white) */
  --error:      #a1271c;

  /* template token names, mapped onto this palette (inline styles in build.py use them) */
  --color-primary: var(--green);
  --color-primary-light: var(--green-3);
  --color-accent: var(--gold);
  --color-accent-dark: var(--green);
  --color-accent-light: var(--gold);
  --color-heading: var(--green);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-2);
  --color-white: #ffffff;
  --color-bg: var(--paper);
  --color-bg-alt: var(--paper-2);
  --color-border: #cfcbb8;
  --color-border-strong: var(--line);
  --color-error: var(--error);
  --color-success: #1f6b3d;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* five type steps */
  --fs-small: 1rem;                                   /* 16 */
  --fs-body:  1.125rem;                               /* 18 */
  --fs-lead:  clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); /* 20-24 */
  --fs-head:  clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem); /* 28-46 */
  --fs-hero:  clamp(2.1rem, 1.2rem + 2.9vw, 3.4rem);  /* 34-54 */

  --margin: clamp(16px, 3vw, 32px);
  --wrap: 1200px;
  --gap-section: clamp(72px, 9vw, 140px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--font-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--green);
  margin: 0 0 0.6em; line-height: 1.08; letter-spacing: -0.03em; }
h1 { font-size: var(--fs-hero); line-height: 1.04; }
h2 { font-size: var(--fs-head); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--green-3); }
strong { font-weight: 600; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold);
  color: var(--green); padding: 12px 18px; font-weight: 600; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 6px var(--green); } /* taste-skill-ignore: focus ring */

.container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.container--narrow { max-width: calc(860px + 2 * var(--margin)); }
.section { padding-block: var(--gap-section); }
.section-head { max-width: 1000px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.is-centered { margin-inline: 0; text-align: left; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); }
.prose { max-width: 70ch; }
.grid { display: grid; gap: 24px; }

/* ---------------------------------------------------------------- buttons (square, flat) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0.85rem 1.5rem; border: 2px solid transparent; border-radius: 0;
  font: 600 var(--fs-small)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { min-height: 58px; padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0.6rem 1.1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: var(--gold); }
.btn--primary:hover { background: var(--green-3); color: var(--gold); }
.btn--secondary { background: var(--paper-2); color: var(--green); border-color: var(--green); }
.btn--secondary:hover { background: var(--green); color: var(--gold); }
.btn--outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: var(--gold); }
.btn--ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--green); }
/* on dark fields the primary turns gold */
.hero .btn--primary, .cta-band .btn--primary, .sidebar .card .btn--primary, .commitments .btn--primary,
.estimator .btn--primary, .faq-drawer .btn--primary, .site-footer .btn--primary, .call-bar .btn--primary,
.benefits .btn--primary, .process .btn--primary { background: var(--gold); color: var(--green); }
.hero .btn--primary:hover, .cta-band .btn--primary:hover, .sidebar .card .btn--primary:hover,
.commitments .btn--primary:hover, .estimator .btn--primary:hover, .faq-drawer .btn--primary:hover,
.site-footer .btn--primary:hover, .call-bar .btn--primary:hover { background: var(--gold-2); color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row.is-centered { justify-content: flex-start; }

/* ---------------------------------------------------------------- top bar + header */
.topbar { background: var(--green-2); color: var(--on-green); font-size: 1rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar a { color: var(--gold); font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--gold); }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); }
.logo img { width: 46px; height: 46px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.02em; }
.logo__tag { font-size: 1rem; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  background: none; border: 0; color: var(--green); font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; }
.nav__link:hover, .nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px;
  text-underline-offset: 8px; text-decoration-color: var(--green); }
.nav__item--has-menu { position: relative; }
.nav__toggle::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid;
  border-bottom: 2px solid; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.nav__toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }
.nav__submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 300px; margin: 0;
  padding: 8px 0; list-style: none; background: var(--green); z-index: 60;
  box-shadow: 0 18px 40px rgba(16, 38, 26, .28); } /* taste-skill-ignore: dropdown menu floats */
.nav__submenu.is-open { display: block; }
.nav__submenu a { display: block; padding: 10px 20px; color: var(--on-green); text-decoration: none; font-size: 1rem; }
.nav__submenu a:hover, .nav__submenu a[aria-current="page"] { background: var(--green-3); color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--green); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-phone__label { display: none; }
.nav-burger { display: none; width: 48px; height: 48px; padding: 12px; background: var(--green); border: 0; cursor: pointer; }
.nav-burger span { display: block; height: 3px; margin: 4px 0; background: var(--gold); transition: transform .2s, opacity .2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero: half-bleed */
.hero { position: relative; background: var(--green); color: var(--on-green); }
.hero h1 { color: var(--gold); margin: 0; }
.hero__split { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(520px, 72svh, 760px); }
.hero--page .hero__split { min-height: clamp(400px, 50svh, 560px); }
.hero__panel { display: flex; align-items: center; background: var(--green);
  padding-block: clamp(48px, 7vw, 96px);
  padding-inline-start: max(var(--margin), calc((100vw - var(--wrap)) / 2));
  padding-inline-end: clamp(24px, 4vw, 64px); }
.hero__intro { max-width: 600px; }
.hero__intro .btn-row { margin-top: clamp(28px, 3vw, 44px); }
/* the rebate line: one outlined gold tag under the H1, a line on the work order (owner, Oct 2026) */
.hero__note { display: inline-block; margin-top: clamp(20px, 2.4vw, 32px); padding: 10px 16px;
  border: 2px solid var(--gold); color: var(--gold); font: 600 1.125rem/1.3 var(--font-body); text-decoration: none; }
.hero__note:hover, .hero__note:focus-visible { background: var(--gold); color: var(--green); }
.hero__photo { position: relative; overflow: hidden; background: var(--green-2); }
.hero__photo picture, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; }
/* the sealant bead: a row of gold dots along the foot of every half-bleed hero */
.hero--half::after { content: ""; display: block; border-top: 12px dotted var(--gold); }
.hero--home::after { display: none; }
/* solid heroes (FAQ, legal, 404) */
.hero--page:not(.hero--half) { padding-block: clamp(64px, 8vw, 112px); border-bottom: 12px dotted var(--gold); }
.hero--page:not(.hero--half) .hero__intro { max-width: 900px; }
.hero__inner { position: relative; }

/* the quote coupon, in a band at the foot of the home hero */
.hero__band { overflow: hidden; background: var(--green-2); padding-block: clamp(40px, 5vw, 72px); border-top: 12px dotted var(--gold); }
.coupon { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
  background: var(--gold); color: var(--green); }
.coupon::before, .coupon::after { content: ""; position: absolute; left: 38.3%; width: 36px; height: 36px;
  margin-left: -18px; border-radius: 50%; background: var(--green-2); }
.coupon::before { top: -18px; }
.coupon::after { bottom: -18px; }
.coupon__head { display: flex; align-items: center; padding: clamp(28px, 3vw, 48px);
  border-right: 7px dotted var(--green); }
.coupon__title { margin: 0; color: var(--green); font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.3rem); line-height: 1.08; }
.coupon__body { padding: clamp(24px, 3vw, 44px); }
.coupon .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.hero .field label, .hero label, .hero .req, .hero .opt { font-size: 1rem; }
.hero .coupon .field label { color: var(--green); font-weight: 600; }
.hero .coupon .opt { font-weight: 400; color: var(--green); }
.hero .coupon .req { color: var(--error); }
.hero .coupon input, .hero .coupon select { background: #fffdf3; border-color: var(--green); font-size: 1rem; }
.hero .coupon .btn--primary { background: var(--green); color: var(--gold); min-height: 58px; font-size: 1.0625rem; }
.hero .coupon .btn--primary:hover { background: var(--green-3); }
.hero .form-success { font-size: 1rem; }

/* ---------------------------------------------------------------- breadcrumbs + intro band */
.breadcrumbs { background: var(--paper-2); font-size: 1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 12px 0; }
.breadcrumbs li { display: flex; gap: 8px; color: var(--ink-2); }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-2); }
.breadcrumbs a { color: var(--green); font-weight: 600; }
.intro-band { padding-block: clamp(56px, 7vw, 104px); background: var(--paper); }
.intro-band .container { max-width: calc(980px + 2 * var(--margin)); }
.intro-band p { max-width: 64ch; }
.intro-band p:first-of-type { max-width: 46ch; font-weight: 600; font-size: clamp(1.25rem, 1.05rem + 0.75vw, 1.65rem);
  line-height: 1.4; color: var(--green); margin-bottom: 0.9em; }
.intro-band h2 { margin-bottom: 0.5em; }
.intro-band p + p { font-size: var(--fs-lead); font-weight: 600; color: var(--green); }
.intro-band h2 + p + p, .intro-band h2 + p + p + p { font-size: var(--fs-body); font-weight: 400; color: var(--ink); }
.intro-band h2 + p:first-of-type { font-family: var(--font-body); font-size: var(--fs-lead); letter-spacing: 0; max-width: 64ch; color: var(--ink); }

/* ---------------------------------------------------------------- why: heading left, copy right */
.why { background: var(--paper); padding-top: clamp(24px, 3vw, 48px); }
.why__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.why__grid h2 { font-size: var(--fs-head); margin: 0; }
.why__copy p:first-child { font-size: var(--fs-lead); line-height: 1.45; }

/* ---------------------------------------------------------------- services: rate-sheet rows */
.svc-sheet { background: var(--paper-2); }
.svc-rows { display: flex; flex-direction: column; }
.service-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center;
  gap: clamp(20px, 3vw, 44px); padding: 22px clamp(16px, 2vw, 28px); background: var(--paper);
  transition: background-color .2s; }
.service-card:nth-child(even) { background: #dcdcd2; }
.service-card:hover { background: #fffdf3; }
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-2); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body h3 { margin-bottom: 8px; }
.service-card__body h3 a { color: var(--green); }
.service-card__body p { margin: 0; color: var(--ink); font-size: 1.0625rem; }
.service-card__link { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--green); }
.svc-sheet .btn-row { margin-top: 40px; }

/* ---------------------------------------------------------------- benefits: gold on green */
.benefits { background: var(--green); color: var(--on-green); }
.benefits h2 { color: var(--gold); }
.benefits .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 56px); }
.feature { padding-top: 22px; border-top: 10px solid var(--gold); }
.feature p { color: var(--on-green); font-size: 1.0625rem; }
.lead-in { display: block; margin-bottom: 10px; font-family: var(--font-display); font-size: 1.2rem;
  line-height: 1.25; letter-spacing: -0.02em; color: var(--gold); }

/* ---------------------------------------------------------------- commitments: the work-order sheet */
.commitments { background: var(--green-2); }
.work-order { position: relative; max-width: 820px; margin-inline: auto; background: var(--paper); color: var(--ink);
  padding: clamp(36px, 5vw, 64px) 0; }
.work-order::before, .work-order::after { content: ""; position: absolute; left: 0; right: 0; border-top: 14px dotted var(--green-2); }
.work-order::before { top: -7px; }
.work-order::after { bottom: -7px; }
.work-order .container--narrow { max-width: none; padding-inline: clamp(24px, 5vw, 64px); }
.commitments h2 { color: var(--green); }
.commitments .lead { font-size: var(--fs-lead); }
.commit-list { list-style: none; margin: 28px 0 0; padding: 0; }
.commit-list li { position: relative; padding: 16px 0 16px 52px; font-size: 1.125rem; }
.commit-list li:nth-child(odd) { background: var(--paper-2); }
.commit-list li::before { content: "\2713"; position: absolute; left: 10px; top: 14px; width: 30px; height: 30px;
  display: grid; place-items: center; background: var(--green); color: var(--gold); font-weight: 600; }
.commitments .btn--primary { background: var(--green); color: var(--gold); }

/* ---------------------------------------------------------------- long-form detail + sidebar */
.layout-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.content-block + .content-block { margin-top: clamp(48px, 5vw, 72px); }
.content-block h2 { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); margin-bottom: 0.55em; }
.prose h3 { margin-top: 1.4em; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar .card { background: var(--green); color: var(--on-green); padding: 32px 28px; }
.sidebar .card h3 { color: var(--gold); font-size: 1.35rem; }
.sidebar .card p { color: var(--on-green); }
.sidebar .card .footer-phone { color: var(--gold) !important; font-family: var(--font-display); font-size: 1.3rem; text-decoration: none; }
.sidebar .card .btn--outline { color: var(--gold); border-color: var(--gold); }
.sidebar .card .btn--outline:hover { background: var(--gold); color: var(--green); }
.sidebar .btn-row { flex-direction: column; margin-top: 20px; }
.panel { background: var(--paper-2); padding: 28px; }
.panel h3 { font-size: 1.1rem; }
.panel .footer-list a { color: var(--green) !important; font-weight: 600; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-block: clamp(40px, 5vw, 64px); padding: 28px 32px; background: var(--gold); color: var(--green); }
.cta-inline p { margin: 0; max-width: 46ch; font-weight: 600; font-size: 1.125rem; }
.cta-inline .btn-row { margin: 0; }

/* ---------------------------------------------------------------- process: the staircase */
.process { background: var(--paper); }
.stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 0; }
.stairs .step { display: flex; align-items: flex-start; padding: 28px 22px; min-height: 280px; }
.stairs .step p { font-size: 1.0625rem; }
.stairs .step:nth-child(1) { background: var(--green);   color: var(--on-green); min-height: 300px; }
.stairs .step:nth-child(2) { background: var(--green-3); color: var(--on-green); min-height: 360px; }
.stairs .step:nth-child(3) { background: var(--green-4); color: #ffffff; min-height: 420px; }
.stairs .step:nth-child(4) { background: var(--sage);    color: var(--ink); min-height: 480px; }
.stairs .step:nth-child(5) { background: var(--gold);    color: var(--green); min-height: 540px; }
.stairs .step:nth-child(-n+3) .lead-in { color: var(--gold); }
.stairs .step:nth-child(n+4) .lead-in { color: var(--green); }
.process .btn-row { margin-top: 40px; }

/* ---------------------------------------------------------------- service area: map half-bleed */
.areas { background: var(--paper-2); padding-block: 0; }
.areas > .container { max-width: none; padding: 0; }
.areas .layout-split--even { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.areas .prose { max-width: none; padding-block: var(--gap-section);
  padding-inline-start: max(var(--margin), calc((100vw - var(--wrap)) / 2));
  padding-inline-end: clamp(24px, 5vw, 72px); }
.areas .prose > * { max-width: 60ch; }
.map-wrap { position: relative; min-height: 460px; background: var(--green-2); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------- estimator: the live thing */
.estimator { background: var(--gold); color: var(--green); }
.estimator h2 { color: var(--green); }
.estimator__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.estimator__copy p { font-size: var(--fs-lead); line-height: 1.45; }
.estimator__copy .estimator__fine { font-size: 1rem; color: var(--green); }
.estimator__tool { background: var(--green); color: var(--on-green); padding: clamp(24px, 3vw, 40px); }
.estimator__tool .field { margin-bottom: 18px; }
.estimator__tool .field label, .estimator__tool label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--on-green); font-size: 1rem; }
.estimator__tool input, .estimator__tool select { background: #fffdf3; border-color: var(--gold); color: var(--ink); }
.estimator__out { margin: 4px 0 20px; padding: 18px 20px; background: var(--green-2); }
.estimator__out[hidden] { display: none; }
.estimator__label { margin: 0; font-size: 1rem; color: var(--on-green); }
.estimator__range { margin: 4px 0; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); color: var(--gold); letter-spacing: -0.02em; }
.estimator__note { margin: 0; font-size: 1rem; color: var(--on-green); }

/* ---------------------------------------------------------------- CTA bands */
.cta-band { background: var(--green-2); color: var(--on-green); padding-block: clamp(64px, 8vw, 112px); }
.cta-band h2 { color: var(--gold); max-width: 22ch; }
.cta-band p { max-width: 60ch; font-size: var(--fs-lead); color: var(--on-green); }
.cta-band a:not(.btn) { color: var(--gold); }

/* home closing: one word is the button */
.word-band { background: var(--gold); }
.word-band__link { display: flex; flex-direction: column; justify-content: space-between; min-height: 58svh;
  padding: clamp(32px, 4vw, 56px) var(--margin) 12px; color: var(--green); text-decoration: none;
  overflow: hidden; transition: background-color .15s, color .15s; }
.word-band__top { display: block; max-width: 40ch; }
.word-band__top h2 { color: inherit; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); margin-bottom: 12px; }
.word-band__top p { font-size: var(--fs-lead); color: inherit; margin: 0; }
.word-band__word { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(7rem, 27vw, 26rem);
  line-height: 0.82; letter-spacing: -0.06em; margin-left: -0.04em; }
.word-band__link:hover, .word-band__link:focus-visible { background: var(--green); color: var(--gold); }

/* ---------------------------------------------------------------- quote form */
#quote, #quote-2 { background: var(--paper-2); }
#quote .section-head, #quote-2 .section-head { max-width: 860px; }
.form-wrap { background: var(--paper); padding: clamp(24px, 4vw, 48px); border-top: 12px dotted var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--green); font-size: 1rem; }
.field .req { color: var(--error); }
.field .opt { font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 0; background: #ffffff; color: var(--ink);
  font: 400 1rem/1.4 var(--font-body); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--green); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { min-height: 1em; color: var(--error); font-size: 1rem; font-weight: 600; }
.form-note { margin-top: 12px; font-size: 1rem; color: var(--ink-2); }
.form-success { display: none; gap: 12px; margin-bottom: 20px; padding: 18px 20px; background: #e2efe0; color: var(--ink); }
.form-success.is-visible { display: flex; }
.form-success strong { display: block; color: var(--color-success); margin-bottom: 4px; }

/* ---------------------------------------------------------------- FAQ: filed cards */
.faq-drawer { background: var(--paper); }
.faq { max-width: 960px; }
.faq__item { background: var(--green); color: var(--on-green); }
.faq__item:nth-child(even) { background: var(--green-2); }
.faq__item + .faq__item { margin-top: 6px; }
.faq__question { margin: 0; font-size: 1.125rem; }
.faq__trigger { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%;
  padding: 22px 26px; background: none; border: 0; color: var(--gold); text-align: left; cursor: pointer;
  font: 600 1.125rem/1.35 var(--font-body); }
.faq__trigger:hover { background: var(--green-3); }
.faq__icon { position: relative; flex: 0 0 22px; height: 22px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--gold);
  transform: translate(-50%, -50%); transition: transform .25s, opacity .25s; }
.faq__icon::before { width: 18px; height: 3px; }
.faq__icon::after { width: 3px; height: 18px; }
.faq__trigger[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__panel { display: none; padding: 0 26px 24px; }
.faq__panel.is-open { display: block; }
.faq__panel p { color: var(--on-green); max-width: 62ch; }
.faq__panel a { color: var(--gold); }
.faq-drawer .btn-row .btn--secondary { background: var(--paper-2); }
.faq-drawer .btn--primary { background: var(--green); color: var(--gold); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--green); color: var(--on-green); padding-top: clamp(64px, 7vw, 104px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr; gap: 40px; }
.site-footer h3 { color: var(--gold); font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: var(--on-green); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-logo { display: inline-block; width: 120px; }
.footer-brand p { margin-top: 16px; }
.footer-phone { display: inline-block; margin-top: 12px; font-family: var(--font-display); font-size: 1.25rem; color: var(--gold) !important; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px;
  padding-block: 20px; font-size: 1rem; border-top: 10px dotted var(--green-3); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-word { margin: 8px 0 0; font-family: var(--font-display); font-weight: 700; color: var(--gold);
  font-size: clamp(4rem, 15.5vw, 15rem); line-height: 0.8; letter-spacing: -0.06em; white-space: nowrap;
  text-align: center; transform: translateY(14%); }

/* ---------------------------------------------------------------- mobile call bar + to-top */
.call-bar { display: none; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--green); color: var(--gold); border: 0; cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------------------------------------------------------------- motion (transform and opacity only) */
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero h1 { animation: rise .9s var(--ease) both; }
.hero__note { animation: rise .9s var(--ease) .1s both; }
.hero .btn-row { animation: rise .9s var(--ease) .18s both; }
.hero__photo img { animation: settle 2.2s var(--ease) both; }
.coupon { animation: rise .9s var(--ease) .3s both; }
.motion .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.motion .rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion .rise { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1120px) {
  .nav__list .nav__link { padding: 0 8px; }
  .header-phone { display: none; }
  .service-card { grid-template-columns: 200px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .layout-split { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stairs { grid-template-columns: 1fr; align-items: stretch; }
  .stairs .step, .stairs .step:nth-child(n) { min-height: 0; }
  .benefits .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav-burger { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px var(--margin) 24px; background: var(--paper); box-shadow: 0 18px 40px rgba(16, 38, 26, .2); } /* taste-skill-ignore: mobile menu floats */
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { width: 100%; justify-content: space-between; }
  .nav__submenu { position: static; min-width: 0; box-shadow: none; } /* taste-skill-ignore: removes the shadow */
  .header-cta { margin-top: 12px; flex-direction: column; align-items: stretch; }
  .header-phone { display: block; padding: 10px 12px; }
  .topbar__inner p:first-child { display: none; }
}
@media (max-width: 900px) {
  .hero__split, .hero--page .hero__split { grid-template-columns: 1fr; min-height: 0; }
  .hero__panel { padding: 48px var(--margin) 40px; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .coupon { grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { left: auto; top: auto; bottom: auto; }
  .coupon::before { left: -18px; top: 96px; margin: 0; }
  .coupon::after { right: -18px; top: 96px; margin: 0; }
  .coupon__head { border-right: 0; border-bottom: 7px dotted var(--green); min-height: 114px; }
  .why__grid, .estimator__grid { grid-template-columns: 1fr; }
  .areas .layout-split--even { grid-template-columns: 1fr; }
  .areas .prose { padding: 72px var(--margin) 48px; }
  .map-wrap { min-height: 360px; }
}
@media (max-width: 680px) {
  :root { --header-h: 64px; }
  body { font-size: 1.0625rem; padding-bottom: 68px; }
  .logo__tag { display: none; }
  .logo__name { font-size: 0.9375rem; }
  .form-grid, .coupon .form-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 14px; padding: 18px 14px; }
  .service-card__media { aspect-ratio: 1 / 1; }
  .service-card__body h3 { font-size: 1.0625rem; }
  .benefits .grid--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .cta-inline { padding: 24px 20px; }
  /* Phones (where the call bar exists): the coupon comes straight after the panel, the photo after
     the coupon, so the coupon heading sits clear above the fixed call bar on first load instead of
     under it. The bead still closes the hero under the photo. */
  .hero--home { display: flex; flex-direction: column; }
  .hero--home .hero__split { display: contents; }
  .hero--home .hero__panel { order: 1; padding-bottom: 36px; }
  .hero--home .hero__band { order: 2; padding-block: 28px 40px; }
  .hero--home .hero__photo { order: 3; }
  .hero--home::after { display: block; order: 4; }
  .call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: 8px; padding: 8px; background: var(--green); }
  .call-bar .btn { flex: 1; min-height: 48px; }
  .call-bar .btn--secondary { background: var(--paper); border-color: var(--paper); }
  .to-top { bottom: 80px; }
  .word-band__link { min-height: 46svh; }
  .word-band__word { font-size: 38vw; }
}
@media print {
  .topbar, .site-header, .call-bar, .to-top, .hero__band, .word-band, form { display: none !important; }
  body { background: #fff; }
}
