/* Roof Repair Sunnyvale CA — styles.css
   Mobile-first. Breakpoints: 360 (base) · 640 · 768 · 1024 · 1280
   Fonts load via <link> in each page <head> (Plus Jakarta Sans 700/800, Inter 400/500/600, display=swap). */

/* ---------- 1. Tokens ---------- */
:root {
  --primary: #1e308a;
  --primary-700: #17256b;
  --primary-900: #0d1640;
  --footer-bg: #080e2e;
  --primary-100: #dde3f7;
  --primary-50: #eef1fb;
  --accent: #14532d;
  --accent-600: #166534;
  --accent-bright: #4ade80;
  --accent-50: #ecf7f0;
  --bg: #f5f7fa;
  --surface: #fff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6678;
  --line: #dbe1ea;
  --warn: #7c2d12;
  --warn-bg: #fff7e6;
  --warn-line: #f0c36d;

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-300: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --fs-400: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-500: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-600: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  --fs-700: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --fs-800: clamp(2.1rem, 1.45rem + 2.9vw, 3.75rem);

  --r-sm: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px -10px rgb(15 23 42 / 0.14), 0 24px 48px -28px rgb(30 48 138 / 0.22);
  --shadow-lift: 0 2px 4px rgb(15 23 42 / 0.06), 0 16px 32px -12px rgb(15 23 42 / 0.2), 0 32px 56px -28px rgb(30 48 138 / 0.32);
  --gutter: 1rem;
  --max: 74rem;
  --header-h: 4.25rem;
  --peak: 1.75rem;
}

@media (min-width: 640px) { :root { --gutter: 1.5rem; --peak: 2.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; --peak: 3.5rem; --header-h: 4.75rem; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; color: var(--ink); margin: 0 0 0.6em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-800); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); font-weight: 700; }
h4 { font-size: var(--fs-500); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-700); text-decoration-thickness: 2px; }
strong { font-weight: 600; color: var(--ink); }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-bright); }
::selection { background: var(--primary-100); color: var(--primary-900); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.75rem 1.1rem; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 0.75rem; color: #fff; }
.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; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 1.75rem; height: 1.75rem; }

