/* Bluestem Ridge Roofing Co. — demo v3 (sample site)
   1. Tokens  2. Base  3. Components  4. Sections  5. Motion states */

/* ---------- 1. Tokens (defined before any section; every section reuses them) ---------- */
:root {
  /* colour */
  --storm: #14232b;
  --slate: #2b4350;
  --bluestem: #3f6b77;
  --bluestem-lt: #9fc3cc;
  --sky: #e9f0f2;
  --white: #ffffff;
  --fallstem: #8e2b3d;
  --fallstem-dk: #74202f;
  --fallstem-lt: #d77b8b;
  --seed: #e3c77a;
  --muted: #4e5f67;
  --line: #c9d7dc;
  --line-dk: rgba(159, 195, 204, 0.28);

  /* type */
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.5rem, 1.2rem + 1.2vw, 1.75rem);
  --step-4: clamp(1.9rem, 1.4rem + 2vw, 2.25rem);
  --step-5: clamp(2.4rem, 1.6rem + 3.4vw, 3rem);
  --step-6: clamp(3rem, 1.8rem + 5.2vw, 4.25rem);
  --step-7: clamp(3.4rem, 1.6rem + 7.6vw, 6rem);
  --lh-tight: 0.95;
  --lh-body: 1.6;

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --gutter: clamp(18px, 4vw, 48px);
  --max: 1240px;

  /* radius + shadow */
  --r-sm: 4px;
  --r-md: 10px;
  --r-pill: 999px;
  --shadow-lift: 0 18px 40px -18px rgba(20, 35, 43, 0.45), 0 2px 6px rgba(20, 35, 43, 0.08);
  --shadow-press: inset 0 2px 0 rgba(20, 35, 43, 0.18);

  /* motion */
  --ease: cubic-bezier(0.45, 0, 0.55, 1);
  --t-fast: 160ms;
  --t-med: 320ms;

  --header-h: 68px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: var(--lh-body);
  color: var(--storm);
  background: var(--sky);
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--fallstem); text-underline-offset: 3px; }
a:hover { color: var(--fallstem-dk); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h2 { font-size: var(--step-6); }
h3 { font-size: var(--step-4); font-weight: 700; }
p { margin: 0 0 var(--s-4); max-width: 68ch; }
:focus-visible { outline: 3px solid var(--fallstem); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible, .site-header :focus-visible, .mobile-menu :focus-visible, .hero :focus-visible,
.lightbox :focus-visible, .action-bar :focus-visible, .story :focus-visible, .area :focus-visible { outline-color: var(--seed); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: var(--step-2); line-height: 1.5; color: var(--muted); max-width: 56ch; }
.on-dark { color: var(--white); }
.on-dark .lede { color: var(--bluestem-lt); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--white); color: var(--storm); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: var(--s-4); }

/* ---------- 3. Components ---------- */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-sm); border: 2px solid transparent;
  font-weight: 700; font-size: var(--step-0); line-height: 1.2; text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-press); }
.btn-primary { background: var(--fallstem); color: var(--white); }
.btn-primary:hover { background: var(--fallstem-dk); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--storm); background: transparent; }
.btn-ghost:hover { background: var(--storm); color: var(--white); border-color: var(--storm); }
.on-dark .btn-ghost, .btn-ghost.on-dark { color: var(--white); }
.on-dark .btn-ghost:hover, .btn-ghost.on-dark:hover { background: var(--white); color: var(--storm); border-color: var(--white); }
.btn-quiet { background: var(--white); color: var(--storm); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--storm); color: var(--storm); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Sample tag */
.sample-tag {
  position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 56; margin: 0;
  font-size: 11px; font-weight: 600; line-height: 1; text-align: center; max-width: none;
  padding: 6px 10px 2px; background: rgba(20, 35, 43, 0.96); color: var(--bluestem-lt);
  pointer-events: none;
}
@media (min-width: 900px) {
  .sample-tag {
    left: auto; right: 16px; bottom: 16px; padding: 7px 12px; border-radius: var(--r-pill);
    font-size: 12px; color: var(--white); background: rgba(20, 35, 43, 0.9);
    border: 1px solid var(--line-dk); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
}

/* Small tag used on sample reviews */
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; line-height: 1;
  padding: 5px 9px; border-radius: var(--r-pill);
  background: var(--sky); color: var(--bluestem); border: 1px solid var(--line);
}

