/* Vaux Solar — site styles
   Type: Archivo (headings, semibold, slightly condensed) + Manrope (body). No italics.
   Palette (WCAG-checked):
   ink #0E2A22 · emerald #00A676 (fill / text on ink only) · emerald-ink #007A57 (text on light)
   lime #D9F2A2 (sparingly) · paper #F6F8F4 · white
   Never put white text on emerald (3.1:1). Buttons use ink text on emerald (4.9:1). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/manrope-normal-latin.woff2) format('woff2');
}

:root {
  --ink: #0E2A22;
  --ink-2: #143A2F;          /* raised surface on dark */
  --ink-soft: #3D5249;       /* body text on light, 7.9:1 on paper */
  --ink-muted: #5E7268;      /* small print on paper, 4.8:1 */
  --on-dark: #FFFFFF;
  --on-dark-soft: #B5C4BD;   /* 8.4:1 on ink */
  --on-dark-muted: #8FA39A;  /* 5.7:1 on ink */
  --emerald: #00A676;
  --emerald-hover: #2BC48F;
  --emerald-ink: #007A57;
  --emerald-light: #5BE0AE;   /* highlighted text over photos: 5.6:1 even on the brightest pixels */
  --lime: #D9F2A2;
  --paper: #F6F8F4;
  --white: #FFFFFF;
  --rule: rgba(14, 42, 34, 0.14);
  --rule-strong: rgba(14, 42, 34, 0.28);
  --rule-dark: rgba(255, 255, 255, 0.12);
  --error: #B42318;

  --display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --space-section: clamp(64px, 8vw, 112px);
  --radius: 2px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--emerald-ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display-font { font-family: var(--display); }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-ink);
}
.on-dark .eyebrow { color: var(--emerald); }
.display {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 88%;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 88%;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.6; color: var(--ink-soft); max-width: 38rem; }
.on-dark .lede { color: var(--on-dark-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; line-height: 1.55; }
.fineprint { font-size: 0.8125rem; line-height: 1.55; color: var(--ink-muted); }
.on-dark .fineprint { color: var(--on-dark-muted); }
em.accent, .accent { font-style: normal; color: var(--emerald-ink); }
.on-dark .accent { color: var(--emerald); }
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--ink-soft); max-width: 40rem; }
.prose a, .text-link { color: var(--emerald-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.on-dark .text-link { color: var(--emerald); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.65em;
  padding: 1rem 1.5rem; min-height: 48px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--emerald); color: var(--ink); }
.btn--primary:hover { background: var(--emerald-hover); }
.btn--ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.on-dark .btn--ghost { border-color: rgba(255,255,255,.35); color: var(--on-dark); }
.on-dark .btn--ghost:hover { border-color: var(--on-dark); }
.btn--lg { padding: 1.25rem 2rem; font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--on-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-name { font-family: var(--display); font-size: 1.375rem; font-weight: 700; font-stretch: 88%; letter-spacing: -0.01em; line-height: 1; }
.brand-name i { font-style: normal; font-weight: 400; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav-links { display: flex; gap: clamp(18px, 2.2vw, 34px); list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--on-dark-soft); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--emerald); }
.nav .btn { padding: 0.8rem 1.15rem; font-size: 0.75rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--on-dark);
  border-radius: var(--radius); padding: 10px 14px; min-height: 44px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--rule-dark);
    padding: 8px var(--gutter) 28px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 16px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--rule-dark); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--rule-dark); color: var(--emerald); }
  .nav .btn { margin-top: 24px; justify-content: center; padding: 1rem; font-size: 0.8125rem; }
}

/* ---------- Full-width photo headers (home hero + every inner page) ----------
   Text sits on a deep-green scrim over the photo. The scrim is at least 82%
   opaque wherever text sits, which keeps white and soft text above AA even over
   the brightest parts of a photo. */
.photo-head { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.photo-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.photo-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,42,34,.94) 0%, rgba(14,42,34,.86) 45%, rgba(14,42,34,.5) 75%, rgba(14,42,34,.3) 100%),
    linear-gradient(0deg, rgba(14,42,34,.55) 0%, rgba(14,42,34,0) 35%);
}
@media (max-width: 760px) {
  .photo-head::before { background: rgba(14,42,34,.84); }
}
.photo-head .eyebrow, .photo-head .accent { color: var(--emerald-light); }
.photo-bg--warehouse-bays { object-position: 50% 50%; }
.photo-bg--roof-sunset { object-position: 50% 60%; }

