/* ==========================================================================
   Orillia Attic Insulation — Main Stylesheet (hand-written; build.py fingerprints it)

   Design layer: Taste (tasteskill v2). Direction "Photographs at uneven sizes"
   (seed 976352206), type "Young Serif / Source Serif 4", palette "Tobacco and
   olive" with its colours taken from the attics themselves: ochre pine,
   an olive action colour and olive-black ink, on a cool off-white ground.

   Idea: the arched window in a cottage gable becomes the frame every main
   photograph sits in. The live thing is the estimator, where a cottage and a
   house come off the same rate sheet.

   Hero (owner-assigned "Editorial light"): off-white ground, very large
   left-aligned H1, the photograph in a tall arched frame on the right; the
   intro and the quote form sit in a tinted band under it.

   House rules kept: no gradients, no shadows at rest, no eyebrows, no thin
   divider rules, square buttons, one display face + one text face.

   Contrast (WCAG, computed):
     ink #22261A on paper #F1F1EE ........ 13.6:1   on paper-2 #E5E3DD 12.0:1
     ink-soft #4D5240 on paper ........... 7.2:1    on paper-2 6.3:1
     paper on olive #525E1B .............. 6.2:1    white on olive 7.1:1
     paper on olive-dark #3E4713 ......... 8.8:1
     ochre-ink #2B170A on ochre #C79A3E .. 6.6:1
     paper on deep olive #343B14 ......... 10.4:1   sand #D9CDB4 on it 7.5:1
     olive #525E1B links on paper ........ 6.2:1    on paper-2 5.5:1
     sand on ink (top bar) ............... 9.8:1
     border-strong #857360 on white ...... 4.6:1    on paper 4.0:1 (>= 3:1 UI)
     error #A1261B on white .............. 7.5:1
   Palette note: the dealt "Tobacco and olive" brown ink was shifted to an
   olive-black because Bradford took a near-identical roasted umber.
   ========================================================================== */

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/young-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
}

/* ==========================================================================
   01. TOKENS
   ========================================================================== */
:root {
  --paper:        #F1F1EE;
  --paper-2:      #E5E3DD;
  --white:        #FFFFFF;
  --ink:          #22261A;
  --ink-soft:     #4D5240;
  --olive:        #525E1B;
  --olive-dark:   #3E4713;
  --ochre:        #C79A3E;
  --ochre-ink:    #2B170A;
  --tobacco:      #343B14;
  --sand:         #D9CDB4;
  --error:        #A1261B;
  --success:      #3E4713;

  /* legacy names the generator still references */
  --color-primary:       #22261A;
  --color-heading:       var(--ink);
  --color-border-strong: #857360;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step-body: clamp(1rem, 1.02rem + 0.22vw, 1.1875rem);   /* 17-19px */
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);          /* 20-24px */
  --step-h3:   clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);        /* 22-28px */
  --step-head: clamp(1.875rem, 1.3rem + 2.1vw, 3.25rem);        /* 30-52px */
  --step-hero: clamp(2.5rem, 1.3rem + 4.1vw, 5rem);             /* 40-80px */

  --gutter: clamp(16px, 4.5vw, 72px);
  --max: 1360px;
  --section: clamp(4.5rem, 3rem + 6vw, 10rem);
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ==========================================================================
   02. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--olive); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--olive-dark); text-decoration-thickness: 2px; }