/* ---------- 3. Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
.section { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
.section-head p { font-size: var(--fs-500); color: var(--muted); }
.measure { max-width: 68ch; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.stack > * + * { margin-top: 1rem; }
.grid-2 { display: grid; gap: 1.25rem; }
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Roof-pitch divider: an asymmetric gable edge on top of a section (signature element) */
.pitched {
  position: relative;
  background: var(--bg);
  margin-top: calc(var(--peak) * -1);
  padding-top: calc(var(--peak) + clamp(3rem, 2rem + 4vw, 6rem));
  clip-path: polygon(0 var(--peak), 34% 0, 100% var(--peak), 100% 100%, 0 100%);
}
.pitched--right { clip-path: polygon(0 var(--peak), 66% 0, 100% var(--peak), 100% 100%, 0 100%); }
.pitched + .pitched { margin-top: calc(var(--peak) * -1); }
.section--tint { background: var(--primary-50); }
.section--white { background: var(--surface); }
.on-dark { background: var(--primary-900); color: #cdd5f3; }
.on-dark h2, .on-dark h3, .on-dark h4, .on-dark strong { color: #fff; }
.on-dark .section-head p { color: #b9c4ee; }
.on-dark a { color: #fff; }
.on-dark a:hover { color: var(--accent-bright); }

/* Split layouts */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4.5rem); }
  .split--reverse > :first-child { order: 2; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
}
.visual-panel { background: linear-gradient(145deg, var(--primary-50), #fff 60%); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.year-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.year-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.year-list .icon-badge { margin: 0; flex: none; }
.year-list strong { display: block; font-family: var(--font-display); }
.grid-2 > .callout { margin: 0; }
.quote { margin: 1rem 0 1.25rem; padding: 1rem 1.1rem; border-left: 5px solid var(--accent); background: var(--accent-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); font-size: var(--fs-500); }
.hero h1 { max-width: 18ch; }

/* ---------- 4. Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(245 247 250 / 0.9); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 2.5rem; width: auto; }
@media (min-width: 1024px) { .brand img { height: 2.9rem; } }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.js .nav-toggle { display: inline-flex; }
.nav { width: 100%; }
.js .nav { display: none; }
.js .nav.is-open { display: block; padding-bottom: 1rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.nav-list a, .nav-drop > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 0.9rem; border-radius: var(--r-sm); color: var(--ink); font-weight: 600; font-size: var(--fs-400); text-decoration: none; cursor: pointer; list-style: none; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-list a:hover, .nav-drop > summary:hover { background: var(--primary-50); color: var(--primary); }
.nav-list a[aria-current="page"] { color: var(--primary); background: var(--primary-50); }
.nav-drop[open] > summary .icon { transform: rotate(180deg); }
.nav-drop .icon { transition: transform 0.2s; }
.nav-sub { list-style: none; margin: 0.25rem 0 0.5rem 0.9rem; padding: 0 0 0 0.75rem; border-left: 2px solid var(--primary-100); }
.nav-sub a { font-weight: 500; min-height: 44px; }
.btn.header-cta { display: none; }
@media (min-width: 1024px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .nav, .js .nav { display: block; width: auto; margin-left: auto; padding: 0; }
  .nav-list { display: flex; align-items: center; gap: 0.15rem; }
  .nav-drop { position: relative; }
  .nav-drop > summary { gap: 0.35rem; }
  .nav-sub { position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 17rem; margin: 0; padding: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-left-width: 1px; border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
  .btn.header-cta { display: inline-flex; margin-left: 0.75rem; }
}

/* ---------- 5. Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-400); line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, background-color 0.18s; }
.btn:hover { transform: translateY(-2px); }
.btn-call { background: var(--accent); color: #fff; box-shadow: 0 0 0 0 rgb(20 83 45 / 0), 0 8px 22px -6px rgb(20 83 45 / 0.55), 0 0 28px rgb(74 222 128 / 0.28); }
.btn-call:hover { background: var(--accent-600); color: #fff; box-shadow: 0 10px 28px -6px rgb(20 83 45 / 0.65), 0 0 38px rgb(74 222 128 / 0.42); }
.btn-call--light { background: #fff; color: var(--primary-900); box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.5), 0 0 40px rgb(74 222 128 / 0.35); }
.btn-call--light:hover { background: var(--accent-50); color: var(--primary-900); }
.btn-call--lg { min-height: 56px; padding-inline: 1.9rem; font-size: var(--fs-500); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-50); color: var(--primary); }
.on-dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 0.55); }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow .icon { transition: transform 0.18s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #dbe2ff; padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) calc(var(--peak) + clamp(2.5rem, 2rem + 3vw, 5rem)); background:
  radial-gradient(52rem 34rem at 88% -8%, rgb(76 104 235 / 0.6), transparent 62%),
  radial-gradient(38rem 28rem at -4% 105%, rgb(20 83 45 / 0.7), transparent 62%),
  radial-gradient(30rem 22rem at 58% 92%, rgb(30 48 138 / 0.9), transparent 66%),
  var(--primary-900); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.16; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero h1 { color: #fff; }
.hero-lead { font-size: var(--fs-500); max-width: 52ch; color: #e6ebff; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.hl { color: #fff; background: linear-gradient(transparent 62%, rgb(74 222 128 / 0.5) 62% 92%, transparent 92%); padding-inline: 0.1em; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-note { margin-top: 1.25rem; font-size: var(--fs-300); color: #b9c4ee; max-width: 56ch; }
.hero-art { position: relative; max-width: 30rem; margin-inline: auto; width: 100%; }
.hero-art > svg { width: 100%; }

.glass { background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.28); border-radius: var(--r-lg); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.25); color: #fff; padding: 0.85rem 1.1rem; }
.glass strong { color: #fff; display: block; font-family: var(--font-display); line-height: 1.25; }
.glass small { display: block; color: #cfd8ff; font-size: var(--fs-300); line-height: 1.4; }
.glass--float { position: absolute; display: flex; gap: 0.7rem; align-items: center; max-width: 13.5rem; }
.glass--float .icon { color: var(--accent-bright); }
.glass--tl { top: -3%; left: 0; }
.glass--br { bottom: 0; right: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 36px; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: var(--fs-300); font-weight: 500; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.25); color: #fff; }
.chip .icon { color: var(--accent-bright); width: 1.05em; height: 1.05em; }
.chip--light { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.chip--light .icon { color: var(--accent); }

/* One-time droplet in the hero illustration; the call button pulses when it lands */
.drop { transform-box: fill-box; transform-origin: center; animation: drop-fall 1.1s cubic-bezier(0.55, 0, 0.9, 0.6) 0.8s 1 both; }
.drop--far { --fall: 112px; }
.ripple { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ripple 1.1s ease-out 1.85s 1 both; }
.btn-call--pulse { animation: pulse 1.2s ease-out 1.85s 1; }
@keyframes drop-fall { 0% { transform: translateY(calc(var(--fall, 34px) * -1)); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes ripple { 0% { transform: scale(0.2); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0.65), 0 8px 22px -6px rgb(20 83 45 / 0.55); } 100% { box-shadow: 0 0 0 18px rgb(74 222 128 / 0), 0 8px 22px -6px rgb(20 83 45 / 0.55); } }

/* ---------- 7. Cards, bento, callouts ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
a.card, .card--lift { display: block; color: inherit; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
a.card:hover, .card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--primary-100); color: inherit; }
.card h3, .card h4 { margin-bottom: 0.4em; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--primary-50); color: var(--primary); margin-bottom: 1rem; }
.card--area { border-left: 6px solid var(--primary); }
.card--tint { background: var(--primary-50); box-shadow: none; }
.card--accent { background: linear-gradient(150deg, var(--accent-600), var(--accent)); border-color: transparent; color: #dcfce7; }
.card--accent h3, .card--accent strong, .card--accent a { color: #fff; }
.card--accent .icon-badge { background: rgb(255 255 255 / 0.16); color: #fff; }
.card--accent.prose ul li::before { background: var(--accent-bright); }

.bento { display: grid; gap: 1rem; }
.bento-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-height: 11rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--ink-2); text-decoration: none; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink-2); }
.bento-card h3 { font-size: var(--fs-500); margin-bottom: 0.35em; }
.bento-card p { margin: 0; font-size: var(--fs-400); }
.bento-card--primary { background: linear-gradient(150deg, var(--primary), var(--primary-900)); border-color: transparent; color: #d6ddfa; }
.bento-card--primary:hover { color: #d6ddfa; }
.bento-card--primary h3 { color: #fff; }
.bento-card--primary .icon-badge { background: rgb(255 255 255 / 0.14); color: #fff; }
.bento-card--accent { background: linear-gradient(150deg, var(--accent-600), var(--accent)); border-color: transparent; color: #dcfce7; }
.bento-card--accent:hover { color: #dcfce7; }
.bento-card--accent h3 { color: #fff; }
.bento-card--accent .icon-badge { background: rgb(255 255 255 / 0.16); color: #fff; }
.bento-card--tint { background: var(--primary-50); }
.bento-card .icon-badge { margin-bottom: 0; }
.bento-list { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.4rem; font-size: var(--fs-400); }
.bento-list li { display: flex; align-items: center; gap: 0.5rem; }
.bento-list .icon { width: 1.05em; height: 1.05em; color: var(--accent-bright); }
.bento-list--dark { color: var(--ink-2); }
.bento-list--dark .icon { color: var(--accent); }
.bento-list--no .icon { color: #b42318; }
.plain-address { font-style: normal; margin-bottom: 0.75rem; color: var(--ink); font-weight: 500; }
.bento-more { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: var(--fs-400); color: inherit; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(11rem, auto); }
  .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
  .row-2 { grid-row: span 2; }
}

.callout { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); border: 1px solid; margin-block: 1.5rem; }
.callout > .icon { width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; }
.callout-title { font-family: var(--font-display); font-weight: 800; color: var(--ink); margin: 0 0 0.25rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--tip { background: var(--accent-50); border-color: #b7dcc3; }
.callout--tip > .icon { color: var(--accent); }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-line); }
.callout--warn > .icon { color: var(--warn); }
.callout--warn .callout-title { color: var(--warn); }

/* ---------- 8. Process timeline ---------- */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 1.75rem; top: 1.75rem; bottom: 1.75rem; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent-bright), var(--primary)); transform-origin: top; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .steps:not(.is-visible)::before { transform: scaleY(0); }
.step { position: relative; padding-left: 5rem; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); color: var(--primary); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; box-shadow: 0 0 0 6px var(--bg); }
.on-dark .step::before { background: var(--primary-900); border-color: var(--accent-bright); color: #fff; box-shadow: 0 0 0 6px var(--primary-900); }
.section--tint .step::before { box-shadow: 0 0 0 6px var(--primary-50); }
.step h3 { font-size: var(--fs-500); margin-bottom: 0.3em; }
.step p { margin: 0; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .steps::before { left: 1.75rem; right: calc(33.333% - 0.6rem); top: 1.75rem; bottom: auto; width: auto; height: 3px; transform-origin: left; }
  .js .steps:not(.is-visible)::before { transform: scaleX(0); }
  .step { padding: 5rem 0 0; }
  .step::before { width: 4rem; height: 4rem; font-size: 1.9rem; top: -0.25rem; }
}

/* ---------- 9. Symptom checker ---------- */
.symptom-ui { display: none; }
.js .symptom-ui { display: block; }
.js .symptom-fallback { display: none; }
.symptom-grid { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .symptom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .symptom-grid { grid-template-columns: repeat(4, 1fr); } }
.symptom-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; min-height: 6.5rem; text-align: left; padding: 1rem 1.1rem; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
.symptom-card .icon { color: var(--primary); }
.symptom-card:hover { border-color: var(--primary-100); transform: translateY(-2px); box-shadow: var(--shadow); }
.symptom-card[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-50); box-shadow: var(--shadow); }
.symptom-panel { margin-top: 1rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--primary); box-shadow: var(--shadow); }
.symptom-panel[hidden] { display: none; }
.symptom-panel h3 { font-size: var(--fs-600); }
.badge { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 28px; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: var(--fs-300); font-weight: 600; background: var(--primary-50); color: var(--primary); }
.badge--urgent { background: #fde8e4; color: #8f1d0d; }
.badge--soon { background: var(--warn-bg); color: var(--warn); }
.badge--watch { background: var(--accent-50); color: var(--accent); }

/* Tables (responsive: scroll or stack) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-400); }
.data caption { text-align: left; padding: 1rem 1.1rem 0.25rem; font-weight: 600; color: var(--ink); }
.data th, .data td { text-align: left; vertical-align: top; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); }
.data thead th { background: var(--primary-50); color: var(--primary-900); font-family: var(--font-display); font-weight: 700; }
.data tbody tr:last-child td, .data tbody tr:last-child th { border-bottom: 0; }
@media (max-width: 639px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack tr { display: block; border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
  .table-stack td, .table-stack th { display: block; border: 0; padding: 0.35rem 1.1rem; }
  .table-stack td::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
}

/* ---------- 10. FAQ ---------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.faq > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.85rem 1.25rem; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-500); color: var(--ink); cursor: pointer; list-style: none; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.faq[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq[open] { border-color: var(--primary-100); }
.faq-body { padding: 0 1.25rem 1.1rem; max-width: 68ch; }
.faq-body > :last-child { margin-bottom: 0; }

/* ---------- 11. CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: var(--primary-900); color: #cdd5f3; }
.cta-band::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 55%; width: min(46rem, 130vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgb(74 222 128 / 0.32), rgb(30 48 138 / 0.25) 45%, transparent 70%); filter: blur(30px); }
.cta-band h2 { color: #fff; margin-inline: auto; max-width: 22ch; }
.cta-band p { max-width: 54ch; margin-inline: auto; }
.cta-number { display: block; min-height: 44px; margin: 1rem 0 1.5rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 1rem + 7vw, 5rem); letter-spacing: -0.03em; line-height: 1.05; color: #fff; text-decoration: none; text-shadow: 0 0 36px rgb(74 222 128 / 0.55); }
.cta-number:hover { color: var(--accent-bright); }

/* ---------- 12. Page chrome (inner pages) ---------- */
.page-hero { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); background: linear-gradient(180deg, var(--primary-50), var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); max-width: 22ch; }
.page-hero .lead { font-size: var(--fs-500); max-width: 62ch; color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; list-style: none; margin: -0.5rem 0 0.75rem; padding: 0; font-size: var(--fs-400); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.page-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.page-grid > aside { order: -1; }
@media (min-width: 1024px) {
  .page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19.5rem; gap: 3.5rem; align-items: start; }
  .page-grid > aside { order: 0; position: sticky; top: calc(var(--header-h) + 1.25rem); max-height: calc(100vh - var(--header-h) - 2.5rem); overflow-y: auto; margin-inline: -0.5rem; padding: 0.25rem 0.5rem 1.5rem; }
}
.prose { max-width: 68ch; }
.prose > * + h2 { margin-top: 2.5em; }
.prose > * + h3 { margin-top: 1.8em; }
.prose h2 { font-size: var(--fs-700); }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.prose .table-wrap { margin: 1.25rem 0 1.5rem; }
.prose ol { padding-left: 1.4rem; }
.prose ol li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.prose ol li::marker { font-weight: 700; color: var(--primary); }
.answer-first { font-size: var(--fs-500); color: var(--ink); padding: 1.1rem 1.25rem; border-left: 5px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-lg) var(--r-lg) 0; box-shadow: var(--shadow); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.toc > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0.5rem 1.1rem; font-family: var(--font-display); font-weight: 800; color: var(--ink); cursor: pointer; list-style: none; }
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.toc[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.toc ol { list-style: none; margin: 0; padding: 0 0.6rem 0.75rem; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 0.25rem 0.6rem; border-left: 3px solid transparent; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); font-size: var(--fs-300); text-decoration: none; }
.toc a:hover { background: var(--primary-50); color: var(--primary); }
.toc a[aria-current="true"] { border-left-color: var(--accent); background: var(--accent-50); color: var(--accent); font-weight: 600; }
@media (min-width: 1024px) { .toc a { min-height: 32px; } }
.sidebar-cta { display: none; margin-top: 1rem; text-align: center; }
.sidebar-cta .btn { width: 100%; }
.sidebar-cta p { font-size: var(--fs-400); }
@media (min-width: 1024px) {
  .page-grid > aside { display: flex; flex-direction: column; }
  .sidebar-cta { display: block; order: -1; margin: 0 0 1rem; }
}
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.9rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.link-list a:hover { border-color: var(--primary-100); background: var(--primary-50); }

