/* Onalaska Builders — site styles
   Palette: docs/Project-Brief.md → Brand Palette (contrast ratios measured there).
   Spacing: 8px system. Body 18px / 1.65. */

:root {
  --navy: #1A2941;
  --navy-deep: #0D1726;
  --green: #36542D;
  --orange: #EF752E;        /* CTA fill only — always with navy text */
  --orange-light: #F79A5E;  /* CTA hover */
  --blue: #0E74AC;          /* links */
  --yellow: #FCC22F;        /* highlights / focus on dark */
  --sky: #0F9FDA;           /* decorative only */
  --warm: #F7F5F0;
  --cool: #F4F6F8;
  --text: #1F2A37;
  --muted: #4A5568;
  --line: #8A939B;          /* UI borders (3.12:1) — not for text */
  --line-soft: #DCE1E6;     /* decorative dividers only */
  --white: #FFFFFF;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(13, 23, 38, .18);
  --container: 1200px;
  --header-h: 88px;
  --form-w: 420px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
picture { display: contents; }   /* the <img> inside sizes itself, so existing img rules keep working */
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 var(--s2); }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0 0 var(--s2); padding-left: 1.25em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--yellow); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 1000;
  background: var(--navy); color: var(--white); padding: var(--s1) var(--s2); border-radius: var(--radius);
}
.skip-link:focus { top: var(--s2); color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s3); }
.prose { max-width: 720px; }
.section { padding: var(--s12) 0; }
.section-tight { padding: var(--s8) 0; }
.bg-warm { background: var(--warm); }
.bg-cool { background: var(--cool); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy a:not(.btn) { color: var(--white); }
.bg-navy .form-card a:not(.btn) { color: var(--blue); }
.eyebrow {
  display: inline-block; font-size: .875rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); margin-bottom: var(--s1);
}
.bg-navy .eyebrow { color: var(--yellow); }
.lead { font-size: 1.25rem; color: var(--text); }
.section-head { max-width: 760px; margin-bottom: var(--s6); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-cta { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.btn-cta:hover, .btn-cta:focus-visible { background: var(--orange-light); border-color: var(--orange-light); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 1.125rem; padding: 14px 28px; }

.icon { display: inline-block; width: 1.1em; height: 1.1em; flex: none; background: currentColor; }
.icon-phone {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 2px 10px rgba(13, 23, 38, .06);
}
.header-inner { display: flex; align-items: center; gap: var(--s3); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 72px; height: 72px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; }
.brand-tag { font-size: .875rem; color: var(--green); font-weight: 600; }
.brand:hover { color: var(--navy); }

.site-nav { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--navy); text-decoration: none;
  background: none; border: 0; border-radius: var(--radius); cursor: pointer;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--cool); color: var(--navy); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.mega-toggle[aria-expanded="true"] .chev { transform: translateY(1px) rotate(-135deg); }
.nav-actions { display: flex; align-items: center; gap: var(--s2); }
.header-phone {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px;
  font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--blue); }

.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: var(--s1);
  min-height: 48px; min-width: 48px; padding: 0 12px;
  font: inherit; font-weight: 700; color: var(--navy);
  background: var(--cool); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Mega menu */
.has-mega { position: static; }
.mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--line-soft); box-shadow: var(--shadow);
}
.mega.is-open { display: block; }
.mega-inner {
  max-width: var(--container); margin: 0 auto; padding: var(--s4) var(--s3);
  display: grid; grid-template-columns: 4fr 3fr 2fr; gap: var(--s4);
}
.mega-band-title {
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); margin: 0 0 var(--s2); padding-bottom: var(--s1); border-bottom: 2px solid var(--line-soft);
}
.mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: var(--s3); }
.mega-hub { display: block; font-weight: 700; color: var(--navy); text-decoration: none; margin-bottom: 6px; line-height: 1.3; }
.mega-hub:hover { color: var(--blue); text-decoration: underline; }
.mega-services { list-style: none; margin: 0; padding: 0; }
.mega-services a { display: block; padding: 3px 0; font-size: .9375rem; color: var(--muted); text-decoration: none; }
.mega-services a:hover { color: var(--blue); text-decoration: underline; }
.mega-all { grid-column: 1 / -1; justify-self: start; font-weight: 700; }