::selection { background: var(--ochre); color: var(--ochre-ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: var(--step-hero); line-height: 0.98; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-h3); line-height: 1.15; letter-spacing: -0.01em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 920px; }
.section { padding-block: var(--section); }
.lead { font-size: var(--step-lead); line-height: 1.4; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-head); margin-top: 2.2em; }
.prose h2:first-child, .content-block:first-child h2 { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.content-block { margin-bottom: 3.5rem; }
.content-block h2 { margin-top: 0; }

/* ==========================================================================
   03. BUTTONS (square, flat, one fill)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.5rem;
  font-family: var(--font-text); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--olive); color: var(--white); }
.btn--primary:hover { background: var(--olive-dark); color: var(--white); }
.btn--secondary { background: var(--ink); color: var(--paper); }
.btn--secondary:hover { background: var(--tobacco); color: var(--paper); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: var(--step-body); }
.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-row.is-centered { justify-content: flex-start; }

/* ==========================================================================
   04. TOP BAR + HEADER (a plain bar: wordmark, a few links, one action)
   ========================================================================== */
.topbar { background: var(--ink); color: var(--sand); font-size: 1rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; }
.topbar p { color: var(--sand); }
@media (max-width: 760px) { .topbar__inner p:last-child { display: none; } }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.logo img { width: 44px; height: 44px; }
.logo__name { font-family: var(--font-display); font-size: var(--step-lead); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.7rem; color: var(--ink); text-decoration: none;
  font: 600 1rem/1.2 var(--font-text); background: none; border: 0; cursor: pointer;
}
.nav__link:hover { color: var(--olive); }
.nav__link[aria-current="page"] { color: var(--olive); text-decoration: underline; text-underline-offset: 0.35em; }
.nav__item--has-menu { position: relative; }
.nav__toggle::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 180ms var(--ease);
}
.nav__toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-2px); }
.nav__submenu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px;
  list-style: none; margin: 0; padding: 0.5rem 0; background: var(--white);
  box-shadow: 0 18px 40px rgba(34, 38, 26, .16);   /* it floats: the one shadow on the site */
}
.nav__submenu.is-open { display: block; }
.nav__submenu a { display: block; padding: 0.55rem 1.1rem; color: var(--ink); text-decoration: none; font-size: 1rem; }
.nav__submenu a:hover, .nav__submenu a[aria-current="page"] { background: var(--paper-2); color: var(--olive-dark); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--olive); }
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 48px; height: 48px; padding: 12px; background: none; border: 0; cursor: pointer;
}
.nav-burger span { display: block; height: 2px; background: var(--ink); transition: transform 180ms var(--ease), opacity 180ms; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.breadcrumbs { background: var(--paper); font-size: 1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0.25rem 0 0; }
.breadcrumbs li { display: flex; gap: 0.5rem; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }

/* ==========================================================================
   05. HERO — editorial light, arched photograph on the right
   ========================================================================== */
.hero { background: var(--paper); padding-block: clamp(2.5rem, 1rem + 5vw, 6rem) clamp(3rem, 1rem + 6vw, 7rem); }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: end;
}
.hero__intro { padding-bottom: clamp(0rem, 2vw, 2rem); }
.hero h1 { margin: 0; max-width: none; }
.hero .btn-row { margin-top: clamp(2rem, 1rem + 2vw, 3rem); }
/* Rebate note (owner, Oct 19 2026): one underlined serif line between the H1
   and the buttons, linking to the rebate page. Never below 1.125rem. */
.hero__rebate {
  display: inline-block; margin-top: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
  font-family: var(--font-text); font-size: clamp(1.125rem, 1.05rem + 0.45vw, 1.375rem);
  font-weight: 600; line-height: 1.3; color: var(--olive);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em;
  text-decoration-color: var(--ochre);
}
.hero__rebate:hover, .hero__rebate:focus-visible { color: var(--olive-dark); text-decoration-color: currentColor; }
.hero__arch { margin: 0; justify-self: end; width: 100%; max-width: 540px; }
.hero__arch picture { overflow: hidden; border-radius: 999px 999px 0 0; aspect-ratio: 4 / 5; background: var(--paper-2); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero--page .hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); }
.hero--page:not(.hero--with-photo) .hero__inner { grid-template-columns: 1fr; }
.hero--page h1 { font-size: clamp(2.5rem, 1.4rem + 3.8vw, 5rem); max-width: 16ch; }
.hero--page .hero__arch { max-width: 440px; }
.hero--page .hero__arch picture { aspect-ratio: 5 / 6; }
/* any text that does land in a hero never drops below body size */
.hero label, .hero .req, .hero .opt, .hero p, .hero li { font-size: 1rem; }

/* ==========================================================================
   06. INTRO BAND (+ the home quote form, tinted)
   ========================================================================== */