/* Option cards (radio-based, shared by estimate + form) */
.options { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: 0; padding: 0; margin: 0; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span.option-body {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  min-height: 56px; padding: 12px 14px;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--r-md);
  font-weight: 700; font-size: var(--step-0); line-height: 1.25;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.option small { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.option input:checked + .option-body { border-color: var(--fallstem); background: #fbf3f4; box-shadow: inset 0 0 0 1px var(--fallstem); }
.option input:focus-visible + .option-body { outline: 3px solid var(--fallstem); outline-offset: 2px; }
.option input:active + .option-body { transform: scale(0.985); }

/* Fields */
.field { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.field label, .legend { font-weight: 700; font-size: var(--step-0); }
.field .hint { font-size: var(--step--1); color: var(--muted); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--white);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bluestem); box-shadow: 0 0 0 3px rgba(63, 107, 119, 0.25); }
.field [aria-invalid="true"] { border-color: var(--fallstem); }
.error { color: var(--fallstem); font-size: var(--step--1); font-weight: 700; margin: 0; }
.error:empty { display: none; }

/* ---------- 4. Sections ---------- */
/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.site-header.is-solid, .no-js .site-header { background: var(--storm); box-shadow: 0 1px 0 var(--line-dk); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand:hover { color: var(--white); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 0.9; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.02em; color: var(--bluestem-lt); margin-top: 3px; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--white); text-decoration: none; font-weight: 600; font-size: var(--step-0); border-radius: var(--r-sm); }
.nav a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.header-phone { display: none; color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; min-height: 44px; align-items: center; }
.header-phone:hover { color: var(--seed); }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px;
  background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.5); border-radius: var(--r-sm); font-weight: 700;
}
.menu-toggle .bars { width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after, .menu-toggle .bars i { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform var(--t-fast) var(--ease), opacity var(--t-fast); }
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars i { top: 5px; } .menu-toggle .bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars i { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: var(--storm); color: var(--white); padding: var(--s-4) var(--gutter) var(--s-6);
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.5);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.mobile-menu li a { display: flex; align-items: center; min-height: 52px; color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; border-bottom: 1px solid var(--line-dk); }
.mobile-menu .btn { width: 100%; margin-top: var(--s-2); }
.mobile-menu { max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.mm-label { margin: 0 0 var(--s-1); font-size: var(--step--1); font-weight: 700; color: var(--bluestem-lt); }
.mobile-menu ul.mm-services { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-4); margin-bottom: var(--s-4); }
.mobile-menu .mm-services li a { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; min-height: 48px; }
.mobile-menu li a[aria-current="page"] { color: var(--seed); }

/* Desktop "Services" dropdown */
.nav > ul > li { position: relative; display: flex; align-items: center; }
.nav-sub-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: transparent; border: 0; border-radius: var(--r-sm); color: var(--white); font-weight: 600; font-size: var(--step-0); }
.nav-sub-toggle:hover, .has-sub.is-open .nav-sub-toggle { background: rgba(255, 255, 255, 0.1); }
.nav-sub-toggle svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.has-sub.is-open .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub {
  display: none; position: absolute; top: calc(100% + 10px); left: -8px; width: 560px; z-index: 60;
  background: var(--storm); border: 1px solid var(--line-dk); border-radius: var(--r-md); padding: var(--s-3); box-shadow: var(--shadow-lift);
}
.has-sub.is-open .nav-sub, .no-js .has-sub:hover .nav-sub, .no-js .has-sub:focus-within .nav-sub { display: block; }
.nav .nav-sub ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav .nav-sub a { display: block; min-height: 0; padding: 10px 12px; line-height: 1.25; }
.nav .nav-sub a small { display: block; font-weight: 500; font-size: var(--step--1); color: var(--bluestem-lt); margin-top: 2px; }
.nav .nav-sub a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); box-shadow: inset 4px 0 0 var(--fallstem-lt); }
.nav .nav-sub .nav-sub-all { display: flex; align-items: center; min-height: 44px; margin-top: var(--s-2); border-top: 1px solid var(--line-dk); border-radius: 0; color: var(--seed); }
@media (min-width: 1100px) {
  .nav { display: block; }
  .header-phone { display: inline-flex; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 10px 16px; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--white); overflow: hidden; background: var(--storm); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 35, 43, 0.72) 0%, rgba(20, 35, 43, 0) 22%),
    linear-gradient(0deg, rgba(20, 35, 43, 0.96) 0%, rgba(20, 35, 43, 0.82) 38%, rgba(20, 35, 43, 0.15) 70%);
}
.hero-inner { position: relative; z-index: 2; padding-top: calc(var(--header-h) + var(--s-7)); padding-bottom: var(--s-6); display: grid; gap: var(--s-6); }
.hero h1 { font-size: var(--step-7); margin-bottom: var(--s-4); max-width: 13ch; }
.hero h1 .line { display: block; }
.hero-sub { font-size: var(--step-1); line-height: 1.55; color: #dce8eb; max-width: 50ch; margin-bottom: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-actions .btn { flex: 1 1 220px; }
.hero-card {
  display: none; align-self: end;
  background: rgba(20, 35, 43, 0.78); border: 1px solid var(--line-dk); border-radius: var(--r-md);
  padding: var(--s-5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--step-0); margin-bottom: var(--s-2); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bluestem-lt); box-shadow: 0 0 0 4px rgba(159, 195, 204, 0.2); }
.status.is-open::before { background: #7fd3a0; box-shadow: 0 0 0 4px rgba(127, 211, 160, 0.22); }
.hero-card p { color: #dce8eb; font-size: var(--step-0); margin-bottom: var(--s-3); }
.hero-card .big-phone { display: flex; align-items: center; min-height: 48px; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--white); text-decoration: none; margin-bottom: var(--s-4); }
.hero-card .big-phone:hover { color: var(--seed); }
.trust { position: relative; z-index: 2; border-top: 1px solid var(--line-dk); background: rgba(20, 35, 43, 0.6); }
.trust ul { list-style: none; margin: 0 auto; padding-block: var(--s-4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); font-weight: 600; line-height: 1.35; color: #dce8eb; }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--bluestem-lt); margin-top: 1px; }
@media (max-width: 899px) { .hero { padding-bottom: 92px; } .hero-inner { padding-top: calc(var(--header-h) + var(--s-6)); } }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 320px; align-items: end; padding-bottom: var(--s-7); }
  .hero-card { display: block; }
  .hero-actions .btn { flex: 0 0 auto; }
  .trust ul { grid-template-columns: repeat(4, 1fr); padding-block: var(--s-5); }
  .trust li { font-size: var(--step-0); }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(20, 35, 43, 0.7) 0%, rgba(20, 35, 43, 0) 20%),
      linear-gradient(90deg, rgba(20, 35, 43, 0.92) 0%, rgba(20, 35, 43, 0.7) 42%, rgba(20, 35, 43, 0.05) 75%),
      linear-gradient(0deg, rgba(20, 35, 43, 0.85) 0%, rgba(20, 35, 43, 0) 35%);
  }
}

