/* Westchester Roof Pros — site styles
   Palette: slate + patina (aged copper) on limestone.
   Type: Archivo (wide display + UI), Source Serif 4 (long-form reading). */

:root {
  --slate-950: #141D23;
  --slate-900: #1C2830;
  --slate-800: #26353F;
  --slate-700: #34444F;
  --slate-500: #5E6E78;
  --slate-300: #A9B4BA;
  --slate-200: #CDD4D8;
  --slate-100: #E3E7E9;
  --limestone: #F1F2EE;
  --paper: #FFFFFF;
  --patina: #1D6B5A;
  --patina-700: #155244;
  --patina-300: #7FB3A3;
  --patina-100: #DCEBE5;
  --alert: #9A3B2E;
  --alert-100: #F6E3DF;

  --ink: var(--slate-900);
  --ink-soft: var(--slate-700);
  --ink-mute: var(--slate-500);
  --rule: var(--slate-200);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-read: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* modular scale, ratio 1.25 */
  --t-xs: .8rem;
  --t-sm: .9rem;
  --t-md: 1rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5625rem;
  --t-2xl: 1.953rem;
  --t-3xl: 2.441rem;
  --t-4xl: 3.052rem;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 4px;
  --radius: 8px;
  --pitch: clamp(36px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: var(--t-md);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--patina); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--patina-700); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--patina-300); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  color: inherit;
  margin: 0 0 .5em;
  letter-spacing: -.012em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.03; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, var(--t-3xl)); line-height: 1.1; font-weight: 750; }
h3 { font-size: var(--t-lg); line-height: 1.25; font-weight: 700; }
h4 { font-size: var(--t-md); line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }

.prose {
  font-family: var(--f-read);
  font-size: 1.125rem;
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: 68ch;
}
.prose h2 { color: var(--ink); margin-top: 2.2em; font-size: clamp(1.45rem, 2.4vw, var(--t-2xl)); }
.prose h3 { color: var(--ink); margin-top: 1.8em; font-size: var(--t-lg); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--patina); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote { margin: 1.5em 0; padding: .25em 0 .25em 1.25em; border-left: 3px solid var(--patina); color: var(--ink); }
.prose .note {
  font-family: var(--f-ui); font-size: var(--t-sm); line-height: 1.55; color: var(--ink-mute);
  border-top: 1px solid var(--rule); padding-top: .9em; margin-top: 2em;
}
.lede { font-family: var(--f-read); font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 60ch; }
.kicker { font-family: var(--f-ui); font-weight: 600; font-size: var(--t-sm); color: var(--patina); margin: 0 0 .6rem; letter-spacing: .01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-ui); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 1em 1.4em; min-height: 48px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--patina); color: #fff; }
.btn-primary:hover { background: var(--patina-700); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--slate-300); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.on-slate .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.on-slate .btn-ghost:hover { border-color: #fff; color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header { background: var(--limestone); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand svg { width: 40px; height: 32px; flex: none; }
.brand-name { font-family: var(--f-display); font-variation-settings: "wdth" 118; font-stretch: 118%; font-weight: 800; font-size: 1.12rem; line-height: 1; letter-spacing: -.01em; }
.brand-name small { display: block; white-space: nowrap; font-variation-settings: "wdth" 100; font-stretch: 100%; font-weight: 500; font-size: .74rem; color: var(--ink-mute); letter-spacing: .01em; margin-top: .3em; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--patina); }
.nav-group { position: relative; }
.nav-group > button {
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); background: none; border: 0; padding: .5rem 0; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .3em;
}
.nav-group > button::after { content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: -1rem; min-width: 290px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: .5rem;
  box-shadow: 0 18px 40px -18px rgba(20,29,35,.35);
  display: none;
}
.nav-group.open .nav-menu { display: block; }
.nav-menu a { display: block; padding: .6rem .75rem; border-radius: var(--radius-sm); font-weight: 600; }
.nav-menu a span { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-mute); }
.nav-menu a:hover { background: var(--limestone); }
.header-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .4em; }
.header-phone svg { width: 18px; height: 18px; color: var(--patina); }
.header-cta { padding: .8em 1.1em; min-height: 44px; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1240px) {
  .nav { display: none; }
}
@media (max-width: 1240px) {
  .header-phone-label { display: inline; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header.nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1rem; box-shadow: 0 20px 30px -20px rgba(20,29,35,.4);
    max-height: calc(100vh - 76px); overflow: auto;
  }
  .site-header.nav-open .nav > a, .site-header.nav-open .nav-group > button { padding: .85rem 0; border-bottom: 1px solid var(--slate-100); width: 100%; text-align: left; }
  .site-header.nav-open .nav-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 .5rem; min-width: 0; }
  .site-header.nav-open .nav-group > button::after { display: none; }
}
@media (max-width: 560px) {
  .header-cta, .header-phone-label { display: none; }
  .brand-name small { display: none; }
  .site-header .wrap { gap: .75rem; }
}

