@import url("fonts.css");

/* Roofing Los Angeles: contractor-standard system (2026-09-29).
   Photographic, residential, one warm accent for the primary action. */
:root {
  --navy: #13233a;        /* trust bands, footer, hero overlay */
  --navy-2: #1d3353;      /* hover / secondary dark */
  --ink: #18212d;         /* body text */
  --ink-2: #4a5462;       /* secondary text */
  --line: #e3ddd3;        /* hairlines */
  --warm: #f6f3ee;        /* alternate content band */
  --white: #ffffff;
  --accent: #f5c400;      /* primary action only */
  --accent-hover: #ffd83d;
  --notice: #1f5fa8;      /* decision table: repair; links */
  --caution: #f5c400;     /* decision table: restore */
  --warning: #c2410c;     /* decision table: replace; emergency */
  --safe: #0b7a3e;        /* form success only */
  --danger: #c8102e;      /* form error only */
  --radius: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --pad-x: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  --measure: 68ch;
  --fs-small: 0.9rem;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 10px 22px -12px rgba(19, 35, 58, 0.35), 0 2px 5px rgba(19, 35, 58, 0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--navy) var(--warm); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); caret-color: var(--notice); }
::selection { background: var(--accent); color: var(--navy); }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--notice); }
:focus-visible { outline: 3px solid var(--notice); outline-offset: 3px; border-radius: 4px; }
p, li, dd { max-width: var(--measure); }
h1, h2, h3 { margin: 0; text-wrap: balance; color: var(--navy); }
h1 { font: 800 clamp(2.6rem, 5.4vw, 4.6rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
h1 em { font: 600 clamp(1.25rem, 2.2vw, 1.75rem)/1.2 var(--display); display: block; margin-top: 0.45em; text-transform: none; letter-spacing: 0; font-style: normal; color: inherit; opacity: 0.9; }
h2 { font: 800 clamp(2rem, 3.8vw, 3rem)/1.02 var(--display); letter-spacing: -0.005em; margin-bottom: 0.55em; }
h3 { font: 700 1.3rem/1.2 var(--text); margin: 1.5em 0 0.4em; }
table, .tnum { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--navy); padding: 10px 14px; font-weight: 600; z-index: 99; border-radius: 6px; }
.skip:focus { top: 12px; }
.skip:hover, .skip:focus { color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 2px solid transparent; border-radius: 8px; font: 700 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out), color 180ms var(--ease-out); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--go { background: var(--accent); color: var(--navy); }
.btn--go:hover, a.btn--go:hover, .btn--go:focus-visible { background: var(--accent-hover); color: var(--navy); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ── Header ──────────────────────────────────────────────────────────── */
.band { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--navy); color: #d7deea; font-size: 0.88rem; }
.topbar__in { max-width: var(--wrap); margin: 0 auto; padding: 7px var(--gutter); display: flex; justify-content: space-between; gap: 16px; }
.topbar__r { font-weight: 600; color: #fff; }
.band__in { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 28px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font: 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.mark:hover { color: var(--navy); }
.mark__plate { width: 44px; height: 44px; flex: none; }
.mark small { display: block; margin-top: 4px; font: 600 0.82rem/1 var(--text); text-transform: none; letter-spacing: 0.01em; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font: 700 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.nav > a, .navmenu summary { color: var(--navy); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav > a:hover, .nav > a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--navy); }
.band .btn--go { min-height: 46px; font-size: 1.05rem; }
.navmenu { position: relative; }
.navmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; }
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.navmenu[open] summary, .navmenu.is-active summary, .navmenu summary:hover { border-bottom-color: var(--accent); }
.navmenu ul { position: absolute; top: calc(100% + 12px); left: -18px; z-index: 60; min-width: 280px; list-style: none; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 2px; }
.navmenu li a { display: block; padding: 9px 12px; border-radius: 8px; font: 600 1rem/1.25 var(--text); text-transform: none; letter-spacing: 0; color: var(--ink); text-decoration: none; }
.navmenu li a:hover, .navmenu li a[aria-current="page"] { background: var(--warm); color: var(--navy); }
.sitemenu { display: none; margin-left: auto; }
.sitemenu summary { list-style: none; cursor: pointer; font: 700 1rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); border: 2px solid var(--navy); border-radius: 8px; padding: 10px 14px; }
.sitemenu summary::-webkit-details-marker { display: none; }
.sitemenu__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter) 24px; max-height: calc(100vh - 110px); overflow-y: auto; }
.sitemenu__h { margin: 16px 0 4px; color: var(--ink-2); font: 700 0.85rem/1 var(--text); text-transform: uppercase; letter-spacing: 0.08em; }
.sitemenu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sitemenu li a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.sitemenu li a[aria-current="page"] { color: var(--notice); font-weight: 600; }