/* --- Hero slider --------------------------------------------------------------- */
.hero-wrap { position: relative; }
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
@media (min-width: 1024px) {
  /* Hero and form share one grid cell: the form floats over the slides, and the row grows to fit the taller of the two. */
  .hero-wrap { display: grid; }
  .hero, .hero-form-slot { grid-area: 1 / 1; }
  .hero-form-slot { position: relative; z-index: 4; align-self: center; padding: var(--s4) 0 var(--s12); pointer-events: none; }
  .hero-form-slot .container { display: flex; justify-content: flex-end; }
  .hero-form-slot .form-card { width: var(--form-w); pointer-events: auto; padding: var(--s3); }
  /* Compact form over the slider so the hero stays close to one screen tall */
  .hero-form-slot .estimate-form .form-title { font-size: 1.375rem; }
  .hero-form-slot .form-intro { margin-bottom: 12px; }
  .hero-form-slot .field { margin-bottom: 8px; }
  .hero-form-slot .field label { margin-bottom: 2px; }
  .hero-form-slot .field input, .hero-form-slot .field select { min-height: 44px; padding: 8px 12px; }
  .hero-form-slot .field textarea { min-height: 64px; padding: 8px 12px; }
  .hero-form-slot .form-fineprint { margin-top: 8px; }
  .mobile-only { display: none !important; }
}
.hero-slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero::after {
  /* Scrim: >=0.72 navy behind the text column (measured: white text passes on a white backdrop from 0.65). */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(26, 41, 65, .88) 0%, rgba(26, 41, 65, .78) 45%, rgba(26, 41, 65, .55) 70%, rgba(26, 41, 65, .45) 100%);
}
.hero-inner {
  position: relative; z-index: 2; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--form-w); gap: var(--s6); align-items: center;
  min-height: 640px; height: 100%; padding-top: var(--s6); padding-bottom: var(--s12);
}
.hero-copy { max-width: 600px; grid-column: 1; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--yellow); }
.hero-sub { font-size: 1.25rem; margin-bottom: var(--s4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hero-caption { margin: var(--s4) 0 0; font-size: 1rem; min-height: 1.65em; }
.hero-caption a { color: var(--white); font-weight: 600; }

.hero-controls {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: var(--s3);
}
.hero-controls .container { display: flex; align-items: center; gap: var(--s1); }
.slider-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 48px; min-height: 48px; padding: 0 12px;
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--white);
  background: rgba(13, 23, 38, .75); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius); cursor: pointer;
}
.slider-btn:hover { background: var(--navy-deep); }
.slider-dots { display: flex; gap: 4px; list-style: none; margin: 0 var(--s1); padding: 0; }
.slider-dot {
  width: 48px; height: 48px; padding: 0; background: none; border: 0; cursor: pointer; position: relative;
}
.slider-dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 2px solid var(--white); background: rgba(13, 23, 38, .6);
}
.slider-dot[aria-current="true"]::after { background: var(--yellow); border-color: var(--yellow); }
.icon-pause, .icon-play { width: 12px; height: 14px; display: inline-block; }
.icon-pause { border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.icon-play { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.chev-left, .chev-right { width: 10px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.chev-left { transform: rotate(45deg); margin-left: 4px; }
.chev-right { transform: rotate(-135deg); margin-right: 4px; }
.no-js .hero-controls { display: none; }

/* --- Estimate form -------------------------------------------------------------- */
.form-card {
  background: var(--white); color: var(--text); border-radius: 12px; box-shadow: var(--shadow);
  padding: var(--s4); border-top: 6px solid var(--orange);
}
.estimate-form .form-title { font-size: 1.5rem; margin-bottom: var(--s1); color: var(--navy); }
.form-intro { font-size: 1rem; color: var(--muted); margin-bottom: var(--s2); }
.req-note { float: right; font-size: .875rem; }
.req-note .req, .req-note [aria-hidden] { color: #B42318; }
.form-alert {
  margin: 0 0 var(--s2); padding: 12px 16px; border-radius: var(--radius);
  background: #FDECEC; border: 1px solid #B42318; color: #7A1A12; font-size: 1rem;
}
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 700; font-size: .9375rem; color: var(--navy); margin-bottom: 4px; }
.req { color: #B42318; }
.opt { font-weight: 400; color: var(--muted); font-size: .875rem; }
.field-hint { font-size: .875rem; color: var(--muted); margin: -2px 0 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.has-error input, .has-error select, .has-error textarea { border-color: #B42318; border-width: 2px; }
.field-error { font-size: .875rem; color: #B42318; font-weight: 600; margin: 4px 0 0; }
.estimate-form .btn-cta { margin-top: var(--s1); }
.form-fineprint { font-size: .875rem; color: var(--muted); margin: 12px 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- Content blocks -------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.split-media img { border-radius: 12px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: var(--s3) 0; }
.check-list li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.band-group + .band-group { margin-top: var(--s8); }
.band-title {
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green);
  margin: 0 0 var(--s3); padding-bottom: var(--s1); border-bottom: 2px solid var(--line-soft);
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: var(--s4); }
.service-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: 0 2px 8px rgba(13, 23, 38, .05);
}
.service-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: var(--s3); display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.25rem; margin-bottom: var(--s1); }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--blue); text-decoration: underline; }
.card-body p { font-size: 1rem; color: var(--muted); }
.card-links { list-style: none; padding: 0; margin: 0 0 var(--s2); display: flex; flex-wrap: wrap; gap: 6px; }
.card-links a {
  display: inline-block; padding: 6px 10px; font-size: .875rem; line-height: 1.3; border-radius: 999px;
  background: var(--cool); color: var(--navy); text-decoration: none; border: 1px solid var(--line-soft);
}
.card-links a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card-more { margin-top: auto; font-weight: 700; font-size: 1rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; background: var(--orange); color: var(--navy);
}
.steps h3 { color: var(--white); }
.steps p { font-size: 1rem; margin: 0; }

.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: var(--s3); margin: var(--s4) 0; }
.area-grid h3 { font-size: 1.0625rem; margin-bottom: var(--s1); color: var(--green); }
.area-grid ul { list-style: none; padding: 0; margin: 0; font-size: 1rem; }
.area-grid li { padding: 2px 0; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s3) 40px var(--s3) 0; position: relative;
  font-weight: 700; font-size: 1.125rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 var(--s3); }

.section-foot { margin: var(--s6) 0 0; }
.cta-band .split { align-items: start; }
.cta-band .form-card { border-top-color: var(--orange); }
.cta-phone { font-size: 1.75rem; font-weight: 800; color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #E6EAF0; font-size: 1rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--s4);
  padding-top: var(--s8); padding-bottom: var(--s6);
}
.footer-logo { width: 96px; height: 96px; border-radius: 12px; background: var(--white); margin-bottom: var(--s2); }
.footer-name { font-weight: 800; font-size: 1.25rem; color: var(--white); margin-bottom: var(--s1); }
.footer-city { margin: -4px 0 var(--s1); color: #E6EAF0; }
.footer-phone { font-weight: 800; font-size: 1.25rem; color: var(--white); }
.footer-title { font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); margin-bottom: var(--s2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 4px; }
.site-footer a { color: #E6EAF0; text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding: var(--s3) 0; font-size: .875rem; color: #C9D1DB; }
.footer-bottom p { margin: 0; }

.mobile-cta { display: none; }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .header-phone { display: none; }
  :root { --form-w: 380px; }
  .hero-inner { gap: var(--s4); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-nap { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .brand img { width: 56px; height: 56px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--white); overflow-y: auto; padding: var(--s2) var(--s3) var(--s12);
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav-link { width: 100%; justify-content: space-between; min-height: 56px; font-size: 1.125rem; padding: 0 4px; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega-inner { display: block; padding: 0 0 var(--s2) var(--s2); }
  .mega-band { margin-bottom: var(--s2); }
  .mega-cols { display: block; }
  .mega-services { display: none; }                 /* hubs only on mobile; services are one tap further */
  .mega-hub { padding: 10px 0; margin: 0; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: var(--s3); gap: 12px; }
  .header-phone { display: inline-flex; justify-content: center; border: 2px solid var(--navy); border-radius: var(--radius); }
  body.nav-open { overflow: hidden; }

  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: var(--s6); padding-bottom: 112px; }
  .hero-caption { margin-top: var(--s3); }
  .hero::after { background: rgba(26, 41, 65, .78); }
  .hero-form-slot { background: var(--warm); padding: var(--s4) 0; }   /* form stacks below the slider */
  .split { grid-template-columns: 1fr; gap: var(--s4); }
  .steps { grid-template-columns: 1fr 1fr; }
  .section { padding: var(--s8) 0; }

  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: var(--s1) var(--s2) calc(var(--s1) + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line-soft); box-shadow: 0 -4px 12px rgba(13, 23, 38, .1);
  }
  body { padding-bottom: 72px; }
}

@media (max-width: 640px) {
  .container { padding-left: var(--s2); padding-right: var(--s2); }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.0625rem; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: var(--s3); }
  .slider-dots { display: none; }        /* prev / next / pause remain; 5 dots do not fit at phone width */
  .hero-controls .container { justify-content: flex-start; }
}

/* --- Interior pages ------------------------------------------------------------ */
.page-hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  /* Same scrim rule as the home hero: >=0.72 navy behind all text */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(26, 41, 65, .9) 0%, rgba(26, 41, 65, .8) 55%, rgba(26, 41, 65, .6) 100%);
}
.page-hero-inner { position: relative; z-index: 2; padding-top: var(--s4); padding-bottom: var(--s8); min-height: 420px; }
.page-hero h1 { color: var(--white); max-width: 820px; margin-top: var(--s3); }
.page-hero .eyebrow { color: var(--yellow); margin-top: var(--s4); }
.page-hero .eyebrow + h1 { margin-top: 0; }
.page-hero .hero-sub { max-width: 720px; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px 0 4px; opacity: .8; }
.breadcrumbs a { color: var(--white); padding: 10px 0; display: inline-block; }
.breadcrumbs [aria-current="page"] { font-weight: 700; }

