/* Upstate Pool Covers
   Palette is taken from Christopher's logo: charcoal #626366 (POOL), pool blue
   #29a1da (UPSTATE / COVERS) and the deep wave navy #0c5c8e. Navy carries the
   buttons and links because it passes AA on white; the bright pool blue is only
   used where it sits on dark navy or as non-text accent.
   Shape system: images and panels 14px, buttons and chips fully round. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --navy: #0c5c8e;
  --navy-deep: #08304a;
  --navy-ink: #06212f;
  --pool: #29a1da;
  --pool-soft: #e3f2fa;
  --charcoal: #626366;

  --bg: #f5f8fa;
  --surface: #ffffff;
  --ink: #142430;
  --ink-2: #4a5966;
  --line: #dbe4ea;

  --btn-bg: var(--navy);
  --btn-ink: #ffffff;
  --btn-bg-hover: #0a4f7a;
  --link: var(--navy);

  --radius: 14px;
  --shadow: 0 1px 2px rgba(8, 48, 74, .06), 0 10px 30px -12px rgba(8, 48, 74, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1a24;
    --surface: #10232f;
    --ink: #e6edf2;
    --ink-2: #a9b8c3;
    --line: #213847;
    --pool-soft: #12303f;
    --btn-bg: var(--pool);
    --btn-ink: #04202f;
    --btn-bg-hover: #4bb3e3;
    --link: #a3cbe2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }
.prose { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.prose + .prose { margin-top: .9rem; }

.shell { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .prose { margin-top: 1rem; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--pool); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .7rem 1.4rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 54px; padding: .85rem 1.7rem; font-size: 1.0625rem; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(6, 33, 47, .25); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* ---------- Header ----------
   z-index scale: header 50, mobile nav 49, skip link 100. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding-block: .4rem; border-bottom: 2px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { border-color: var(--pool); }
.nav-phone-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-phone { color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--link); }
.nav-toggle {
  display: none; margin-left: auto;
  font: 600 .95rem var(--font-display); color: var(--ink);
  background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
}

@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 900px) {
  .header-inner { height: 68px; gap: 1rem; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 49;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:hover { border-color: var(--line); color: var(--link); }
  .nav-phone-mobile { display: block; font-weight: 600; color: var(--link) !important; border-bottom: 0 !important; }
}
@media (max-width: 420px) {
  .header-actions .btn { display: none; }
}

/* ---------- Hero slideshow ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(86vh, 820px);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--navy-ink);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
/* Slow push-in while a slide is showing. Runs on transform only. */
.hero-slide.is-active img { animation: hero-drift 7.5s linear forwards; }
@keyframes hero-drift { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 33, 47, .25) 0%, rgba(6, 33, 47, 0) 25%),
    linear-gradient(0deg, rgba(6, 33, 47, .82) 0%, rgba(6, 33, 47, .35) 38%, rgba(6, 33, 47, 0) 65%),
    linear-gradient(90deg, rgba(6, 33, 47, .45) 0%, rgba(6, 33, 47, 0) 55%);
}
.hero-inner { padding-block: 5rem 5.5rem; }
/* Centred against the quick-contact card, so the buttons stay in the first
   screen on short laptop windows. */
.hero-text { align-self: center; }
.hero h1 {
  font-size: clamp(2.3rem, 3.5vw, 3.1rem);
  max-width: 26ch; line-height: 1.05; letter-spacing: -0.03em;
}
.hero-inner { display: grid; grid-template-columns: 1fr minmax(340px, 400px); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }

.hero-form-card {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
}
.hero-form-title { font-size: 1.45rem; }
.hero-form-sub { color: var(--ink-2); font-size: .95rem; margin: .35rem 0 1.1rem; }
.hero-form-card form { display: grid; gap: .85rem; position: relative; }
.hero-form-card .form-row { gap: .75rem; }
.hero-form-card .field label { font-size: .88rem; }
.hero-form-card .field input, .hero-form-card .field select { min-height: 44px; padding: .6rem .8rem; }
.hero-form-card .consent-check { font-size: .78rem; }
.hero-form-card .consent-links { font-size: .8rem; }
.hero-form-card .btn { width: 100%; }
.hero-form-more {
  display: block; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--link); text-decoration: none;
}
.hero-form-more:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 6rem; }
  .hero-form-card { max-width: 520px; }
}
.hero-lede { margin-top: 1.25rem; max-width: 48ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Bottom left, under the headline, so the hero form never sits on top of them. */
.hero-controls {
  position: absolute; left: max(1.25rem, (100% - 1240px) / 2); bottom: 2rem;
  display: flex; align-items: center; gap: .9rem;
}
.hero-dots { display: flex; gap: .45rem; }
.hero-dot {
  width: 28px; height: 4px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .38); position: relative; overflow: hidden;
}
/* 24px tall hit area around a 4px bar. */
.hero-dot::before { content: ""; position: absolute; inset: -10px 0; }
.hero-dot[aria-selected="true"] { background: rgba(255, 255, 255, .95); }
.hero-pause {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(6, 33, 47, .35); color: #fff;
}
.hero-pause .i-play { display: none; }
.hero-pause.is-paused .i-play { display: block; }
.hero-pause.is-paused .i-pause { display: none; }

