/* ==========================================================================
   Purity Cleaning
   Palette sampled directly from the brand logo and flyers (see README).
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #031635;  /* deep navy — dark section backgrounds */
  --navy-800:    #05193a;
  --navy-700:    #0a2450;
  --ink:         #232f3e;  /* logotype navy — headings on light */
  --blue:        #0f6bc4;  /* primary blue — CTAs, icons */
  --blue-600:    #0965c7;  /* bright blue — highlights */
  --blue-700:    #0b56a6;  /* hover */
  --blue-soft:   #86aed7;  /* logo arc */
  --blue-tint:   #e8f1fa;
  --blue-tint-2: #f2f7fc;
  --off-white:   #f9f8fb;
  --white:       #ffffff;

  /* Text */
  --text:        #26303c;
  --text-muted:  #5b6878;
  --text-light:  rgba(255, 255, 255, 0.78);
  --text-light-2:rgba(255, 255, 255, 0.62);

  /* Lines & surfaces */
  --line:        #e2e8f0;
  --line-dark:   rgba(255, 255, 255, 0.14);

  /* Feedback */
  --ok:          #10784a;
  --ok-bg:       #e7f6ee;
  --err:         #b3261e;
  --err-bg:      #fdecea;
  --warn:        #8a5a00;
  --warn-bg:     #fff5e0;

  /* Type */
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space & shape */
  --header-h:  108px;   /* header height — nav offset and scroll-padding derive from this */
  --wrap:      1200px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --sec-y:     clamp(4rem, 9vw, 7.5rem);
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(3, 22, 53, 0.06), 0 2px 8px rgba(3, 22, 53, 0.05);
  --shadow:    0 4px 12px rgba(3, 22, 53, 0.07), 0 12px 32px rgba(3, 22, 53, 0.08);
  --shadow-lg: 0 8px 24px rgba(3, 22, 53, 0.10), 0 24px 64px rgba(3, 22, 53, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header. */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* -------------------------------------------------------------- Layout -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y); }
.section--tint { background: var(--blue-tint-2); }

.section--dark {
  position: relative;
  background: var(--navy);
  color: var(--text-light);
  overflow: hidden;
}
.section--dark h2, .section--dark h3 { color: var(--white); }

/* Soft radial glow in the dark bands, echoing the logo arc. */
.section--dark::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55rem;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(15, 107, 196, 0.28), transparent 62%);
  pointer-events: none;
}

.section__head {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section__title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-block: 0.5rem 1rem;
}
.section__title em {
  font-style: normal;
  color: var(--blue);
}
.section--dark .section__title em { color: var(--blue-soft); }