.cta-number--dark { color: var(--primary); text-shadow: none; padding-block: 0.4rem; margin: 0.25rem 0 0.75rem; font-size: clamp(2rem, 1.2rem + 4vw, 3rem); }
.cta-number--dark:hover { color: var(--primary-700); }
.sidebar-card { text-align: center; }
.detail-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
.detail-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.detail-list .icon { color: var(--primary); margin-top: 0.2rem; }
.detail-list strong { display: block; font-family: var(--font-display); }
.link-list--grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .link-list--grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .link-list--grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 13. Forms ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid #75829a; border-radius: var(--r-sm); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--primary-100); outline-offset: 0; border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: var(--fs-300); min-height: 1.2em; }
.form-status { padding: 0.9rem 1rem; border-radius: var(--r-sm); background: var(--accent-50); color: var(--accent); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-note { font-size: var(--fs-300); color: var(--muted); }
@media (min-width: 640px) { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--footer-bg); color: #b9c4ee; padding-block: calc(var(--peak) + 3rem) 2rem; margin-top: calc(var(--peak) * -1); clip-path: polygon(0 var(--peak), 66% 0, 100% var(--peak), 100% 100%, 0 100%); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; } }
.site-footer h2 { font-size: var(--fs-500); color: #fff; margin-bottom: 0.8em; letter-spacing: 0; }
.site-footer a { color: #e6ebff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--accent-bright); text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-500); color: #fff; margin-bottom: 0.75rem; }
.footer-brand img { width: 2.5rem; height: 2.5rem; border-radius: 10px; border: 1px solid rgb(255 255 255 / 0.25); }
.footer-note { font-size: var(--fs-300); max-width: 42ch; }
.footer-address { font-style: normal; margin-top: 0.75rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.15); font-size: var(--fs-300); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }

/* ---------- 15. Mobile sticky call bar ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 0.6rem; align-items: center; padding: 0.55rem max(1rem, env(safe-area-inset-right, 0px)) calc(0.55rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); background: rgb(13 22 64 / 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgb(255 255 255 / 0.15); }
.callbar .btn { flex: 1; min-height: 52px; }
.callbar-label { color: #cfd8ff; font-size: var(--fs-300); line-height: 1.25; max-width: 7.5rem; }
@media (min-width: 768px) { .callbar { display: none; } body { padding-bottom: 0; } }

/* ---------- 16. 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.not-found .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 3rem + 14vw, 11rem); line-height: 1; letter-spacing: -0.05em; color: var(--primary); }

.btn-row--center { justify-content: center; }
.not-found .lead { margin-inline: auto; font-size: var(--fs-500); }
.not-found-h { margin-top: 3rem; font-size: var(--fs-600); }
.not-found-list { text-align: left; margin-top: 1.25rem; }

/* ---------- 16b. Contractor additions: photo slots, ratings, reviews, quote form, placeholders ---------- */
.chips--light { margin-top: 1.25rem; }
.photo-slot-fig { margin: 1.5rem 0; }
.photo-slot { position: relative; aspect-ratio: 3 / 2; display: grid; align-content: center; justify-items: center; gap: 0.35rem; padding: 1rem; text-align: center; color: var(--ink-2); border: 2px dashed #75829a; border-radius: var(--r-lg); background: repeating-linear-gradient(135deg, var(--primary-50) 0 14px, #fff 14px 28px); }
.photo-slot .icon { color: var(--primary); }
.photo-slot-title { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.photo-slot-note { max-width: 36ch; font-size: var(--fs-400); }
.photo-tag { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.1rem 0.7rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--fs-300); font-weight: 600; }
.photo-slot-fig img { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
.photo-slot-fig figcaption { margin-top: 0.5rem; font-size: var(--fs-300); color: var(--muted); }
.photo-pair { display: grid; gap: 1rem; margin: 1.5rem 0; }
.photo-pair .photo-slot-fig { margin: 0; }
@media (min-width: 640px) { .photo-pair { grid-template-columns: 1fr 1fr; } }
.gallery-grid { display: grid; gap: 1rem; }
.gallery-grid .photo-slot-fig { margin: 0; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.placeholder-note { margin: 0 0 1.25rem; padding: 0.8rem 1rem; border: 2px dashed var(--warn-line); border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); font-size: var(--fs-400); }
.placeholder-box { padding: 1.1rem 1.25rem; border: 2px dashed var(--warn-line); border-radius: var(--r-lg); background: var(--warn-bg); color: var(--warn); }
.placeholder-box strong { color: var(--warn); }
.stars-svg { width: 7.5rem; height: 1.5rem; flex: none; }
.stars-svg--sm { width: 5rem; height: 1rem; }
.rating-block { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-bottom: 1.5rem; }
.rating-score { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 2rem + 3vw, 4rem); line-height: 1; color: var(--ink); }
.rating-meta { color: var(--muted); font-size: var(--fs-400); }
.review-card p { margin: 0 0 0.75rem; }
.review-card .review-by { font-weight: 600; color: var(--ink); margin: 0; }
.trust-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-grid .card { padding: 1.25rem; }
.trust-grid h3 { font-size: var(--fs-500); margin-bottom: 0.3em; }
.trust-grid p { margin: 0; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form .btn { justify-self: start; }
.quote-wrap { max-width: 46rem; }
.hero-trust { margin-top: 1.25rem; }
.hero-note a { color: #fff; font-weight: 600; }
.hero-note a:hover { color: var(--accent-bright); }

/* ---------- 17. Motion ---------- */
.js [data-reveal]:not(.steps) { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js [data-reveal].is-visible:not(.steps) { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal]:not(.steps) { opacity: 1; transform: none; }
  .js .steps:not(.is-visible)::before { transform: none; }
  .drop { opacity: 0; }
  .btn:hover, a.card:hover, .card--lift:hover, .bento-card:hover { transform: none; }
}
.photo-slot-fig img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo-slot-fig img.photo-natural { aspect-ratio: auto; object-fit: contain; }
.gallery-grid { align-items: start; }