.intro-band { background: var(--paper); padding-block: 0 clamp(3rem, 2rem + 4vw, 6rem); }
.intro-band p:first-of-type { font-size: var(--step-lead); line-height: 1.42; color: var(--ink); }
.intro-band--quote { background: var(--paper-2); padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.intro-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.intro-band__copy p:first-child { font-size: var(--step-h3); line-height: 1.35; }
.intro-band__copy p:last-child { font-size: var(--step-lead); }

.hero-form { background: var(--white); padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.hero-form__title { font-size: var(--step-head); margin-bottom: 1.25rem; }
.hero-form .field label, .hero-form label, .intro-band .hero-form .field label { font-size: 1rem; }

/* ==========================================================================
   07. FORMS
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1rem; color: var(--ink); }
.req { color: var(--error); }
.opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.85rem;
  font: 400 1rem/1.4 var(--font-text); color: var(--ink);
  background: var(--white); border: 1px solid var(--color-border-strong); border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--olive); outline-offset: 0; border-color: var(--olive); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__error { font-size: 1rem; font-weight: 600; color: var(--error); min-height: 1em; }
.form-note { font-size: 1rem; color: var(--ink-soft); margin: 0.75rem 0 0; }
.form-success {
  display: none; gap: 0.75rem; margin-bottom: 1.25rem; padding: 1rem 1.25rem;
  background: var(--paper-2); color: var(--ink);
}
.form-success.is-visible { display: flex; }
.form-success strong { display: block; color: var(--success); margin-bottom: 4px; }

.quote-band { background: var(--paper-2); }
.quote-band__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.quote-band__head p { font-size: var(--step-lead); line-height: 1.4; }
.form-wrap { background: var(--white); padding: clamp(1.5rem, 1rem + 2vw, 3rem); }

/* ==========================================================================
   08. SERVICES — rows from an axis (home), table pushed right (elsewhere)
   ========================================================================== */
.svc-list__rows { list-style: none; margin: 0; padding: 0; }
.svc-row h3 { margin: 0 0 0.6rem; }
.svc-row h3 a { color: var(--ink); text-decoration: none; }
.svc-row h3 a:hover { color: var(--olive); }
.svc-row p { margin: 0 0 0.75rem; }
.svc-row__link { font-weight: 600; }

.svc-list--rows .svc-list__head { margin-left: 33%; max-width: 46rem; margin-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.svc-list--rows .svc-list__head h2 { font-size: var(--step-head); }
.svc-list--rows .svc-list__head p { font-size: var(--step-lead); }
.svc-list--rows .svc-row {
  display: grid; grid-template-columns: 33% minmax(0, 40ch) 1fr; align-items: start;
  margin-bottom: clamp(3.5rem, 2.5rem + 3vw, 6.5rem);
}
.svc-list--rows .svc-row__text { grid-column: 2; }
.svc-list--rows .svc-row__media { grid-column: 3; justify-self: end; display: block; overflow: hidden; }
.svc-list--rows .svc-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.svc-list--rows .svc-row__media:hover img { transform: scale(1.04); }
.svc-row__media--0 { width: min(300px, 100%); aspect-ratio: 4 / 5; }
.svc-row__media--1 { width: min(380px, 100%); aspect-ratio: 3 / 2; }
.svc-row__media--2 { width: min(220px, 100%); aspect-ratio: 1 / 1; }
.svc-row__media picture { height: 100%; }
.svc-list--rows .svc-list__actions { margin-left: 33%; }

.svc-list--table .container { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(2rem, 1rem + 4vw, 6rem); }
.svc-list--table .svc-list__head h2 { font-size: var(--step-head); }
.svc-list--table .svc-list__head { align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.svc-list--table .svc-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.5rem; padding-block: 1.75rem; }
.svc-list--table .svc-row:nth-child(4n) { margin-top: 1.5rem; }
.svc-list--table .svc-row__text { display: contents; }
.svc-list--table .svc-row h3 { grid-column: 1; }
.svc-list--table .svc-row p, .svc-list--table .svc-row__link { grid-column: 2; }
.svc-list--table .svc-row__link { margin-top: -1.25rem; }
.svc-list--table .svc-list__actions { grid-column: 2; }

/* ==========================================================================
   09. HOME SECTIONS
   ========================================================================== */
/* why: a large statement left, the argument right */
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 7rem); align-items: start; }
.why__grid h2 { font-size: var(--step-head); position: sticky; top: calc(var(--header-h) + 2rem); }
.why__body p:first-of-type { font-size: var(--step-lead); line-height: 1.45; }

/* benefits: the one ochre field on the page */
.benefits { background: var(--ochre); color: var(--ochre-ink); }
.benefits h2 { color: var(--ochre-ink); }
.benefits__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 1rem + 4vw, 6rem); }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
.benefit p { margin: 0; font-size: var(--step-lead); line-height: 1.38; }
.benefit:nth-child(even) { margin-top: 3rem; }