/* Phones: the photos get the whole first screen to themselves, and the quick
   quote card sits on the navy directly below them instead of covering them. */
@media (max-width: 700px) {
  .hero { --photo-h: calc(100svh - 68px); display: block; min-height: 0; }
  .hero-slides, .hero-scrim { bottom: auto; height: var(--photo-h); }
  .hero-inner { padding-block: 0 2.5rem; }
  .hero-text {
    min-height: var(--photo-h);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-block: 5rem 4.75rem;
  }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-controls { left: 1.25rem; right: auto; bottom: auto; top: calc(var(--photo-h) - 3.4rem); }
  .hero-form-card { margin-top: .5rem; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active img { animation: none; transform: none; }
}

/* ---------- Trust band ---------- */
.creds { background: var(--navy-ink); color: #dbe9f2; border-top: 1px solid rgba(255, 255, 255, .08); }
.creds-list {
  list-style: none; margin: 0 auto; padding: 1.15rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem;
}
.creds-list li { display: flex; align-items: center; gap: .6rem; }
.creds-list li::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--pool); flex: none;
}
@media (max-width: 700px) {
  .creds-list { flex-direction: column; gap: .55rem; }
}
/* Five items don't fit one line, so wider screens get even columns (two-line
   items) instead of a lone item wrapping onto a second row. */
@media (min-width: 701px) {
  .creds-list { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: .8rem 2rem; }
  .creds-list li { align-items: baseline; line-height: 1.35; }
  .creds-list li::before { transform: translateY(-.3em); }
}
.creds-list br { display: none; }
@media (min-width: 1000px) {
  .creds-list { grid-template-columns: repeat(5, auto); gap: 1.5rem; white-space: nowrap; }
  .creds-list br { display: inline; }
}

/* ---------- Local ---------- */
.local-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.local-media { position: relative; padding-bottom: 14%; padding-right: 18%; }
.local-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.local-img-a { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.local-img-b {
  position: absolute; right: 0; bottom: 0; width: 46%;
  aspect-ratio: 3 / 4; object-fit: cover;
  border: 6px solid var(--bg);
}
.local-copy h2 { max-width: 14ch; margin-bottom: 1.4rem; }
.local-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.5rem 2.5rem;
  margin: 2.2rem 0 0; padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.local-facts dt { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--link); letter-spacing: -0.02em; }