/* Section scaffolding */
.section { padding-block: var(--s-8); }
.section-head { margin-bottom: var(--s-6); max-width: 760px; }
@media (min-width: 900px) { .section { padding-block: var(--s-9); } }

/* Roof check */
.rc-grid { display: grid; gap: var(--s-6); }
.house { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--slate); aspect-ratio: 1000 / 923; box-shadow: var(--shadow-lift); }
.house img { width: 100%; height: 100%; object-fit: cover; }
.pin {
  position: absolute; transform: translate(-15px, -50%);
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 12px 6px 8px;
  background: var(--white); color: var(--storm); border: 0; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--step--1); line-height: 1;
  box-shadow: 0 6px 16px -6px rgba(20, 35, 43, 0.6);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.pin::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--fallstem); box-shadow: 0 0 0 4px rgba(142, 43, 61, 0.22); flex: none; }
@media (max-width: 699px) {
  .pin { width: 44px; height: 44px; padding: 0; justify-content: center; transform: translate(-50%, -50%); background: rgba(255,255,255,0.92); }
  .pin .pin-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pin-left { transform: translate(-50%, -50%) !important; }
}
.pin-left { flex-direction: row-reverse; padding: 6px 8px 6px 12px; transform: translate(calc(-100% + 15px), -50%); }
.pin[aria-pressed="true"] { background: var(--fallstem); color: var(--white); }
.pin[aria-pressed="true"]::before { background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35); }
.house-cap { font-size: var(--step--1); color: var(--muted); margin: var(--s-3) 0 0; }
.rc-panel { background: var(--white); border-radius: var(--r-md); padding: var(--s-5); box-shadow: var(--shadow-lift); }
.rc-q { font-size: var(--step-4); margin-bottom: var(--s-3); }
.rc-options { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.rc-options .chip { font-size: var(--step--1); padding: 8px 14px; background: var(--sky); border-color: var(--sky); }
.rc-options .chip[aria-pressed="true"] { background: var(--storm); border-color: var(--storm); color: var(--white); }
.rc-empty { margin: var(--s-4) 0 0; color: var(--muted); font-size: var(--step-0); }
.rc-live:empty { display: none; }
.chip {
  min-height: 44px; padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--white); border: 2px solid var(--line); font-weight: 700; font-size: var(--step-0);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast);
}
.chip[aria-pressed="true"] { background: var(--storm); border-color: var(--storm); color: var(--white); }
.rc-results { display: grid; gap: var(--s-4); align-content: start; }
.dx {
  background: var(--white); border-radius: var(--r-md); padding: var(--s-5);
  border-left: 6px solid var(--fallstem); box-shadow: var(--shadow-lift);
}
.dx h3 { font-size: var(--step-5); margin-bottom: var(--s-3); }
.dx dl { margin: 0 0 var(--s-4); display: grid; gap: var(--s-3); }
.dx dt { font-weight: 700; font-size: var(--step-0); }
.dx dd { margin: 0; color: var(--muted); font-size: var(--step-0); }
.urgency { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); font-weight: 700; font-size: var(--step-0); }
.meter { display: grid; grid-template-columns: repeat(4, 22px); gap: 4px; }
.meter i { height: 10px; border-radius: 2px; background: var(--line); transform-origin: left; }
.meter[data-level="1"] i:nth-child(-n+1), .meter[data-level="2"] i:nth-child(-n+2),
.meter[data-level="3"] i:nth-child(-n+3), .meter[data-level="4"] i:nth-child(-n+4) { background: var(--fallstem); }
.js .dx[hidden] { display: none; }
@media (min-width: 960px) { .rc-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }

/* Services: tabs with big photo */
.services { background: var(--white); }
.svc { display: grid; gap: var(--s-5); }
.svc-tabs { display: flex; gap: var(--s-2); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.svc-tabs::-webkit-scrollbar { display: none; }
.svc-tab {
  flex: none; scroll-snap-align: start; text-align: left;
  min-height: 48px; padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--sky); border: 2px solid transparent; font-weight: 700; font-size: var(--step-0);
}
.svc-tab[aria-selected="true"] { background: var(--storm); color: var(--white); }
.svc-tab small { display: none; }
.svc-panel { display: grid; gap: 0; border-radius: var(--r-md); overflow: hidden; background: var(--sky); }
.no-js .svc-tabs { display: none; }
.no-js .svc-panels { display: grid; gap: var(--s-5); }
.js .svc-panel[hidden] { display: none; }
.svc-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: var(--s-5); }
.svc-body h3 { font-size: var(--step-5); }
.svc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: 0 0 var(--s-5); padding: var(--s-4) 0 0; border-top: 1px solid var(--line); }
.svc-facts dt { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.svc-facts dd { margin: 0; font-weight: 700; font-size: var(--step-0); line-height: 1.35; }
@media (min-width: 960px) {
  .svc { grid-template-columns: 320px 1fr; gap: var(--s-6); align-items: start; }
  .svc-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 0; border-top: 1px solid var(--line); }
  .svc-tab { border-radius: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 16px 8px 16px 18px; position: relative; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; }
  .svc-tab small { display: block; font-family: var(--font-body); font-size: var(--step--1); font-weight: 500; color: var(--muted); margin-top: 6px; }
  .svc-tab::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 5px; border-radius: 3px; background: transparent; transition: background-color var(--t-fast); }
  .svc-tab[aria-selected="true"] { background: var(--sky); color: var(--storm); }
  .svc-tab[aria-selected="true"]::before { background: var(--fallstem); }
  .svc-tab:hover { background: var(--sky); }
  .svc-panel { grid-template-columns: 1.1fr 1fr; min-height: 520px; }
  .svc-photo { aspect-ratio: auto; height: 100%; }
  .svc-body { padding: var(--s-6); align-self: center; }
}

