/* =========================================================
   Green River Roofing & Construction — site styles
   Palette pulled from the logo and the slate roofs / KC skies
   in the project photography.
   ========================================================= */
:root {
  --slate: #23303A;        /* roof slate, primary dark */
  --slate-2: #2E3D48;
  --slate-3: #445663;
  --green: #15823E;        /* logo deep green */
  --green-ink: #0F6A31;
  --meadow: #43C35A;       /* logo bright green, on dark only */
  --sky: #E8EEF1;          /* cool overcast sky, light sections */
  --sky-2: #D5DFE5;
  --paper: #FFFFFF;
  --ink: #1A242C;
  --body: #4A5862;
  --muted: #5B6973;
  --line: rgba(35, 48, 58, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);

  --wood: #C9A06B;
  --wood-2: #B08452;
  --felt: #9AA8B1;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 118;             /* wdth axis for display type */

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1280px;
  --section: clamp(5rem, 11vw, 9.5rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0875rem);
  line-height: 1.62;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--meadow); color: var(--slate); }
:focus-visible { outline: 3px solid var(--meadow); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--slate); color: #fff; padding: .75rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.on-sky { background: var(--sky); }
.on-slate { background: var(--slate); color: #C9D3DA; }
.on-slate h1, .on-slate h2, .on-slate h3 { color: #fff; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  margin: 0;
  font-variation-settings: "wdth" var(--wide);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.75rem, 1.4rem + 6.4vw, 7.25rem);
  line-height: .92;
  font-weight: 850;
  letter-spacing: -0.035em;
}
h2, .h2 {
  font-size: clamp(2rem, 1.3rem + 3.1vw, 4rem);
  line-height: 1;
  font-weight: 800;
}
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.15; font-weight: 750; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5; color: var(--body); max-width: 52ch; }
.on-slate .lede { color: #C9D3DA; }
.head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 60rem; }
.head p { margin: 0; }