/* Home hero */
.hero .wrap {
  display: flex; align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  padding-block: clamp(64px, 9vw, 120px) clamp(72px, 9vw, 120px);
}
.hero-copy { max-width: 40rem; }
.hero-title { font-size: clamp(4.5rem, 9.5vw, 9rem); margin-top: 24px; }
.hero-title .accent { font-weight: 600; display: block; }
.hero-copy .lede { margin-top: 28px; max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 20px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head > .eyebrow { grid-column: 1 / span 3; padding-top: .9em; }
.section-head > .h2 { grid-column: 4 / span 8; }
.section-head > .lede { grid-column: 4 / span 7; }
@media (max-width: 760px) {
  .section-head > * { grid-column: 1 / -1 !important; }
  .section-head > .eyebrow { padding-top: 0; }
}

/* Steps: sticky title left, steps right */
.steps-layout { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 48px; }
.steps-intro { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + 48px); }
.steps-intro .lede { margin-top: 24px; }
.steps-intro .btn { margin-top: 36px; }
.steps { grid-column: 7 / -1; list-style: none; counter-reset: step; }
.step { border-top: 1px solid var(--rule); padding-block: 28px 40px; }
.step:last-child { padding-bottom: 0; }
.step-num { font-family: var(--display); font-weight: 600; letter-spacing: .04em; font-size: 1.125rem; color: var(--emerald-ink); }
.step .h3 { margin-top: 12px; }
.step p { margin-top: 14px; color: var(--ink-soft); max-width: 32rem; }
@media (max-width: 860px) {
  .steps-intro, .steps { grid-column: 1 / -1; position: static; }
}

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 40px; }
.calc-form { grid-column: 1 / span 5; display: grid; gap: 28px; align-content: start; }
.calc-out { grid-column: 7 / -1; }
.field label, .field legend { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.field .hint { display: block; font-size: 0.8125rem; color: var(--ink-muted); margin-top: 6px; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  font-size: 1rem; transition: border-color .2s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-soft); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--emerald-ink); outline-offset: 0; border-color: var(--emerald-ink); }
.textarea { min-height: 140px; resize: vertical; }
.input-affix { position: relative; }
.input-affix .affix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-size: 0.9375rem; pointer-events: none; }
.input-affix .affix--pre { left: 14px; }
.input-affix .affix--post { right: 14px; }
.input-affix .input.has-pre { padding-left: 32px; }
.input-affix .input.has-post { padding-right: 64px; }
.segmented { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--rule-strong); border-radius: var(--radius); margin-bottom: 12px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { margin: 0; padding: 10px 16px; font-size: 0.875rem; font-weight: 600; cursor: pointer; color: var(--ink-soft); min-height: 44px; display: flex; align-items: center; }
.segmented input:checked + label { background: var(--ink); color: var(--on-dark); }
.segmented input:focus-visible + label { outline: 2px solid var(--emerald-ink); outline-offset: 2px; }

.results { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.result { padding: 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.result dt { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.result dd { margin: 10px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }
.result dd small { font-size: 0.45em; font-family: var(--sans); color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; }
.result--key { grid-column: 1 / -1; background: var(--ink); color: var(--on-dark); }
.result--key dt { color: var(--on-dark-soft); }
.result--key dd { font-size: clamp(2.75rem, 6vw, 4.5rem); color: var(--lime); }
.result--key dd small { color: var(--on-dark-soft); }
.calc-note { margin-top: 20px; }
.calc-warn { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--emerald-ink); background: var(--white); font-size: 0.9375rem; color: var(--ink-soft); }
.calc-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }
.assumptions { margin-top: 28px; border-top: 1px solid var(--rule); }
.assumptions summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 0.9375rem; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.assumptions summary::-webkit-details-marker { display: none; }
.assumptions summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.assumptions[open] summary::after { transform: rotate(45deg); }
.assumptions ul { list-style: none; padding-bottom: 16px; }
.assumptions li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--ink-soft); }
.assumptions li b { color: var(--ink); font-weight: 600; text-align: right; }
@media (max-width: 960px) { .calc-form, .calc-out { grid-column: 1 / -1; } }
@media (max-width: 420px) { .results { grid-template-columns: 1fr; } .result { padding: 20px; } }