/* Story (pinned scroll section) */
.story { background: var(--storm); color: var(--white); position: relative; }
.story-intro { padding: var(--s-8) var(--gutter) var(--s-5); max-width: var(--max); margin-inline: auto; }
.story-intro h2 { font-size: var(--step-6); max-width: 14ch; }
.story-frames { display: grid; gap: var(--s-5); padding: 0 var(--gutter) var(--s-8); max-width: var(--max); margin-inline: auto; }
.story-frame { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; }
.story-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.story-frame figcaption { padding: var(--s-4) 0 0; }
.story-day { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; color: var(--white); margin-bottom: 6px; }
.story-day::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--fallstem-lt); margin-bottom: 12px; }
.story-frame figcaption p { color: #dce8eb; margin: 0; font-size: var(--step-0); max-width: 44ch; }
.story-rail, .rain { display: none; }

/* Pinned version (only when motion is allowed and GSAP ran) */
.story.is-pinned .story-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.story.is-pinned .story-intro { position: absolute; z-index: 4; inset: 0 auto auto 0; padding: calc(var(--header-h) + var(--s-6)) var(--gutter) 0; max-width: 620px; }
.story.is-pinned .story-frames { position: absolute; inset: 0; padding: 0; max-width: none; display: block; }
.story.is-pinned .story-frame { position: absolute; inset: 0; border-radius: 0; }
.story.is-pinned .story-frame img { aspect-ratio: auto; height: 100%; }
.story.is-pinned .story-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 35, 43, 0.95) 0%, rgba(20, 35, 43, 0.8) 26%, rgba(20, 35, 43, 0.2) 52%, rgba(20, 35, 43, 0) 70%), linear-gradient(90deg, rgba(20, 35, 43, 0.55) 0%, rgba(20, 35, 43, 0) 50%); pointer-events: none; }
.story.is-pinned .story-frame figcaption { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: calc(var(--s-7) + 56px); padding: 0; max-width: 520px; }
.story.is-pinned .story-day { font-size: var(--step-6); }
.story.is-pinned .story-frame figcaption p { font-size: var(--step-1); }
.story.is-pinned .story-rail {
  display: flex; position: absolute; z-index: 5; right: var(--gutter); top: 50%; transform: translateY(-50%);
  flex-direction: column; gap: var(--s-3); list-style: none; margin: 0; padding: 14px 16px;
  background: rgba(20, 35, 43, 0.72); border-radius: var(--r-md); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.story-rail li { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-weight: 700; font-size: var(--step--1); color: var(--bluestem-lt); transition: color var(--t-fast); }
.story-rail li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; transition: background-color var(--t-fast); }
.story-rail li.is-active { color: var(--white); }
.story-rail li.is-active::after { background: var(--fallstem-lt); border-color: var(--fallstem-lt); }
.story.is-pinned .rain {
  display: block; position: absolute; inset: -40% 0 0 0; z-index: 3; pointer-events: none; opacity: 0.35;
  background-image: repeating-linear-gradient(104deg, transparent 0 22px, rgba(220, 232, 235, 0.5) 22px 23px, transparent 23px 61px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
@media (max-width: 899px) {
  .story.is-pinned .story-rail { display: none; }
  .story.is-pinned .story-frame figcaption { bottom: calc(96px + var(--s-5)); }
  .story.is-pinned .story-day { font-size: var(--step-5); }
}
@media (min-width: 900px) {
  .story-frames { grid-template-columns: repeat(3, 1fr); }
}

/* Estimate */
.est-grid { display: grid; gap: var(--s-6); }
.est-controls { display: grid; gap: var(--s-5); align-content: start; }
.est-live {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  background: var(--storm); color: var(--white); border-radius: var(--r-md); padding: 10px 16px;
  box-shadow: var(--shadow-lift);
}
.est-live span { font-size: var(--step--1); font-weight: 600; color: var(--bluestem-lt); }
.est-live strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.est-controls fieldset { border: 0; padding: 0; margin: 0; }
.est-controls legend, .est-controls .legend { margin-bottom: var(--s-3); padding: 0; }
.range-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.range-row output { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; white-space: nowrap; }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--fallstem); margin: 0; background: transparent; }
.range-ends { display: flex; justify-content: space-between; font-size: var(--step--1); color: var(--muted); }
.swatch { width: 26px; height: 18px; border-radius: 3px; display: inline-block; margin-bottom: 4px; border: 1px solid rgba(0,0,0,0.15); }
.est-card {
  background: var(--storm); color: var(--white); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-lift); align-self: start;
}
.est-art { background: linear-gradient(180deg, #cfe0e5 0%, #e9f0f2 100%); padding: var(--s-5) var(--s-5) 0; }
.est-art svg { width: 100%; height: auto; max-height: 220px; margin-inline: auto; }
.est-out { padding: var(--s-5); }
.est-label { display: inline-block; font-size: var(--step--1); font-weight: 700; line-height: 1.3; color: var(--storm); background: var(--seed); padding: 5px 10px; border-radius: var(--r-sm); margin-bottom: var(--s-3); }
.est-range { font-family: var(--font-display); font-weight: 800; font-size: var(--step-5); line-height: 1; margin: 0 0 var(--s-2); font-variant-numeric: tabular-nums; }
.est-meta { color: var(--bluestem-lt); font-size: var(--step-0); margin-bottom: var(--s-4); }
.est-why { list-style: none; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: 6px; font-size: var(--step-0); color: #dce8eb; }
.est-why li { padding-left: 18px; position: relative; }
.est-why li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 2px; background: var(--fallstem-lt); }
.est-actions { display: grid; gap: var(--s-2); }
.roof-path { transition: fill var(--t-med) var(--ease); }
@media (min-width: 960px) { .est-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); } .est-card { position: sticky; top: calc(var(--header-h) + 24px); } .est-live { display: none; } .est-range { font-size: var(--step-6); } }