/* commitments: olive field, a checklist */
.commitments { background: var(--olive); color: var(--paper); }
.commitments h2, .commitments .lead { color: var(--paper); }
.commitments a:not(.btn) { color: var(--paper); }
.commitments__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 6rem); }
.commitments__actions { grid-column: 2; margin-top: 0; }
.commit-list { list-style: none; margin: 0; padding: 0; }
.commit-list li { position: relative; padding-left: 2.5rem; margin-bottom: 1.4rem; font-size: var(--step-lead); line-height: 1.4; }
.commit-list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.3em; width: 0.7rem; height: 1.15rem;
  border-right: 3px solid var(--ochre); border-bottom: 3px solid var(--ochre); transform: rotate(40deg);
}

/* detail: prose with a column of photographs at uneven sizes */
.detail__grid { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 8rem); }
.photo-column { display: flex; flex-direction: column; align-items: flex-end; gap: clamp(4rem, 2rem + 8vw, 12rem); padding-top: 6rem; }
.photo-column picture { overflow: hidden; }
.photo-column img { width: 100%; height: 100%; object-fit: cover; }
.photo-column picture:nth-child(1) { width: 78%; aspect-ratio: 3 / 4; }
.photo-column picture:nth-child(2) { width: 100%; aspect-ratio: 16 / 10; }
.photo-column picture:nth-child(3) { width: 58%; aspect-ratio: 1 / 1; align-self: flex-start; }

.cta-inline { background: var(--paper-2); padding: 1.75rem 2rem; margin: 0 0 3.5rem; }
.cta-inline p { font-size: var(--step-lead); line-height: 1.4; margin: 0; }
.cta-inline .btn-row { margin-top: 1.25rem; }

/* estimator: the live thing */
.estimator { background: var(--paper); }
.estimator__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.estimator__copy h2 { font-size: var(--step-head); }
.estimator__copy p:first-of-type { font-size: var(--step-lead); }
.estimator__fine { color: var(--ink-soft); }
.estimator__tool { background: var(--paper-2); padding: clamp(1.5rem, 1rem + 2vw, 3rem); display: grid; gap: 1.25rem; }
.estimator__out { background: var(--ink); color: var(--paper); padding: 1.5rem; }
.estimator__out[hidden] { display: none; }
.estimator__label { margin: 0; color: var(--sand); }
.estimator__range { font-family: var(--font-display); font-size: var(--step-head); line-height: 1.05; margin: 0.25rem 0 0.5rem; color: var(--paper); }
.estimator__note { margin: 0; color: var(--sand); }

/* cta band: tobacco field, statement left */
.cta-band { background: var(--tobacco); color: var(--paper); padding-block: clamp(4rem, 3rem + 4vw, 8rem); }
.cta-band h2 { color: var(--paper); font-size: var(--step-head); max-width: 18ch; }
.cta-band p { font-size: var(--step-lead); max-width: 44ch; color: var(--paper); }
.cta-band a:not(.btn) { color: var(--paper); }