/* ---------- The bold moment: lime band ---------- */
.bold-band { background: var(--lime); color: var(--ink); }
.bold-band .wrap { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 28px; padding-block: clamp(56px, 7vw, 96px); align-items: end; }
.bold-figure {
  grid-column: 1 / span 7;
  font-family: var(--display); font-weight: 700; font-stretch: 85%;
  font-size: clamp(6rem, 22vw, 18rem); line-height: 0.82; letter-spacing: -0.04em;
}
.bold-figure span { display: block; font-size: 0.3em; letter-spacing: -0.02em; line-height: 1; margin-top: 0.25em; font-weight: 600; }
.bold-copy { grid-column: 8 / -1; padding-bottom: 0.6em; }
.bold-copy p { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); }
.bold-copy .btn { margin-top: 28px; }
@media (max-width: 900px) { .bold-figure, .bold-copy { grid-column: 1 / -1; } }

/* ---------- Who it's for ---------- */
.who-layout { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 44px; }
.who-intro { grid-column: 1 / span 4; }
.who-intro .lede { margin-top: 24px; }
.sectors { grid-column: 6 / -1; list-style: none; font-family: var(--display); font-weight: 500; font-stretch: 88%; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.3; letter-spacing: -0.02em; }
.sectors li { display: inline; white-space: nowrap; }
.sectors li:not(:last-child)::after { content: "·"; color: var(--emerald-ink); margin: 0 0.35em; }
.sectors li.is-alt { font-style: normal; color: var(--emerald-ink); }
.ideal { grid-column: 6 / -1; }
@media (max-width: 960px) { .who-intro, .sectors, .ideal { grid-column: 1 / -1; } }

/* Ruled checklist (no icons) */
.checklist { list-style: none; border-top: 1px solid var(--rule-strong); }
.checklist li { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.checklist .k { font-weight: 600; }
.checklist .v { color: var(--ink-soft); }
@media (max-width: 640px) { .checklist li { grid-template-columns: 1fr; } }

/* ---------- Inner page head (photo header) ---------- */
.page-head .wrap {
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 24px;
  align-content: end; min-height: clamp(400px, 58svh, 600px);
  padding-block: clamp(72px, 9vw, 120px) clamp(64px, 7vw, 96px);
}
.page-head .eyebrow { grid-column: 1 / -1; }
.page-head h1 { grid-column: 1 / span 10; font-size: clamp(3rem, 7.5vw, 6rem); }
.page-head .lede { grid-column: 1 / span 7; }
@media (max-width: 760px) { .page-head h1, .page-head .lede { grid-column: 1 / -1; } }

/* Split content block */
.split { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.split > .split-side { grid-column: 1 / span 4; }
.split > .split-main { grid-column: 6 / -1; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 48px); }
@media (max-width: 900px) {
  .split > * { grid-column: 1 / -1 !important; }
  .sticky-side { position: static; }
}

/* Comparison table */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.compare caption { text-align: left; padding-bottom: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font-family: var(--display); font-size: 1.5rem; font-weight: 600; border-bottom: 1px solid var(--rule-strong); padding-bottom: 16px; }
.compare thead th:first-child { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); vertical-align: bottom; }
.compare tbody th { font-weight: 600; width: 26%; }
.compare td { color: var(--ink-soft); }

/* FAQ */
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 26px 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.1875rem, 2vw, 1.5rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.75rem; color: var(--emerald-ink); transition: transform .25s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 28px; max-width: 42rem; color: var(--ink-soft); }
.faq .answer p + p { margin-top: 1em; }

