:root {
  --navy: #071a3d;
  --cobalt: #0a2a6b;
  --blue: #1f63e0;
  --sky: #6fa8ff;
  --ice: #eef4ff;
  --white: #ffffff;
  --steel: #53627d;
  --line: #d6e1f5;

  --wide: "wdth" 125;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(2.6rem, 7.5vw, 5.75rem);

  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img, canvas { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h2 {
  font-size: var(--step-3);
  font-weight: 800;
  font-variation-settings: var(--wide);
  letter-spacing: -0.01em;
  max-width: 22ch;
}
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }
section[id] { scroll-margin-top: 88px; }
.section-lede { color: var(--steel); margin-top: 12px; max-width: 60ch; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(255,255,255,.94); color: var(--navy); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-variation-settings: var(--wide); font-size: 1.05rem; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { color: inherit; text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-call { padding: 9px 16px; border: 1.5px solid currentColor; border-radius: 999px; font-weight: 700 !important; }
.nav-call:hover { text-decoration: none !important; background: var(--white); color: var(--cobalt); }
.site-header.scrolled .nav-call:hover { background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); overflow: hidden;
  background: radial-gradient(120% 90% at 70% 30%, #2f7bff 0%, #0a2a6b 45%, #061433 100%);
}
.pour { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,14,38,.35) 0%, rgba(4,14,38,0) 30%, rgba(4,14,38,.15) 60%, rgba(4,14,38,.7) 100%); }
.hero-inner { position: relative; padding-bottom: clamp(56px, 10vh, 110px); padding-top: 120px; }
.hero-title {
  font-size: var(--step-4); font-weight: 900; font-variation-settings: var(--wide);
  letter-spacing: -0.02em; line-height: .98; max-width: 12ch;
}
.hero-title .line { display: block; }
.hero-lede { margin-top: 24px; font-size: var(--step-1); max-width: 46ch; line-height: 1.45; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* load sequence: the one orchestrated moment */
.js .hero-title .line, .js .hero-lede, .js .hero-actions { opacity: 0; transform: translateY(28px); }
.js.ready .hero-title .line, .js.ready .hero-lede, .js.ready .hero-actions {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
}
.js.ready .hero-title .line:nth-child(2) { transition-delay: .12s; }
.js.ready .hero-lede { transition-delay: .35s; }
.js.ready .hero-actions { transition-delay: .5s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s var(--ease-out), background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-light { background: var(--white); color: var(--cobalt); }
.btn-light:hover { background: var(--ice); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-solid { background: var(--blue); color: var(--white); }
.btn-solid:hover { background: var(--cobalt); }

/* ---------- Intro ---------- */
.intro { padding-block: clamp(72px, 12vw, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.intro-body p + p { margin-top: 16px; }
.intro-body { color: var(--steel); max-width: 60ch; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; border-top: 2px solid var(--navy); }
.facts div { padding: 20px 24px 0 0; }
.facts dt { font-weight: 800; font-size: var(--step-1); }
.facts dd { margin: 4px 0 0; color: var(--steel); }

/* ---------- Services ---------- */
.services { background: var(--ice); padding-block: clamp(72px, 10vw, 120px); }
.svc-layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 40px; margin-top: 40px; }
.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.svc-list button {
  appearance: none; background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; padding: 14px 4px; font: inherit; font-weight: 600; color: var(--steel); cursor: pointer;
  position: relative; transition: color .2s, padding-left .3s var(--ease-out);
}
.svc-list button::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--blue);
  transition: width .3s var(--ease-out);
}
.svc-list button:hover { color: var(--navy); }
.svc-list button[aria-selected="true"] { color: var(--navy); padding-left: 26px; }
.svc-list button[aria-selected="true"]::before { width: 16px; }

.svc-stage { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(10,42,107,.45); }
.swatch { position: relative; aspect-ratio: 16 / 7; background: #9aa6b8; }
.swatch canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: clip-path .9s var(--ease-out); }
.swatch canvas.under { z-index: 1; }
.swatch canvas.over { z-index: 2; }
.svc-panel { padding: 28px 32px 34px; }
.svc-panel h3 { font-size: var(--step-2); font-variation-settings: var(--wide); font-weight: 800; }
.svc-panel p { margin-top: 12px; color: var(--steel); max-width: 62ch; }
.svc-panel ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-panel li { background: var(--ice); color: var(--cobalt); font-weight: 600; font-size: var(--step--1); padding: 6px 12px; border-radius: 999px; }
.svc-panel:not([hidden]) { animation: panel-in .5s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Process ---------- */
.process { padding-block: clamp(72px, 12vw, 140px); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 20px 0 0; border-top: 2px solid var(--line); position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin: -21px 0 20px;
  border-radius: 50%; background: var(--white); border: 2px solid var(--blue); color: var(--blue); font-weight: 800;
}
.steps p { margin-top: 8px; color: var(--steel); font-size: .98rem; }

/* ---------- Why ---------- */
.why { background: var(--cobalt); color: var(--white); padding-block: clamp(72px, 10vw, 120px); }
.why-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.why-items { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.why-items h3 { font-size: var(--step-1); }
.why-items p { margin-top: 8px; color: rgba(255,255,255,.78); }

/* ---------- Area ---------- */
.area { padding-block: clamp(72px, 12vw, 140px) 40px; }
.towns { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.towns li {
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); font-weight: 800; font-variation-settings: var(--wide);
  color: #7486a8; line-height: 1.2; transition: color .3s;
}
.towns li:first-child { color: var(--blue); }
.towns li:hover { color: var(--navy); }
.towns li:not(:last-child)::after { content: "/"; color: var(--line); margin: 0 .35em; font-weight: 300; }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(72px, 10vw, 120px); display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.1rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 40px 22px 0; color: var(--steel); max-width: 64ch; }
.faq details[open] p { animation: panel-in .4s var(--ease-out); }

/* ---------- Estimate ---------- */
.estimate { background: var(--ice); padding-block: clamp(72px, 10vw, 120px); }
.estimate-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.estimate-grid > div > p { margin-top: 16px; color: var(--steel); max-width: 40ch; }
.contact-lines { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; font-weight: 700; }
.contact-lines a { color: var(--navy); }
.estimate-form { background: var(--white); border-radius: 20px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; box-shadow: 0 30px 60px -40px rgba(10,42,107,.45); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { color: var(--steel); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--navy); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 50px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,99,224,.15); }
.field input[aria-invalid="true"] { border-color: #c62828; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.error { color: #c62828; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding-block: 48px 96px; }
.site-footer a { color: var(--white); }
.site-footer strong { color: var(--white); }
.call-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; border-left: 2px solid var(--line); margin-left: 20px; }
  .steps li { border-top: 0; padding: 0 0 32px 36px; }
  .steps li::before { position: absolute; left: -21px; top: 0; margin: 0; }
  .why-grid, .faq, .estimate-grid, .intro { grid-template-columns: 1fr; }
  .svc-layout { grid-template-columns: 1fr; gap: 24px; }
  .svc-list { flex-direction: row; overflow-x: auto; border-top: 0; gap: 8px; scrollbar-width: none; padding-bottom: 4px; }
  .svc-list::-webkit-scrollbar { display: none; }
  .svc-list button { white-space: nowrap; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; background: var(--white); }
  .svc-list button::before { display: none; }
  .svc-list button[aria-selected="true"] { padding-left: 16px; background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: block; font: inherit; font-weight: 700; color: inherit; background: none;
    border: 1.5px solid currentColor; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  }
  .nav ul {
    position: absolute; top: 88px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); color: var(--navy); padding: 8px var(--gutter) 20px; box-shadow: 0 20px 30px -20px rgba(7,26,61,.4);
    display: none;
  }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-call { border: 0 !important; color: var(--blue) !important; padding: 14px 0 !important; }
  .site-header.menu-open { background: var(--white); color: var(--navy); }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .why-items, .field-row { grid-template-columns: 1fr; }
  .swatch { aspect-ratio: 4 / 3; }
  .svc-panel { padding: 22px 20px 26px; }
  .call-bar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; min-height: 54px;
    align-items: center; justify-content: center; border-radius: 999px; background: var(--blue); color: var(--white);
    font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(7,26,61,.6);
    transform: translateY(140%); transition: transform .4s var(--ease-out);
  }
  .call-bar.show { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .hero-title .line, .js .hero-lede, .js .hero-actions { opacity: 1; transform: none; }
}

/* =====================================================================
   Services dropdown
   ===================================================================== */
.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0;
  font: inherit; font-weight: 500; color: inherit; cursor: pointer;
}
.sub-toggle svg { width: 12px; height: 12px; transition: transform .3s var(--ease-out); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-sub.is-current > .sub-toggle { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .sub {
  position: absolute; top: calc(100% + 18px); left: -20px; min-width: 290px;
  list-style: none; margin: 0; padding: 10px; background: var(--white); color: var(--navy);
  border-radius: 16px; box-shadow: 0 1px 0 var(--line), 0 24px 50px -20px rgba(7,26,61,.45);
  display: grid !important; gap: 0 !important;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s, transform .3s var(--ease-out), visibility 0s .3s;
}
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* hover bridge */
.nav .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .3s var(--ease-out); }
.nav .sub a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 500; color: var(--navy); }
.nav .sub a:hover { background: var(--ice); text-decoration: none !important; }
.nav .sub a[aria-current="page"] { background: var(--ice); color: var(--blue); font-weight: 700; }
.sub-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.nav .sub-all a { color: var(--blue); font-weight: 700; }