/* Job tracker */
.process { background: var(--white); }
.proc-grid { display: grid; gap: var(--s-6); }
.proc-photo { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.proc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.tracker { position: relative; }
.stages-wrap { position: relative; margin: 0 0 var(--s-5); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.stages-wrap::before { content: ""; position: absolute; left: 10%; right: 10%; top: 22px; height: 3px; background: var(--line); }
.stages-wrap .fill { position: absolute; left: 10%; top: 22px; height: 3px; background: var(--fallstem); width: 0; transition: width var(--t-med) var(--ease); }
.stage-btn {
  position: relative; z-index: 1; width: 100%; background: none; border: 0; padding: 0 2px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  font-size: var(--step--1); font-weight: 700; line-height: 1.2; color: var(--muted); min-height: 44px;
}
.stage-btn .dot {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 3px solid var(--line); font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--muted);
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.stage-btn.is-done .dot { border-color: var(--fallstem); color: var(--fallstem); }
.stage-btn[aria-selected="true"] { color: var(--storm); }
.stage-btn[aria-selected="true"] .dot { background: var(--fallstem); border-color: var(--fallstem); color: var(--white); transform: scale(1.08); }
.stage-panel { background: var(--sky); border-radius: var(--r-md); padding: var(--s-5); min-height: 250px; }
.stage-panel h3 { font-size: var(--step-5); }
.stage-panel .when { display: inline-block; font-weight: 700; font-size: var(--step--1); background: var(--white); border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: var(--s-3); }
.stage-nav { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.no-js .stages { display: none; }
.no-js .stage-panel + .stage-panel { margin-top: var(--s-3); }
.js .stage-panel[hidden] { display: none; }
@media (max-width: 520px) { .stage-btn .label { font-size: 12px; } .stage-btn .dot { width: 40px; height: 40px; } .stages::before, .stages .fill { top: 19px; } }
@media (min-width: 960px) { .proc-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-7); align-items: center; } .proc-photo { aspect-ratio: 4 / 5; } }

/* Gallery */
.gallery-grid { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
.g-item { position: relative; margin: 0; border: 0; padding: 0; background: var(--slate); border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; display: block; width: 100%; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item { cursor: zoom-in; }
.g-item .g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; text-align: left; color: var(--white); font-size: var(--step--1); font-weight: 600; line-height: 1.3; background: linear-gradient(0deg, rgba(20,35,43,0.85), transparent); }
.g-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.g-tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-note { font-size: var(--step--1); color: var(--muted); margin-top: var(--s-3); }
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: var(--s-3); }
  .g-item { aspect-ratio: auto; height: 100%; }
  .g-wide { grid-column: span 2; aspect-ratio: auto; }
  .g-big { grid-column: span 2; grid-row: span 2; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10, 18, 23, 0.96); color: var(--white); }
.lightbox::backdrop { background: rgba(10, 18, 23, 0.8); }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: var(--s-3) var(--gutter); }
.lb-count { font-weight: 700; font-size: var(--step-0); }
.lb-stage { position: relative; min-height: 0; overflow: hidden; touch-action: pan-y; margin: 0 var(--s-2); }
.lb-stage img { position: absolute; inset: 0; margin: auto; max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); }
.lb-bottom { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--gutter) var(--s-5); }
.lb-cap { flex: 1; margin: 0; max-width: none; font-size: var(--step-0); color: #dce8eb; }
.icon-btn { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid var(--line-dk); }
.icon-btn:hover { background: rgba(255,255,255,0.2); }
.icon-btn svg { width: 22px; height: 22px; }

/* Area map */
.area { background: var(--storm); color: var(--white); }
.area-grid { display: grid; gap: var(--s-5); }
.towns { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.town-btn { min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); background: transparent; color: var(--white); border: 2px solid var(--line-dk); font-weight: 600; font-size: var(--step-0); }
.town-btn:hover { border-color: var(--bluestem-lt); }
.town-btn[aria-pressed="true"] { background: var(--white); color: var(--storm); border-color: var(--white); }
.town-card { background: var(--slate); border-radius: var(--r-md); padding: var(--s-5); }
.town-card h3 { font-size: var(--step-5); margin-bottom: var(--s-2); }
.town-card .drive { color: var(--seed); font-weight: 700; margin-bottom: var(--s-2); }
.town-card p { color: #dce8eb; font-size: var(--step-0); }
.map { height: 380px; border-radius: var(--r-md); overflow: hidden; background: var(--slate); position: relative; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--s-5); color: var(--bluestem-lt); font-size: var(--step-0); }
.leaflet-container { font-family: var(--font-body); }
.map .leaflet-tile-pane { filter: saturate(0.55) contrast(1.02) brightness(0.98); }
.town-marker { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--fallstem); border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.town-marker.is-active { background: var(--seed); transform: scale(1.35); }
.town-marker.is-home { background: var(--storm); border-color: var(--seed); }
@media (min-width: 960px) { .area-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-7); align-items: start; } .map { height: 560px; } }

