/* ==========================================================================
   RoofJawn visual identity
   Storm navy + call amber: dark, high-contrast heroes and bright call buttons.
   Light mode only, on purpose: one well-tested scheme beats two half-tested ones.
   Keep the "MUST KEEP" blocks: they fixed real problems on the first site
   (tap targets, sticky call bar covering content, sideways overflow on phones,
   contrast). System fonts only (no Google Fonts links).
   Contrast (WCAG): navy text on amber call buttons 8.9:1, blue links 8.2:1,
   all badges 7.4:1+, light text on the night heroes 10:1+.
   ========================================================================== */
:root {
  /* Brand */
  /* (token names kept from the first theme; --brick is now the blue accent) */
  --brick: #1d4f91;          /* primary: links, accents. 8.2:1 on white */
  --brick-dark: #143a6c;     /* hover */
  --brick-tint: #eaf1fa;
  --slate: #3a5068;          /* secondary: slate roofs, "plan ahead". 8.3:1 on white */
  --slate-tint: #e6eef6;
  --call: #ffb020;           /* amber call buttons. MUST KEEP dark text on it: --call-text is 8.9:1 */
  --call-dark: #f29b00;
  --call-text: #10213a;
  --amber: #ffb020;

  /* Neutrals (warm) */
  --ink: #10213a;            /* headings: storm navy */
  --text: #26323f;           /* body text */
  --muted: #55606e;          /* secondary text */
  --line: #dfe5ec;
  --bg: #ffffff;
  --paper: #f3f6fa;          /* soft section background */
  --night: #0b1a2e;          /* hero, footer, CTA band */
  --night-2: #13294a;
  --night-text: #c9d5e4;

  /* Urgency levels: dark text on light tint, plus an icon, so color is never the only signal */
  --now-bg: #fde8e4;  --now-fg: #8f1d12;
  --soon-bg: #fdf0d5; --soon-fg: #7a3e00;
  --plan-bg: var(--slate-tint); --plan-fg: #2b4560;

  /* Type: system fonts. Headings use a sturdy serif (Charter on Apple, Cambria/Sitka on Windows). */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Scale: ratio 1.25, the top steps shrink on phones */
  --step--1: .875rem;
  --step-0: 1.0625rem;                            /* 17px body */
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 1.6rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.5vw, 2.05rem);
  --step-4: clamp(2.05rem, 1.6rem + 2.4vw, 2.85rem);

  --wrap: 1180px; --gutter: clamp(16px, 4vw, 32px); --header-h: 72px; --callbar-h: 0px;
  --r: 16px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(16,33,58,.06), 0 8px 24px rgba(16,33,58,.08);
  --shadow-lg: 0 2px 4px rgba(16,33,58,.06), 0 18px 48px rgba(16,33,58,.16);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: calc(var(--callbar-h) + 16px); }