.local-facts dd { margin: .2rem 0 0; color: var(--ink-2); font-size: .95rem; max-width: 16ch; }
@media (max-width: 900px) {
  .local-grid { grid-template-columns: 1fr; }
  .local-media { max-width: 520px; }
}
@media (max-width: 560px) {
  .local-facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Services ---------- */
.services { background: var(--surface); }
.svc-feature {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0;
  background: var(--navy-deep); color: #fff; border-radius: var(--radius); overflow: hidden;
}
.svc-feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.svc-feature-body { padding: clamp(2rem, 4vw, 3.5rem); align-self: center; }
.svc-feature-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.svc-feature-body p { margin: 1rem 0 1.8rem; color: rgba(255, 255, 255, .84); }
.svc-feature .btn-primary { background: var(--pool); color: var(--navy-ink); }
.svc-feature .btn-primary:hover { background: #4bb3e3; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.svc h3 { margin: 1.1rem 0 .45rem; }
.svc p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 1000px) {
  .svc-feature { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ---------- Covers ---------- */
.cover-table { border-top: 1px solid var(--line); }
.cover-row {
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 1rem 3rem;
  padding: 1.8rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.cover-name h3 { font-size: 1.6rem; }
.cover-kind { display: block; margin-top: .3rem; color: var(--link); font-weight: 600; font-size: .95rem; }
.cover-row p { color: var(--ink-2); max-width: 58ch; }

.cover-built {
  margin-top: 2.5rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--pool-soft); border-radius: var(--radius);
}
.cover-built-lead { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.cover-built ul {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.cover-built li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .95rem; font-size: .95rem;
}
.cover-colors { margin-top: 1.1rem; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 700px) {
  .cover-row { grid-template-columns: 1fr; gap: .6rem; }
}

/* ---------- Reviews marquee ---------- */
.reviews { background: var(--surface); overflow: hidden; }
.reviews-marquee { overflow-x: auto; scrollbar-width: none; }
.reviews-marquee::-webkit-scrollbar { display: none; }
.reviews-track { display: flex; gap: 1.25rem; width: max-content; padding: .5rem 1.25rem 1rem; }
.reviews-marquee.is-animated { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews-marquee.is-animated .reviews-track { animation: marquee var(--marquee-duration, 70s) linear infinite; }
.reviews-marquee.is-animated:hover .reviews-track,
.reviews-marquee.is-animated:focus-within .reviews-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.review {
  margin: 0; width: min(380px, 80vw); flex: none;
  display: flex; flex-direction: column; gap: .9rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem;
}
.stars { color: #e5a50a; letter-spacing: 2px; font-size: 1.05rem; }
.review blockquote { margin: 0; flex: 1; font-size: 1.02rem; }
.review figcaption { color: var(--ink-2); font-size: .92rem; font-weight: 600; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.process-intro { position: sticky; top: 120px; }
.process-intro .prose { margin: 1.2rem 0 2rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 2.2rem 4.5rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line);
  font-family: var(--font-display); font-weight: 600; color: var(--link);
}
/* The line joining the step markers. */
.steps li::after {
  content: ""; position: absolute; left: calc(1.375rem - 1px); top: 2.9rem; bottom: .25rem;
  width: 2px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--ink-2); max-width: 54ch; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-intro { position: static; }
}

/* ---------- Any pool, any patio ---------- */
.fit { background: var(--surface); }
/* Fixed row heights, so a portrait photo can't stretch its row. */
.fit-grid {
  display: grid; gap: 1.5rem 1.25rem;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 380px 340px;
  grid-template-areas:
    "a a a a a a b b b c c c"
    "d d d d e e e e e e e e";
}
.fit-item { margin: 0; display: flex; flex-direction: column; gap: .6rem; min-width: 0; min-height: 0; }
.fit-item img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: var(--radius); }
.fit-item figcaption { color: var(--ink-2); font-size: .94rem; }
.fit-a { grid-area: a; }
.fit-b { grid-area: b; }
.fit-c { grid-area: c; }
.fit-d { grid-area: d; }
.fit-e { grid-area: e; }
@media (max-width: 900px) {
  .fit-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-template-areas: "a a" "b c" "d e";
  }
  .fit-item img { min-height: 0; aspect-ratio: 4 / 5; flex: none; }
  .fit-a img { aspect-ratio: 4 / 3; }
}

/* ---------- Recent installs ---------- */
.gallery-band { overflow: hidden; }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.gallery-arrows { display: flex; gap: .6rem; }
.gallery-nav {
  display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease);
}
.gallery-nav:hover { border-color: var(--link); color: var(--link); }
.gallery-nav:active { transform: scale(.95); }
.gallery-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(1.25rem, (100% - 1240px) / 2); scroll-padding-inline: max(1.25rem, (100% - 1240px) / 2);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img {
  height: clamp(280px, 38vw, 440px); width: auto; flex: none;
  object-fit: cover; border-radius: var(--radius); scroll-snap-align: start;
}

/* ---------- Service area ---------- */
.areas { background: var(--navy-deep); color: #fff; }
.areas .prose { color: rgba(255, 255, 255, .82); margin-top: 1.2rem; }
.areas-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; column-gap: clamp(2rem, 6vw, 5rem); row-gap: 1.8rem;
  grid-template-areas: "text map" "chips map";
}
.areas-text { grid-area: text; align-self: end; }
.areas-note { margin-top: 1.2rem; color: #fff; font-weight: 600; }
.areas-note a { color: #fff; text-decoration-color: var(--pool); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.areas-list { grid-area: chips; align-self: start; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }

/* Service-area map: base geometry is images/service-area.svg; dots and labels are inline. */
.areas-map { grid-area: map; align-self: center; margin: 0; }
.areas-map svg { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .14); }
.areas-map figcaption { margin-top: .7rem; color: rgba(255, 255, 255, .72); font-size: .9rem; }
.map-state { fill: rgba(255, 255, 255, .34); font-size: 15px; font-weight: 600; letter-spacing: .2em; }
.map-town circle { fill: #fff; }
.map-town text, .map-home text {
  fill: #e6f1f7; font-size: 20px; font-weight: 600;
  paint-order: stroke; stroke: #0a3a57; stroke-width: 5px; stroke-linejoin: round;
}
.map-home circle { fill: var(--pool); stroke: #fff; stroke-width: 2.5px; }
.map-home .map-home-ring { fill: rgba(41, 161, 218, .3); stroke: none; }
.map-home text { fill: #fff; font-size: 24px; font-weight: 700; }
@media (max-width: 600px) {
  .map-minor { display: none; }
  .map-state { font-size: 22px; }
  .map-town text { font-size: 30px; stroke-width: 7px; }
  .map-home text { font-size: 34px; stroke-width: 7px; }
}
.areas-list li {
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: .45rem 1rem; font-size: .95rem; color: #e6f1f7;
}
.areas-list li:first-child { background: var(--pool); border-color: var(--pool); color: var(--navy-ink); font-weight: 600; }
@media (max-width: 900px) {
  .areas-grid { grid-template-columns: 1fr; grid-template-areas: "text" "map" "chips"; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-grid .prose { margin-top: 1rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--link); border-bottom: 2px solid var(--link);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-list details p { padding: 0 2rem 1.4rem 0; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- Quote ---------- */
.quote { background: var(--navy-ink); color: #fff; padding-block: clamp(4rem, 9vw, 7rem); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.quote h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.quote-lede { margin-top: 1.2rem; color: rgba(255, 255, 255, .84); max-width: 40ch; }
.quote-contact { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .55rem; }
.quote-contact a { color: #fff; font-weight: 600; text-decoration-color: rgba(255, 255, 255, .4); }
.quote-contact li:first-child a { font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; }
.quote-contact li:last-child { color: rgba(255, 255, 255, .7); }

.quote-form {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem);
  display: grid; gap: 1.1rem; position: relative;
  transition: opacity .3s var(--ease);
}
.quote-form.is-submitted { opacity: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  padding: .75rem .9rem; min-height: 48px; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pool) 30%, transparent);
}
.field-help { color: var(--ink-2); font-size: .88rem; }
.field-error { color: #c0392b; font-size: .88rem; font-weight: 600; }
.has-error { border-color: #c0392b !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.consent-check input { width: 20px; height: 20px; margin-top: .1rem; flex: none; accent-color: var(--navy); }
.consent-check.has-error span { color: #c0392b; }
.consent-links { font-size: .88rem; color: var(--ink-2); margin-top: -.4rem; }
.quote-form .btn { justify-self: start; }

/* Yes / No obstruction question: two segmented buttons over native radios. */
.choice-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-field legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .4rem; }
.choice-group { display: flex; gap: .6rem; }
.choice { position: relative; flex: 0 1 120px; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: grid; place-items: center; min-height: 48px; padding: 0 1rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.choice:hover span { border-color: color-mix(in srgb, var(--link) 45%, var(--line)); }
.choice input:checked + span { border-color: var(--link); background: var(--link); color: var(--surface); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pool) 30%, transparent); }
.obstruction-help { margin-top: .2rem; }

/* Photo picker, shared by the quote form and the chat. */
.photo-field { position: relative; }
.photo-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-label { font-weight: 600; font-size: .95rem; }
.photo-add {
  display: inline-flex; align-items: center; gap: .55rem; align-self: flex-start;
  min-height: 48px; padding: 0 1.1rem; border-radius: 10px; cursor: pointer;
  border: 1.5px dashed color-mix(in srgb, var(--link) 50%, var(--line)); background: var(--bg);
  color: var(--link); font-weight: 600; font-size: .95rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.photo-add:hover { border-color: var(--link); background: color-mix(in srgb, var(--pool) 8%, var(--bg)); }
.photo-field:has(.photo-input:focus-visible) .photo-add { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pool) 30%, transparent); }
.photo-field.is-full .photo-add { opacity: .5; pointer-events: none; }
.photo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.photo-list:empty { display: none; }
.photo-list li { position: relative; width: 76px; height: 76px; }
.photo-list img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.photo-remove {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; padding: 0; border-radius: 50%;
  border: 2px solid var(--surface); background: var(--navy-ink); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.photo-field-compact .photo-add { min-height: 40px; font-size: .88rem; padding: 0 .9rem; }
.photo-field-compact .photo-list li { width: 56px; height: 56px; }
.form-status { font-size: .95rem; font-weight: 600; color: var(--link); }
.form-status.is-error { color: #c0392b; }
@media (prefers-color-scheme: dark) {
  .field-error, .form-status.is-error, .consent-check.has-error span { color: #ff8a7a; }
  .has-error { border-color: #ff8a7a !important; }
}

.form-success {
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center; display: grid; justify-items: center; gap: .6rem;
  animation: success-in .4s var(--ease) both;
}
@keyframes success-in { from { opacity: 0; transform: translateY(8px); } }
.form-success-check { width: 56px; height: 56px; }
.form-success-circle { stroke: var(--pool); stroke-width: 3; }
.form-success-tick { stroke: var(--link); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .5s .2s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.form-success-title { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.form-success-text { color: var(--ink-2); }

@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .quote-form .btn { justify-self: stretch; }
}

/* ---------- Footer ---------- */
/* Bottom padding keeps the credit clear of the fixed chat launcher. */
.site-footer { background: #041722; color: rgba(255, 255, 255, .78); padding: 4rem 0 6.5rem; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { height: 64px; width: auto; margin-bottom: 1.2rem; }
.footer-about p { max-width: 44ch; }
.footer-title { font-family: var(--font-display); font-weight: 600; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem; color: rgba(255, 255, 255, .62);
}
.site-credit { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.5rem; font-size: .82rem; color: rgba(255, 255, 255, .6) !important; }
.site-credit img { height: 16px; width: auto; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

/* ---------- Extra photos (covers, process, FAQ, quote) ---------- */
.covers-layout { display: grid; grid-template-columns: minmax(260px, .8fr) 2fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.covers-photo { margin: 0; }
.covers-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.side-photo { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-top: 2.2rem; }
.quote .side-photo { max-width: 380px; }
@media (max-width: 900px) {
  .covers-layout { grid-template-columns: 1fr; }
  .covers-photo img { aspect-ratio: 16 / 10; }
  .side-photo { aspect-ratio: 16 / 10; max-width: none; }
  .process-intro .side-photo, .faq-grid .side-photo { display: none; }
}

/* ---------- FAQ open/close animation ----------
   site.js wraps each answer in .faq-a and animates its height. Without JS the
   native details element still opens instantly. */
.faq-a { overflow: hidden; }
.faq-list details.is-closing summary::after { transform: translateY(-3px) rotate(45deg); }
.faq-list summary { transition: color .2s var(--ease); }
.faq-list summary:hover { color: var(--link); }

/* ---------- Chat widget ----------
   z-index 60: above the page, below the mobile nav's open state is irrelevant
   because they never overlap (nav is top, chat is bottom). */
.chat-widget {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end;
}
@media (min-width: 481px) { .chat-widget { right: 24px; bottom: 24px; } }
.chat-bubble {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .4);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.chat-bubble:hover { background: #0a4f7a; transform: translateY(-2px); }
.chat-bubble:active { transform: scale(.96); }
.chat-bubble svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-bubble .icon-close { display: none; }
.chat-widget.open .chat-bubble .icon-open { display: none; }
.chat-widget.open .chat-bubble .icon-close { display: block; }

.chat-panel {
  position: absolute; right: 0; bottom: calc(100% + 14px);
  width: calc(100vw - 32px); max-height: min(560px, calc(100dvh - 110px)); overflow-y: auto;
  background: var(--surface); color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 16px 32px -10px rgba(0, 0, 0, .35);
  transform-origin: bottom right; transform: scale(.94) translateY(10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
}
@media (min-width: 481px) { .chat-panel { width: 350px; } }
.chat-widget.open .chat-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s;
}
.chat-panel-header {
  position: relative; background: var(--navy-deep); color: #fff;
  padding: 1.25rem 3rem 1.1rem 1.3rem; border-radius: 17px 17px 0 0;
}
.ch-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
/* His full logo on a white tile; the logo is too wide to read inside a circle. */
.ch-av { flex: none; display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 4px 7px; }
.ch-av img { height: 30px; width: auto; display: block; }
.chat-panel-header h2 { font-size: 1.02rem; letter-spacing: 0; }
.ch-status { font-size: .78rem; color: #9fc9e3; }
.chat-panel-header > p { font-size: .88rem; color: rgba(255, 255, 255, .85); line-height: 1.5; }
.chat-close {
  position: absolute; top: .85rem; right: .85rem; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s var(--ease);
}
.chat-close:hover { background: rgba(255, 255, 255, .28); }
.chat-panel-body { padding: 1.2rem 1.3rem 1.3rem; }
.chat-panel-body form { display: grid; gap: .8rem; position: relative; }
.chat-panel-body .field label { font-size: .85rem; }
.chat-panel-body .field input, .chat-panel-body .field textarea { min-height: 44px; padding: .6rem .8rem; font-size: .95rem; }
.chat-panel-body .field textarea { min-height: 80px; }
.chat-panel-body .consent-check { font-size: .76rem; }
.chat-panel-body .consent-links { font-size: .78rem; }
.chat-panel-body .btn { width: 100%; }
.chat-panel .form-success { padding: 2rem 1rem; }

.chat-callout {
  position: absolute; right: 2px; bottom: 74px; width: max-content; max-width: 220px;
  background: var(--navy-deep); color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.4;
  padding: .75rem 2rem .75rem .95rem; border-radius: 14px; cursor: pointer;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .4);
  transform-origin: bottom right;
  animation: callout-in .55s var(--ease) .9s both;
}
.chat-callout::after {
  content: ""; position: absolute; right: 22px; bottom: -6px; width: 14px; height: 14px;
  background: var(--navy-deep); transform: rotate(45deg);
}
.chat-widget.open .chat-callout,
.chat-callout.dismissed { animation: callout-out .3s ease forwards; }
.cc-x {
  position: absolute; top: .4rem; right: .4rem; width: 24px; height: 24px; padding: 0;
  border: 0; background: none; color: rgba(255, 255, 255, .65); cursor: pointer; display: grid; place-items: center;
}
.cc-x:hover { color: #fff; }
/* On phones the callout lands on top of the hero's Call button, so only the
   launcher shows there. */
@media (max-width: 700px) { .chat-callout { display: none; } }
@keyframes callout-in { from { opacity: 0; transform: translateY(10px) scale(.94); } }
@keyframes callout-out { to { opacity: 0; transform: translateY(6px) scale(.94); visibility: hidden; } }
@media (prefers-color-scheme: dark) {
  .chat-bubble { background: var(--pool); color: var(--navy-ink); }
  .chat-bubble:hover { background: #4bb3e3; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel, .chat-bubble { transition: none; }
  .chat-callout { animation: none; }
  .chat-widget.open .chat-callout, .chat-callout.dismissed { animation: none; opacity: 0; visibility: hidden; }
}

/* =====================================================================
   Multi-page additions (2026-10-16): nav dropdowns, inner-page hero,
   detail layouts, hubs, comparison table, gallery, legal.
   ===================================================================== */

/* ---------- Nav items and dropdowns ---------- */
.nav { align-items: center; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-sub-toggle {
  display: grid; place-items: center; width: 28px; height: 28px; margin-left: .1rem; padding: 0;
  background: none; border: 0; border-radius: 6px; color: var(--ink-2); cursor: pointer;
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.nav-sub-toggle:hover { color: var(--link); }
.has-menu.is-open .nav-sub-toggle { transform: rotate(180deg); }
.nav .nav-menu a { border-bottom: 0; }
@media (min-width: 901px) {
  .nav-menu {
    position: absolute; top: 100%; left: -1rem; z-index: 51; min-width: 230px;
    display: grid; padding: .5rem; margin-top: .35rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transform-origin: top left;
    transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s linear .16s;
  }
  /* Invisible bridge so the pointer can travel from the link into the menu. */
  .nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
  .has-menu:hover .nav-menu, .has-menu:focus-within .nav-menu, .has-menu.is-open .nav-menu {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  .nav .nav-menu a { padding: .55rem .75rem; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
  .nav .nav-menu a:hover { background: var(--pool-soft); color: var(--link); }
  .nav .nav-menu a:first-child { font-weight: 600; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .nav { gap: 1.1rem; }
  .header-inner { gap: 1.25rem; }
}
@media (max-width: 900px) {
  .nav { align-items: stretch; max-height: calc(100svh - 68px); overflow-y: auto; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item .nav-link { flex: 1; border-bottom: 0; }
  .nav-sub-toggle { width: 44px; height: 44px; }
  .nav-menu { display: none; flex-basis: 100%; padding: 0 0 .6rem .9rem; }
  .has-menu.is-open .nav-menu { display: grid; }
  .nav .nav-menu a { padding: .55rem 0; font-size: .98rem; color: var(--ink-2); border-bottom: 0; }
}

/* ---------- Shared bits ---------- */
.text-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-display); font-weight: 600; color: var(--link); text-decoration: none;
}
.text-link span { transition: transform .2s var(--ease); }
.text-link:hover span { transform: translateX(3px); }
.text-link-light { color: #fff; }
.section-more { margin-top: 2rem; }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.svc-feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.svc-feature h3 a, .svc h3 a, .cover-name h3 a { color: inherit; text-decoration: none; }
.svc h3 a:hover, .cover-name h3 a:hover { color: var(--link); }
.svc-feature h3 a:hover { text-decoration: underline; text-decoration-color: var(--pool); }
.process-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.gallery-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1.5rem; }
.areas-inline { color: #fff; text-decoration-color: var(--pool); text-decoration-thickness: 2px; }
.areas-list a { color: inherit; text-decoration: none; }
.areas-list li:has(a):hover { border-color: var(--pool); }
.map-state .map-state-out { fill: rgba(255, 255, 255, .2); }
.tick-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.tick-list li { position: relative; padding-left: 1.7rem; color: var(--ink-2); }
.tick-list li::before {
  content: ""; position: absolute; left: .15rem; top: .45em; width: .7rem; height: .4rem;
  border-left: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(-45deg);
}

/* ---------- Inner-page hero ----------
   Navy band, text left and one of his photos right. Deliberately unlike the
   homepage's full-bleed slideshow, so inner pages read as a different level. */
.crumbs ol { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a { color: inherit; text-decoration: none; opacity: .78; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.page-hero { background: var(--navy-deep); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 18ch; }
.page-hero-lede { margin-top: 1.2rem; max-width: 52ch; font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: rgba(255, 255, 255, .86); text-wrap: pretty; }
.page-hero .hero-actions { margin-top: 1.8rem; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.page-hero-photo { margin: 0; }
.page-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .page-hero .hero-actions .btn { flex: 1 1 auto; }
}
/* Plain header for pages without a photo (gallery, quote, legal). */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.page-head h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.03em; }
.page-head .page-hero-lede { color: var(--ink-2); }
.page-head-tight { padding-bottom: 0; }
.page-head-tight .crumbs ol { margin-bottom: 0; }
.page-404 { padding-bottom: clamp(4rem, 9vw, 7rem); }
.page-404 .nearby-list { margin-top: 2rem; }

/* ---------- Detail: long copy + "at a glance" aside ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.detail-copy h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin: 2.6rem 0 1rem; }
.detail-copy h2:first-child { margin-top: 0; }
/* ch is the width of a zero, wider than an average letter, so 62ch ran ~90
   characters a line here. 54ch lands under 80. */
.detail-copy .prose, .why-list li, .hub-row p, .legal-body p { max-width: 54ch; }
.detail-copy .cover-built { margin-top: 2.6rem; }
.glance {
  position: sticky; top: 104px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: grid; gap: 1rem;
}
.glance-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.glance dl { margin: 0; display: grid; gap: .9rem; }
.glance dl div { padding-top: .9rem; border-top: 1px solid var(--line); }
.glance dt { font-family: var(--font-display); font-weight: 600; color: var(--link); }
.glance dd { margin: .15rem 0 0; color: var(--ink-2); font-size: .95rem; }
.glance .btn { width: 100%; margin-top: .4rem; }
.glance-phone { text-align: center; font-weight: 600; font-size: .95rem; color: var(--ink-2); text-decoration: none; }
.glance-phone:hover { color: var(--link); }
@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
  .glance { position: static; }
}

/* ---------- Photo row ---------- */
.photo-row-wrap { padding-top: 0; }
.photo-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.25rem; }
.photo-row figure { margin: 0; display: grid; gap: .6rem; }
.photo-row img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); }
.photo-row figcaption { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 800px) {
  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row figure:first-child { grid-column: 1 / -1; }
  .photo-row img { height: auto; aspect-ratio: 4 / 5; }
  .photo-row figure:first-child img { aspect-ratio: 4 / 3; }
}

.process-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem;
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-2);
}

.page-faq h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }

/* ---------- Related services ---------- */
.related-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.8rem; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.link-card {
  display: grid; grid-template-rows: auto 1fr; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.link-card:hover { border-color: color-mix(in srgb, var(--link) 45%, var(--line)); transform: translateY(-2px); }
.link-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.link-card-body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .35rem; align-content: start; }
.link-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.link-card-text { color: var(--ink-2); font-size: .94rem; }
@media (prefers-reduced-motion: reduce) { .link-card:hover { transform: none; } }

/* ---------- Cover links ---------- */
.related-alt { background: var(--surface); }
.cover-links { border-top: 1px solid var(--line); }
.cover-link {
  display: grid; grid-template-columns: minmax(150px, 220px) minmax(130px, 180px) 1fr auto; gap: .4rem 2rem; align-items: baseline;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.cover-link-name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.cover-link-kind { color: var(--link); font-weight: 600; font-size: .95rem; }
.cover-link-text { color: var(--ink-2); }
.cover-link-go { color: var(--link); font-size: 1.3rem; transition: transform .2s var(--ease); }
.cover-link:hover .cover-link-name { color: var(--link); }
.cover-link:hover .cover-link-go { transform: translateX(4px); }
@media (max-width: 760px) {
  .cover-link { grid-template-columns: 1fr auto; }
  .cover-link-kind, .cover-link-text { grid-column: 1; }
  .cover-link-go { grid-row: 1; grid-column: 2; }
}

/* ---------- Reviews page ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.review-grid .review { width: auto; background: var(--surface); }
@media (max-width: 400px) { .review-grid { grid-template-columns: 1fr; } }
.reviews-page { padding-top: clamp(2.5rem, 5vw, 4rem); }
.leave-review {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 3rem;
  margin-top: 3rem; padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--pool-soft); border-radius: var(--radius);
}
.leave-review h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .5rem; }
/* Secondary text on the pool-tinted panels: mixed from ink and the panel
   itself, so it reads as part of the panel instead of a neutral gray. */
.cover-built .cover-colors, .leave-review .prose { color: color-mix(in srgb, var(--ink) 80%, var(--pool)); }

/* ---------- Page-end quote band ---------- */
.cta-band { background: var(--navy-ink); color: #fff; padding-block: clamp(4rem, 8vw, 6rem); }
.cta-grid { display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cta-band h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); max-width: 16ch; }
.cta-lede { margin-top: 1.1rem; color: rgba(255, 255, 255, .84); max-width: 42ch; }
.cta-form-card { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.cta-form-card form { display: grid; gap: .9rem; position: relative; }
.cta-form-card .consent-check { font-size: .8rem; }
.cta-form-card .consent-links { font-size: .82rem; }
.cta-form-card .btn { justify-self: start; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cta-form-card .btn { justify-self: stretch; } }

/* ---------- Town pages ---------- */
.nearby-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.nearby-grid h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.nearby-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.nearby-list a {
  display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: .95rem;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nearby-list a:hover { border-color: var(--link); color: var(--link); }
@media (max-width: 800px) { .nearby-grid { grid-template-columns: 1fr; } }

/* ---------- Hubs ---------- */
.hub-rows { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.hub-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hub-row-flip .hub-row-media { order: 2; }
.hub-row-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hub-row h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: .9rem; }
.hub-row h2 a { color: inherit; text-decoration: none; }
.hub-row h2 a:hover { color: var(--link); }
.hub-row p { color: var(--ink-2); margin-bottom: 1.2rem; max-width: 52ch; }
@media (max-width: 800px) {
  .hub-row { grid-template-columns: 1fr; }
  .hub-row-flip .hub-row-media { order: 0; }
}

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-size: 1.3rem; }
.compare thead th a { color: inherit; text-decoration: none; }
.compare thead th a:hover { color: var(--link); }
.compare thead th span { display: block; color: var(--link); font-family: var(--font-body); font-size: .9rem; font-weight: 600; margin-top: .15rem; }
.compare tbody th { font-weight: 600; color: var(--ink-2); font-size: .95rem; width: 20%; }
.compare-note { margin-top: 1rem; color: var(--ink-2); font-size: .94rem; }

.why-meyco { background: var(--surface); }
.why-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.why-grid .prose { margin-top: 1rem; }
.why-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.why-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.why-list strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

.areas-hub .area-groups { grid-area: chips; align-self: start; display: grid; gap: 1.4rem; }
.area-group h3 { font-size: 1rem; color: var(--pool); margin-bottom: .6rem; letter-spacing: 0; }
.area-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.area-group a {
  display: inline-block; padding: .45rem 1rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  color: #e6f1f7; text-decoration: none; font-size: .95rem; transition: border-color .2s var(--ease);
}
.area-group a:hover { border-color: var(--pool); color: #fff; }
.area-also { color: rgba(255, 255, 255, .72); font-size: .94rem; }

/* ---------- About ---------- */
.values h2 { margin-bottom: 2rem; }
.value-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value-grid li { padding-top: 1.2rem; border-top: 2px solid var(--pool); }
.value-grid h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.value-grid p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; } }
@media (max-width: 520px) { .value-grid { grid-template-columns: 1fr; } }
.partners { padding-block: 2.5rem; }
.partners-line { color: var(--ink-2); }

/* ---------- How it works ---------- */
.tips-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.tips-grid .prose { margin-top: 1rem; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.tips li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.tips h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.tips p { color: var(--ink-2); font-size: .96rem; }
.quote-tips { background: var(--bg); }
@media (max-width: 860px) { .tips-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .tips { grid-template-columns: 1fr; } }

/* ---------- Gallery page ---------- */
.gallery-page { padding-top: clamp(2rem, 4vw, 3rem); }
.masonry { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: 1rem; }
.masonry li { break-inside: avoid; margin-bottom: 1rem; }
.masonry a { display: block; border-radius: var(--radius); overflow: hidden; }
.masonry img { width: 100%; transition: transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .masonry a:hover img { transform: scale(1.03); } }
.lightbox {
  width: min(1200px, 100vw - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0;
  background: transparent; color: #fff; overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 23, 34, .9); }
.lightbox[open] { display: grid; justify-items: center; gap: .8rem; animation: lb-in .2s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 7rem); width: auto; border-radius: 10px; }
.lightbox-cap { font-size: .92rem; color: rgba(255, 255, 255, .8); text-align: center; padding-inline: 3.5rem; }
.lb-btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(4, 23, 34, .6); color: #fff; cursor: pointer;
}
.lb-btn:hover { border-color: #fff; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

/* ---------- Quote page ---------- */
.quote-page h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.page-head-tight + .quote-page { margin-top: 1.5rem; }

/* ---------- Legal ---------- */
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.legal-body p { color: var(--ink-2); margin-bottom: .9rem; }
.legal-date { font-weight: 600; }

/* ---------- Footer, wider ---------- */
.footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.footer-contact { margin-top: 1.2rem !important; }
.footer-legal { display: inline-flex; gap: 1.2rem; }
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