.section__lede {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-muted);
}
.section--dark .section__lede { color: var(--text-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--light { color: var(--blue-soft); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* --------------------------------------------------------------- Icons -- */
.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--star { width: 16px; height: 16px; stroke-width: 1; }

/* ------------------------------------------------------------- Buttons -- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 107, 196, 0.3);
}
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); }
.btn--primary:hover { background: var(--blue-700); }

.btn--light {
  background: var(--white);
  color: var(--navy);
}
.btn--light:hover {
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(3, 22, 53, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border-color: rgba(15, 107, 196, 0.35);
}
.btn--ghost:hover {
  background: var(--blue-tint);
  color: var(--blue-700);
  box-shadow: none;
}

.btn--ghost-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* Submit spinner */
.btn__spinner {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading .btn__spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------- Header -- */
/* Fixed rather than sticky so the hero can sit behind it while the header is
   transparent. The hero adds --header-h to its own top padding to compensate.

   Two states:
     default / no JS  -> solid white, dark logo and links (always legible)
     .js :not(.is-stuck) -> transparent over the hero, white logo and links
     .js .is-stuck    -> fades back to solid white
   The transparent state is gated behind .js on purpose: without JS nothing
   would ever add .is-stuck, and white links would end up on white sections. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* --- Transparent state (over the hero) --- */
.js .site-header:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.js .site-header:not(.is-stuck) .nav__link { color: var(--white); }
.js .site-header:not(.is-stuck) .nav__link:hover,
.js .site-header:not(.is-stuck) .nav__link.is-active { color: var(--blue-soft); }
.js .site-header:not(.is-stuck) .nav__link::after { background: var(--blue-soft); }

.js .site-header:not(.is-stuck) .nav-toggle {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

/* Cross-fade the two logo variants rather than swapping src — no flash, and
   both files are already in cache. */
.js .site-header:not(.is-stuck) .brand__logo--dark { opacity: 0; }
.js .site-header:not(.is-stuck) .brand__logo--light { opacity: 1; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: block; flex: none; }

/* Stacking context for the two overlaid logo variants. */
.brand__logos {
  position: relative;
  display: block;
  /* Scales with the viewport but never outgrows the header. */
  height: clamp(52px, 7vw, 80px);
  aspect-ratio: 321 / 200;
}

.brand__logo {
  width: auto;
  height: 100%;
  transition: opacity 0.35s var(--ease);
}
/* The light variant sits on top; opacity decides which one shows. */
.brand__logo--light {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* Two stacked rows, both flush right: phone CTA above, nav links below. */
.site-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.nav { display: flex; align-items: center; }

.nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 1.8vw, 1.6rem);
  list-style: none;
  padding: 0;
}

.nav__link {
  position: relative;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  padding-block: 0.35rem;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--blue); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { padding: 0.6rem 1.15rem; font-size: 0.875rem; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--blue-tint);
  border: none;
  border-radius: 12px;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------------------------------------------------------------- Hero -- */
.hero {
  position: relative;
  /* The header is fixed and overlays this section, so its height is added to
     the top padding here rather than taking up space in the document flow. */
  padding-block: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) clamp(4rem, 9vw, 7rem);
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-800) 46%, var(--navy-700) 100%);
  color: var(--text-light);
  overflow: hidden;
  isolation: isolate;
}

/* Decorative arcs — a nod to the swoosh in the logo. */
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__arc {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  opacity: 0.5;
}
.hero__arc--1 {
  width: 46rem; aspect-ratio: 1;
  top: -16rem; right: -12rem;
  border-color: rgba(134, 174, 215, 0.34);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(28deg);
}
.hero__arc--2 {
  width: 30rem; aspect-ratio: 1;
  bottom: -14rem; left: -8rem;
  border-color: rgba(15, 107, 196, 0.5);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-14deg);
}
.hero__glow {
  position: absolute;
  top: -20%; right: 8%;
  width: 42rem; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(15, 107, 196, 0.34), transparent 60%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  color: var(--white);
  margin-block: 1rem 1.35rem;
}
.hero__title em {
  font-style: normal;
  color: var(--blue-soft);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; bottom: -0.12em;
  width: 100%; height: 4px;
  background: var(--blue);
  border-radius: 2px;
}

.hero__lede {
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.7vw, 1.1875rem);
  color: var(--text-light);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  list-style: none;
  padding: 0;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9375rem;
  color: var(--text-light);
}
.hero__points li { display: flex; align-items: center; gap: 0.4rem; }
.hero__points .icon { color: var(--blue-soft); }

/* Hero quote card */
.quotecard {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.quotecard__eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.quotecard__title { font-size: 1.6rem; margin-block: 0.35rem 0.75rem; }
.quotecard__text { font-size: 0.9375rem; color: var(--text-muted); }

.quotecard__list {
  margin-block: 1.5rem;
  display: grid;
  gap: 0.9rem;
}
.quotecard__list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.quotecard__list > div:last-child { border-bottom: none; padding-bottom: 0; }
.quotecard__list dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.quotecard__list dt .icon { color: var(--blue); }
.quotecard__list dd {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}
.quotecard__list dd a { color: var(--ink); }
.quotecard__list dd a:hover { color: var(--blue); }

/* ---------------------------------------------------------- Stat strip -- */
/* Retained but not currently rendered — the section is gated behind the
   'hero_stats' feature flag in inc/config.php.
   Sits between the hero and the services band — both navy — so a white card
   pulled up over the seam reads as a deliberate divider. */
.statstrip {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(2rem, 4vw, 3.25rem));
}