/* Line-mask for headline reveals (JS wraps lines in .ln > span) */
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn::after { /* sweep fill on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--green-ink); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn:hover::after { transform: scaleX(1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(21,130,62,.7); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1.2rem 1.8rem; font-size: 1.075rem; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost::after { background: var(--ink); }
.btn-ghost:hover { --fg: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.on-slate .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost, .storm .btn-ghost { --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.on-slate .btn-ghost::after, .hero .btn-ghost::after, .page-hero .btn-ghost::after, .storm .btn-ghost::after { background: #fff; }
.on-slate .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .storm .btn-ghost:hover { --fg: var(--slate); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.link {
  color: var(--green); font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 2px; }
.on-slate .link { color: var(--meadow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, box-shadow .35s, transform .4s var(--ease);
}
.site-header .bar { display: flex; align-items: center; gap: 1.5rem; height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand svg { width: 46px; height: auto; }
.brand-name { display: grid; line-height: 1; color: #fff; transition: color .35s; }
.brand-name b { font-size: 1.15rem; font-weight: 850; font-variation-settings: "wdth" 120; letter-spacing: -.01em; }
.brand-name small { font-size: .72rem; font-weight: 600; letter-spacing: .02em; opacity: .85; margin-top: .3rem; }
.nav { display: flex; gap: .25rem; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .55rem .8rem; border-radius: 6px; position: relative; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px;
  background: var(--meadow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.head-phone { color: #fff; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: .45rem; white-space: nowrap; transition: color .35s; }
.head-phone svg { width: 1.05rem; height: 1.05rem; color: var(--meadow); }
.site-header .btn { padding: .8rem 1.15rem; font-size: .95rem; }

.site-header.solid { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.solid .brand-name, .site-header.solid .nav a, .site-header.solid .head-phone { color: var(--ink); }
.site-header.solid .head-phone svg { color: var(--green); }
.site-header.solid .nav a::after { background: var(--green); }
.site-header.hide { transform: translateY(-100%); }

.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 6px; }
.site-header.solid .menu-btn { color: var(--ink); }
.menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .35s var(--ease), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 45; background: var(--slate); color: #fff;
  padding: 110px var(--gutter) 2rem; display: flex; flex-direction: column; gap: 2rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease); }
.menu-open .site-header { background: transparent; box-shadow: none; }
.menu-open .site-header .brand-name, .menu-open .menu-btn { color: #fff; }
.drawer nav { display: grid; }
.drawer nav a {
  color: #fff; text-decoration: none; font-size: clamp(2.2rem, 10vw, 3.5rem); font-weight: 800;
  font-variation-settings: "wdth" 120; letter-spacing: -.03em; line-height: 1.15;
  border-bottom: 1px solid var(--line-dark); padding: .35rem 0;
}
.drawer nav a[aria-current="page"] { color: var(--meadow); }
.drawer .actions { margin-top: auto; }
.drawer .btn { flex: 1 1 auto; justify-content: center; }

@media (max-width: 1040px) {
  .nav, .head-phone { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 560px) {
  .site-header .bar > .btn { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: #fff; background: var(--slate); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(35,48,58,.55) 0%, rgba(35,48,58,0) 28%),
    linear-gradient(0deg, rgba(26,36,44,.92) 0%, rgba(26,36,44,.55) 45%, rgba(26,36,44,.05) 75%);
}
.hero-inner { padding: 140px 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { color: #fff; max-width: 11ch; position: relative; }
.hero .roofline { /* gable that draws over the headline */
  position: absolute; left: -.05em; top: -.62em; width: 3.1em; height: .62em; overflow: visible;
  color: var(--meadow);
}
.hero .roofline path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: square; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: end;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}
.hero-foot p { color: #D9E2E8; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 46ch; margin: 0 0 1.5rem; }
.storm-card {
  display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center;
  padding: 1.1rem 1.3rem; border-radius: 10px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, transform .3s var(--ease); max-width: 330px;
}
.storm-card:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.storm-card .ico { grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; background: var(--meadow); color: var(--slate); display: grid; place-items: center; }
.storm-card .ico svg { width: 24px; height: 24px; }
.storm-card b { font-size: 1.05rem; }
.storm-card span { font-size: .9rem; color: #C9D3DA; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 2rem; width: 2px; height: 64px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; inset: 0; background: var(--meadow); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 820px) {
  .hero-foot { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; background: var(--slate); isolation: isolate; overflow: hidden;
  min-height: min(78svh, 760px); display: grid; align-items: end;
}
.page-hero .hero-media { inset: -8% 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(26,36,44,.93) 0%, rgba(26,36,44,.5) 50%, rgba(26,36,44,.35) 100%);
}
.page-hero .wrap { padding: 150px 0 clamp(2.75rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 1.4rem + 5.4vw, 6rem); line-height: .94; font-weight: 850; letter-spacing: -.035em; max-width: 13ch; }
.page-hero p { color: #D9E2E8; margin: 1.5rem 0 0; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 50ch; }
.crumbs { font-size: .9rem; color: #AFC0CB; margin-bottom: 1.25rem; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Badge marquee ---------- */
.badges { background: var(--paper); border-bottom: 1px solid var(--line); padding: 1.6rem 0; overflow: hidden; }
.badges-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.badges:hover .badges-track { animation-play-state: paused; }
.badges-set { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); padding-right: clamp(2.5rem, 6vw, 5rem); }
.badges img { height: 58px; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .7; transition: filter .3s, opacity .3s; }
.badges img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro + stats ---------- */
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.intro-grid h2 { max-width: 12ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(3.5rem, 7vw, 6rem); border-top: 2px solid var(--ink); }
.stat { padding: 1.5rem 1.5rem 0 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat-num {
  display: block; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5rem); line-height: 1; font-weight: 850;
  font-variation-settings: "wdth" 112; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: .6rem; color: var(--muted); font-size: .98rem; }
.on-slate .stat-num { color: #fff; }
.on-slate .stats { border-color: var(--meadow); }
.on-slate .stat + .stat { border-color: var(--line-dark); }
.on-slate .stat-label { color: #AFC0CB; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1.5rem; }
  .on-slate .stat:nth-child(n+3) { border-color: var(--line-dark); }
}

/* ---------- Roof system (signature, pinned) ---------- */
.system { background: var(--sky); position: relative; }
.system-pin { min-height: 100svh; display: grid; align-items: center; padding: 110px 0 3rem; }
.system-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.system-copy h2 { max-width: 11ch; }
.system-copy .lede { margin-top: 1.25rem; }
.layers { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .15rem; counter-reset: layer; }
.layers li {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 .9rem; align-items: baseline;
  padding: .7rem 0 .7rem; border-top: 1px solid var(--line);
  color: var(--muted); transition: color .4s;
}
.layers li .n { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sky-2); transition: color .4s; font-size: 1.05rem; }
.layers li b { color: inherit; font-size: 1.08rem; font-weight: 750; }
.layers li p { grid-column: 2; margin: .25rem 0 0; font-size: .96rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.layers li.on { color: var(--ink); }
.layers li.on .n { color: var(--green); }
.layers li.on p { max-height: 7rem; opacity: 1; color: var(--body); }
.system-art { position: relative; }
.system-art svg { width: 100%; height: auto; overflow: visible; }
.system-progress { position: absolute; left: 0; right: 0; bottom: -1.5rem; height: 3px; background: var(--sky-2); border-radius: 3px; overflow: hidden; }
.system-progress i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(0); }
/* Without JS / reduced motion every layer is shown */
.no-pin .layers li { color: var(--ink); }
.no-pin .layers li .n { color: var(--green); }
.no-pin .layers li p { max-height: none; opacity: 1; }
@media (max-width: 900px) {
  .system-grid { grid-template-columns: 1fr; }
  .system-pin { padding-top: 96px; align-items: start; }
  .system-art { order: -1; max-width: 560px; }
  .layers { margin-top: 1.25rem; }
  .layers li { padding: .5rem 0; }
  .layers li p { font-size: .92rem; }
}

/* ---------- Storm (hail) ---------- */
.storm { position: relative; overflow: hidden; isolation: isolate; background: var(--slate); color: #C9D3DA; }
.storm-bg { position: absolute; inset: 0; z-index: -2; }
.storm-bg img { width: 100%; height: 120%; object-fit: cover; opacity: .28; filter: grayscale(.6); }
.storm canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.storm-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.storm h2 { color: #fff; font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.5rem); line-height: .95; font-weight: 850; letter-spacing: -.035em; }
.storm .lede { color: #D9E2E8; }
.checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .2rem; color: var(--meadow); }
@media (max-width: 900px) { .storm-grid { grid-template-columns: 1fr; } }

/* ---------- Services (home list) ---------- */
.svc-list { border-top: 2px solid var(--ink); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 220px; gap: 2rem; align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; position: relative;
}
.svc h3 {
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 3rem); font-weight: 800; line-height: 1;
  transition: color .35s, transform .5s var(--ease);
}
.svc p { margin: 0; }
.svc-media { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .8s var(--ease); }
.svc:hover h3 { color: var(--green); transform: translateX(.5rem); }
.svc:hover .svc-media img { transform: scale(1); }
.svc .go { position: absolute; right: 0; top: 50%; }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; gap: 1rem; }
  .svc-media { order: -1; aspect-ratio: 16 / 9; }
}

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.why-media { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; }
.why-media img { width: 100%; height: 115%; object-fit: cover; }
.why-badge {
  position: absolute; left: 1.25rem; bottom: 1.25rem; background: var(--paper); border-radius: 8px;
  padding: 1rem 1.25rem; display: grid; line-height: 1.1;
}
.why-badge b { font-size: 2.6rem; font-weight: 850; color: var(--green); font-variation-settings: "wdth" 112; letter-spacing: -.03em; }
.why-badge span { color: var(--body); font-size: .92rem; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; margin: 2.25rem 0; }
.points div { border-top: 2px solid var(--green); padding-top: .9rem; }
.points b { display: block; color: var(--ink); font-size: 1.08rem; margin-bottom: .2rem; }
.points span { font-size: .96rem; }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) { .points { grid-template-columns: 1fr; } }