/* ── Hero: photo, navy gradient, form card ──────────────────────────── */
.hero--photo { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 22, 38, 0.82) 0%, rgba(12, 22, 38, 0.6) 40%, rgba(12, 22, 38, 0.18) 72%, rgba(12, 22, 38, 0.1) 100%); }
.hero__in { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); min-height: clamp(560px, 82vh, 800px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero--photo h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero--photo .lede, .trust li { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }
.hero--photo .lede { color: #e6ebf2; font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin: 1.1em 0 0; }
.hero--photo .actions { margin-top: 1.6em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 1.8em 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 28px; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.trust svg { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: settle 1400ms var(--ease-out) both; }
  @keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
}
.hero-form { background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.6); overflow: hidden; scroll-margin-top: 120px; }
.hero-form__head { margin: 0; padding: 18px 22px 4px; font: 800 1.5rem/1.1 var(--display); color: var(--navy); }
.hero-form .form { padding: 12px 22px 22px; gap: 12px; grid-template-columns: 1fr 1fr; }
.hero-form .field:has(textarea), .hero-form .form-promise, .hero-form .consent, .hero-form .form > div:last-of-type, .hero-form .form-status { grid-column: 1 / -1; }
.hero-form .field textarea { min-height: 88px; }
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; min-height: 0; padding-bottom: 0; }
  .hero--photo::before { background: linear-gradient(180deg, rgba(12, 22, 38, 0.55) 0%, rgba(12, 22, 38, 0.72) 45%, rgba(12, 22, 38, 0.92) 100%); }
  .hero-form { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; box-shadow: none; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .hero-form .form { grid-template-columns: 1fr; } }