.statstrip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(0.5rem, 2vw, 1.5rem);
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stat {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line); }

.stat__icon {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  margin-bottom: 0.35rem;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 50%;
}

.stat__value {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
  text-wrap: balance;
}

/* ---------------------------------------------------- Nav dropdown ------ */
.nav__item { position: relative; }

.nav__submenu {
  position: absolute;
  top: 100%;
  /* Left edge aligned with the parent nav item, opening rightward. */
  left: 0;
  right: auto;
  z-index: 10;
  min-width: 17rem;
  margin-top: 0.65rem;
  padding: 0.5rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

/* Open on hover and on keyboard focus within, so it's reachable by tabbing. */
.nav__item--has-children:hover .nav__submenu,
.nav__item--has-children:focus-within .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__sublink {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 9px;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.nav__sublink .icon { color: var(--blue); flex: none; }
.nav__sublink:hover,
.nav__sublink.is-active {
  color: var(--blue-700);
  background: var(--blue-tint);
}

.nav__submenu-all {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}
.nav__submenu-all .nav__sublink { color: var(--blue); }

/* The expand button is desktop-decorative only; the hover/focus rules above
   drive the desktop menu. It becomes the real control on mobile. */
.nav__expand {
  display: none;
  place-items: center;
  width: 34px; height: 34px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------- Page hero ---- */
.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(1.75rem, 4vw, 3rem)) clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--text-light);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.page-hero__inner { max-width: 52rem; }

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
  margin-block: 0.85rem 1rem;
}

.page-hero__lede {
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  color: var(--text-light);
  max-width: 44rem;
}

.page-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light-2);
}
.page-hero__meta .icon { color: var(--blue-soft); }

/* -------------------------------------------------------- Breadcrumbs --- */
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  font-size: 0.8125rem;
}
.crumbs__item { display: flex; align-items: center; gap: 0.3rem; }
.crumbs__item a { color: var(--blue-soft); }
.crumbs__item a:hover { color: var(--white); }
.crumbs__item [aria-current] { color: var(--text-light-2); }
.crumbs__sep { color: rgba(255, 255, 255, 0.3); transform: rotate(-90deg); width: 14px; height: 14px; }

/* -------------------------------------------------------------- Prose --- */
.prose {
  max-width: 44rem;
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  line-height: 1.75;
  color: var(--text-muted);
}
.prose--center { margin-inline: auto; text-align: left; }
.prose p + p { margin-top: 1.1rem; }
.prose a { font-weight: 600; }

.h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.grid--spaced { margin-top: clamp(2rem, 4vw, 3rem); }

.section__more { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); text-align: center; }

.morelink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blue);
}
.morelink .icon { transition: transform 0.2s var(--ease); }
.morelink:hover .icon { transform: translateX(4px); }
.section--dark .morelink { color: var(--blue-soft); }
.section--dark .morelink:hover { color: var(--white); }

/* --------------------------------------------------- Service page ------- */
.servicepage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.servicepage__main { display: grid; gap: clamp(2rem, 3.5vw, 3rem); }
.servicepage__side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }

