/* =========================================================================
   Hightop Roofing - design system
   Brand evolved from the original site: blue #3082BB, navy #183186, orange CTA #FF8000,
   League Spartan display. One radius (12px). Orange is reserved for the primary action.
   ========================================================================= */

:root {
  --ink: #0e1b3d;
  --ink-2: #33445e;
  --muted: #4b5c72;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --tint: #e9eff6;
  --line: #d6dee8;
  --blue: #2f7fb8;
  --blue-ink: #1f5f8f;
  --navy: #12245a;
  --navy-deep: #0b1636;
  --orange: #ff8000;
  --orange-hover: #ff9326;
  --on-orange: #0e1b3d;
  --on-dark: #eef3fa;
  --on-dark-muted: #b4c2d6;
  --focus: #ff8000;

  --font-display: "League Spartan", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 12px;
  --shadow: 0 1px 2px rgb(14 27 61 / .06), 0 12px 32px -12px rgb(14 27 61 / .18);
  --shadow-lg: 0 30px 70px -30px rgb(14 27 61 / .45);

  --container: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f8;
    --ink-2: #cdd7e5;
    --muted: #a9b6ca;
    --bg: #0a1330;
    --surface: #101c40;
    --tint: #14234d;
    --line: #233462;
    --blue-ink: #7db7e3;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: .75rem 1rem; border-radius: var(--r); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--tint { background: var(--tint); }
.section--surface { background: var(--surface); }
.stack > * + * { margin-top: 1rem; }

.h-display { font-size: clamp(2.6rem, 4.6vw + .9rem, 5.25rem); line-height: .98; letter-spacing: -0.035em; }
.h-1 { font-size: clamp(2.2rem, 3.2vw + 1rem, 4rem); letter-spacing: -0.03em; }
.h-2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 3.25rem); letter-spacing: -0.028em; }
.h-3 { font-size: clamp(1.35rem, .8vw + 1rem, 1.7rem); letter-spacing: -0.015em; line-height: 1.12; }
.lead { font-size: clamp(1.125rem, .45vw + 1rem, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.measure { max-width: 64ch; }
.eyebrow { display: inline-block; font: 600 .8rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 1.1rem; }
.accent { color: var(--blue); }

/* roofline brand mark (from the original logo SVG) used above key headings */
.roofmark { display: block; width: 132px; height: auto; margin-bottom: 1.25rem; }
.roofmark path { fill: var(--blue); stroke: var(--blue); }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: var(--surface); --fg-btn: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.4rem; border-radius: var(--r);
  background: var(--bg-btn); color: var(--fg-btn); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .2s, border-color .2s, box-shadow .25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn i { font-size: 1.25em; }
.btn-primary { --bg-btn: var(--orange); --fg-btn: var(--on-orange); box-shadow: 0 10px 24px -10px rgb(255 128 0 / .7); }
.btn-primary:hover { --bg-btn: var(--orange-hover); box-shadow: 0 16px 30px -12px rgb(255 128 0 / .75); }
.btn-outline { --bg-btn: transparent; --fg-btn: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { --bg-btn: rgb(255 255 255 / .1); --fg-btn: #fff; border-color: rgb(255 255 255 / .35); }
.btn-light:hover { --bg-btn: rgb(255 255 255 / .18); border-color: #fff; }
.btn-lg { min-height: 58px; padding-inline: 1.7rem; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 600; color: var(--blue-ink); text-decoration: none; }
.link-arrow i { transition: transform .3s var(--ease-out); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- utility bar + header ---------- */
.utility { background: var(--navy-deep); color: var(--on-dark-muted); font-size: .875rem; }
.utility .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.utility a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility-links { display: flex; gap: 1.5rem; }
@media (max-width: 860px) { .utility { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgb(14 27 61 / .35); }
.site-header .container { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav a, .nav-toggle-sub {
  display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .85rem; border-radius: 8px;
  font-weight: 500; text-decoration: none; color: var(--ink-2); background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav-toggle-sub:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--tint); }
.nav .has-sub { position: relative; }
.nav .sub {
  position: absolute; top: calc(100% + 8px); left: -.5rem; min-width: 300px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .5rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease-out), visibility .2s;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub, .nav .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: flex; width: 100%; padding: .7rem .85rem; }
.header-cta { display: flex; align-items: center; gap: .75rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.header-phone i { color: var(--blue); font-size: 1.25rem; }
.header-phone { min-height: 48px; min-width: 48px; justify-content: center; }
.menu-btn { display: none; }

@media (max-width: 1100px) { .header-phone span { display: none; } }
@media (max-width: 960px) {
  .nav, .header-cta .btn { display: none; }
  .header-cta { margin-left: auto; }
  .header-phone span { display: inline; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.5rem; }
}
@media (max-width: 480px) { .header-phone span { display: none; } .brand img { height: 40px; } }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; padding: 1rem var(--gutter) 2rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--ease-out), visibility .25s; }
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.mobile-menu nav ul { list-style: none; margin-top: 1rem; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); font: 700 1.6rem/1.1 var(--font-display); text-decoration: none; letter-spacing: -.02em; }
.mobile-menu nav .sub a { font: 500 1.05rem/1.3 var(--font-body); padding: .8rem 0 .8rem 1rem; letter-spacing: 0; color: var(--ink-2); }
.mobile-menu .btn-row { margin-top: 2rem; }
.mobile-menu .btn { flex: 1 1 100%; }
body.menu-open { overflow: hidden; }

/* mobile sticky action bar */
.action-bar { display: none; }
@media (max-width: 768px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .action-bar .btn { min-height: 50px; padding: .6rem; font-size: .95rem; }
  body { padding-bottom: 76px; }
}

/* ---------- hero (home) ---------- */
.hero { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; min-height: min(calc(100dvh - var(--header-h) - 40px - 6rem), 600px); }
.hero .h-display { font-size: clamp(2.6rem, 3.3vw + 1.2rem, 4.6rem); }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; max-width: 44ch; }
.hero-media { position: relative; }
.hero-frames { position: relative; aspect-ratio: 5 / 4.3; border-radius: var(--r); overflow: hidden; background: var(--tint); box-shadow: var(--shadow-lg); }
.hero-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-frames img.is-active { opacity: 1; }
.hero-frames img:first-child { opacity: 1; }
.hero-frames.is-ready img:first-child:not(.is-active) { opacity: 0; }
.hero-caption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.frame-dots { display: flex; gap: .4rem; }
.frame-dots { gap: 0; }
.frame-dots button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.frame-dots button::after { content: ""; width: 30px; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.frame-dots button[aria-current="true"]::after { background: var(--blue); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-frames { aspect-ratio: 4 / 3; }
}

/* ---------- proof strip ---------- */
.proof { border-block: 1px solid var(--line); background: var(--surface); }
.proof .container { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: 1.6rem; }
.proof-badges { display: flex; gap: 1rem; align-items: center; }
.proof-badges img { width: 72px; height: 72px; }
.proof-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; list-style: none; }
.proof-facts li { display: flex; gap: .75rem; align-items: center; font-weight: 600; line-height: 1.3; font-size: .98rem; }
.proof-facts i { font-size: 1.6rem; color: var(--blue); flex-shrink: 0; }
@media (max-width: 1024px) { .proof .container { grid-template-columns: 1fr; } .proof-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .proof-facts { grid-template-columns: 1fr; } }

/* ---------- intro statement + stats ---------- */
.statement { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.statement p.big { font: 500 clamp(1.5rem, 1.2vw + 1.1rem, 2.15rem)/1.32 var(--font-display); letter-spacing: -.015em; color: var(--ink); margin: 0; }
.statement p.big strong { color: var(--blue-ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.stat { padding: 1.25rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 1.25rem; }
.stat-num { font: 700 clamp(2.6rem, 3vw + 1rem, 3.6rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--ink); }
.stat-label { color: var(--muted); font-size: .95rem; margin-top: .35rem; line-height: 1.35; }
@media (max-width: 900px) { .statement { grid-template-columns: 1fr; } }

/* ---------- services bento ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-head p { color: var(--ink-2); font-size: 1.125rem; max-width: 60ch; margin: 0; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(240px, auto); gap: 1rem; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; background: var(--navy); isolation: isolate; min-height: 300px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(11 22 54 / 0) 25%, rgb(11 22 54 / .55) 55%, rgb(11 22 54 / .92) 100%); }
.tile:hover img { transform: scale(1.045); }
.tile-body { padding: clamp(1.25rem, 2.5vw, 2rem); }
.tile h3 { font-size: clamp(1.45rem, 1vw + 1.1rem, 2rem); margin-bottom: .45rem; }
.tile p { color: rgb(255 255 255 / .86); margin-bottom: 1rem; max-width: 46ch; font-size: 1rem; }
.tile .tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin-bottom: 1.1rem; }
.tile .tags li { font-size: .82rem; font-weight: 500; padding: .3rem .6rem; border-radius: 6px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22); }
.tile .more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.tile .more i { transition: transform .3s var(--ease-out); }
.tile:hover .more i { transform: translateX(4px); }
.tile--a { grid-column: span 4; grid-row: span 2; }
.tile--b { grid-column: span 2; grid-row: span 2; }
.tile--c { grid-column: span 2; }
.tile--d { grid-column: span 2; }
.tile--e { grid-column: span 2; background: var(--blue); }
.tile--e::before { display: none; }
.tile--e p { color: rgb(255 255 255 / .92); }
@media (max-width: 1024px) { .tile--a, .tile--b, .tile--c, .tile--d, .tile--e { grid-column: span 3; grid-row: span 1; } .tile--a { grid-column: span 6; min-height: 420px; } }
@media (max-width: 680px) { .bento { grid-template-columns: 1fr; } .tile--a, .tile--b, .tile--c, .tile--d, .tile--e { grid-column: auto; min-height: 320px; } }

/* ---------- before / after ---------- */
.ba-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ba { position: relative; aspect-ratio: 10 / 7; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; --pos: 50%; background: var(--tint); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%230e1b3d'%3E%3Cpath d='M88 64 24 128l64 64V64Zm80 0v128l64-64-64-64Z'/%3E%3C/svg%3E") center/26px no-repeat; box-shadow: 0 6px 20px rgb(0 0 0 / .3); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input[type=range]:focus-visible + .ba-handle::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.ba-label { position: absolute; bottom: 1rem; padding: .35rem .7rem; border-radius: 6px; background: rgb(11 22 54 / .78); color: #fff; font-size: .82rem; font-weight: 600; pointer-events: none; }
.ba-label--before { left: 1rem; }
.ba-label--after { right: 1rem; }
@media (max-width: 900px) { .ba-grid { grid-template-columns: 1fr; } }

/* ---------- why us ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.why-media { position: sticky; top: calc(var(--header-h) + 2rem); }
.why-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 2rem; list-style: none; margin-top: 2.5rem; }
.reason i { font-size: 2rem; color: var(--blue); margin-bottom: .8rem; display: block; }
.reason h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.reason p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } .why-media { position: static; } .why-media img { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: step; margin-top: 3rem; }
.process li { position: relative; padding-top: 1.75rem; border-top: 2px solid var(--line); }
.process li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: -1px; left: 0; transform: translateY(-50%); background: var(--bg); padding-right: .75rem; font: 700 1rem/1 var(--font-display); color: var(--blue-ink); }
.section--tint .process li::before { background: var(--tint); }
.section--surface .process li::before { background: var(--surface); }
.process li.is-visible { border-top-color: var(--blue); transition: border-color .8s ease .2s; }
.process h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.process p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 1024px) { .process { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- gallery (masonry) ---------- */
.masonry { columns: 3 300px; column-gap: 1rem; }
.masonry figure { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.masonry img { width: 100%; height: auto; transition: transform .9s var(--ease-out); }
.masonry button:hover img { transform: scale(1.04); }
.gallery-foot { display: flex; justify-content: center; margin-top: 2.5rem; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
.lightbox::backdrop { background: rgb(6 12 30 / .92); }
.lightbox-inner { display: grid; place-items: center; width: 100%; height: 100%; padding: 4.5rem 1rem; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100dvh - 9rem); width: auto; border-radius: var(--r); }
.lightbox p { color: #dfe7f2; text-align: center; margin-top: 1rem; }
.lb-btn { position: fixed; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .1); color: #fff; font-size: 1.5rem; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgb(255 255 255 / .2); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- reviews ---------- */
.reviews-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.feature-quote blockquote { margin: 0; font: 500 clamp(1.6rem, 1.4vw + 1.1rem, 2.4rem)/1.25 var(--font-display); letter-spacing: -.02em; }
.feature-quote blockquote::before { content: "\201C"; display: block; font-size: 5.5rem; line-height: 1; height: .55em; color: var(--blue); margin: 1.25rem 0 .25rem; }
.stars { display: inline-flex; gap: 2px; color: #f5a400; font-size: 1.1rem; }
.cite { display: flex; align-items: center; gap: .85rem; margin-top: 1.75rem; font-style: normal; }
.cite img { width: 46px; height: 46px; }
.cite strong { display: block; font-size: 1.05rem; }
.cite span { color: var(--muted); font-size: .92rem; }
.review-list { display: grid; gap: 1rem; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.6rem; }
.review-card p { margin: .65rem 0 1rem; color: var(--ink-2); }
.review-card .who { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.review-card .who strong { font-size: 1rem; }
.review-card .who img { width: 52px; height: 52px; }
.review-wall { columns: 2 340px; column-gap: 1rem; }
.review-wall .review-card { break-inside: avoid; margin-bottom: 1rem; }
@media (max-width: 900px) { .reviews-layout { grid-template-columns: 1fr; } }

/* ---------- areas ---------- */
.areas { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.town-list { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; list-style: none; margin: 2rem 0; }
.town-list li { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; }
.town-list li i { color: var(--blue); font-size: 1.15rem; }
.town-list li.base { background: var(--navy); color: #fff; border-color: var(--navy); }
.town-list li.base i { color: var(--orange); }
.map { border-radius: var(--r); overflow: hidden; min-height: 420px; background: var(--tint); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.85); }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .town-list { grid-template-columns: 1fr; } }

/* ---------- full-bleed band (who we work with) ---------- */
.band { position: relative; isolation: isolate; color: #fff; padding-block: clamp(6rem, 12vw, 10rem); overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(11 22 54 / .92) 0%, rgb(11 22 54 / .72) 50%, rgb(11 22 54 / .25) 100%); }
.band h2 { max-width: 16ch; }
.band p { color: rgb(255 255 255 / .86); max-width: 54ch; font-size: 1.125rem; }
.client-types { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 2rem 0 2.25rem; max-width: 640px; }
.client-types li { padding: .55rem .95rem; border-radius: 8px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .25); font-weight: 600; font-size: .95rem; }

/* ---------- promise ---------- */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.promise-list { list-style: none; display: grid; gap: 0; margin-top: 2rem; }
.promise-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-top: 1px solid var(--line); font-size: 1.1rem; font-weight: 500; }
.promise-list li:last-child { border-bottom: 1px solid var(--line); }
.promise-list i { color: var(--blue); font-size: 1.5rem; flex-shrink: 0; }
.promise-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.promise-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: 3 / 4; }
.promise-media img:last-child { margin-top: 3rem; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; font: 600 1.2rem/1.3 var(--font-display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex-shrink: 0; font-size: 1.3rem; color: var(--blue); transition: transform .3s var(--ease-out); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .answer { padding: 0 3rem 1.4rem 0; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- final CTA + form (the one deliberate dark block, continues into footer) ---------- */
.cta-block { background: var(--navy-deep); color: var(--on-dark); padding-block: var(--section); position: relative; overflow: hidden; }
.cta-block::before { content: ""; position: absolute; right: -10%; top: -30%; width: 70%; height: 160%; background: radial-gradient(closest-side, rgb(47 127 184 / .28), transparent); pointer-events: none; }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cta-block h2 { color: #fff; }
.cta-block .lead { color: var(--on-dark-muted); }
.cta-points { list-style: none; display: grid; gap: .9rem; margin: 2rem 0; }
.cta-points li { display: flex; gap: .8rem; align-items: center; font-weight: 500; }
.cta-points i { color: var(--orange); font-size: 1.35rem; }
.contact-lines { display: grid; gap: .75rem; margin-top: 2rem; }
.contact-lines a { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); font-size: 1.3rem; color: var(--on-dark); }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* form (always on a light card so contrast is identical in both themes) */
.form-card { background: #ffffff; color: #0e1b3d; border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 1.6rem; margin-bottom: .35rem; color: #0e1b3d; }
.form-card > p { color: #4b5c72; margin-bottom: 1.5rem; }
.quote-form { display: grid; gap: 1rem; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; color: #0e1b3d; }
.field .optional { font-weight: 400; color: #4b5c72; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: var(--r);
  border: 1.5px solid #c3cfdc; background: #f8fafc; color: #0e1b3d; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%230e1b3d'%3E%3Cpath d='m213.7 101.7-80 80a8 8 0 0 1-11.4 0l-80-80a8 8 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8 8 0 0 1 11.4 11.4Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.75rem; }
.field input::placeholder, .field textarea::placeholder { color: #6b7a8f; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8fa2b8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgb(47 127 184 / .2); }
.field [aria-invalid="true"] { border-color: #c62828; background: #fff7f7; }
.field-error { color: #b71c1c; font-size: .9rem; font-weight: 500; margin: 0; }
.quote-form .btn { width: 100%; margin-top: .25rem; }
.quote-form .btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.form-fineprint { font-size: .9rem; color: #4b5c72; margin: 0; text-align: center; }
.form-fineprint a { color: #1f5f8f; font-weight: 600; }
.form-status { padding: 1rem 1.1rem; border-radius: var(--r); font-size: .98rem; }
.form-status[data-state="success"] { background: #e8f5ec; color: #14532d; border: 1px solid #a7d7b5; }
.form-status[data-state="error"] { background: #fdecec; color: #8a1c1c; border: 1px solid #f1b4b4; }
.form-status a { color: inherit; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); border-top: 1px solid rgb(255 255 255 / .08); padding-block: 4.5rem 2rem; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.footer-grid h3 { font: 600 .85rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.25rem; }
.footer-grid ul { list-style: none; display: grid; gap: .6rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 38ch; }
.footer-badges { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-badges img { width: 54px; height: 54px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .88rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- inner page hero ---------- */
.page-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; font-size: .92rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--blue-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.split-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-hero .lead { margin-bottom: 2rem; }
.split-hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .split-hero { grid-template-columns: 1fr; } }
.page-hero--plain { padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-hero--plain .lead { margin-top: 1rem; }

/* service detail blocks */
.included { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; list-style: none; }
.included li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; display: grid; gap: .5rem; align-content: start; }
.included li i { font-size: 1.8rem; color: var(--blue); }
.included h3 { font-size: 1.3rem; margin: .25rem 0 0; }
.included p { margin: 0; color: var(--muted); font-size: 1rem; }
.included li.feature { background: var(--navy); border-color: var(--navy); color: #fff; }
.included li.feature p { color: rgb(255 255 255 / .82); }
.included li.feature i { color: var(--orange); }

.photo-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; height: clamp(420px, 48vw, 620px); }
.photo-strip button { padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--tint); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.photo-strip button:hover img { transform: scale(1.04); }
.photo-strip button:first-child { grid-row: span 2; }
@media (max-width: 760px) { .photo-strip { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: auto; } .photo-strip button { aspect-ratio: 1; } .photo-strip button:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split img { width: 100%; border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; display: grid; gap: .85rem; margin: 1.5rem 0; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list i { color: var(--blue); font-size: 1.35rem; flex-shrink: 0; margin-top: .1rem; }

.quote-band { background: var(--surface); border-block: 1px solid var(--line); }
.quote-band .container { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
.quote-band blockquote { margin: 0; font: 500 clamp(1.35rem, 1vw + 1rem, 1.9rem)/1.3 var(--font-display); letter-spacing: -.015em; max-width: 52ch; }
.quote-band .cite { margin-top: 1rem; }
.quote-band img.badge { width: 88px; height: 88px; }
@media (max-width: 640px) { .quote-band .container { grid-template-columns: 1fr; } }

.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.related a { display: flex; flex-direction: column; gap: .75rem; text-decoration: none; padding: 1.4rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease-out); }
.related a:hover { border-color: var(--blue); transform: translateY(-3px); }
.related a[aria-current="page"] { display: none; }
.related i.ph-icon { font-size: 1.8rem; color: var(--blue); }
.related strong { font: 700 1.2rem/1.15 var(--font-display); letter-spacing: -.01em; }
.related span { color: var(--blue-ink); font-weight: 600; font-size: .95rem; margin-top: auto; display: inline-flex; gap: .35rem; align-items: center; }
@media (max-width: 1024px) { .related { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .related { grid-template-columns: 1fr; } }

/* services index rows */
.service-rows { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); }
.service-row ul.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 1.25rem 0 1.75rem; }
.service-row ul.tags li { padding: .4rem .75rem; border-radius: 8px; background: var(--tint); font-weight: 500; font-size: .92rem; }
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; } .service-row:nth-child(even) .service-row-media { order: 0; } }

/* about */
.about-hero-media { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }
.about-hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: 4 / 5; }
.about-hero-media img:last-child { margin-top: 3rem; }

/* filters (projects page) */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { min-height: 44px; padding: .5rem 1rem; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.masonry figure[hidden] { display: none; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-cards { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.25rem 1.4rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.contact-card:hover { border-color: var(--blue); }
.contact-card i { font-size: 1.6rem; color: var(--blue); width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r); background: var(--tint); flex-shrink: 0; }
.contact-card small { display: block; color: var(--muted); font-size: .88rem; }
.contact-card strong { font-size: 1.1rem; word-break: break-word; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* prose (privacy) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--blue-ink); }

/* ---------- reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.footer-bottom a { display: inline-block; padding-block: .7rem; }

@media (max-width: 680px) { .tile::before { background: linear-gradient(180deg, rgb(11 22 54 / .15) 0%, rgb(11 22 54 / .7) 40%, rgb(11 22 54 / .94) 100%); } }