.split-form { align-items: start; grid-template-columns: minmax(0, 1fr) var(--form-w); }
.split-form .form-card { position: sticky; top: calc(var(--header-h) + var(--s2)); }
.stage-list { padding-left: 1.4em; }
.stage-list li { margin-bottom: 12px; padding-left: 4px; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--s3); }
.compare-card { background: var(--white); border: 1px solid var(--line-soft); border-top: 4px solid var(--green); border-radius: 12px; padding: var(--s3); }
.compare-card h3 a { color: var(--navy); }
.compare-card p { font-size: 1rem; margin: 0; }
.h-sm { font-size: 1.375rem; }
.related-heading { margin-top: var(--s4); }
.related-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.related-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.related-links a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

@media (max-width: 1023px) {
  .split-form { grid-template-columns: 1fr; }
  .split-form .form-card { position: static; }
  .page-hero-inner { min-height: 0; padding-bottom: var(--s6); }
  .page-hero::after { background: rgba(26, 41, 65, .82); }
}
@media (max-width: 640px) {
  .breadcrumbs ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
}

/* --- Company & legal pages ------------------------------------------------------ */
.page-hero-plain::after { display: none; }
.page-hero-plain .page-hero-inner { min-height: 0; padding-bottom: var(--s6); }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: var(--s6); }
.legal h3 { font-size: 1.15rem; margin-top: var(--s4); }
.legal .updated { color: var(--muted); font-size: 1rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--form-w); gap: var(--s8); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--s4); }
.contact-list li { padding: var(--s2) 0; border-bottom: 1px solid var(--line-soft); }
.contact-list .label { display: block; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.contact-list a, .contact-list .value { font-size: 1.25rem; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--s4); }
.county-card { background: var(--white); border: 1px solid var(--line-soft); border-top: 4px solid var(--green); border-radius: 12px; padding: var(--s3); }
.county-card h3 { margin-bottom: var(--s1); }
.county-card p { font-size: 1rem; }
.town-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.town-table th, .town-table td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.town-table th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.town-table td:last-child, .town-table th:last-child { text-align: right; }
.directory-band + .directory-band { margin-top: var(--s8); }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--s4); }
.directory-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: 12px; padding: var(--s3); }
.directory-card h3 a { color: var(--navy); }
.directory-card p { font-size: 1rem; }
.directory-card ul { margin: var(--s1) 0 0; padding-left: 1.1em; font-size: 1rem; }
.directory-card li { margin-bottom: 4px; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--s3); }
.value-card { background: var(--white); border-radius: 12px; border: 1px solid var(--line-soft); padding: var(--s3); }
.value-card h3 { font-size: 1.15rem; }
.value-card p { font-size: 1rem; margin: 0; }
.owner-split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.owner-split img { border-radius: 12px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.notice { background: var(--warm); border-left: 4px solid var(--orange); padding: var(--s2) var(--s3); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: var(--s4); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--s4); }
.project-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.project-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project-card .card-body p { font-size: 1rem; }
.project-meta { font-size: .875rem; color: var(--muted); margin-bottom: var(--s1); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0 0 var(--s4); padding: 0; list-style: none; }
.filter-btn {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  background: var(--white); color: var(--navy); border: 1px solid var(--line);
}
.filter-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--s2); list-style: none; padding: 0; margin: 0; }
.gallery-grid li[hidden] { display: none; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; text-align: left; font: inherit; }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .2s; }
.gallery-item:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .gallery-item img { transition: none; } }
.gallery-caption { display: block; padding: 8px 2px 0; font-size: .9375rem; color: var(--text); }
.lightbox { border: 0; padding: 0; max-width: min(1100px, 94vw); width: 100%; background: var(--navy-deep); color: var(--white); border-radius: 12px; }
.lightbox::backdrop { background: rgba(13, 23, 38, .85); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 75vh; object-fit: contain; background: #000; }
.lightbox figcaption { padding: var(--s2) var(--s3); font-size: 1rem; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s1); padding: 0 var(--s3) var(--s3); }
.lightbox .slider-btn { background: rgba(255, 255, 255, .08); }
@media (max-width: 1023px) {
  .contact-grid, .owner-split { grid-template-columns: 1fr; gap: var(--s4); }
}