/* Numbered list for landlords etc. */
.numbered { list-style: none; counter-reset: n; border-top: 1px solid var(--rule-strong); }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 4rem minmax(0,1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.numbered li::before { content: counter(n, decimal-leading-zero); font-family: var(--display); font-weight: 600; letter-spacing: .04em; font-size: 1.125rem; color: var(--emerald-ink); padding-top: .2em; }
.numbered h3, .numbered h4 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.numbered p { margin-top: 8px; color: var(--ink-soft); }

/* Callout (lime, used sparingly) */
.callout { background: var(--lime); padding: clamp(24px, 4vw, 40px); }
.callout p { color: var(--ink); }
.callout .h3 + p { margin-top: 12px; }

/* About: portrait placeholder */
.portrait-placeholder {
  aspect-ratio: 4 / 5; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 24px; background: var(--ink-2); color: var(--on-dark);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px);
  border: 1px dashed rgba(255,255,255,.35);
}
.portrait-placeholder strong { font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.portrait-placeholder span { font-size: 0.875rem; color: var(--on-dark-soft); }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form .field--full { grid-column: 1 / -1; }
.form .req { color: var(--emerald-ink); }
.form .opt { font-weight: 400; color: var(--ink-muted); }
.form .consent { font-size: 0.875rem; color: var(--ink-soft); }
.form .hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; padding: 16px 18px; border-left: 3px solid var(--emerald-ink); background: var(--white); }
.form-status[hidden] { display: none; }
.form-status.is-error { border-left-color: var(--error); color: var(--error); }
.field.has-error .input, .field.has-error .select { border-color: var(--error); }
.field .error-msg { display: block; font-size: 0.8125rem; color: var(--error); margin-top: 6px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-aside { border-top: 1px solid var(--rule-strong); }
.contact-aside > div { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.contact-aside dt { font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-aside dd { margin: 8px 0 0; font-family: var(--display); font-weight: 500; font-size: 1.375rem; }
.contact-aside dd a { color: var(--emerald-ink); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Closing CTA ---------- */
.closing { background: var(--ink); color: var(--on-dark); }
.closing .wrap { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 28px; padding-block: clamp(64px, 8vw, 104px); align-items: end; }
.closing h2 { grid-column: 1 / span 8; }
.closing .closing-actions { grid-column: 9 / -1; justify-self: start; }
.closing .closing-actions p { color: var(--on-dark-soft); margin-bottom: 24px; }
@media (max-width: 900px) { .closing h2, .closing .closing-actions { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); border-top: 1px solid var(--rule-dark); }
.site-footer .wrap { padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 24px; row-gap: 40px; }
.footer-brand { grid-column: 1 / span 5; }
.footer-brand p { margin-top: 20px; color: var(--on-dark-soft); max-width: 26rem; font-size: 0.9375rem; }
.footer-brand .footer-email { display: inline-block; margin-top: 24px; font-family: var(--display); font-weight: 500; font-size: 1.375rem; color: var(--emerald); text-decoration: none; border-bottom: 1px solid rgba(0,166,118,.5); }
.footer-brand .footer-email:hover { border-bottom-color: var(--emerald); }
.footer-col { grid-column: span 2; }
.footer-col:first-of-type { grid-column: 8 / span 2; }
.footer-col h2 { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--on-dark-soft); text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-col address, .footer-note { font-style: normal; color: var(--on-dark-soft); font-size: 0.9375rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule-dark); font-size: 0.8125rem; color: var(--on-dark-muted); }
.footer-base a { color: inherit; }
@media (max-width: 860px) {
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:first-of-type { grid-column: span 6; }
}

/* Utilities */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; } .mt-xl { margin-top: 72px; }
.maxw { max-width: 40rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Contact: the form section is the target of every "free roof assessment" link
   (/contact/#assessment). Tighter top padding so the form is in view on arrival;
   scroll-margin keeps the heading clear of the sticky header. The html
   scroll-padding is zeroed for this target so the two offsets don't stack. */
.section--form { padding-top: clamp(32px, 4vw, 56px); }
#assessment { scroll-margin-top: var(--header-h); }
html:has(#assessment) { scroll-padding-top: 0; }

/* Contact: form first in the source, details on the left on wide screens */
@media (min-width: 901px) { .split--form > .split-side { grid-row: 1; } }

@media (max-width: 480px) {
  .btn--lg { padding: 1rem 1.25rem; font-size: 0.8125rem; letter-spacing: 0.08em; }
}