/* process: steps down a falling diagonal */
.process h2 { margin-left: 42%; max-width: 22ch; font-size: var(--step-head); margin-bottom: 4rem; }
.diagonal { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.diagonal .step { max-width: 38ch; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.diagonal .step p { margin: 0; font-size: var(--step-lead); line-height: 1.4; }
.diagonal .step:nth-child(1) { margin-left: 0; }
.diagonal .step:nth-child(2) { margin-left: 14%; }
.diagonal .step:nth-child(3) { margin-left: 28%; }
.diagonal .step:nth-child(4) { margin-left: 42%; }
.diagonal .step:nth-child(5) { margin-left: 56%; }
.process__actions { margin-left: 56%; }

/* areas: map left, words right */
.areas { background: var(--paper-2); }
.areas__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
.areas__copy { order: 2; }
.map-wrap { order: 1; aspect-ratio: 4 / 3; background: var(--paper); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* closing: last photograph, text beside it */
.closing__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: end; }
.closing__media picture { overflow: hidden; aspect-ratio: 16 / 10; }
.closing__media img { width: 100%; height: 100%; object-fit: cover; }
.closing__copy h2 { font-size: var(--step-head); }
.closing__copy p { font-size: var(--step-lead); }

/* FAQ: questions beside a tall photograph */
.faq-wrap__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 1rem + 5vw, 7rem); align-items: start; }
.faq-wrap__media { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-wrap__media picture { overflow: hidden; aspect-ratio: 3 / 4; }
.faq-wrap__media img { width: 100%; height: 100%; object-fit: cover; }
.faq-wrap h2 { font-size: var(--step-head); }
.faq__item { background: var(--paper-2); margin-bottom: 0.5rem; }
.faq__question { margin: 0; font-size: inherit; }
.faq__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.35rem; background: none; border: 0; cursor: pointer; text-align: left;
  font: 400 var(--step-lead)/1.3 var(--font-display); color: var(--ink);
}
.faq__trigger:hover { color: var(--olive); }
.faq__icon { position: relative; flex: 0 0 18px; height: 18px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: currentColor; transition: transform 200ms 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.35rem 1.25rem; }
.faq__panel.is-open { display: block; }
.faq__panel p:last-child { margin-bottom: 0; }

/* ==========================================================================
   10. INTERIOR PAGES
   ========================================================================== */
.layout-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sidebar .card { background: var(--paper-2); padding: 1.75rem; }
.sidebar h3 { margin-bottom: 0.75rem; }
.sidebar__phone { font-family: var(--font-display); font-size: var(--step-h3); color: var(--ink); text-decoration: none; }
.sidebar .btn-row { flex-direction: column; margin-top: 1.25rem; }
.panel { background: var(--paper-2); padding: 1.75rem; }

/* ==========================================================================
   11. FOOTER — the name returns at full width
   ========================================================================== */
.site-footer { background: var(--paper-2); color: var(--ink); padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.1fr 1.2fr; gap: 2.5rem; }
.footer-logo img { width: 120px; height: 120px; }
.site-footer h3 { font-size: var(--step-h3); margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-list a, .footer-legal a { color: var(--ink); }
.footer-phone { display: inline-block; font-family: var(--font-display); font-size: var(--step-h3); color: var(--ink); text-decoration: none; margin-top: 0.5rem; }
.footer-name {
  font-family: var(--font-display); color: var(--ink); letter-spacing: -0.035em; line-height: 0.9;
  font-size: clamp(2.6rem, 0.2rem + 7.6vw, 9.25rem); white-space: nowrap; margin: clamp(3rem, 2rem + 4vw, 6rem) 0 1.5rem;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem 2rem; font-size: 1rem; color: var(--ink-soft); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

.call-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--ink); padding: 8px; gap: 8px; }
.call-bar .btn { flex: 1; min-height: 48px; padding: 0.6rem 0.5rem; font-size: 1rem; }
.call-bar .btn--secondary { background: var(--paper); color: var(--ink); }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px;
  display: grid; place-items: center; background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 200ms, transform 200ms var(--ease), visibility 200ms;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }
.lightbox[hidden] { display: none; }

/* ==========================================================================
   12. MOTION — signature: the masked headline; entrances; one moving picture
   ========================================================================== */