/* ---------- The roof hero ---------- */
.roof {
  --shingle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='36' viewBox='0 0 64 36'%3E%3Cg fill='none' stroke='%23314350' stroke-width='1.2'%3E%3Cpath d='M0 17.5h64M0 35.5h64M16 0v17.5M48 0v17.5M0 18v17.5M32 18v17.5M64 18v17.5'/%3E%3C/g%3E%3C/svg%3E");
  position: relative;
  color: #fff;
  background-color: var(--slate-900);
  background-image: linear-gradient(180deg, rgba(28,40,48,0) 0%, rgba(28,40,48,.55) 70%, var(--slate-900) 100%), var(--shingle);
  background-size: auto, 64px 36px;
  clip-path: polygon(0 var(--pitch), 50% 0, 100% var(--pitch), 100% 100%, 0 100%);
  padding: calc(var(--pitch) + clamp(28px, 5vw, 64px)) 0 clamp(48px, 7vw, 96px);
  margin-top: 4px;
}
/* ridge cap — a copper-patina line riding the gable */
.roof-ridge { position: absolute; inset: 0 0 auto 0; height: calc(var(--pitch) + 6px); pointer-events: none; }
.roof-ridge svg { width: 100%; height: 100%; display: block; }
.roof a:not(.btn) { color: var(--patina-300); }
.roof .lede { color: var(--slate-200); }
.roof h1 { color: #fff; max-width: 17ch; }
.roof-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.roof-grid.single { grid-template-columns: minmax(0, 1fr); }
.roof-copy { padding-top: .5rem; }
.proof { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .9rem; max-width: 34rem; }
.proof li { display: grid; grid-template-columns: 26px 1fr; gap: .75rem; align-items: start; color: var(--slate-100); font-size: .98rem; }
.proof li strong { color: #fff; font-weight: 700; display: block; }
@media (max-width: 700px) { .proof .pd { display: none; } .proof { gap: .55rem; margin-top: 1.25rem; } .roof .lede { font-size: 1.05rem; } }
.proof svg { width: 22px; height: 22px; color: var(--patina-300); margin-top: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.crumbs { font-size: var(--t-sm); color: var(--slate-300); margin: 0 0 1rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--slate-500); }
.crumbs a { color: var(--slate-200) !important; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.facts-line { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: var(--t-sm); color: var(--slate-300); }
.facts-line strong { color: #fff; font-weight: 600; }

@media (max-width: 900px) {
  .roof-grid { grid-template-columns: 1fr; }
  .roof { --pitch: 34px; }
}

/* ---------- Lead form (multi-step) ---------- */
.lead {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(20,29,35,.06);
  padding: clamp(20px, 3vw, 30px);
  position: relative;
}
.lead-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .35rem; }
.lead-title { font-family: var(--f-display); font-variation-settings: "wdth" 110; font-stretch: 110%; font-size: 1.3rem; font-weight: 800; margin: 0; line-height: 1.15; }
.lead-step-count { font-size: var(--t-xs); color: var(--ink-mute); white-space: nowrap; font-weight: 600; }
.lead-sub { font-size: var(--t-sm); color: var(--ink-mute); margin: 0 0 1rem; }
.lead-progress { height: 4px; background: var(--slate-100); border-radius: 2px; overflow: hidden; margin-bottom: 1.25rem; }
.lead-progress span { display: block; height: 100%; width: 16%; background: var(--patina); transition: width .3s ease; }
.lead fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lead legend { font-weight: 700; font-size: 1.05rem; margin-bottom: .85rem; padding: 0; line-height: 1.3; }
.step { display: none; }
.step.active { display: block; animation: stepIn .25s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.choices { display: grid; gap: .5rem; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span {
  display: flex; align-items: center; gap: .7rem;
  border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm);
  padding: .8rem .9rem; font-weight: 600; font-size: .95rem; line-height: 1.25;
  transition: border-color .12s ease, background-color .12s ease;
  min-height: 48px;
}
.choice > span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--slate-300); flex: none; background: #fff; }
.choice > span small { display: block; font-weight: 400; color: var(--ink-mute); font-size: .82rem; margin-top: .1rem; }
.choice:hover > span { border-color: var(--slate-500); }
.choice input:checked + span { border-color: var(--patina); background: var(--patina-100); }
.choice input:checked + span::before { border: 5px solid var(--patina); }
.choice input:focus-visible + span { outline: 3px solid var(--patina-300); outline-offset: 2px; }
.field { display: grid; gap: .3rem; margin-bottom: .8rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm);
  padding: .75rem .8rem; background: #fff; width: 100%; min-height: 48px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--patina); outline: none; box-shadow: 0 0 0 3px var(--patina-100); }
.field .hint { font-size: .8rem; color: var(--ink-mute); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field-row .field { margin-bottom: .8rem; }
.field.invalid input, .field.invalid select { border-color: var(--alert); }
.field .err { color: var(--alert); font-size: .82rem; display: none; }
.field.invalid .err { display: block; }
.consent { font-size: .76rem; line-height: 1.5; color: var(--ink-mute); margin: .5rem 0 1rem; display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: start; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--patina); }
.consent a { color: var(--ink-mute); }
.consent.invalid { color: var(--alert); }
.lead-nav { display: flex; gap: .6rem; margin-top: 1.1rem; }
.lead-nav .btn { flex: 1; }
.lead-nav .btn-back { flex: 0 0 auto; background: none; border-color: var(--slate-200); color: var(--ink); padding-inline: 1.1em; }
.lead-nav .btn-back:hover { border-color: var(--ink); }
.lead-nav .btn[hidden] { display: none; }
.lead-error { display: none; background: var(--alert-100); color: var(--alert); border-radius: var(--radius-sm); padding: .75rem .9rem; font-size: .9rem; margin-top: 1rem; }
.lead-error.show { display: block; }
.lead-assure { display: flex; gap: .5rem; align-items: center; font-size: .8rem; color: var(--ink-mute); margin: 1rem 0 0; }
.lead-assure svg { width: 16px; height: 16px; color: var(--patina); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead.sending .btn-submit { opacity: .7; pointer-events: none; }
@media (max-width: 420px) { .choices.two, .field-row { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section.paper { background: var(--paper); }
.section.slate { background: var(--slate-900); color: #fff; }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-soft); font-family: var(--f-read); font-size: 1.15rem; line-height: 1.6; }
.slate .section-head p { color: var(--slate-200); }

/* credentials: two plaques with a shared spine */
.creds { display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--ink); }
.cred { padding: 2rem clamp(0px, 3vw, 2.5rem) 0 0; }
.cred + .cred { border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 2.5rem); }
.cred-mark { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.cred-mark .seal { width: 58px; height: 58px; flex: none; }
.cred-mark .maker { font-size: var(--t-sm); color: var(--ink-mute); font-weight: 600; }
.cred h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0; }
.cred p { color: var(--ink-soft); }
.cred dl { margin: 1.25rem 0 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.25rem; font-size: .95rem; }
.cred dt { color: var(--ink-mute); }
.cred dd { margin: 0; font-weight: 600; }
@media (max-width: 820px) {
  .creds { grid-template-columns: 1fr; }
  .cred + .cred { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; margin-top: 2rem; }
  .cred { padding-right: 0; }
}

/* process: a true sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 1.5rem 1.5rem 0 0; border-top: 1px solid var(--slate-700); position: relative; }
.steps li::before {
  content: counter(s); position: absolute; top: -18px; left: 0;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--patina); color: #fff; font-weight: 800; font-size: .95rem;
}
.steps h3 { margin-top: 1rem; color: #fff; }
.steps p { color: var(--slate-200); font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* roof system diagram */
.system { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.system figure { margin: 0; }
.system figcaption { font-size: var(--t-sm); color: var(--ink-mute); margin-top: .75rem; }
.layer-list { list-style: none; padding: 0; margin: 0; }
.layer-list li { display: grid; grid-template-columns: 28px 1fr; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.layer-list li:first-child { border-top: 1px solid var(--rule); }
.layer-list b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--slate-900); color: #fff; font-size: .75rem; }
.layer-list strong { display: block; }
.layer-list span { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 900px) { .system { grid-template-columns: 1fr; } }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
table.data th, table.data td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--slate-100); vertical-align: top; }
table.data thead th { background: var(--slate-900); color: #fff; font-weight: 700; font-size: .85rem; }
table.data tbody th { font-weight: 700; }
table.data tr.ours { background: var(--patina-100); }
table.data tr.ours th::after { content: "We offer"; display: inline-block; margin-left: .5rem; font-size: .7rem; font-weight: 700; color: #fff; background: var(--patina); padding: .15rem .45rem; border-radius: 3px; vertical-align: 1px; }
.table-note { font-size: var(--t-sm); color: var(--ink-mute); margin-top: .75rem; max-width: 72ch; }
.prose .table-scroll { margin: 1.5em 0; font-family: var(--f-ui); }

/* topic list (education) — a list, not a card grid */
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
.topics li { border-top: 1px solid var(--rule); }
.topics a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1.2rem 0; text-decoration: none; color: var(--ink); }
.topics a strong { font-family: var(--f-display); font-variation-settings: "wdth" 108; font-stretch: 108%; font-size: 1.15rem; }
.topics a span { grid-column: 1; color: var(--ink-soft); font-size: .95rem; }
.topics a::after { content: ""; grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 10px; height: 10px; border-top: 2px solid var(--patina); border-right: 2px solid var(--patina); transform: rotate(45deg); }
.topics a:hover strong { color: var(--patina); }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }

/* service areas */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem clamp(20px, 3vw, 40px); }
.areas h3 { font-size: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: .75rem; }
.areas ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.areas li { padding: .28rem 0; }
.areas a { color: var(--ink); text-decoration: none; font-weight: 500; }
.areas a:hover { color: var(--patina); text-decoration: underline; }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .areas { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 52rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 1.5rem; width: 9px; height: 9px; border-right: 2px solid var(--patina); border-bottom: 2px solid var(--patina); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq .answer { font-family: var(--f-read); font-size: 1.06rem; line-height: 1.65; color: var(--ink-soft); padding: 0 0 1.3rem; max-width: 66ch; }

/* article layout (education + town pages) */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.aside { position: sticky; top: 24px; display: grid; gap: 1.25rem; }
.aside-box { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.35rem; }
.aside-box h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.aside-box p { font-size: .93rem; color: var(--ink-soft); }
.aside-box ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.aside-box li { padding: .4rem 0; border-top: 1px solid var(--slate-100); }
.aside-box li:first-child { border-top: 0; }
.aside-box .btn { width: 100%; }
.aside-cta { background: var(--slate-900); color: #fff; border: 0; }
.aside-cta p { color: var(--slate-200); }
.aside-cta .phone-big { display: block; font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none; margin: .5rem 0 0; }
@media (max-width: 980px) { .article { grid-template-columns: 1fr; } .aside { position: static; } }

/* town pages */
.considerations { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.5rem; }
.considerations li { padding-left: 1.25rem; border-left: 3px solid var(--patina); }
.considerations h3 { margin-bottom: .35rem; font-size: 1.12rem; }
.considerations p { margin: 0; font-family: var(--f-read); font-size: 1.06rem; line-height: 1.62; color: var(--ink-soft); }
.callout { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--slate-900); border-radius: var(--radius-sm); padding: 1.25rem 1.4rem; margin: 2rem 0; font-family: var(--f-ui); font-size: .98rem; color: var(--ink-soft); line-height: 1.6; }
.callout h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }
.permit dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: .75rem 0; font-size: .95rem; }
.permit dt { color: var(--ink-mute); }
.permit dd { margin: 0; font-weight: 600; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.chips li { background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .8rem; font-size: .88rem; }
.chips a { text-decoration: none; color: var(--ink); font-weight: 600; }
.chips a:hover { color: var(--patina); }

/* lifespan bars */
.bars { list-style: none; padding: 0; margin: 1.5em 0; font-family: var(--f-ui); display: grid; gap: .7rem; }
.bars li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: center; font-size: .92rem; }
.bars .track { height: 28px; background: var(--slate-100); border-radius: 3px; position: relative; }
.bars .fill { position: absolute; top: 0; bottom: 0; background: var(--slate-700); border-radius: 3px; }
.bars .fill.asphalt { background: var(--patina); }
.bars .val { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: .82rem; white-space: nowrap; padding-left: .5rem; color: var(--ink); }
.bars-scale { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; font-size: .75rem; color: var(--ink-mute); font-family: var(--f-ui); }
.bars-scale div { display: flex; justify-content: space-between; }
@media (max-width: 560px) { .bars li, .bars-scale { grid-template-columns: 1fr; gap: .3rem; } .bars-scale > span { display: none; } }

/* figure in prose */
.prose figure { margin: 2em 0; }
.prose figcaption { font-family: var(--f-ui); font-size: var(--t-sm); color: var(--ink-mute); margin-top: .6rem; }
.diagram { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(12px, 2vw, 24px); }

/* checklist */
.checklist { list-style: none; padding: 0 !important; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: .45rem; height: .85rem; border-right: 2.5px solid var(--patina); border-bottom: 2.5px solid var(--patina); transform: rotate(40deg); }

/* CTA band */
.cta-band { background: var(--patina); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { margin: 0; color: var(--patina-100); max-width: 46ch; }
.cta-band .btn-light { background: #fff; color: var(--patina-700); }
.cta-band .btn-light:hover { background: var(--limestone); color: var(--patina-700); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--slate-950); color: var(--slate-300); font-size: .92rem; padding: clamp(48px, 6vw, 72px) 0 calc(28px + env(safe-area-inset-bottom)); }
.site-footer a { color: var(--slate-200); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h3 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: .25rem 0; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name small { color: var(--slate-300); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; }
.footer-legal { border-top: 1px solid var(--slate-800); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .78rem; line-height: 1.6; color: var(--slate-500); }
.footer-legal p { max-width: 110ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* mobile sticky action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(241,242,238,.96); backdrop-filter: blur(6px);
    border-top: 1px solid var(--rule);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { min-height: 46px; padding: .8em; font-size: .95rem; }
  body { padding-bottom: 0; }
}

/* thank-you + simple pages */
.simple { max-width: 46rem; }
.next-list { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: n; }
.next-list li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.next-list li::before { content: counter(n); width: 30px; height: 30px; border-radius: 50%; background: var(--patina); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }

.muted { color: var(--ink-mute); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* prose overrides for structured lists */
.prose .considerations, .prose .chips, .prose .layer-list, .prose .bars, .prose .next-list { padding-left: 0; }
.prose .chips { font-family: var(--f-ui); }
.prose .considerations li, .prose .chips li { margin-bottom: 0; }
.bars li.scale { height: 1.2rem; }
.bars .ticks { position: relative; height: 100%; font-size: .75rem; color: var(--ink-mute); }
.bars .ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.bars .ticks span:first-child { transform: none; }
.bars .ticks span:last-child { transform: translateX(-100%); }
@media (max-width: 560px) { .bars li.scale > span:first-child { display: none; } }

/* ---------- official badges (assets/img/badges) ---------- */
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.badge-row .badge { height: 64px; width: auto; max-width: 160px; object-fit: contain; background: #fff; border-radius: 6px; padding: 6px 8px; box-sizing: content-box; }
.footer-badges { margin-top: 1rem; }
.footer-badges .badge { height: 48px; }
.cred-mark .seal-img { height: 72px; width: auto; max-width: 150px; object-fit: contain; flex: none; }
@media (max-width: 700px) { .roof .badge-row .badge { height: 48px; } }

/* ---------- job photo galleries (assets/img/projects/<town>) ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 2rem; }
.gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.photo a { display: block; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--slate-100); }
.photo figcaption { font-family: var(--f-ui); font-size: .88rem; line-height: 1.45; color: var(--ink-soft); padding: .7rem .85rem .8rem; }
.photo-tag { display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: var(--slate-900); border-radius: 3px; padding: .1rem .45rem; margin-right: .45rem; vertical-align: 1px; }
.prose .gallery { font-family: var(--f-ui); }
@media (max-width: 900px) { .gallery-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery, .gallery-3 { grid-template-columns: 1fr; } }
.prose .photo { margin: 0; }

/* Authorized-representative disclosure */
.rep-strip { background: var(--slate-900); color: var(--slate-200); font-family: var(--f-ui); font-size: .78rem; line-height: 1.4; }
.rep-strip .wrap { padding-top: .45rem; padding-bottom: .45rem; text-align: center; }
.rep-strip strong { color: #fff; font-weight: 700; }
.lead-who { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; align-items: start; font-size: .82rem; line-height: 1.5; color: var(--ink-soft); background: var(--patina-100); border-radius: 6px; padding: .7rem .8rem; margin: .75rem 0 .5rem; }
.lead-who svg { width: 18px; height: 18px; color: var(--patina); margin-top: 1px; }
@media (max-width: 600px) { .rep-strip-more { display: none; } }