/* Reviews */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.reviews-head > div:first-child { flex: 1 1 520px; }
.reviews-head h2 { margin: 0 0 var(--s-2); }
.rv-controls { display: flex; gap: var(--s-2); }
.rv-controls .icon-btn { background: var(--white); color: var(--storm); border-color: var(--line); }
.rv-controls .icon-btn:hover { border-color: var(--storm); }
.rv-controls .icon-btn:disabled { opacity: 0.4; cursor: default; }
.rv-track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-3); scrollbar-width: thin; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); list-style: none; margin-block: 0; }
.rv { scroll-snap-align: start; background: var(--white); border-radius: var(--r-md); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); border-top: 4px solid var(--bluestem); }
.rv:nth-child(2n) { border-top-color: var(--fallstem); }
.rv blockquote { margin: 0; font-size: var(--step-1); line-height: 1.5; }
.rv blockquote p { margin: 0; }
.rv footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); font-size: var(--step-0); }
.rv cite { font-style: normal; font-weight: 700; }
.rv cite span { font-weight: 400; color: var(--muted); }
@media (min-width: 700px) { .rv-track { grid-auto-columns: calc((100% - 2 * var(--s-4)) / 2.2); } }
@media (min-width: 1100px) { .rv-track { grid-auto-columns: calc((100% - 3 * var(--s-4)) / 3.2); } }

/* Request (multi-step form) */
.request { background: var(--white); }
.req-grid { display: grid; gap: var(--s-6); }
.req-aside { display: grid; gap: var(--s-4); align-content: start; }
.call-box { background: var(--storm); color: var(--white); border-radius: var(--r-md); padding: var(--s-5); }
.call-box p { color: #dce8eb; font-size: var(--step-0); }
.call-box .big-phone { display: flex; align-items: center; min-height: 48px; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--white); text-decoration: none; margin: var(--s-2) 0 var(--s-3); }
.call-box .big-phone:hover { color: var(--seed); }
.mini-review { background: var(--sky); border-radius: var(--r-md); padding: var(--s-5); }
.mini-review blockquote { margin: 0 0 var(--s-3); font-size: var(--step-0); }
.mini-review p { margin: 0; }
.wizard { background: var(--sky); border-radius: var(--r-md); padding: var(--s-5); position: relative; }
.progress { margin-bottom: var(--s-5); }
.progress ol { list-style: none; margin: 0 0 var(--s-2); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.progress li.is-current { color: var(--storm); }
.progress li.is-done { color: var(--bluestem); }
.bar { height: 6px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.bar i { display: block; height: 100%; width: 25%; background: var(--fallstem); border-radius: var(--r-pill); transition: width var(--t-med) var(--ease); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-family: var(--font-display); font-weight: 800; font-size: var(--step-5); line-height: 1; padding: 0; margin-bottom: var(--s-2); }
.step .step-hint { color: var(--muted); font-size: var(--step-0); margin-bottom: var(--s-4); }
.js .step[hidden] { display: none; }
.no-js .step + .step { margin-top: var(--s-6); }
.group { margin-bottom: var(--s-5); }
.group > .legend { display: block; margin-bottom: var(--s-2); }
.form-nav { display: flex; gap: var(--s-3); justify-content: space-between; margin-top: var(--s-5); }
.form-nav .btn-primary { margin-left: auto; }
.review-list { margin: 0 0 var(--s-4); display: grid; gap: 0; background: var(--white); border-radius: var(--r-md); }
.review-list div { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.review-list div:last-child { border-bottom: 0; }
.review-list dt { font-size: var(--step--1); color: var(--muted); font-weight: 600; grid-column: 1; }
.review-list dd { margin: 0; font-weight: 700; font-size: var(--step-0); grid-column: 1; overflow-wrap: anywhere; }
.review-list .edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: none; border: 0; color: var(--fallstem); font-weight: 700; text-decoration: underline; min-height: 44px; padding: 0 6px; }
.form-note { font-size: var(--step--1); color: var(--muted); }
.success { text-align: left; }
.success h3 { font-size: var(--step-5); }
.success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--fallstem); color: var(--white); display: grid; place-items: center; margin-bottom: var(--s-4); }
.success .check svg { width: 28px; height: 28px; }
.demo-note { background: var(--white); border-left: 4px solid var(--seed); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-size: var(--step-0); }
.form-errors { background: #fbf3f4; border: 2px solid var(--fallstem); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); color: var(--fallstem); font-weight: 700; font-size: var(--step-0); margin-bottom: var(--s-4); }
.form-errors[hidden] { display: none; }
@media (min-width: 960px) { .req-grid { grid-template-columns: 1fr 340px; gap: var(--s-7); } .wizard { padding: var(--s-6); } }

/* FAQ */
.faq-list { border-top: 2px solid var(--storm); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-family: var(--font-body); font-size: var(--step-1); font-weight: 700; line-height: 1.35; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); background: none; border: 0; padding: var(--s-4) 0; text-align: left; min-height: 60px; font-weight: 700; }
.faq-q .pm { width: 28px; height: 28px; flex: none; position: relative; border-radius: 50%; border: 2px solid var(--storm); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform var(--t-fast) var(--ease); }
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .pm { background: var(--storm); color: var(--white); }
.faq-q[aria-expanded="true"] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a > div { padding: 0 0 var(--s-5); color: var(--muted); }
.faq-a p { font-size: var(--step-0); }
.js .faq-a[hidden] { display: none; }

/* Closing band */
.closer { position: relative; color: var(--white); background: var(--slate); overflow: hidden; }
.closer .wrap { position: relative; z-index: 1; display: grid; gap: var(--s-5); align-items: center; }
.closer h2 { font-size: var(--step-6); margin: 0; max-width: 16ch; }
.closer .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.closer svg.ridge { position: absolute; left: 38%; bottom: -60px; width: 760px; max-width: none; opacity: 0.08; color: var(--bluestem-lt); }
@media (min-width: 900px) { .closer .wrap { grid-template-columns: 1fr auto; } }