@keyframes mask-rise { from { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); } to { clip-path: inset(0 0 -0.2em 0); transform: none; } }
@keyframes arch-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1 { animation: mask-rise 900ms var(--ease) both; }
.hero__rebate { animation: fade-up 700ms 200ms var(--ease) both; }
.hero .btn-row { animation: fade-up 700ms 350ms var(--ease) both; }
.hero__arch img { animation: arch-settle 1600ms var(--ease) both; }
[data-reveal] { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal-pending { opacity: 0; transform: translateY(24px); }

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

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-list--rows .svc-row { grid-template-columns: 20% minmax(0, 1fr) minmax(0, 0.8fr); gap: 1.5rem; }
  .svc-list--rows .svc-list__head, .svc-list--rows .svc-list__actions { margin-left: 20%; }
}
@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; background: var(--paper);
    padding: 1rem var(--gutter) 2rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { padding: 0.9rem 0; font-size: var(--step-body); width: 100%; justify-content: space-between; }
  .nav__submenu { position: static; box-shadow: none; background: var(--paper-2); min-width: 0; }
  .header-cta { flex-direction: column; align-items: stretch; margin-top: 1rem; }
  .call-bar { display: flex; }
  body { padding-bottom: 68px; }
  .to-top { bottom: 80px; }

  .hero__inner, .hero--page .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1, .hero--page h1 { max-width: none; }
  .hero__arch { width: 82%; justify-self: end; }
  .hero--page .hero__arch { width: 70%; }
  .intro-band__grid, .quote-band__grid, .why__grid, .benefits__grid, .commitments__grid,
  .detail__grid, .estimator__grid, .areas__grid, .closing__grid, .faq-wrap__grid,
  .layout-split, .svc-list--table .container { grid-template-columns: 1fr; }
  .why__grid h2, .svc-list--table .svc-list__head, .faq-wrap__media, .sidebar { position: static; }
  .commitments__actions, .svc-list--table .svc-list__actions { grid-column: auto; }
  .photo-column { flex-direction: row; align-items: flex-start; padding-top: 0; gap: 1rem; }
  .photo-column picture:nth-child(1) { width: 38%; }
  .photo-column picture:nth-child(2) { width: 62%; margin-top: 3rem; }
  .photo-column picture:nth-child(3) { display: none; }
  .areas__copy { order: 1; } .map-wrap { order: 2; }
  .faq-wrap__media { width: 64%; }
  .process h2 { margin-left: 0; }
  .process__actions { margin-left: 0; }
  .diagonal .step:nth-child(n) { margin-left: 0; }
  .diagonal .step:nth-child(2), .diagonal .step:nth-child(4) { margin-left: 12%; }
  .diagonal .step:nth-child(3), .diagonal .step:nth-child(5) { margin-left: 24%; }
}
@media (max-width: 760px) {
  .logo__name { font-size: var(--step-body); white-space: nowrap; }
  .logo img { width: 40px; height: 40px; }
  .svc-list--rows .svc-list__head, .svc-list--rows .svc-list__actions { margin-left: 0; }
  .svc-list--rows .svc-row { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 4rem; }
  .svc-list--rows .svc-row__text, .svc-list--rows .svc-row__media { grid-column: 1; }
  .svc-row__media--0 { width: 100%; aspect-ratio: 16 / 10; justify-self: start; }
  .svc-row__media--1 { width: 72%; justify-self: end; }
  .svc-row__media--2 { width: 56%; justify-self: start; }
  .svc-list--table .svc-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .svc-list--table .svc-row h3, .svc-list--table .svc-row p, .svc-list--table .svc-row__link { grid-column: 1; }
  .svc-list--table .svc-row__link { margin-top: 0; }
  .benefit-list { grid-template-columns: 1fr; gap: 1.75rem; }
  .benefit:nth-child(even) { margin-top: 0; padding-left: 12%; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; }
  .diagonal .step:nth-child(n) { margin-left: 0; }
  .diagonal .step:nth-child(even) { margin-left: 10%; }
}
@media print {
  .topbar, .site-header, .call-bar, .to-top, .hero-form, #quote, .map-wrap { display: none !important; }
  body { background: #fff; }
}

/* interior intro bands share the hero's left edge */
.intro-band > .container--narrow { max-width: var(--max); }
.intro-band > .container--narrow > * { max-width: 62ch; }