.panel-more { display: inline-block; margin-top: 20px; font-weight: 700; color: var(--blue); text-underline-offset: 4px; }

/* =====================================================================
   Service pages
   ===================================================================== */
.page-hero {
  position: relative; min-height: clamp(380px, 58vh, 560px); display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--cobalt);
}
.page-hero-finish {
  position: absolute; inset: 0; width: 100%; height: 100%;
  clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-out);
}
.page-hero-finish.in { clip-path: inset(0 0 0 0); }
.page-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,26,61,.92) 0%, rgba(7,26,61,.78) 38%, rgba(7,26,61,.25) 75%, rgba(7,26,61,.1) 100%),
              linear-gradient(180deg, rgba(7,26,61,.55) 0%, rgba(7,26,61,0) 35%);
}
.page-hero-inner { position: relative; padding-top: 120px; padding-bottom: clamp(40px, 7vh, 72px); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--step--1); color: rgba(255,255,255,.75); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.crumbs a { color: inherit; }
.page-title {
  margin-top: 18px; font-size: clamp(2.1rem, 5.2vw, 4rem); font-weight: 900; font-variation-settings: var(--wide);
  letter-spacing: -0.015em; line-height: 1.02; max-width: 20ch;
}
.page-hero .hero-actions { margin-top: 28px; }
.js .page-title, .js .page-hero .hero-actions { opacity: 0; transform: translateY(20px); }
.js.ready .page-title, .js.ready .page-hero .hero-actions { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) .25s, transform 1s var(--ease-out) .25s; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; padding-block: clamp(56px, 8vw, 96px); align-items: start; }
.article { max-width: 70ch; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--navy); }
.article section { margin-top: 56px; scroll-margin-top: 96px; }
.article h2 { font-size: var(--step-2); max-width: 28ch; }
.article section p { margin-top: 16px; color: #2e3d58; line-height: 1.7; }
.article-faq .faq-list { margin-top: 24px; }
.article-faq details p { color: var(--steel) !important; }
/* reuse home FAQ visuals */
.article-faq details { border-bottom: 1px solid var(--line); }
.article-faq .faq-list { border-top: 1px solid var(--line); }
.article-faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .3s var(--ease-out);
}
.article-faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.article-faq details p { margin: 0; padding: 0 40px 20px 0; }
.article-faq details[open] p { animation: panel-in .4s var(--ease-out); }