/* Footer */
.site-footer { background: var(--storm); color: #dce8eb; padding: var(--s-8) 0 calc(var(--s-8) + 70px); font-size: var(--step-0); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--seed); }
.foot-grid { display: grid; gap: var(--s-6); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; color: var(--bluestem-lt); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer address a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer ul { gap: 0; }
.site-footer address { font-style: normal; line-height: 1.7; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-4); }
.hours dt { font-weight: 600; } .hours dd { margin: 0; white-space: nowrap; }
.fine { border-top: 1px solid var(--line-dk); margin-top: var(--s-7); padding-top: var(--s-5); font-size: var(--step--1); color: var(--bluestem-lt); }
.fine p { max-width: none; margin-bottom: var(--s-2); }
@media (min-width: 640px) and (max-width: 899px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 0.9fr 1fr 0.8fr; } .site-footer { padding-bottom: var(--s-8); } }

/* Sticky mobile action bar */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  padding: var(--s-1) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: rgba(20, 35, 43, 0.96);
}
.action-bar .btn { min-height: 50px; padding-inline: 10px; }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------- 4b. Service (money) pages: same tokens and components, a few page-level patterns ---------- */
.hero--page { min-height: 88svh; }
.hero--page h1 { font-size: var(--step-6); max-width: 15ch; }
.hero--page .hero-sub { max-width: 54ch; }
@media (min-width: 900px) { .hero--page { min-height: min(88vh, 860px); } .hero--page h1 { max-width: 17ch; } }
@media (max-width: 899px) {
  /* Service-page photos vary in brightness; an even tint keeps the breadcrumb and headline readable on any of them. */
  .hero--page::after {
    background:
      linear-gradient(rgba(20, 35, 43, 0.38), rgba(20, 35, 43, 0.38)),
      linear-gradient(180deg, rgba(20, 35, 43, 0.72) 0%, rgba(20, 35, 43, 0) 22%),
      linear-gradient(0deg, rgba(20, 35, 43, 0.96) 0%, rgba(20, 35, 43, 0.82) 38%, rgba(20, 35, 43, 0.15) 70%);
  }
}
.crumbs li[aria-current] { color: #dce8eb; }
.crumbs ol { list-style: none; margin: 0 0 var(--s-2); padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: var(--step--1); font-weight: 600; color: var(--bluestem-lt); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-dk); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); }
.crumbs a:hover { color: var(--seed); }
.hero-card .card-facts { margin: 0 0 var(--s-4); display: grid; gap: var(--s-2); }
.hero-card .card-facts div { display: grid; gap: 0; padding-top: var(--s-2); border-top: 1px solid var(--line-dk); }
.hero-card .card-facts dt { font-size: var(--step--1); color: var(--bluestem-lt); font-weight: 600; }
.hero-card .card-facts dd { margin: 0; font-weight: 700; font-size: var(--step-0); }

.band-white { background: var(--white); }
.band-storm { background: var(--storm); color: var(--white); }
.qa h2, .split h2, .callout h2 { font-size: var(--step-5); max-width: 22ch; }
.direct { font-size: var(--step-2); line-height: 1.45; font-weight: 600; color: var(--storm); max-width: 58ch; }
.on-dark .direct { color: var(--white); }
.qa { max-width: 860px; }
.qa + .qa { margin-top: var(--s-8); }
.qa p:not(.direct) { color: var(--muted); }
.on-dark .qa p:not(.direct) { color: #dce8eb; }
.qa a, .split a:not(.btn), .callout a:not(.btn), .prose a { font-weight: 700; }
.band-storm a:not(.btn), .est-why a { color: var(--seed); font-weight: 700; }
.band-storm a:not(.btn):hover, .est-why a:hover { color: var(--white); }

/* Photo + text split with an offset colour block behind the photo */
.split { display: grid; gap: var(--s-6); align-items: center; }
.split-photo { margin: 0 var(--s-4) 0 0; }
.split-frame { position: relative; }
.split-frame::before { content: ""; position: absolute; inset: var(--s-4) calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-4); background: var(--bluestem); border-radius: var(--r-md); }
.split-photo img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-lift); }
.split-photo figcaption { font-size: var(--step--1); color: var(--muted); margin-top: calc(var(--s-4) + var(--s-3)); }
@media (min-width: 960px) {
  .split { grid-template-columns: 0.95fr 1.05fr; gap: var(--s-8); }
  .split--flip .split-photo { order: 2; }
  .split-photo img { aspect-ratio: 4 / 5; }
  .split-photo.is-wide img { aspect-ratio: 4 / 3; }
}

/* Checklist of signs: roof-ridge marks instead of bullets */
.signs { list-style: none; margin: 0 0 var(--s-5); padding: 0; border-top: 2px solid var(--storm); }
.signs li { position: relative; padding: var(--s-3) 0 var(--s-3) 38px; border-bottom: 1px solid var(--line); font-size: var(--step-0); line-height: 1.5; }
.signs li::before { content: ""; position: absolute; left: 6px; top: calc(var(--s-3) + 0.55em); width: 14px; height: 14px; border-left: 4px solid var(--fallstem); border-top: 4px solid var(--fallstem); transform: rotate(45deg); border-radius: 2px 0 0 0; }
.signs strong { color: var(--storm); }

/* Dense factor grid (cost drivers) */
.factors { margin: var(--s-6) 0 0; display: grid; gap: 0 var(--s-6); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.factors div { padding: var(--s-4) 0 var(--s-5); border-top: 2px solid var(--line-dk); }
.factors dt { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; margin-bottom: var(--s-2); color: var(--white); }
.factors dd { margin: 0; color: #dce8eb; font-size: var(--step-0); }
.band-storm .section-head h2 { max-width: 20ch; }

/* Real sequences (roof day, after a storm): time labels, not 01/02/03 */
.seq-grid { display: grid; gap: var(--s-6); }
.timeline { list-style: none; margin: var(--s-5) 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 3px; background: var(--line); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 var(--s-5) 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--white); border: 4px solid var(--fallstem); }
.timeline .t { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: var(--step-0); }
.seq-photo { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.seq-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 960px) { .seq-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: start; } .seq-photo { position: sticky; top: calc(var(--header-h) + 24px); } .seq-photo img { aspect-ratio: 4 / 5; } }