.panel {
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--blue-tint-2);
  border: 1px solid var(--blue-tint);
  border-radius: var(--radius-lg);
}
.panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 1.15rem;
}
.panel__title .icon {
  padding: 3px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
}
.panel__note {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--blue-tint);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.checklist { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.checklist .icon { flex: none; margin-top: 0.25rem; color: var(--blue); }

.sidecard {
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sidecard--cta {
  background: var(--navy);
  border-color: transparent;
  color: var(--text-light);
  display: grid;
  gap: 0.7rem;
}
.sidecard--cta .sidecard__title { color: var(--white); }
.sidecard--cta .sidecard__text { color: var(--text-light); }
.sidecard--cta .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.sidecard--cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.sidecard__title { font-size: 1.0625rem; margin-bottom: 0.75rem; }
.sidecard__text { font-size: 0.875rem; color: var(--text-muted); }

.sidecard__list { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.sidecard__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.sidecard__list .icon { flex: none; margin-top: 0.2rem; color: var(--blue); width: 15px; height: 15px; }

.sidecard__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-light-2);
}
.sidecard__meta .icon { color: var(--blue-soft); }

.related {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.related__title { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2rem); }

/* Related-service cards sit on a light background, unlike the homepage grid. */
.related .card--service,
.page--services .card--service,
.page--404 .card--service {
  background: var(--white);
  border-color: var(--line);
}
.related .card--service .card__desc,
.page--services .card--service .card__desc,
.page--404 .card--service .card__desc { color: var(--text-muted); }
.related .card--service .card__icon,
.page--services .card--service .card__icon,
.page--404 .card--service .card__icon {
  color: var(--blue);
  background: var(--blue-tint);
}
.related .card--service .card__link,
.page--services .card--service .card__link,
.page--404 .card--service .card__link { color: var(--blue); }
.page--services .card--featured .card__icon,
.related .card--featured .card__icon { background: var(--blue); color: var(--white); }

.taglist--light { border-top-color: var(--line); }
.taglist--light .taglist__label { color: var(--blue); }
.taglist--light .tag {
  color: var(--text-muted);
  background: var(--white);
  border-color: var(--line);
}

.servicepage__faq .faq { max-width: none; margin-inline: 0; }

/* --------------------------------------------------------------- Cards -- */
.card {
  position: relative;   /* anchor for the full-card link overlay */
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  margin-bottom: 1.15rem;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 14px;
}
.card__icon--ring {
  border-radius: 50%;
  border: 1.5px solid rgba(15, 107, 196, 0.28);
  background: transparent;
}

.card__title { font-size: 1.1875rem; margin-bottom: 0.6rem; }

/* The title link covers the whole card, so the entire card is clickable while
   the accessible link text stays just the service name. */
.card__titlelink { color: inherit; }
.card__titlelink::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card__titlelink:hover { color: var(--blue); }
.card--service .card__titlelink:hover { color: var(--blue-soft); }
.card__titlelink:focus-visible { outline: none; }
.card:has(.card__titlelink:focus-visible) {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
}

.card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
}
.card__link .icon { transition: transform 0.2s var(--ease); }
.card__link:hover .icon { transform: translateX(4px); }

/* Service cards sit on the dark band */
.card--service {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-dark);
  backdrop-filter: blur(2px);
}
.card--service:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(134, 174, 215, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.card--service .card__desc { color: var(--text-light-2); }
.card--service .card__icon {
  background: rgba(15, 107, 196, 0.2);
  color: var(--blue-soft);
}
.card--service .card__link { color: var(--blue-soft); }

.card--featured { border-color: rgba(134, 174, 215, 0.42); }
.card--featured .card__icon {
  background: var(--blue);
  color: var(--white);
}

/* ------------------------------------------------------------- Taglist -- */
.taglist {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line-dark);
  text-align: center;
}
.taglist__label {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 1rem;
}
.taglist__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.tag {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}