/* Very small phones (< 360px): the header row doesn't fit logo + name + Menu button.
   Hide the name visually but keep it as the link's accessible name (the logo shows it too). */
@media (max-width: 359px) {
  .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-inner { gap: var(--s2); }
}

/* ---- Site search + 404 --------------------------------------------------------- */
.site-search label { display: block; font-weight: 600; margin-bottom: var(--s1); }
.site-search-row { display: flex; gap: var(--s1); flex-wrap: wrap; }
.site-search input[type="search"] {
  flex: 1 1 240px; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.search-status { margin-top: var(--s3); font-weight: 600; }
.search-results { list-style: none; padding: 0; margin: var(--s2) 0 0; }
.search-results li { padding: var(--s2) 0; border-bottom: 1px solid var(--line-soft); }
.search-results a { font-size: 1.125rem; font-weight: 600; }
.search-section { display: block; font-size: .875rem; color: var(--muted); margin-top: 2px; }
.search-results p { margin: 6px 0 0; }
.directory-links { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--s1) var(--s3); }
.directory-links a { display: block; padding: 10px 0; font-weight: 600; }

/* ---- In-section figure (hub + service templates) -------------------------------- */
.section-figure { margin: var(--s4) 0 0; }
.section-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.section-figure figcaption { margin-top: var(--s1); font-size: .9375rem; color: var(--muted); }