.article-aside { position: sticky; top: 96px; display: grid; gap: 28px; }
.aside-card { background: var(--ice); border-radius: 18px; padding: 24px; display: grid; gap: 14px; }
.aside-title { font-weight: 800; font-size: var(--step-1); font-variation-settings: var(--wide); }
.aside-card p:not(.aside-title) { color: var(--steel); font-size: .98rem; }
.aside-phone { font-weight: 700; color: var(--navy); text-align: center; }
.toc-title { font-weight: 700; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); max-height: calc(100vh - 470px); min-height: 160px; overflow-y: auto; }
.toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent;
  color: var(--steel); text-decoration: none; font-size: .93rem; line-height: 1.35; transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--navy); }
.toc a.active { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }

.related { background: var(--ice); padding-block: clamp(56px, 8vw, 96px); }
.related-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card { display: block; text-decoration: none; color: var(--navy); font-weight: 700; }
.related-card canvas { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; background: #9aa6b8; transition: transform .4s var(--ease-out); }
.related-card span { display: block; margin-top: 12px; }
.related-card:hover canvas { transform: scale(1.03); }
.related-card:hover span { color: var(--blue); }

.cta-band { background: var(--cobalt); color: var(--white); padding-block: clamp(64px, 9vw, 110px); }
.cta-inner > p { margin-top: 16px; max-width: 62ch; color: rgba(255,255,255,.82); }
.cta-band .hero-actions { margin-top: 28px; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-brand { color: var(--white); font-weight: 800; font-variation-settings: var(--wide); font-size: 1.1rem; margin-bottom: 8px; }
.footer-contact { margin-top: 16px; }
.footer-head { color: var(--white); font-weight: 700; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.site-footer .copy { margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: var(--step--1); }

@media (hover: hover) and (min-width: 761px) {
  .nav .has-sub:hover > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .3s var(--ease-out); }
}
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 48px; }
  .article-aside { position: static; order: -1; }
  .toc { display: none; }
  .related-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav ul.open { max-height: calc(100svh - 76px); overflow-y: auto; }
  .has-sub { position: static; }
  .sub-toggle { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
  .nav .sub {
    position: static; min-width: 0; padding: 0 0 0 14px; box-shadow: none; border-radius: 0; background: none;
    transform: none; display: none !important;
  }
  .nav .sub::before { display: none; }
  .nav .has-sub.open > .sub { display: grid !important; }
  .nav .sub a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .sub a:hover, .sub a[aria-current="page"] { background: none; }
  .sub-all { border-top: 0; margin: 0; padding: 0; }
  .page-hero-shade { background: linear-gradient(180deg, rgba(7,26,61,.6) 0%, rgba(7,26,61,.55) 50%, rgba(7,26,61,.9) 100%); }
  .related-list { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-finish { clip-path: none; }
  .js .page-title, .js .page-hero .hero-actions { opacity: 1; transform: none; }
}

/* =====================================================================
   Logo
   ===================================================================== */
.brand { position: relative; display: block; line-height: 0; }
.brand .logo { height: 66px; width: auto; transition: opacity .3s; }
.brand .logo-on-light { position: absolute; left: 0; top: 0; opacity: 0; }
.site-header.scrolled .logo-on-dark, .site-header.menu-open .logo-on-dark { opacity: 0; }
.site-header.scrolled .logo-on-light, .site-header.menu-open .logo-on-light { opacity: 1; }
.footer-logo { width: 220px; height: auto; margin-bottom: 16px; }
@media (max-width: 760px) { .header-row { height: 76px; } .nav ul { top: 76px !important; } .brand .logo { height: 54px; } }

/* =====================================================================
   Photos
   ===================================================================== */
.photo { margin: 40px 0 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--ice); }
.photo-wide img { aspect-ratio: 21 / 9; object-fit: cover; }
.intro .intro-photo { grid-column: 1 / -1; margin-top: 16px; }
.intro-photo img { object-position: 50% 62%; }
.process-photo img { object-position: 50% 55%; }
.process .process-photo { margin-top: 32px; }
@media (max-width: 760px) {
  .photo { margin-top: 28px; }
  .photo img { border-radius: 14px; }
  .photo-wide img { aspect-ratio: 4 / 3; }
}
.nav > ul > li > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* =====================================================================
   Gallery + lightbox
   ===================================================================== */
.gallery { padding-block: clamp(56px, 8vw, 96px); }
.gallery-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid li:first-child { grid-column: span 2; grid-row: span 2; }
.g-item { display: block; height: 100%; border-radius: 16px; overflow: hidden; background: var(--ice); position: relative; }
.g-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease-out); }
.g-item:hover img { transform: scale(1.04); }
.g-item:focus-visible { outline-offset: 4px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(4, 14, 38, .92);
  display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 64px 16px 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .25s; }