/* ------------------------------------------------------ Builders clean -- */
.builders {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.stages { list-style: none; padding: 0; display: grid; gap: 1rem; }

.stage {
  display: flex;
  gap: 1.25rem;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.stage:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }

.stage__no {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(140deg, var(--blue), var(--blue-700));
  border-radius: 12px;
}
.stage__title { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.stage__desc { font-size: 0.9375rem; color: var(--text-muted); }

.pricecard {
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.pricecard__title {
  font-size: 1.3125rem;
  margin-bottom: 0.5rem;
  color: var(--blue-600);
}

.pricecard__lead {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricecard__points {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.7rem;
}
.pricecard__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding-bottom: 0.7rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--line);
}
.pricecard__points li:last-child { border-bottom: none; padding-bottom: 0; }
.pricecard__points .icon {
  flex: none;
  margin-top: 0.2rem;
  padding: 2px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
}

.pricecard__note {
  display: flex;
  gap: 0.6rem;
  margin-block: 1.25rem;
  padding: 0.9rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: var(--blue-tint-2);
  border: 1px solid var(--blue-tint);
  border-radius: 12px;
}
.pricecard__note .icon { flex: none; color: var(--blue); margin-top: 0.15rem; }

/* ---------------------------------------------------------------- Map --- */
.areas {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: start;
}

.areas__map {
  /* Leaflet gives its own panes z-index 400 and its controls 1000. Without a
     stacking context here those values compete against the whole page and
     paint over the sticky header. `isolation` contains them locally, so the
     header's z-index wins without needing to be raised. */
  position: relative;
  isolation: isolate;
  z-index: 0;

  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.map {
  height: clamp(24rem, 46vw, 32rem);
  background: var(--blue-tint-2);
}

.map__fallback { padding: 2rem; color: var(--text-muted); }

/* Leaflet overrides */
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.leaflet-popup-content {
  margin: 0.75rem 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
}
.leaflet-popup-content .popup__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}
.leaflet-bar a {
  color: var(--ink);
}

/* Custom markers */
.marker {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--white);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(3, 22, 53, 0.35);
  transition: transform 0.2s var(--ease);
}
.marker__dot {
  width: 7px; height: 7px;
  background: var(--white);
  border-radius: 50%;
  transform: rotate(45deg);
}
.marker:hover { transform: rotate(-45deg) scale(1.12); }

.marker--hub {
  background: var(--navy);
  border-color: var(--blue-soft);
  border-width: 3px;
}
.marker--hub .marker__dot { width: 9px; height: 9px; background: var(--blue-soft); }

.areas__subtitle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.0625rem;
  margin-bottom: 1.1rem;
}
.areas__subtitle .icon { color: var(--blue); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.pill:hover, .pill.is-active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}
.pill--hub { border-color: rgba(15, 107, 196, 0.4); }
.pill__tag {
  padding: 0.1rem 0.4rem;
  font-family: var(--font-head);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 4px;
}
.pill:hover .pill__tag, .pill.is-active .pill__tag {
  color: var(--blue-700);
  background: var(--white);
}

.areas__note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- Contact -- */
.contact {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.contactlist { list-style: none; padding: 0; display: grid; gap: 0.85rem; }
.contactlist li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.1rem 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.contactlist__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
}
.contactlist__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.contactlist__value {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  overflow-wrap: anywhere;
}
.contactlist__value--sm { font-size: 0.9375rem; font-weight: 600; }
a.contactlist__value:hover { color: var(--blue-soft); }

.contact__form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

/* ---------------------------------------------------------------- Form -- */
.form { display: grid; gap: 1.1rem; }

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.1rem;
}

.field { display: grid; gap: 0.4rem; }

.field__label {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}
.req { color: var(--blue); }

.field__input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease);
}
.field__input::placeholder { color: #9aa5b3; }
.field__input:hover { border-color: #cbd5e1; }
.field__input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(15, 107, 196, 0.13);
}
.field__input.is-invalid {
  border-color: var(--err);
  background: var(--err-bg);
}
.field__input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.12); }

.field__textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }

.field__select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6878' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
  cursor: pointer;
}

.field__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.field__error {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--err);
}
.field__error:empty { display: none; }
.field__error--form {
  padding: 0.75rem 1rem;
  background: var(--err-bg);
  border-radius: 10px;
}

.field__count {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: auto;
}

.form__small {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Honeypot — off-screen but not display:none, so bots still see it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------------- Alerts -- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.9375rem;
  border-radius: 12px;
  border: 1px solid transparent;
}
.alert .icon, .alert__icon { flex: none; margin-top: 0.15rem; }
.alert code {
  padding: 0.1rem 0.3rem;
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 4px;
}