body { margin: 0; font: 400 var(--step-0)/1.65 var(--font); color: var(--text); background: var(--bg); padding-bottom: var(--callbar-h); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p, ul, ol { margin: 0 0 1em; }
small, .small { font-size: var(--step--1); }
a { color: var(--brick); text-underline-offset: .15em; }
a:hover { color: var(--brick-dark); }
img, svg, video, table { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section--paper { background: var(--paper); }
.lead { font-size: var(--step-1); color: var(--muted); }
.muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.eyebrow { font: 700 var(--step--1)/1.2 var(--font); text-transform: uppercase; letter-spacing: .09em; color: var(--brick); margin-bottom: .6em; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* MUST KEEP: accessibility */
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; 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: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
a[href^="tel:"] { white-space: nowrap; }
.footer-legal a, p a, li a { text-decoration: underline; } /* links inside text need more than color */

/* ---------- Buttons. MUST KEEP the 48px minimum and wrapping labels. ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.35em; font: 700 1rem/1.15 var(--font); color: #fff; background: var(--ink); border: 2px solid transparent; border-radius: var(--r-sm); text-decoration: none; cursor: pointer; }
.btn:hover { color: #fff; background: #000; }
.btn { border-radius: 999px; }
.btn--call { background: var(--call); color: var(--call-text); box-shadow: 0 3px 0 #c97f00, 0 10px 24px rgba(255,176,32,.35); }
.btn--call:hover { background: var(--call-dark); color: var(--call-text); }
.btn--call .i { color: var(--call-text); }
.btn--pulse { position: relative; isolation: isolate; }
.btn--pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255,176,32,.6); animation: rj-pulse 2.2s ease-out infinite; z-index: -1; }
@keyframes rj-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,176,32,.55); } 70% { box-shadow: 0 0 0 18px rgba(255,176,32,0); } 100% { box-shadow: 0 0 0 0 rgba(255,176,32,0); } }
@media (prefers-reduced-motion: reduce) { .btn--pulse::after { animation: none; } }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--xl { min-height: 68px; font-size: 1.4rem; padding: .7em 1.6em; font-weight: 800; }
.btn--xl span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; min-width: 0; }
.btn--xl small { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; white-space: normal; }
.btn[href^="tel:"] { white-space: normal; text-align: left; }
.i { width: 1.1em; height: 1.1em; flex: none; }
@media (max-width: 600px) { .btn--block-sm { display: flex; width: 100%; } }

/* ---------- Logo (text + inline SVG roof mark) ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { font: 800 1.45rem/1 var(--font-head); letter-spacing: -.02em; color: var(--ink); }
.logo__text b { color: #b26f00; font-weight: inherit; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-top: 4px solid var(--amber); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(16,33,58,.06); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.site-header__inner { position: relative; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brick); }
.header-phone { margin-left: auto; }
@media (min-width: 961px) { .nav + .header-phone { margin-left: 0; } } /* nav takes the auto margin only when it's visible */
.hp-short { display: none; }
@media (max-width: 480px) { .hp-long { display: none; } .hp-short { display: inline; } .header-phone { padding-left: 1em; padding-right: 1em; } }

/* Services dropdown: native <details>, so it opens without JavaScript */
.nav-dd { position: relative; }
.nav-dd__toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; border-radius: var(--r-sm); }
.nav-dd__toggle::-webkit-details-marker { display: none; }
.nav-dd__toggle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.nav-dd[open] .nav-dd__toggle::after { transform: rotate(-135deg) translateX(-2px); }
.nav-dd__toggle:hover, .nav-dd[open] .nav-dd__toggle { color: var(--brick); }
.nav-dd__menu a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: var(--r-sm); }
.nav-dd__menu a:hover { background: var(--paper); }
.nav-dd__all a { color: var(--brick); }
@media (min-width: 961px) {
  .nav-dd__menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 70; width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(31,26,23,.14); }
  .nav-dd__all { grid-column: 1 / -1; border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 6px; }
}

/* Menu button: phones and tablets only */
.menu-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; padding: 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle[aria-expanded="true"] { border-color: var(--brick); color: var(--brick); }