/* ── Content bands ───────────────────────────────────────────────────── */
main { display: block; }
.plate { padding: clamp(56px, 7vw, 96px) var(--pad-x); background: var(--white); }
main > .plate:nth-of-type(even) { background: var(--warm); }
.plate > :first-child, .plate__body > :first-child { margin-top: 0; }
.plate--flush { padding: 0; }
.plate__head { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 16px var(--pad-x); font: 700 1.1rem/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.05em; }
.plate__head svg { width: 26px; height: 26px; flex: none; }
.plate__head--warning { background: var(--warning); color: #fff; }
.plate__body { padding: clamp(40px, 6vw, 80px) var(--pad-x); }
.plate--ink, .plate--navy { background: var(--navy) !important; color: #e8edf4; }
.plate--ink h2, .plate--navy h2, .plate--ink h3, .plate--navy h3 { color: #fff; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.split { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.split > *, .decide > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.cta-line, .plate__cta-line { margin: 1.6em 0 0; max-width: var(--measure); font-weight: 600; font-size: 1.12rem; line-height: 1.45; }
.src { font-size: var(--fs-small); color: var(--ink-2); }
.plate--ink .src { color: #b9c3d2; }

/* Service photo cards (home) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 1.4em; }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 0; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { padding: 20px 22px 24px; }
.card__body h3 { margin: 0 0 0.35em; font-size: 1.35rem; }
.card__body h3 a { text-decoration: none; color: var(--navy); }
.card__body h3 a:hover { color: var(--notice); }
.card__body p { margin: 0; color: var(--ink-2); }
.more-services { margin-top: 2.2em; }
.more-services h3 { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 0.98rem; background: #fff; }
.tags--links li { padding: 0; }
.tags--links a { display: block; padding: 8px 16px; text-decoration: none; color: var(--navy); }
.tags--links li:hover { border-color: var(--navy); }

/* How it works */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.2em 0 2em; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; max-width: none; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--navy); font: 800 1.4rem/1 var(--display); margin-bottom: 14px; }
.steps strong { display: block; color: #fff; font: 700 1.25rem/1.2 var(--text); margin-bottom: 6px; }
.steps span { color: #cfd8e4; }

/* Lists */
.schedule { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.schedule > li { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); gap: 8px 36px; padding: 24px 0; border-bottom: 1px solid var(--line); max-width: none; }
.schedule h3 { margin: 0; font-size: 1.3rem; }
.schedule p { margin: 0; }
.schedule p + p { margin-top: 0.7em; }
@media (max-width: 720px) { .schedule > li { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.2 3 3 6-6.4' fill='none' stroke='%2313233a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.checklist { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.checklist li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); max-width: none; }
.checklist li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy); color: #fff; font: 800 1.15rem/1 var(--display); }
.checklist strong { display: block; font: 700 1.1rem/1.3 var(--text); color: var(--navy); margin-bottom: 2px; }
.redflags { margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: #fff4ee; }
.redflags h3 { margin: 0; padding: 14px 18px 0; font-size: 1.15rem; display: flex; gap: 10px; align-items: center; color: #9a3412; }
.redflags h3 svg { width: 22px; height: 22px; }
.redflags p { margin: 0; padding: 8px 18px 18px; }

/* Rules and notices */
.notices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.notice-plate { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
main > .plate:nth-of-type(odd) .notice-plate { background: var(--warm); border-color: transparent; }
main > .plate:nth-of-type(even) .card { box-shadow: 0 1px 2px rgba(19, 35, 58, 0.08); }
.notice-plate h3 { margin: 0; padding: 18px 20px 0; font-size: 1.2rem; color: var(--navy); }
.notice-plate > div { padding: 8px 20px 20px; }
.notice-plate p { margin: 0 0 0.7em; }

/* Data tables */
.figures { width: 100%; border-collapse: collapse; margin: 1em 0; }
.figures th, .figures td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.figures thead th { font: 700 0.85rem/1.2 var(--text); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); border-bottom: 2px solid var(--navy); }
.figures td:last-child { font-weight: 600; }
@media (max-width: 700px) {
  .figures { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .figures th, .figures td { min-width: 7.5rem; }
  .figures th:first-child, .figures td:first-child { min-width: 8.5rem; }
}

/* Decision table (signal colors live only here) */
.decide { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .decide { grid-template-columns: 1fr; } .decide__signs { order: -1; } }
.decide table { width: 100%; border-collapse: collapse; }
.decide th, .decide td { text-align: left; padding: 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.decide thead th { font: 700 0.85rem/1 var(--text); text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 0; color: var(--ink-2); border-bottom: 2px solid var(--navy); }
.row-btn { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 16px 16px 16px 0; cursor: pointer; line-height: 1.45; }
.row-btn:focus-visible { outline: 3px solid var(--notice); outline-offset: -3px; }
.decide td:last-child { width: 13.5rem; padding: 8px 0; }
.chip { display: inline-block; padding: 7px 11px; border-radius: 6px; font: 700 0.95rem/1.15 var(--text); text-wrap: balance; }
.chip.is-notice { background: var(--notice); color: #fff; }
.chip.is-caution { background: var(--caution); color: var(--navy); }
.chip.is-warning { background: var(--warning); color: #fff; }
.decide tbody tr[aria-current="true"] { background: var(--warm); }
.decide tbody tr[aria-current="true"] .row-btn { font-weight: 600; }
.ladder { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.sign { display: grid; grid-template-columns: auto 1fr; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sign__signal { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font: 700 1rem/1 var(--text); min-width: 7.5rem; }
.sign__signal svg { width: 20px; height: 20px; flex: none; }
.sign__text { padding: 10px 14px; line-height: 1.3; }
.sign__text strong { display: block; font: 700 1.15rem/1.1 var(--text); color: var(--navy); }
.sign__text span { font-size: 0.93rem; color: var(--ink-2); }
.is-notice .sign__signal { background: var(--notice); color: #fff; }
.is-caution .sign__signal { background: var(--caution); color: var(--navy); }
.is-warning .sign__signal { background: var(--warning); color: #fff; }
.decide__signs .sign { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.decide__signs[data-lit] .sign { opacity: 0.3; }
.decide__signs[data-lit="notice"] .is-notice, .decide__signs[data-lit="caution"] .is-caution, .decide__signs[data-lit="warning"] .is-warning { opacity: 1; transform: scale(1.02); }
.decide__note { margin-top: 16px; font-size: 0.95rem; color: var(--ink-2); min-height: 3em; }
.section-dia { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px; margin: 0 0 12px; }
.section-dia svg { width: 100%; height: auto; }
.section-dia figcaption { font-size: var(--fs-small); color: var(--ink-2); padding: 8px 4px 0; }
.dia-label { font: 600 13px var(--text); fill: var(--navy); }

/* Photography */
.shots { display: grid; gap: 16px; margin: 0.8em 0 1.8em; }
.shots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .shots--3, .shots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .shots--2, .shots--3 { grid-template-columns: 1fr; } }
.shots figure, .shot { margin: 0; }
.shots img, .shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--warm); }
.shots figcaption, .shot figcaption { margin-top: 8px; font-size: var(--fs-small); line-height: 1.4; color: var(--ink-2); }
.shots figcaption { font-weight: 600; color: var(--navy); font-size: 0.98rem; }
.shot { margin: 1.2em 0 1.6em; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font: 600 clamp(1.08rem, 1.7vw, 1.25rem)/1.35 var(--text); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313233a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/15px no-repeat; transition: transform 200ms var(--ease-out); }
main > .plate:nth-of-type(even) .faq summary::after { background-color: #fff; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; }
.faq details > div p { margin: 0; }

/* Forms */
.form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font: 600 0.95rem/1.2 var(--text); margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; font: 400 1.05rem/1.4 var(--text); color: var(--ink); background: #fff; border: 1.5px solid #c9c2b6; border-radius: 8px; padding: 12px; min-height: 50px; transition: border-color 160ms var(--ease-out); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5b6573; }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger); }
.field .err { color: var(--danger); font-weight: 600; font-size: 0.93rem; margin: 4px 0 0; }
.opt { font-weight: 400; color: var(--ink-2); }
.hint { margin: 4px 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.form-promise { grid-column: 1 / -1; margin: 0; font-weight: 600; font-size: 0.98rem; line-height: 1.4; color: var(--navy); }
.consent { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--ink-2); }
.form-status { grid-column: 1 / -1; border-radius: 8px; padding: 12px 14px; font-weight: 600; margin: 0; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { background: var(--safe); color: #fff; }
.form-status[data-state="error"] { background: var(--danger); color: #fff; }
.cta h2 { color: #fff; }
.cta .lede { color: #d4dce8; }
.cta .field label, .cta .form-promise { color: #fff; }
.cta .opt, .cta .hint, .cta .consent { color: #b9c3d2; }
.cta .consent a { color: var(--accent); }
.cta .field input, .cta .field textarea { border-color: transparent; }

/* Reviews (real, source-linked only) and projects slots */
.reviews { overflow: hidden; }
.reviews__viewport { overflow: hidden; margin: 0 calc(-1 * var(--pad-x)); padding: 4px 0; }
.reviews__track { list-style: none; margin: 0; padding: 0 12px; display: flex; gap: 16px; width: max-content; }
.review { width: min(340px, 78vw); flex: none; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.5; }
.review__stars { margin: 0; color: #b88a00; letter-spacing: 2px; }
.review__who { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.review__src { font-size: var(--fs-small); margin-top: auto; }
@media (prefers-reduced-motion: no-preference) {
  .reviews__track { animation: reviews-ltr 60s linear infinite; }
  .reviews:hover .reviews__track, .reviews:focus-within .reviews__track { animation-play-state: paused; }
  @keyframes reviews-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
}
@media (prefers-reduced-motion: reduce) { .reviews__viewport { overflow-x: auto; } }

/* Legal pages */
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--navy); margin-bottom: 0.3em; }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.6em 0 0.5em; }
.legal .hero-form { max-width: 560px; box-shadow: var(--shadow); }
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 1.4em 0; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 18rem; column-gap: 32px; }
.toc li { margin: 4px 0; }

/* ── Footer + mobile bar ─────────────────────────────────────────────── */
.foot { background: var(--navy); color: #c6d0dd; }
.foot a { color: #e8edf4; text-decoration: none; }
.foot a:hover { color: var(--accent); text-decoration: underline; }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 120px; display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.foot__in--wide > div > nav + nav { margin-top: 22px; }
.foot h2 { font: 700 1.1rem/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin-bottom: 0.8em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .btn--go { margin-top: 10px; color: var(--navy); text-decoration: none; }
.foot .btn--go:hover { color: var(--navy); text-decoration: none; }
.foot li a[aria-current="page"] { color: var(--accent); }
@media (max-width: 1000px) { .foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .foot__in { grid-template-columns: 1fr; } }
.callbar { position: fixed; inset: auto 0 0 0; z-index: 50; display: none; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); }
.callbar .btn { flex: 1; min-height: 50px; font-size: 1.1rem; }

@media (max-width: 960px) {
  .nav, .band .btn--go { display: none; }
  .sitemenu { display: block; }
  .callbar { display: flex; }
  .topbar__in > span:first-child { display: none; }
  .topbar__in { justify-content: center; }
}
@media print { .band, .callbar, .cta, .foot { display: none; } }
.region-h { margin: 2em 0 0.6em; font: 800 1.6rem/1.1 var(--display); color: var(--navy); }
.region-h:first-of-type { margin-top: 0.4em; }
/* a band that only holds a jump row stays compact */
.plate:has(> .tags--links:only-child) { padding-top: 24px; padding-bottom: 24px; }
.plate:has(> .tags--links:only-child) .tags { margin: 0; }

/* ── Roof Jobs: job cards ────────────────────────────────────────────── */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 1.6em; }
@media (max-width: 800px) { .jobs { grid-template-columns: 1fr; } }
.job { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 130px; }
main > .plate:nth-of-type(even) .job { border-color: transparent; box-shadow: 0 1px 3px rgba(19, 35, 58, 0.1); }
.job:target { outline: 3px solid var(--accent); outline-offset: 2px; }
.job__media { position: relative; }
.job__img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.job__chips { position: absolute; left: 14px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.job__chips li { background: rgba(19, 35, 58, 0.88); color: #fff; font: 700 0.8rem/1 var(--text); letter-spacing: 0.02em; padding: 7px 10px; border-radius: 999px; }
.job__chips li:first-child { background: var(--accent); color: var(--navy); }
.job__body { display: flex; flex-direction: column; padding: 20px 22px 0; }
.job__body h3 { margin: 0 0 14px; font-size: 1.25rem; line-height: 1.25; }
.job__steps { counter-reset: s; list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.job__steps li { counter-increment: s; position: relative; padding-left: 38px; max-width: none; }
.job__steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--warm); color: var(--navy); display: grid; place-items: center; font: 800 0.95rem/1 var(--display); }
.job__steps li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 30px; bottom: -12px; width: 2px; background: var(--line); }
.job__steps p { margin: 2px 0 0; color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
.job__label { display: block; font: 700 0.78rem/1.2 var(--text); text-transform: uppercase; letter-spacing: 0.07em; color: var(--navy); }
.job__foot { margin-top: auto; display: grid; gap: 10px; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.job__foot p { margin: 0; font-size: 0.95rem; }
.job__cost { font-weight: 600; color: var(--ink); }
.job__cost .job__label, .job__rel .job__label { display: inline; margin-right: 8px; color: var(--ink-2); }
.job__rel a { font-weight: 600; }
/* Footer lockup */
.mark--foot { color: #fff; margin-bottom: 14px; }
.mark--foot:hover { color: #fff; text-decoration: none; }
.mark--foot .mark__plate { width: 52px; height: 52px; }
.mark--foot small { color: #b9c3d2; }
.foot__about { max-width: 34ch; }

/* Breadcrumbs (visible trail mirrors BreadcrumbList schema) */
.crumbs { margin: 0 0 14px; font-size: 0.9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: flex; align-items: center; color: var(--muted, #5b6573); }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: 0.55; }
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--navy); border-bottom-color: currentColor; }
.crumbs [aria-current] { color: var(--ink, #141414); font-weight: 600; }
.hero--photo .crumbs li { color: #c9d3e0; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.hero--photo .crumbs a:hover { color: #fff; }
.hero--photo .crumbs [aria-current] { color: #fff; }
.job__media--bare { padding: 18px 22px 0; }
.job__media--bare .job__chips { position: static; }
.hero--photo .lede a { color: #fff; text-decoration: underline; text-decoration-color: var(--accent, #f5c400); text-underline-offset: 3px; }
.hero--photo .lede a:hover { color: var(--accent, #f5c400); }

/* ── Hero photo stays visible; the estimate form sits in its own band right below ── */
.hero--photo .hero__in { grid-template-columns: minmax(0, 660px); min-height: clamp(440px, 62vh, 620px); }
.formband { background: var(--navy); color: #fff; padding: clamp(28px, 4vw, 48px) 0; }
.formband__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.formband .hero-form { margin-top: calc(-1 * clamp(56px, 7vw, 96px)); position: relative; }
.formband__in { align-items: start; }
.formband__side { padding-top: 8px; }
.formband .trust { grid-template-columns: 1fr; margin: 0; gap: 16px; }
.formband .trust li { text-shadow: none; font-size: 1.05rem; }
@media (max-width: 960px) {
  .formband { padding: 0 0 28px; }
  .formband__in { grid-template-columns: 1fr; gap: 24px; }
  .formband .hero-form { margin-top: 0; }
}

/* ── Roofing calculator (/roofing-calculator/): form beside a takeoff sheet ── */
.calcband { background: var(--warm); padding: 0 0 clamp(40px, 5vw, 64px); }
.calcband__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.calc { position: relative; margin-top: calc(-1 * clamp(56px, 7vw, 96px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.calc__form { padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.calc__title { margin: 0; font: 800 clamp(1.5rem, 2.4vw, 1.9rem)/1.05 var(--display); text-transform: uppercase; color: var(--navy); letter-spacing: 0.005em; }
.calc__intro { margin: -6px 0 0; color: var(--ink-2); font-size: 0.98rem; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc__row[hidden] { display: none; }
.calc__row .full { grid-column: 1 / -1; }
.unit { position: relative; }
.unit input { padding-right: 3.4em; font-variant-numeric: tabular-nums; }
.unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-size: 0.95rem; pointer-events: none; }
.seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.seg__legend { font: 600 0.95rem/1.2 var(--text); color: var(--navy); margin-bottom: 6px; padding: 0; width: 100%; }
.seg__opt { position: relative; flex: 1 1 0; min-width: 9rem; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: block; text-align: center; padding: 11px 12px; border: 1.5px solid #c9c2b6; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.seg__opt:first-of-type span { border-radius: 8px 0 0 8px; }
.seg__opt:last-of-type span { border-radius: 0 8px 8px 0; margin-left: -1.5px; }
.seg__opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg__opt input:focus-visible + span { outline: 3px solid var(--notice); outline-offset: 2px; }
.seg__opt:hover input:not(:checked) + span { border-color: var(--navy); color: var(--navy); }
.calc__pitch { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: end; }
.pitch-viz { width: 100%; height: auto; background: var(--warm); border-radius: 8px; }
.pitch-viz__ground { stroke: #c9c2b6; stroke-width: 2; }
.pitch-viz__roof { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; transition: all 320ms var(--ease-out); }
.pitch-viz__run, .pitch-viz__rise { stroke: var(--notice); stroke-width: 2; stroke-dasharray: 4 4; transition: all 320ms var(--ease-out); }
.pitch-viz__label { font: 700 13px var(--text); fill: var(--notice); }
.pitch-viz__deg { font: 800 20px var(--display); fill: var(--navy); }
/* takeoff sheet */
.sheet { background: var(--navy); color: #e8edf4; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; font-variant-numeric: tabular-nums; }
.sheet__title { margin: 0; font: 700 0.85rem/1 var(--text); text-transform: uppercase; letter-spacing: 0.08em; color: #b9c3d2; }
.sheet__empty { display: grid; min-height: 220px; place-items: center; border: 1.5px dashed rgba(233, 237, 244, 0.28); border-radius: 10px; padding: 28px; text-align: center; color: #c9d3e0; }
.sheet__empty p { margin: 0; max-width: 34ch; }
.sheet__answer { margin: 4px 0 0; font: 800 clamp(2.1rem, 3.6vw, 2.9rem)/1 var(--display); text-transform: uppercase; color: #fff; }
.sheet__answer strong { color: var(--accent); font-weight: 800; }
.sheet__sub { margin: -4px 0 4px; color: #c9d3e0; }
.sheet__lines { margin: 0; display: grid; }
.sheet__lines > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 10px 0; border-top: 1px solid rgba(233, 237, 244, 0.16); }
.sheet__lines dt { font-weight: 600; color: #fff; }
.sheet__lines dd { margin: 0; text-align: right; font-weight: 600; color: #fff; white-space: nowrap; }
.sheet__lines dd.sheet__math { grid-column: 1 / -1; grid-row: 2; text-align: left; font-weight: 400; font-size: 0.9rem; color: #b9c3d2; white-space: normal; }
.sheet__cost { border-top: 2px solid var(--accent); padding-top: 14px; }
.sheet__cost-label { margin: 0; font-weight: 600; color: #fff; }
.sheet__cost-label span { display: inline-block; margin-left: 6px; font-size: 0.8rem; font-weight: 600; color: var(--navy); background: #c9d3e0; border-radius: 4px; padding: 1px 6px; vertical-align: 1px; }
.sheet__cost-range { margin: 4px 0 6px; font: 800 clamp(1.7rem, 2.8vw, 2.2rem)/1.05 var(--display); color: #fff; }
.sheet__cost-note { margin: 0; font-size: 0.9rem; color: #b9c3d2; }
.sheet__send { align-self: flex-start; margin-top: 4px; }
.calc__src { margin: 4px 0 0; }
.unit input::-webkit-inner-spin-button, .unit input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.unit input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.calcband + .formband .hero-form { margin-top: 0; }
.calcband + .formband { padding-top: clamp(40px, 5vw, 64px); }
/* pitch chart follows the calculator */
.figures--pitch tr.is-current td { background: #fff7d1; font-weight: 600; color: var(--navy); }
.figures td, .figures th { font-variant-numeric: tabular-nums; }
@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; margin-top: 0; border-radius: 0; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); box-shadow: none; }
  .calcband { padding-bottom: 32px; }
}
@media (max-width: 480px) {
  .calc__row, .calc__pitch { grid-template-columns: 1fr; }
  .calc__pitch .pitch-viz { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { .pitch-viz__roof, .pitch-viz__run, .pitch-viz__rise { transition: none; } }

/* ── Drawn diagrams (parts of a roof): authored SVG in the site palette ── */
.diagram { margin: clamp(20px, 3vw, 32px) 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2.4vw, 28px); }
main > .plate:nth-of-type(odd) .diagram { border-color: transparent; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2); max-width: var(--measure); }
.dg-wood { fill: #d9b98c; stroke: #8a6a42; stroke-width: 1.2; }
.dg-deck { fill: #e8cf9f; stroke: #8a6a42; stroke-width: 1; }
.dg-under { fill: var(--navy); }
.dg-shingle rect { fill: #4a5462; stroke: #2c3440; stroke-width: 1; }
.dg-metal { fill: #9aa7b8; stroke: var(--navy); stroke-width: 1.2; }
.dg-trim { fill: #f3efe8; stroke: var(--navy); stroke-width: 1.4; }
.dg-slots rect { fill: var(--navy); }
.dg-gutter { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.dg-flow { fill: none; stroke: var(--notice); stroke-width: 2.5; stroke-dasharray: 7 6; }
.dg-accent-fill { fill: var(--notice); }
.dg-field { fill: #efe8dc; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.dg-line { fill: none; stroke: var(--navy); stroke-width: 2; }
.dg-ridge { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linecap: round; }
.dg-valley { fill: none; stroke: var(--notice); stroke-width: 3; stroke-dasharray: 8 5; }
.dg-chimney { fill: #b5654a; stroke: var(--navy); stroke-width: 2; }
.dg-cricket { fill: var(--accent); stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.dg-boot { fill: #fff; stroke: var(--navy); stroke-width: 2.5; }
.dg-sky { fill: #cfe3f5; stroke: var(--navy); stroke-width: 2; }
.dg-label line { stroke: var(--ink-2); stroke-width: 1; }
.dg-label text { font: 600 14px var(--text); fill: var(--ink); }
.diagram__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram__scroll:focus-visible { outline: 3px solid var(--notice); outline-offset: 2px; }
@media (max-width: 700px) { .diagram__scroll svg { min-width: 640px; } .diagram { padding-left: 0; padding-right: 0; border-radius: 0; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); } .diagram figcaption { padding: 0 var(--gutter); } .diagram__scroll { padding: 0 var(--gutter); } }
/* permit checker: status tag in each line */
.sheet__lines dd.pc-tag { color: var(--accent); }
.sheet a { color: #fff; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.sheet a:hover { color: var(--accent); }
.figures--compare td:nth-child(2) { font-weight: 700; color: var(--navy); }
.figures--compare td:last-child { font-weight: 400; color: var(--ink-2); }