.alert--ok    { color: var(--ok);   background: var(--ok-bg);   border-color: #bfe5d0; }
.alert--error { color: var(--err);  background: var(--err-bg);  border-color: #f4c7c3; }
.alert--warn  { color: var(--warn); background: var(--warn-bg); border-color: #f0d9a8; }

/* --------------------------------------------------------- Testimonials -- */
.card--quote { position: relative; }

.card__quotemark {
  position: absolute;
  top: 1.4rem; right: 1.5rem;
  color: var(--blue-tint);
}
.card__quotemark .icon { width: 34px; height: 34px; }

.stars { display: flex; gap: 0.15rem; margin-bottom: 0.9rem; color: #f0a913; }

.quote__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
}
.quote__text::before { content: "\201C"; }
.quote__text::after { content: "\201D"; }

.quote__by {
  display: grid;
  gap: 0.15rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.quote__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
}
.quote__role { font-size: 0.8125rem; color: var(--text-muted); }

.badge {
  padding: 0.12rem 0.45rem;
  font-family: var(--font-head);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}
.badge--sample { color: var(--warn); background: var(--warn-bg); border: 1px solid #f0d9a8; }

/* ----------------------------------------------------------------- FAQ -- */
/* Built on <details>/<summary>: keyboard accessible and fully functional with
   JavaScript disabled. The name attribute on <details> makes the accordion
   exclusive natively; older browsers just allow more than one open at once. */
.faq {
  max-width: 52rem;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq__item:hover { border-color: #cbd5e1; }
.faq__item[open] {
  border-color: rgba(15, 107, 196, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1.1rem, 2.2vw, 1.5rem);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;          /* hide the default triangle */
  transition: color 0.18s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--blue); }
.faq__item[open] .faq__q { color: var(--blue); }

/* Keep the focus ring on the row rather than the text node. */
.faq__q:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: -3px;
}

/* Plus/minus built from two bars so there's no icon font dependency. */
.faq__marker {
  position: relative;
  flex: none;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--blue-tint);
}
.faq__marker::before,
.faq__marker::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0.7rem; height: 2px;
  background: var(--blue);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.faq__marker::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__item[open] .faq__marker { background: var(--blue); }
.faq__item[open] .faq__marker::before,
.faq__item[open] .faq__marker::after { background: var(--white); }
/* Collapse the vertical bar so + becomes − */
.faq__item[open] .faq__marker::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq__a {
  padding: 0 clamp(1.1rem, 2.2vw, 1.5rem) clamp(1.1rem, 2vw, 1.35rem);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.faq__item[open] .faq__a { animation: faq-in 0.28s var(--ease); }

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.faq__foot {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
}
.faq__foot a { font-weight: 600; }

/* ----------------------------------------------------------------- CTA -- */
.cta {
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(120deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  top: -60%; right: -5%;
  width: 34rem; aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.cta__title { font-size: clamp(1.5rem, 3.2vw, 2.25rem); color: var(--white); }
.cta__text { color: rgba(255, 255, 255, 0.86); margin-top: 0.4rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* -------------------------------------------------------------- Footer -- */
.footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--navy);
  color: var(--text-light-2);
  font-size: 0.9375rem;
}

/* Brand + contact | Services | Company | Popular areas.
   The first column is widest as it carries the logo, blurb and contact list;
   Company is the shortest so it gets the least room. */
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer__logo { width: auto; height: 74px; margin-bottom: 1.1rem; }

.footer__tagline {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 0.9rem;
}
.footer__blurb { max-width: 26rem; line-height: 1.7; }

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}

/* Second heading within a column — needs separating from the list above it. */
.footer__heading--spaced {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.footer__list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer__list a { color: var(--text-light-2); }
.footer__list a:hover { color: var(--white); }

/* Popular areas: a compact wrapping row rather than a tall column. */
.footer__list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

.footer__more { margin-top: 1rem; font-size: 0.875rem; }
.footer__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue-soft);
}
.footer__more a:hover { color: var(--white); }
.footer__more .icon { transition: transform 0.2s var(--ease); }
.footer__more a:hover .icon { transform: translateX(3px); }

.footer__list--contact li,
.footer__list--contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-wrap: anywhere;
}
.footer__list--contact .icon { flex: none; color: var(--blue-soft); }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
}
.footer__credit { color: var(--blue-soft); }

/* ------------------------------------------------------- Mobile callbar -- */
.callbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 0.7rem var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}
.callbar.is-visible { transform: translateY(0); }