.lightbox img {
  max-width: min(1400px, 100%); max-height: calc(100svh - 170px); width: auto; height: auto; border-radius: 12px; min-height: 0;
  transform: scale(.96); transition: transform .35s var(--ease-out);
}
.lightbox.open img { transform: none; }
.lb-caption { color: rgba(255,255,255,.85); margin-top: 14px; text-align: center; max-width: 70ch; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); color: var(--white); cursor: pointer;
  font: inherit; font-size: 1.4rem; line-height: 1;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 24px; left: 20px; color: rgba(255,255,255,.7); font-size: var(--step--1); }
body.lb-lock { overflow: hidden; }

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-grid li:first-child { grid-column: span 2; grid-row: auto; }
  .g-item { border-radius: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* Estimate form: spam trap + states */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.estimate-form { position: relative; }
.form-status.success { color: #1b7f4b; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* =====================================================================
   Home page: long-form sections
   ===================================================================== */
.local, .prep { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-block: clamp(64px, 9vw, 112px); }
.local-body > p, .prep-body > p { color: #2e3d58; line-height: 1.7; max-width: 66ch; }
.local-body > p + p { margin-top: 16px; }
.local-points { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--navy); }
.local-points p { margin-top: 8px; color: var(--steel); line-height: 1.6; }

.systems { padding-block: clamp(64px, 9vw, 112px) clamp(48px, 7vw, 80px); }
.sys-table { margin-top: 36px; border-top: 2px solid var(--navy); }
.sys-row { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.sys-head { padding: 12px 0; font-weight: 700; font-size: var(--step--1); color: var(--steel); }
.sys-row h3 { font-size: var(--step-1); font-variation-settings: var(--wide); }
.sys-row h3 a { color: var(--navy); text-decoration: none; }
.sys-row h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.sys-row p { color: #2e3d58; line-height: 1.6; }
.sys-row p + p { color: var(--steel); }
.sys-note { margin-top: 24px; color: var(--steel); max-width: 70ch; }

.finishes { background: var(--ice); padding-block: clamp(64px, 9vw, 112px); }
.finishes-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.finish-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 36px; }
.finish-list h3 a { color: var(--navy); text-decoration: none; }
.finish-list h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.finish-list p { margin-top: 8px; color: var(--steel); line-height: 1.6; }

.prep-list { list-style: none; margin: 24px 0 0; padding: 0; }
.prep-list li { padding: 16px 0 16px 28px; border-top: 1px solid var(--line); color: var(--steel); line-height: 1.6; position: relative; }
.prep-list li::before { content: ""; position: absolute; left: 0; top: 25px; width: 12px; height: 2px; background: var(--blue); }
.prep-list strong { color: var(--navy); }

.cost-care { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-block: clamp(64px, 9vw, 112px) 0; }
.cost-care h2 { font-size: var(--step-2); }
.cost-care > div > p { margin-top: 14px; color: #2e3d58; line-height: 1.65; }
.plain-list { margin: 16px 0 0; padding-left: 1.1em; color: var(--steel); line-height: 1.6; }
.plain-list li + li { margin-top: 10px; }
.plain-list li::marker { color: var(--blue); }
.plain-list strong { color: var(--navy); }

.town-notes { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; max-width: 980px; }
.town-notes p { color: var(--steel); line-height: 1.6; }
.town-notes strong { color: var(--navy); }

@media (max-width: 960px) {
  .local, .prep, .finishes-grid, .cost-care { grid-template-columns: 1fr; gap: 32px; }
  .sys-row { grid-template-columns: 1fr; gap: 8px; }
  .sys-head { display: none; }
}
@media (max-width: 760px) {
  .local-points, .finish-list, .town-notes { grid-template-columns: 1fr; }
  .cost-care { gap: 48px; }
}
@media (max-width: 960px) {
  .sys-row p + p::before { content: "Keep in mind: "; font-weight: 700; color: var(--navy); }
}

/* =====================================================================
   Hero estimate form
   ===================================================================== */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 48px; align-items: end; }
.hero-split .hero-title { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.hero-form-card {
  background: var(--white); color: var(--navy); border-radius: 20px; padding: 26px 26px 20px;
  box-shadow: 0 30px 70px -30px rgba(2, 10, 30, .75);
}
.hero-form-title { font-size: var(--step-2); font-weight: 800; font-variation-settings: var(--wide); max-width: none; }
.hero-form-sub { margin-top: 4px; color: var(--steel); font-size: .95rem; }
.estimate-form.estimate-form-compact { background: none; box-shadow: none; padding: 0; border-radius: 0; gap: 12px; margin-top: 18px; }
.estimate-form-compact .field { gap: 4px; }
.estimate-form-compact .field label { font-size: .88rem; }
.estimate-form-compact .field input, .estimate-form-compact .field select { min-height: 46px; padding: 10px 12px; }
.estimate-form-compact .field-row { gap: 12px; }
.estimate-form-compact .btn { width: 100%; margin-top: 4px; }
.estimate-form-compact .form-status { font-size: .92rem; min-height: 0; }
.estimate-form-compact .form-status:empty { display: none; }
#quick-estimate { scroll-margin-top: 100px; }

/* joins the hero's load sequence */
.js .hero-form-card { opacity: 0; transform: translateY(28px); }
.js.ready .hero-form-card { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) .45s, transform 1.1s var(--ease-out) .45s; }

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-split { grid-template-columns: 1fr; gap: 32px; align-items: start; padding-top: 112px; padding-bottom: 48px; }
}
@media (max-width: 760px) {
  .hero-form-card { padding: 22px 18px 16px; border-radius: 16px; }
  .estimate-form-compact .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-form-card { opacity: 1; transform: none; }
}
/* longer keyword H1 on the home page */
.hero-split .hero-title { font-size: clamp(2.3rem, 4.6vw, 4.25rem); max-width: 14ch; line-height: 1.02; }
@media (max-width: 960px) { .hero-split .hero-title { font-size: clamp(2.2rem, 8.4vw, 3.4rem); } }
.hero-split .hero-title { max-width: 16ch; text-wrap: balance; }
@media (max-width: 1100px) and (min-width: 961px) { .hero-split .hero-title { font-size: clamp(2.2rem, 4.2vw, 3.2rem); } }
@media (max-width: 360px) { .hero-split .hero-title { font-size: 2rem; } }

/* Tighter space under the fixed header on phones */
@media (max-width: 760px) {
  .hero-split { padding-top: 92px; }
  .page-hero { min-height: 0; }
  .page-hero-inner { padding-top: 92px; padding-bottom: 36px; }
  .page-title { margin-top: 12px; }
}

/* Footer map */
.footer-grid { grid-template-columns: 1.15fr .95fr .8fr 1.5fr; }
.footer-map iframe { display: block; width: 100%; height: 240px; border-radius: 14px; background: #10254f; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-column: 1 / -1; }
  .footer-map iframe { height: 280px; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-map iframe { height: 240px; }
}

/* Less space between "How an install goes" and "Why prep is most of the job" */
.process { padding-bottom: clamp(40px, 6vw, 80px); }
.process + .prep { padding-top: 0; }
@media (max-width: 960px) { .process .steps li:last-child { padding-bottom: 0; } }

/* Service pages: headline + estimate form side by side */
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 48px; align-items: end; }
.page-hero-split .page-title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 18ch; text-wrap: balance; }
@media (max-width: 960px) {
  .page-hero-split { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .page-hero-shade { background: linear-gradient(180deg, rgba(7,26,61,.7) 0%, rgba(7,26,61,.55) 45%, rgba(7,26,61,.85) 100%); }
}
.footer-address { font-style: normal; margin-top: 16px; line-height: 1.55; }
.footer-address + .footer-contact { margin-top: 10px; }