/* ---------- Urgency badge: Call now / Fix soon / Plan ahead ---------- */
.badge { display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em; border-radius: 999px; font: 700 var(--step--1)/1.2 var(--font); border: 1px solid currentColor; }
.badge svg { width: 1em; height: 1em; flex: none; }
.badge--now { background: var(--now-bg); color: var(--now-fg); }
.badge--soon { background: var(--soon-bg); color: var(--soon-fg); }
.badge--plan { background: var(--plan-bg); color: var(--plan-fg); }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card__art { margin: -22px -22px 6px; background: linear-gradient(180deg, #eef3f9, #f8fafc); border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; padding: 12px 18px 0; overflow: hidden; }
.card__art img { display: block; width: 100%; height: 190px; object-fit: contain; transition: transform .3s; }
.card--link:hover .card__art img { transform: scale(1.05); }
.card h3 { margin: 0; font-size: var(--step-1); }
.card p { margin: 0; }
.card__link { display: inline-flex; align-items: center; min-height: 48px; margin-top: auto; font-weight: 700; }
/* Problem card: the urgency level shows as a colored top edge AND a badge */
.problem-card { border-top: 5px solid var(--line); }
.problem-card--now { border-top-color: var(--now-fg); }
.problem-card--soon { border-top-color: var(--amber); }
.problem-card--plan { border-top-color: var(--slate); }
.problem-card .badge { align-self: flex-start; }
/* Roof-type card: line drawing of the roof profile on a cream panel */
.roof-card { overflow: hidden; }
.roof-card__art { background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 22px 10px; color: var(--brick); }
.roof-card__art svg { display: block; width: 100%; height: 84px; }
.roof-card__body { display: flex; flex-direction: column; gap: 10px; padding: 0 22px 18px; flex: 1; }
.roof-card__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: var(--step--1); color: var(--muted); }
.roof-card__tags li { background: var(--paper); border-radius: 4px; padding: .15em .55em; }

/* ---------- Step list (numbered, connected) ---------- */
.steps { list-style: none; margin: 0 0 1.5em; padding: 0; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 22px 60px; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--brick); color: #fff; font: 700 1.1rem/1 var(--font-head); }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--line); }
.steps h3, .steps h4 { font-size: var(--step-1); margin: .35em 0 .25em; }
.steps p { margin: 0; }

/* ---------- FAQ accordion: native <details>, works without JS ---------- */
.faq { border-top: 1px solid var(--line); margin-bottom: 1.5em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; list-style: none; font: 700 var(--step-1)/1.3 var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--brick); border-bottom: 3px solid var(--brick); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateX(-3px); }
.faq details > div { padding: 0 0 16px; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- Checklist box ---------- */
.checklist { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--brick); border-radius: var(--r); padding: 22px; margin-bottom: 1.5em; }
.checklist h3 { font-size: var(--step-1); margin-bottom: .6em; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 0 0 .6em 32px; }
.checklist li:last-child { padding-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 4px; background: var(--brick) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(1200px 400px at 85% 0%, #1f3f6b 0, transparent 60%), linear-gradient(160deg, var(--night-2), var(--night)); color: var(--night-text); padding: clamp(44px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--amber); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band .btn-row { margin-bottom: 0; }
.cta-band .btn--outline { color: #fff; border-color: rgba(255,255,255,.75); }
.cta-band .btn--outline:hover { background: #fff; color: var(--night); }

/* ---------- Breadcrumb ---------- */
.breadcrumbs { font-size: var(--step--1); margin-bottom: 14px; color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--brick); }

/* ---------- Homepage ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 78% 40%, #24497a 0, transparent 65%), linear-gradient(165deg, #10264a 0%, var(--night) 70%); color: var(--night-text); padding: clamp(28px, 5vw, 72px) 0 clamp(32px, 5vw, 72px); }
.hero h1, .page-hero h1 { color: #fff; }
.hero h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead, .page-hero .lead { color: #d6e0ec; }
.hero .btn--outline, .page-hero .btn--outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn--outline:hover, .page-hero .btn--outline:hover { background: #fff; color: var(--night); }
.pill { display: inline-flex; align-items: center; gap: .5em; padding: .35em .85em; border-radius: 999px; background: rgba(255,176,32,.14); border: 1px solid rgba(255,176,32,.45); color: #ffd27a; font: 700 var(--step--1)/1.2 var(--font); margin-bottom: 1em; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,176,32,.25); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 18px 0 0; padding: 0; font-weight: 600; color: #e3eaf3; font-size: var(--step--1); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2310213a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr 1fr; } }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 40em; }
.tagline { font: italic 600 var(--step-0)/1.35 var(--font-head); color: var(--brick); margin-bottom: .5em; }
.urgent-strip { background: var(--amber); color: var(--call-text); }
.urgent-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; min-height: 56px; padding-top: 8px; padding-bottom: 8px; text-align: center; font-weight: 700; }
.urgent-strip a { color: var(--call-text); font-weight: 800; display: inline-flex; align-items: center; min-height: 48px; }
.section-head { max-width: 46rem; margin-bottom: 28px; }
.section-head .eyebrow { margin-bottom: .5em; }
.section-head .lead { margin-bottom: 0; }
.eyebrow--amber { color: #9a5f00; }
/* "A small leak doesn't stay small" */
.spread { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: spread; margin-bottom: 28px; }
.spread__step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 22px 22px; box-shadow: var(--shadow); }
.spread__step::before { counter-increment: spread; content: counter(spread); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 12px; font-weight: 800; color: #fff; background: var(--sc, var(--brick)); }
.spread__step:nth-child(1) { --sc: #2f6db5; } .spread__step:nth-child(2) { --sc: #9a5f00; } .spread__step:nth-child(3) { --sc: #b3261e; }
.spread__when { font: 800 var(--step--1)/1.2 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--sc); margin: 0 0 .3em; }
.spread__step h3 { font-size: var(--step-1); margin: 0 0 .3em; }
.spread__step p:last-child { margin: 0; }
.spread-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 26px; border-radius: var(--r); background: linear-gradient(135deg, var(--night-2), var(--night)); color: #fff; }
.spread-cta p { margin: 0; flex: 1 1 280px; font-size: var(--step-1); font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.hero__note { margin: 0; }
.hero__art .iso { max-width: 640px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
@media (max-width: 899px) { .hero__art .iso { max-width: 340px; } } /* sits under the call button on phones */
/* Home hero with a full-bleed roof photo: navy wash on the text side keeps contrast 7:1+ */
.hero--photo { background: var(--night); display: flex; align-items: center; min-height: clamp(560px, 72vh, 720px); }
.hero--photo > .wrap { width: 100%; }
.hero--photo .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,26,46,.96) 0%, rgba(11,26,46,.9) 38%, rgba(11,26,46,.45) 68%, rgba(11,26,46,.12) 100%), linear-gradient(0deg, rgba(11,26,46,.7) 0%, transparent 35%); }
.hero--photo .wrap { position: relative; z-index: 2; }
.hero--photo .hero__grid { grid-template-columns: minmax(0, 46rem); }
.hero--photo h1 { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
@media (max-width: 899px) {
  .hero--photo { min-height: 0; }
  .hero--photo .hero__bg { object-position: 58% 50%; }
  .hero--photo::before { background: linear-gradient(180deg, rgba(11,26,46,.72) 0%, rgba(11,26,46,.88) 45%, rgba(11,26,46,.96) 100%); }
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-bottom: 1em; }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card--link { color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.card--link { transition: border-color .15s, transform .2s, box-shadow .2s; }
.card--link:hover { color: var(--text); border-color: var(--brick); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card--link .card__link { color: var(--brick); text-decoration: underline; text-underline-offset: .15em; }
.card--link.problem-card--now:hover { border-top-color: var(--now-fg); }
.card--link.problem-card--soon:hover { border-top-color: var(--amber); }
.local-point { border-left: 4px solid var(--brick); padding: 2px 0 2px 18px; }
.local-point h3 { font-size: var(--step-1); margin-bottom: .3em; }
.local-point p { margin: 0; }
.hood-list { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); list-style: none; margin: 0; padding: 0; }
.hood-list a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-weight: 600; text-decoration: none; }
.hood-list a:hover { border-color: var(--brick); }
@media (prefers-reduced-motion: reduce) { .card--link { transition: none; } .card--link:hover { transform: none; } }

/* ---------- Service / guide pages ---------- */
.page-hero { background: radial-gradient(800px 420px at 80% 50%, #24497a 0, transparent 65%), linear-gradient(165deg, #10264a 0%, var(--night) 75%); color: var(--night-text); padding: 8px 0 clamp(28px, 4vw, 52px); }
.page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: #aebdd0; }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .updated { color: #aebdd0; }
.page-hero a:not(.btn) { color: #ffd27a; }
.page-hero .badge { margin-bottom: 12px; }
.page-hero .lead { max-width: 44em; }
.page-hero__grid { display: grid; gap: 4px 48px; align-items: center; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.page-hero__art .iso { max-width: 460px; margin-inline: auto; filter: drop-shadow(0 24px 32px rgba(0,0,0,.35)); }
@media (max-width: 899px) { .page-hero__art .iso { max-width: 300px; } }
.prose > h2 { margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }
.prose > ul:not([class]) { padding-left: 1.25em; }
.prose > ul:not([class]) li { margin-bottom: .45em; }
.prose .steps { margin-top: 1em; }
.callout { border-radius: var(--r); padding: 18px 22px; margin: 0 0 1.5em; background: var(--paper); border: 1px solid var(--line); }
.callout h3 { font-size: var(--step-1); margin-bottom: .3em; }
.callout p { margin: 0; }
.callout .callout__title { font: 700 var(--step-1)/1.3 var(--font-head); color: var(--ink); margin-bottom: .3em; }
.callout--warn .callout__title { color: var(--now-fg); }
.callout--warn { background: var(--now-bg); border-color: #f3c3b9; border-left: 5px solid var(--now-fg); }
.callout--warn h3 { color: var(--now-fg); }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 2em 0; padding: 20px 24px; border: 0; border-left: 6px solid var(--amber); border-radius: var(--r); background: linear-gradient(135deg, var(--night-2), var(--night)); color: #e3eaf3; }
.cta-inline strong { color: #fff; }
.cta-inline p { margin: 0; flex: 1 1 260px; }
.figure { margin: 0 0 1.25em; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.figure__art { background: var(--paper); color: var(--brick); padding: 20px 24px 8px; }
.figure__art svg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.figure__art--wide svg { max-width: 560px; }
.figure figcaption { padding: 10px 16px; font-size: var(--step--1); color: var(--muted); }
.compare { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 0 0 1.25em; }
.compare__col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.compare__col:last-child { border-top: 4px solid var(--brick); }
.compare__col:first-child { border-top: 4px solid var(--slate); }
.compare h3 { font-size: var(--step-1); margin-bottom: .4em; }
.compare ul { margin: 0; padding-left: 1.15em; }
.compare li { margin-bottom: .35em; }
.urgency-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.urgency-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.urgency-list .badge { flex: none; min-width: 7.5em; }
.urgency-list span:not(.badge) { flex: 1 1 260px; }
.related-links { list-style: none; padding: 0; margin: 0; }
.related-links li { border-bottom: 1px solid var(--line); padding: 4px 0; }
.related-links a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }

/* ---------- Roof Problem Checker ---------- */
.btn--block { display: flex; width: 100%; }
.checker { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 32px); }
/* Shown from first paint so it doesn't push the page down when the script loads; hidden only when JS is off. */
@media (scripting: none) { .checker { display: none; } }
.checker__progress { margin-bottom: 18px; }
.checker__count { font-size: var(--step--1); font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.checker__bar { height: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.checker__fill { display: block; height: 100%; width: 33%; background: var(--brick); transition: width .25s; }
.checker fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checker legend { padding: 0; margin-bottom: 14px; }
.checker__q { font-size: var(--step-2); margin: 0; }
.checker__q:focus { outline: none; }
.checker__q:focus-visible { outline: 3px solid var(--brick); }
.checker__options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.option { position: relative; display: flex; align-items: center; min-height: 56px; padding: 10px 16px; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); }
.option:hover { border-color: var(--brick); }
/* The real radio covers the whole row (a full-size tap target that stays keyboard and screen-reader accessible); the circle is drawn below. */
.option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option span { display: flex; align-items: center; gap: 12px; }
.option span::before { content: ""; flex: none; width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 50%; background: #fff; }
.option input:checked + span::before { border-color: var(--brick); background: radial-gradient(circle, var(--brick) 0 4px, #fff 5px); }
.option:has(input:checked) { border-color: var(--brick); background: var(--brick-tint); }
.option:has(input:focus-visible) { outline: 3px solid var(--brick); outline-offset: 2px; }
.checker__error { color: var(--now-fg); font-weight: 700; margin: 12px 0 0; }
.checker__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; }
.checker__next { margin-left: auto; min-width: 140px; }
.result__title { font-size: var(--step-3); margin-bottom: .4em; }
.result__title:focus { outline: none; }
.result__urgency { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; background: var(--paper); border-radius: var(--r-sm); margin-bottom: 1.25em; }
.result__urgency .badge { font-size: 1rem; }
.result__reason { margin: 0; font-weight: 600; color: var(--ink); }
.result h3 { font-size: var(--step-1); margin-top: 1em; }
.result__list { padding-left: 1.2em; margin-bottom: 1em; }
.result__list li { margin-bottom: .4em; }
.result__list--quote li { font-style: italic; }
.result .btn--call { margin: 1.25em 0 1em; }
.result__more { margin-bottom: .5em; }
.result__more a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.result [data-restart] { margin-top: 14px; }

/* ---------- Guide hub ---------- */
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin-bottom: 2em; }
.toc__title { font: 700 var(--step-1)/1.3 var(--font-head); color: var(--ink); margin: 0 0 .3em; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 24px; }
.toc li { break-inside: avoid; }
.toc a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }
.guide-type { border-left: 4px solid var(--brick); padding: 4px 0 4px 18px; margin: 0 0 1.6em; }
.guide-type h3 { margin-bottom: .3em; }
.guide-type__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .6em; }
.guide-type p:last-child { margin-bottom: 0; }
.guide-type p:last-child a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.compare__label { font-weight: 700; color: var(--ink); margin: 0 0 .4em; }

/* ---------- Area pages ---------- */
.zip-list { list-style: none; padding: 0; margin: 0 0 1.5em; border-top: 1px solid var(--line); }
.zip-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.zip-list li > span:first-child { font-weight: 700; color: var(--ink); }
.zip { font-variant-numeric: tabular-nums; color: var(--muted); }

.zip-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 28px); }
.zip-box h2 { font-size: var(--step-2); }
.zip-form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.zip-form__row { display: flex; flex-wrap: wrap; gap: 10px; }
.zip-form input { flex: 1 1 160px; min-width: 0; min-height: 48px; padding: 0 14px; font: 600 1.15rem/1 var(--font); letter-spacing: .08em; border: 2px solid var(--line); border-radius: var(--r-sm); color: var(--ink); }
.zip-form input:focus-visible { border-color: var(--brick); outline: 3px solid var(--brick); outline-offset: 1px; }
.zip-result { margin: 14px 0 0; }
.zip-result:empty { margin: 0; }
.zip-result.is-yes, .zip-result.is-maybe { padding: 12px 14px; border-radius: var(--r-sm); }
.zip-result.is-yes { background: #fff7e6; border: 1px solid var(--call); }
.zip-result.is-maybe { background: var(--paper); border: 1px solid var(--line); }
.zip-result__links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 4px; }
.zip-result a { font-weight: 700; display: inline-flex; align-items: center; min-height: 48px; }
.region-card h3 { margin-bottom: 2px; }
.region-card__zips { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Guides index ---------- */
.guide-card h3 { margin-bottom: 2px; }
.guide-card__date { margin: 0; font-size: var(--step--1); color: var(--muted); }
.guide-card .card__link { margin-top: auto; }
.article-meta { font-size: var(--step--1); color: var(--muted); }

/* ---------- Photo slots, updated date, hiring checklist, 404 ---------- */
.photo { margin: 0 0 1.75em; border-radius: var(--r); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.updated { font-size: var(--step--1); color: var(--muted); margin: 0 0 1em; }
.page-hero .updated { margin-top: -.4em; }
.hire-check { margin-top: 2.5em; }
.hire-check__more { margin: .8em 0 0; }
.hire-check__more a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.hire-check h2 { font-size: var(--step-1); margin: 0 0 .6em; }
.notfound h1 { font-size: var(--step-3); }
.notfound h2 { font-size: var(--step-2); margin-top: 1.5em; }

/* ---------- Verify marker (drafts only; the build refuses to publish it) ---------- */
.verify { background: #fff3a8; color: #5c4a00; font-weight: 700; padding: 0 .3em; border-radius: 3px; }

/* MUST KEEP: sticky mobile call bar that never covers content */
.callbar { display: none; }
@media (max-width: 960px) {
  :root { --callbar-h: 76px; }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .callbar__call { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 999px; background: var(--call); color: var(--call-text); text-decoration: none; box-shadow: 0 3px 0 #c97f00; }
  .callbar__call:hover { color: var(--call-text); }
  .callbar__call strong { display: block; font-size: 1.15rem; } .callbar__call small { font-size: .8rem; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 70; max-height: calc(100vh - var(--header-h) - var(--callbar-h) - 8px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(31,26,23,.12); padding: 8px var(--gutter) 16px; }
  .nav.is-open { display: block; }
  .nav__list { display: block; }
  .nav-dd__toggle { width: 100%; justify-content: space-between; padding: 0 4px; font-size: 1.1rem; }
  .nav-dd__menu { border-top: 1px solid var(--line); padding-top: 4px; }
  .nav-dd__menu a { padding: 0 4px; }
  .menu-toggle { display: inline-flex; }
  .site-header__inner { gap: 10px; }
}

/* MUST KEEP: nothing wider than the phone */
.wrap > *, [class*="grid"] > * { min-width: 0; }
@media (max-width: 480px) { .btn--xl { font-size: 1.15rem; padding: .65em 1em; } h1 { overflow-wrap: break-word; } .logo__text { font-size: 1.25rem; } }

/* Phones: roomier edges, compact picture cards (small art beside the text), one fewer call strip */
@media (max-width: 599px) {
  :root { --gutter: 20px; }
  .card:has(> .card__art) { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-content: start; padding: 16px; }
  .card:has(> .card__art) > * { grid-column: 2; }
  .card:has(> .card__art) > .card__art { grid-column: 1; grid-row: 1 / span 6; align-self: start; margin: 0; padding: 6px; border: 0; border-radius: 12px; }
  .card__art img { height: 72px; }
  .card:has(> .card__art) .card__link { margin-top: -6px; }
  .urgent-strip { display: none; } /* the sticky call bar already covers this on phones */
  .card:has(> .card__art) > .badge { justify-self: start; }
  .site-footer .footer-col .footer-links { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-cols { display: grid; gap: 24px 48px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 2fr 1fr 1fr; } }
.footer-h { font: 700 var(--step-1)/1.3 var(--font-head); color: #fff; margin: 0 0 .4em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 20px; }
.footer-col--services .footer-links { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-phone { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 1.4rem; font-weight: 800; color: #fff !important; text-decoration: none !important; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .82rem; color: #a9b7c9; }
.link-cta { display: inline-flex; align-items: center; min-height: 48px; }

/* ---------- Style guide page only ---------- */
.swatches { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); margin-bottom: 1.5em; }
.swatch { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; font-size: var(--step--1); }
.swatch__chip { height: 64px; display: grid; place-items: center; font-weight: 700; }
.swatch p { margin: 0; padding: 8px 10px; line-height: 1.35; }
.sg-block { margin-bottom: 48px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 1em; }

/* ---------- Isometric illustrations (src/partials/iso-*.html, drawn by tools/make-art.mjs) ---------- */
.iso { display: block; width: 100%; height: auto; }
.iso .rj-drip { opacity: 0; animation: rj-drip 2.4s cubic-bezier(.55, 0, 1, .45) infinite; }
.iso .rj-drip--2 { animation-delay: .8s; }
.iso .rj-drip--3 { animation-delay: 1.6s; }
@keyframes rj-drip { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--fall, 30px)); } }
.iso .rj-rain { animation: rj-rain 1.2s linear infinite; }
.iso .rj-rain--b { animation-delay: -.6s; }
@keyframes rj-rain { 0% { opacity: 0; transform: translate(2px, -8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-3px, 10px); } }
.iso .rj-flash { animation: rj-flash 5s steps(1) infinite; }
@keyframes rj-flash { 0%, 6%, 10%, 100% { opacity: 1; } 3%, 8% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .iso * { animation: none !important; } .iso .rj-drip { opacity: 1; } }
.other-work__h { font-size: var(--step-1); margin: 32px 0 12px; }