/* -------------------------------------------------------- Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------------------------------------------------------- Breakpoints -- */
@media (max-width: 1000px) {
  .hero__inner,
  .builders,
  .areas,
  .contact,
  .servicepage { grid-template-columns: 1fr; }

  /* Sidebar drops below the content, so un-stick it. */
  .servicepage__side {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  }

  .hero__card { max-width: 30rem; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }

  /* The mobile nav is a white panel, so its links must stay dark even while
     the header itself is transparent over the hero — otherwise they are white
     on white until the first scroll. The burger sits outside the panel, over
     the navy hero, so it keeps the white treatment. */
  .js .site-header:not(.is-stuck) .nav__link,
  .js .site-header:not(.is-stuck) .nav__expand { color: var(--ink); }
  .js .site-header:not(.is-stuck) .nav__link:hover,
  .js .site-header:not(.is-stuck) .nav__link.is-active { color: var(--blue); }

  /* The nav becomes a fixed panel, so the right side is just the CTA sitting
     inline next to the menu button. */
  .site-header__right { flex-direction: row; align-items: center; gap: 0.5rem; }

  /* Icon-only tap-to-call — keeps the number reachable without crowding the
     bar on narrow phones. */
  .nav__cta-label { display: none; }
  .nav__cta {
    width: 46px; height: 46px;
    padding: 0;
    border-radius: 50%;
  }
  .nav__cta .icon { width: 20px; height: 20px; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__link::after { display: none; }

  /* Submenu becomes an inline accordion: the row splits into the parent link
     plus a separate expand button, so tapping the parent still navigates. */
  .nav__item--has-children {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .nav__item--has-children .nav__link { border-bottom: none; }

  .nav__expand {
    display: grid;
    color: var(--ink);
    transition: transform 0.25s var(--ease);
  }
  .nav__expand[aria-expanded="true"] { transform: rotate(180deg); }

  .nav__submenu {
    position: static;
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: var(--off-white);
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    /* Collapsed by default; the button toggles .is-open. */
    display: none;
  }
  .nav__submenu.is-open {
    display: block;
    padding: 0.5rem 0 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
  }
  /* Hover must not open it on touch — only the button does. */
  .nav__item--has-children:hover .nav__submenu:not(.is-open),
  .nav__item--has-children:focus-within .nav__submenu:not(.is-open) {
    display: none;
  }

  .nav__sublink { padding: 0.6rem 0.85rem; }

  .callbar { display: block; }
  body { padding-bottom: 0; }
}

@media (max-width: 760px) {
  /* Two-up grid: keep the dividers as a cross, not four stacked lines. */
  .statstrip__inner { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; }

  .stat + .stat { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { padding-top: 1.25rem; border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  /* Slightly tighter header on phones so the hero isn't pushed too far down. */
  :root { --header-h: 84px; }

  .section__head { text-align: left; margin-inline: 0; }

  .hero__actions .btn,
  .cta__actions .btn { width: 100%; }

  .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bar { justify-content: flex-start; }

  .contactlist li { padding: 0.9rem 1rem; }
  .contactlist__value { font-size: 1rem; }
}

/* --------------------------------------------------------- Preferences -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .callbar, .nav, .cta, .hero__bg { display: none !important; }
  body { color: #000; }
  .section--dark, .hero { background: none !important; color: #000 !important; }
  .section--dark h2, .section--dark h3, .hero__title { color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