/* ---------- Process / timeline (scroll-filled line) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: 3.25rem; }
.steps-line { position: absolute; left: 0; right: 0; top: 1rem; height: 3px; background: var(--sky-2); border-radius: 3px; }
.steps-line i { position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; border-radius: 3px; }
.on-slate .steps-line { background: var(--slate-3); }
.on-slate .steps-line i { background: var(--meadow); }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: -2.75rem; left: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--sky-2); transition: border-color .4s, background .4s;
}
.on-sky .step::before { background: var(--sky); }
.on-slate .step::before { background: var(--slate); border-color: var(--slate-3); }
.step.on::before { border-color: var(--green); background: var(--green); }
.on-slate .step.on::before { border-color: var(--meadow); background: var(--meadow); }
.step .n { font-size: 3.25rem; font-weight: 850; line-height: 1; color: var(--sky-2); font-variation-settings: "wdth" 112; letter-spacing: -.04em; transition: color .4s; display: block; margin-bottom: 1rem; }
.on-slate .step .n { color: var(--slate-3); }
.step.on .n { color: var(--green); }
.on-slate .step.on .n { color: var(--meadow); }
.step h3 { margin-bottom: .6rem; }
.step p { margin: 0; font-size: .98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 2.75rem; gap: 2.25rem; }
  .steps-line { top: 0; bottom: 0; left: 8px; right: auto; width: 3px; height: auto; }
  .steps-line i { transform: scaleY(0); transform-origin: top; }
  .step::before { top: .45rem; left: -2.75rem; }
  .step .n { font-size: 2.4rem; margin-bottom: .5rem; }
}

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.cities { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.cities li { padding: .45rem .85rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .95rem; color: var(--ink); font-weight: 600; }
.bases { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.bases li { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 650; }
.bases li span { color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Gallery (horizontal on scroll) ---------- */
.gallery { overflow: hidden; }
.gallery-pin { padding: clamp(5rem, 9vw, 7.5rem) 0 clamp(2rem, 4vw, 3rem); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.gallery-pin .head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.gallery-track { display: flex; gap: clamp(1rem, 2vw, 1.75rem); padding-inline: var(--gutter); width: max-content; }
.shot { margin: 0; flex: none; }
.shot .frame { height: min(54svh, 560px); aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--sky-2); }
.shot:nth-child(even) .frame { height: min(44svh, 460px); aspect-ratio: 5 / 4; margin-top: min(10svh, 100px); }
.shot img { width: 120%; max-width: none; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: .75rem; font-weight: 650; color: var(--ink); }
.gallery.no-pin .gallery-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.gallery.no-pin .shot { scroll-snap-align: start; width: min(78vw, 420px); }
.gallery.no-pin .shot .frame, .gallery.no-pin .shot:nth-child(even) .frame { height: auto; aspect-ratio: 4 / 5; margin-top: 0; }
.gallery.no-pin .gallery-pin { min-height: 0; padding-block: var(--section); }
.gallery.no-pin .shot img { width: 100%; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-grid .head { position: sticky; top: 110px; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.35rem 0; font-weight: 700; color: var(--ink); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 2px solid var(--line); position: relative; transition: background .3s, border-color .3s, transform .45s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); translate: -50% -50%; transition: transform .45s var(--ease), background .3s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--green); border-color: var(--green); transform: rotate(180deg); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--green); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding-bottom: 1.4rem; margin: 0; }
.faq .ans a { color: var(--green); font-weight: 700; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .head { position: static; } }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta-inner { display: grid; grid-template-columns: 1.3fr auto; gap: 2rem 4rem; align-items: end; }
.cta h2 { font-size: clamp(2.5rem, 1.3rem + 5vw, 6rem); line-height: .94; font-weight: 850; letter-spacing: -.035em; color: #fff; max-width: 12ch; }
.cta p { color: #D9E2E8; margin: 1.25rem 0 0; }
.cta .phone-big { display: block; color: var(--meadow); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 800; text-decoration: none; font-variation-settings: "wdth" 112; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.cta .phone-big:hover { color: #fff; }
.cta-wave { position: absolute; right: -6%; bottom: -30%; width: 70%; z-index: -1; opacity: .12; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Split features (services/about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 5 / 4; }
.split-media img { width: 100%; height: 115%; object-fit: cover; }
.tag {
  position: absolute; left: 1.25rem; top: 1.25rem; background: var(--paper); color: var(--ink); border-radius: 6px;
  padding: .6rem .9rem; font-weight: 700; font-size: .92rem; line-height: 1.2;
}
.tag b { color: var(--green); font-size: 1.35rem; font-weight: 850; display: block; }
.spec { list-style: none; padding: 0; margin: 2rem 0; border-top: 2px solid var(--ink); }
.spec li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.spec b { color: var(--ink); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
}
@media (max-width: 520px) { .spec li { grid-template-columns: 1fr; gap: .15rem; } }

/* Two-up panels (repairs / inspections) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
.panel { background: var(--paper); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.panel-media { aspect-ratio: 16 / 9; overflow: hidden; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.panel:hover .panel-media img { transform: scale(1.05); }
.panel-body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; flex: 1; }
.panel-body h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; margin-bottom: .9rem; }
.panel-body ul { padding: 0; list-style: none; margin: 0 0 1.75rem; display: grid; gap: .5rem; }
.panel-body li { display: flex; gap: .6rem; color: var(--ink); }
.panel-body li svg { width: 1.2rem; height: 1.2rem; flex: none; color: var(--green); margin-top: .22rem; }
.panel-body .link { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* Manufacturer partners */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.partner { padding: 1.75rem 1.5rem 0 0; }
.partner + .partner { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.partner img { height: 64px; width: auto; max-width: 150px; object-fit: contain; margin-bottom: 1.25rem; }
.partner h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.partner p { font-size: .96rem; margin: 0; }
@media (max-width: 900px) {
  .partners { grid-template-columns: 1fr 1fr; }
  .partner:nth-child(3) { padding-left: 0; border-left: 0; }
  .partner:nth-child(n+3) { margin-top: 1.75rem; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .partners { grid-template-columns: 1fr; }
  .partner + .partner { padding-left: 0; border-left: 0; margin-top: 1.75rem; border-top: 1px solid var(--line); }
}

/* Values (about) */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--meadow); }
.value { padding: 2rem 2rem 0 0; }
.value + .value { padding-left: 2rem; border-left: 1px solid var(--line-dark); }
.value h3 { margin-bottom: .75rem; font-size: 1.5rem; }
.value p { margin: 0; }
@media (max-width: 900px) {
  .values { grid-template-columns: 1fr; }
  .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); margin-top: 2rem; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.methods { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 2px solid var(--ink); }
.methods li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.methods .ico { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--sky); color: var(--green); display: grid; place-items: center; }
.methods .ico svg { width: 1.25rem; height: 1.25rem; }
.methods b { display: block; color: var(--ink); }
.methods a { color: var(--ink); font-weight: 650; text-decoration: none; font-size: 1.1rem; }
.methods a:hover { color: var(--green); }
.methods small { display: block; color: var(--muted); font-size: .9rem; }
.form-card { background: var(--sky); border-radius: 12px; padding: clamp(1.5rem, 4vw, 3rem); }
.form-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); margin-bottom: .5rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.75rem; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 650; color: var(--ink); font-size: .95rem; }
.field label i { color: var(--green); font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--sky-2); border-radius: 6px;
  padding: .85rem .95rem; width: 100%; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(21,130,62,.15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #B3261E; }
.form-note { font-size: .88rem; color: var(--muted); margin: 1rem 0 0; }
.form-status { margin-top: 1rem; padding: 1rem 1.15rem; border-radius: 8px; background: var(--paper); border-left: 4px solid var(--green); color: var(--ink); }
.form-status[hidden] { display: none; }
.form-done { text-align: left; }
.form-done[hidden] { display: none; }
.form-done svg { width: 56px; height: 56px; color: var(--green); margin-bottom: 1rem; }
.form-done svg path { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .8s var(--ease) .2s; }
.form-done.show svg path { stroke-dashoffset: 0; }
.map { border-radius: 12px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--sky-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: #AFC0CB; padding: clamp(4rem, 8vw, 6rem) 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.foot-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-variation-settings: "wdth" 100; letter-spacing: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.foot-grid a { color: #C9D3DA; text-decoration: none; }
.foot-grid a:hover { color: var(--meadow); }
.foot-brand p { margin: 1.25rem 0; max-width: 34ch; }
.foot-brand .brand-name { color: #fff; }
.certs { display: flex; flex-wrap: wrap; gap: .4rem; }
.certs span { border: 1px solid var(--line-dark); border-radius: 999px; padding: .3rem .7rem; font-size: .82rem; color: #C9D3DA; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .9rem; }
.social { display: flex; gap: .5rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .callbar.show { transform: none; }
  .callbar .btn { justify-content: center; padding: .9rem; }
  .callbar .btn-ghost { --fg: var(--ink); }
  .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .badges-track { animation: none; flex-wrap: wrap; width: auto; }
  .badges-set[aria-hidden] { display: none; }
  .badges-set { flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); row-gap: 1.5rem; }
  .scroll-cue { display: none; }
}

/* ---------- Late additions ---------- */
.partners.three { grid-template-columns: repeat(3, 1fr); }
.partners.three .partner:nth-child(3) { padding-left: 1.5rem; border-left: 1px solid var(--line); margin-top: 0; border-top: 0; }
@media (max-width: 900px) {
  .partners.three { grid-template-columns: 1fr; }
  .partners.three .partner, .partners.three .partner:nth-child(3) { padding-left: 0; border-left: 0; }
  .partners.three .partner + .partner { margin-top: 1.75rem; border-top: 1px solid var(--line); }
  .system .lede { display: none; }
}
@media (max-width: 480px) {
  .stat-num { font-size: clamp(2rem, 11vw, 2.6rem); font-variation-settings: "wdth" 100; }
  .stat { padding-right: .75rem; }
  .stat + .stat { padding-left: .75rem; }
  .stat:nth-child(3) { padding-left: 0; }
}
@media (max-width: 760px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(35,48,58,.6) 0%, rgba(35,48,58,.15) 22%),
      linear-gradient(0deg, rgba(26,36,44,.96) 0%, rgba(26,36,44,.82) 55%, rgba(26,36,44,.3) 85%);
  }
  .hero-inner { padding-top: 120px; }
  .storm-card { max-width: none; }
}
@media (max-width: 900px) {
  /* Pinned roof build: show only the current layer so it fits one phone screen */
  .system:not(.no-pin) .layers li:not(.on) { display: none; }
  .system:not(.no-pin) .layers li.on { border-top: 2px solid var(--green); padding-top: 1rem; }
  .system:not(.no-pin) .layers li.on p { max-height: none; }
  .system-art svg { max-height: 34svh; width: auto; margin-inline: auto; }
}
.gallery.no-pin .gallery-track { scroll-padding-inline: var(--gutter); }
.drawer .btn-ghost { --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.drawer .btn-ghost::after { background: #fff; }
.drawer .btn-ghost:hover { --fg: var(--slate); }
.drawer nav a.sub { font-size: clamp(1.3rem, 5.5vw, 1.6rem); font-weight: 650; color: #C9D3DA; padding: .5rem 0; }
.drawer nav a.sub:first-of-type { margin-top: .75rem; }

/* Original logo, transparent. White-lettered copy on dark/photo backgrounds,
   original dark lettering once the header turns white. */
.brand-logo { height: 62px; width: auto; display: block; transition: transform .35s var(--ease), opacity .3s; }
.brand:hover .brand-logo { transform: scale(1.03); }
.brand .on-light { display: none; }
.site-header.solid .brand .on-dark { display: none; }
.site-header.solid .brand .on-light { display: block; }
.menu-open .site-header .brand .on-dark { display: block; }
.menu-open .site-header .brand .on-light { display: none; }
.hero .brand-logo, .site-header:not(.solid) .on-dark { filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
.foot-brand .brand-logo { height: 92px; }
@media (max-width: 560px) { .brand-logo { height: 52px; } }

/* Mobile call bar: keep "Call now" readable on hover/press (fill turns dark) */
.callbar .btn-ghost:hover, .callbar .btn-ghost:focus-visible, .callbar .btn-ghost:active { --fg: #fff; }
/* Slightly larger logo so its small lines stay legible */
.site-header .bar { height: 88px; }
.brand-logo { height: 72px; }
@media (max-width: 560px) { .site-header .bar { height: 76px; } .brand-logo { height: 58px; } }

/* =========================================================
   v2 additions
   ========================================================= */

/* ---------- Services dropdown (desktop) ---------- */
.nav { align-items: center; }
.nav-item { position: relative; display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; color: #fff; width: 26px; height: 34px; margin-left: -.55rem; cursor: pointer; display: grid; place-items: center; border-radius: 6px; transition: color .3s; }
.sub-toggle svg { width: 11px; transition: transform .3s var(--ease); }
.site-header.solid .sub-toggle { color: var(--ink); }
.menu-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(680px, 90vw);
  background: var(--paper); border-radius: 12px; padding: 1.25rem; color: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(26,36,44,.45), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
}
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.has-menu:hover .menu-panel, .has-menu:focus-within .menu-panel, .has-menu.open .menu-panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .35s var(--ease);
}
.has-menu:hover .sub-toggle svg, .has-menu.open .sub-toggle svg { transform: rotate(180deg); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.menu-panel a { text-decoration: none; color: var(--ink); }
.menu-panel .menu-grid a { display: grid; gap: .15rem; padding: .8rem .9rem; border-radius: 8px; transition: background .2s; }
.menu-panel .menu-grid a::after { display: none; }
.menu-panel .menu-grid a:hover, .menu-panel .menu-grid a:focus-visible { background: var(--sky); }
.menu-panel .menu-grid b { font-size: .98rem; }
.menu-panel .menu-grid span { font-size: .86rem; color: var(--muted); font-weight: 450; line-height: 1.35; }
.menu-panel .menu-grid a:hover b { color: var(--green); }
.menu-foot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .75rem; padding: .9rem .9rem 0; border-top: 1px solid var(--line); }
.menu-foot a { color: var(--green) !important; font-weight: 700; font-size: .92rem; padding: 0 !important; }
.menu-foot a::after { display: none; }
@media (max-width: 1240px) { .head-phone { display: none; } }

/* ---------- Roof check (quiz) ---------- */
.check-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.check-dots { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 2rem 0 0; }
.check-dots li { width: 34px; height: 4px; border-radius: 4px; background: var(--slate-3); transition: background .4s; }
.check-dots li.on { background: var(--meadow); }
.quiz { position: relative; background: var(--slate-2); border: 1px solid var(--line-dark); border-radius: 14px; padding: clamp(1.4rem, 3.5vw, 2.25rem); min-height: 22rem; }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.js-quiz .quiz fieldset:not(.on) { display: none; }
.quiz legend { color: #fff; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.02em; margin-bottom: 1.25rem; padding: 0; }
.quiz legend small { display: block; font-size: .95rem; font-weight: 500; color: #AFC0CB; font-variation-settings: "wdth" 100; letter-spacing: 0; margin-top: .3rem; }
.opts { display: grid; gap: .6rem; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; border-radius: 10px; color: #fff; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1.5px solid var(--line-dark); transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.opt span::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #8FA0AB; transition: all .25s; }
.opt input[type=checkbox] + span::before { border-radius: 5px; }
.opt:hover span { border-color: rgba(255,255,255,.4); transform: translateX(3px); }
.opt input:checked + span { border-color: var(--meadow); background: rgba(67,195,90,.12); }
.opt input:checked + span::before { border-color: var(--meadow); background: var(--meadow); box-shadow: inset 0 0 0 3px var(--slate-2); }
.opt input:focus-visible + span { outline: 3px solid var(--meadow); outline-offset: 2px; }
.quiz .next { margin-top: 1.25rem; }
.quiz .next:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.result-kicker { color: var(--meadow); font-weight: 700; margin: 0 0 .5rem; }
.result-title { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.05; margin-bottom: 1rem; }
.result-body { color: #D9E2E8; }
.result .actions { align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.restart { margin-top: 1.5rem; background: none; border: 0; color: #AFC0CB; text-decoration: underline; cursor: pointer; padding: 0; }
.restart:hover { color: #fff; }
@media (max-width: 900px) { .check-grid { grid-template-columns: 1fr; } .quiz { min-height: 0; } }

/* ---------- Cities as links ---------- */
.cities a { color: inherit; text-decoration: none; display: block; }
.cities li { padding: 0; transition: border-color .25s, background .25s; }
.cities li a { padding: .45rem .85rem; }
.cities li:hover { border-color: var(--green); background: #fff; }
.cities li:hover a { color: var(--green); }

/* ---------- Service areas ---------- */
.county + .county { margin-top: clamp(3rem, 6vw, 4.5rem); }
.county-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); border-bottom: 2px solid var(--ink); padding-bottom: .9rem; margin-bottom: 1.5rem; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.area-card { background: var(--sky); border-radius: 10px; padding: 1.4rem 1.4rem 1.2rem; scroll-margin-top: 110px; transition: box-shadow .3s; }
.area-card:target { box-shadow: 0 0 0 3px var(--green); }
.area-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.area-card p { font-size: .96rem; margin-bottom: .6rem; }
.area-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0; font-size: .92rem; }

/* ---------- Guide ---------- */
.guide { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.toc { position: sticky; top: 110px; }
.toc-title { font-weight: 800; color: var(--ink); margin-bottom: .75rem; }
.toc ol { list-style: none; padding: 0; margin: 0 0 1.5rem; border-left: 2px solid var(--sky-2); }
.toc li a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--body); text-decoration: none; font-size: .95rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc li a:hover, .toc li a.on { color: var(--green); border-left-color: var(--green); }
.guide-item { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); scroll-margin-top: 110px; max-width: 46rem; }
.guide-item:last-child { border-bottom: 0; margin-bottom: 0; }
.guide-item h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); margin-bottom: 1.1rem; }
.guide-item .answer { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--ink); border-left: 4px solid var(--green); padding: .2rem 0 .2rem 1.1rem; margin-bottom: 1.4rem; }
.guide-item a { color: var(--green); font-weight: 650; }
.ticks { padding: 0; margin: 0 0 1.25rem; list-style: none; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.ticks.num { counter-reset: n; }
.ticks.num li { counter-increment: n; padding-left: 2.25rem; }
.ticks.num li::before { content: counter(n); border: 0; transform: none; top: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sky); color: var(--green); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.life { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: 1rem; }
.life th, .life td { text-align: left; padding: .85rem .5rem; border-bottom: 1px solid var(--line); }
.life th { color: var(--ink); border-bottom: 2px solid var(--ink); }
.life td:last-child { font-weight: 700; color: var(--ink); }
@media (max-width: 900px) {
  .guide { grid-template-columns: 1fr; }
  .toc { position: static; background: var(--sky); border-radius: 10px; padding: 1.25rem; }
  .toc .btn { display: none; }
}

/* ---------- 404 ---------- */
.notfound { padding-top: 150px; }
.nf-code { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 900; line-height: .8; color: var(--sky-2); font-variation-settings: "wdth" 125; letter-spacing: -.05em; margin: 0 0 1rem; }
.notfound h1 { font-size: clamp(2.2rem, 1.4rem + 3.5vw, 4.5rem); line-height: .98; font-weight: 850; max-width: 16ch; margin-bottom: 1.25rem; }
.notfound .lede a { color: var(--green); font-weight: 700; }