/* Numbered steps where order genuinely matters (after a storm) */
.steps-list { counter-reset: st; list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.steps-list li { counter-increment: st; position: relative; padding: var(--s-4) var(--s-4) var(--s-4) 64px; background: var(--white); border-radius: var(--r-md); font-size: var(--step-0); }
.steps-list li::before { content: counter(st); position: absolute; left: var(--s-4); top: var(--s-4); width: 34px; height: 34px; border-radius: 50%; background: var(--storm); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.steps-list strong { display: block; color: var(--storm); }

/* Insurance / honesty callout */
.callout { background: var(--white); border-left: 6px solid var(--seed); border-radius: var(--r-md); padding: var(--s-6) var(--s-5); box-shadow: var(--shadow-lift); max-width: 980px; }
.callout-cols { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.callout-cols h3 { font-size: var(--step-3); margin-bottom: var(--s-3); }
.callout-cols ul { margin: 0; padding-left: 1.1em; font-size: var(--step-0); color: var(--muted); display: grid; gap: 6px; }
@media (min-width: 900px) { .callout { padding: var(--s-7); } .callout-cols { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }

/* Comparison table */
.table-wrap { overflow-x: auto; margin: var(--s-5) 0 0; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); }
.compare { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--step-0); }
.compare caption { text-align: left; padding: var(--s-3) var(--s-4); font-size: var(--step--1); color: var(--muted); caption-side: bottom; border-top: 1px solid var(--line); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.compare thead td { background: var(--storm); }
.compare thead th { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; background: var(--storm); color: var(--white); }
.compare tbody th { font-weight: 700; width: 26%; }
.compare tbody tr:nth-child(2n) { background: var(--sky); }

/* Proof: tagged sample review beside a photo */
.proof { display: grid; gap: var(--s-6); align-items: center; }
.proof figure { margin: 0; border-radius: var(--r-md); overflow: hidden; }
.proof figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.proof blockquote { margin: 0 0 var(--s-4); font-family: var(--font-display); font-weight: 700; font-size: var(--step-5); line-height: 1.02; }
.proof blockquote p { max-width: 24ch; margin: 0; }
.proof .who { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; font-size: var(--step-0); }
@media (min-width: 960px) { .proof { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

/* Two plain lists side by side */
.two-lists { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.two-lists h3 { font-size: var(--step-4); margin-bottom: var(--s-3); }
@media (min-width: 800px) { .two-lists { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }

/* Related services: photo rows, the whole row is the link */
.related { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: 0 var(--s-6); border-top: 2px solid var(--storm); }
.related li { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.related img { width: 112px; height: 84px; object-fit: cover; border-radius: var(--r-sm); }
.related h3 { font-size: var(--step-3); margin: 0 0 4px; }
.related h3 a { color: var(--storm); text-decoration: none; }
.related h3 a::after { content: ""; position: absolute; inset: 0; }
.related h3 a:hover { color: var(--fallstem); text-decoration: underline; }
.related p { margin: 0; font-size: var(--step-0); color: var(--muted); }
@media (min-width: 900px) { .related { grid-template-columns: 1fr 1fr; } .related li { grid-template-columns: 150px 1fr; } .related img { width: 150px; height: 110px; } }
.towns-line { margin-top: var(--s-6); padding: var(--s-4) var(--s-5); background: var(--sky); border-radius: var(--r-md); font-size: var(--step-0); max-width: none; }

/* Inline text link inside a service tab or roof-check card */
.more-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: var(--step-0); margin-left: var(--s-3); }
.dx .more-link { margin-left: var(--s-3); }
@media (max-width: 520px) { .more-link, .dx .more-link { margin-left: 0; margin-top: var(--s-1); display: flex; } }

/* Area: every town's note is in the HTML; JS shows one at a time */
.town-entry + .town-entry { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line-dk); }
.js .town-entry + .town-entry { margin-top: 0; padding-top: 0; border-top: 0; }
.town-card > .btn { margin-top: var(--s-2); }

/* 404 */
.nf-grid { display: grid; gap: var(--s-7); }
.nf-links ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dk); }
.nf-links li a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-dk); color: var(--white); font-weight: 700; text-decoration: none; }
.nf-links li a:hover { color: var(--seed); }
@media (min-width: 960px) { .nf-grid { grid-template-columns: 1.2fr 0.8fr; align-items: end; } }

/* Plain text pages (privacy) */
.page-top { padding-top: calc(var(--header-h) + var(--s-7)); }
.prose { max-width: 760px; }
.prose h1 { font-size: var(--step-6); }
.prose h2 { font-size: var(--step-4); margin-top: var(--s-7); }
.prose p, .prose li { font-size: var(--step-0); }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 0 0 var(--s-4); }

/* No-JS: hide controls that need script; content stays visible */
.no-js .menu-toggle, .no-js .form-nav, .no-js .stage-nav, .no-js .rv-controls { display: none; }

/* ---------- 5. Motion states ---------- */
/* Hero entrance. Nothing in the hero is ever hidden: the H1 and call buttons paint on the first frame.
   While GSAP is about to run, the headline starts in light bluestem (7.6:1 on the overlay) and the words sweep to white.
   Class added by the inline head script, removed by main.js or by the 1.5 s fail-safe. */
.motion-pending .hero h1 { color: var(--bluestem-lt); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
