/* ==========================================================================
   Maryland Mold and Waterproofing . Components
   Plain CSS only. Mobile first. Nav collapses at 1023px per AM standards.
   ========================================================================== */

/* 1. Base ================================================================== */

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

html {
  overflow-x: clip;
  max-width: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  max-width: 100%;
  margin: 0;
  background: var(--surface);
  color: var(--ink-600);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--step-6); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0; }

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--brand-700); }

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

ul, ol { margin: 0; padding: 0; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--brand-600);
  color: #fff;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 2. Layout ================================================================ */

.wrap {
  width: 90%;
  max-width: var(--wrap);
  margin-inline: auto;
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line-100);
}

.section--stone { background: var(--surface-2); border-color: var(--line-200); }
.section--tint { background: var(--surface-3); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-head p { margin-top: var(--space-4); font-size: var(--step-1); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--space-4);
  color: var(--brand-600);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.section-head--center .eyebrow,
.page-hero--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before,
.page-hero--center .eyebrow::before { display: none; }

.lede { font-size: var(--step-1); line-height: 1.6; }

/* 3. Buttons ===============================================================
   `data-magnetic` (wired in motion-effects.js) nudges the button toward the
   cursor within a small radius -- CSS just needs to trust the translate. */

.btn {
  --btn-tx: 0px;
  --btn-ty: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0.8rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--brand-600);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: translate(var(--btn-tx), var(--btn-ty));
  transition: background var(--dur) var(--ease), transform 320ms var(--ease-out),
    box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.28) 42%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(-120%);
  transition: transform 650ms var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }

.btn:hover {
  background: var(--brand-700);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn:active { transform: translate(var(--btn-tx), var(--btn-ty)) scale(0.97); }

.btn__arrow {
  display: inline-flex;
  margin-left: 0.15em;
  transition: transform 320ms var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-200);
  color: var(--ink-900);
}
.btn--ghost:hover {
  background: var(--surface-3);
  border-color: var(--brand-300);
  color: var(--brand-700);
  box-shadow: none;
}

.btn--white {
  background: #fff;
  color: var(--brand-700);
}
.btn--white:hover { background: var(--sand-50); color: var(--brand-700); box-shadow: var(--shadow-md); }

.btn--outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}

.btn--aqua {
  background: linear-gradient(135deg, var(--aqua-400), var(--brand-500));
  color: var(--navy-950);
  font-weight: 700;
}
.btn--aqua:hover {
  background: linear-gradient(135deg, var(--aqua-500), var(--brand-600));
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.btn--block { width: 100%; }

.btn .icon { flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn-row--spaced { margin-top: var(--space-6); }

/* 4. Icons ================================================================= */

.icon {
  width: 1.125em;
  height: 1.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--brand-100), var(--sand-100));
  color: var(--brand-600);
  box-shadow: inset 0 0 0 1px rgba(13, 118, 188, 0.12);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.icon-tile .icon { width: 21px; height: 21px; }
.card:hover .icon-tile,
a.card:hover .icon-tile {
  transform: translateY(-2px) scale(1.05);
  box-shadow: inset 0 0 0 1px rgba(13, 118, 188, 0.18), var(--shadow-sm);
}

/* 5. Header ================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: saturate(1.7) blur(16px);
  -webkit-backdrop-filter: saturate(1.7) blur(16px);
  border-bottom: 1px solid var(--line-100);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand { flex: none; }
.brand img { width: 176px; height: 50px; object-fit: contain; }

.primary-nav { margin-inline: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding: var(--space-2) 0;
  color: var(--ink-800);
  font-size: var(--step-0);
  font-weight: 500;
}
.primary-nav a:hover { color: var(--brand-600); }
.primary-nav a[aria-current="page"] { color: var(--brand-600); font-weight: 600; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--ink-800);
  font-weight: 500;
  white-space: nowrap;
}
.header-phone:hover { color: var(--brand-600); }
.header-phone .icon { color: var(--brand-500); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink-900);
  cursor: pointer;
}

.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .site-header__inner { gap: var(--space-3); }

  .brand img { width: 152px; height: 43px; }

  .nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: var(--space-5) var(--gutter) var(--space-6);
    background: #fff;
    border-bottom: 1px solid var(--line-200);
    box-shadow: var(--shadow-md);
  }
  .nav-panel.is-open { display: block; }

  .primary-nav { margin: 0; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--line-100);
    font-size: var(--step-1);
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: var(--space-5);
  }
  .header-phone { justify-content: center; }
}

@media (min-width: 1024px) {
  .nav-panel {
    display: contents;
  }
}

/* 6. Hero ==================================================================
   Full-bleed, immersive: a real background layer (not a pseudo-element) so
   motion-effects.js can apply a soft mouse-parallax drift to it, a
   color-graded navy scrim (not a flat dark box) so the bright interior photo
   stays readable, and a pair of blurred glow shapes for depth. Trust reads
   as a row of small glass pills, not a wall of numbers -- the big animated
   counters live in the stats band right after, so nothing is said twice. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  align-items: center;
  min-height: min(880px, 100svh);
  padding-block: clamp(6.5rem, 14vw, 9rem) clamp(3rem, 7vw, 5rem);
  color: #fff;
  background: var(--navy-950);
}

.hero__bg {
  position: absolute;
  inset: -3%;
  z-index: -3;
  background-image: url('/assets/images/hero-bg.webp');
  background-position: center;
  background-size: cover;
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(5, 11, 18, 0.94) 0%, rgba(6, 16, 26, 0.74) 34%, rgba(9, 20, 32, 0.4) 62%, rgba(10, 20, 32, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 11, 18, 0.75) 0%, rgba(5, 11, 18, 0.1) 30%, rgba(5, 11, 18, 0) 55%),
    linear-gradient(190deg, rgba(19, 173, 226, 0.16), rgba(5, 11, 18, 0) 40%);
}

.hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}
.hero__glow--aqua {
  top: -12%;
  right: 8%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, var(--aqua-400), transparent 70%);
}
.hero__glow--brand {
  bottom: -18%;
  left: -6%;
  width: 26vw;
  height: 26vw;
  background: radial-gradient(circle, var(--brand-500), transparent 70%);
  opacity: 0.4;
}

.hero__inner { position: relative; }

.hero .eyebrow { color: var(--aqua-300); }
.hero .eyebrow::before { background: var(--aqua-300); }

.hero h1,
.hero__copy p { color: #fff; }
.hero__copy p { color: rgba(255, 255, 255, 0.82); }

.hero__copy { max-width: 40rem; }
.hero h1 { max-width: 12ch; }
.hero__copy p { margin-top: var(--space-5); max-width: 46ch; font-size: var(--step-1); }
.hero__copy .btn-row { margin-top: var(--space-7); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  list-style: none;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--glass-dark-bg);
  border: 1px solid var(--glass-dark-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--step--1);
  font-weight: 500;
  white-space: nowrap;
}
.hero__trust .icon { color: var(--aqua-300); width: 16px; height: 16px; }
.hero__trust strong { font-family: var(--font-mono); font-weight: 600; color: #fff; }

/* A single floating glass card, asymmetrical counterweight to the left-
   aligned copy -- the one "before/after" style image the brief asks for,
   without turning the hero back into a two-column layout. */
.hero__float {
  display: none;
  position: absolute;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(1.5rem, 5vw, 3.5rem);
  z-index: 1;
  width: clamp(200px, 20vw, 280px);
  margin: 0;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--glass-dark-bg);
  border: 1px solid var(--glass-dark-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
}
@media (min-width: 1024px) { .hero__float { display: block; } }

.hero__float img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 8px);
}
.hero__float figcaption {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 8px;
  padding: 2px 4px 3px;
  color: #fff;
  font-size: var(--step--1);
  font-weight: 500;
}
.hero__float .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua-400);
  box-shadow: 0 0 8px var(--aqua-400);
}

/* Page hero (interior pages) */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line-100);
}

/* Photo variant -- about/services/contact set --hero-bg-image inline.
   Plain .page-hero (privacy/terms) stays the original light, borderless
   text-only header: without an actual photo, the dark scrim + white text
   below would just read as low-contrast text on a flat tinted background. */
.page-hero--photo {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(4rem, 9vw, 6.5rem);
  border-bottom: 0;
  color: #fff;
  background: var(--navy-950);
}
.page-hero--photo::before,
.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero--photo::before {
  background-image: var(--hero-bg-image);
  background-position: center;
  background-size: cover;
}
.page-hero--photo::after {
  background:
    linear-gradient(100deg, rgba(5, 11, 18, 0.72) 0%, rgba(6, 16, 26, 0.5) 32%, rgba(9, 20, 32, 0.22) 58%, rgba(10, 20, 32, 0.08) 80%),
    linear-gradient(0deg, rgba(5, 11, 18, 0.3), rgba(5, 11, 18, 0) 40%);
}
.page-hero--photo.page-hero--center::after {
  background:
    linear-gradient(0deg, rgba(5, 11, 18, 0.55), rgba(5, 11, 18, 0.42)),
    linear-gradient(190deg, rgba(19, 173, 226, 0.14), rgba(5, 11, 18, 0) 45%);
}
.page-hero--photo .eyebrow { color: var(--aqua-300); }
.page-hero--photo .eyebrow::before { background: var(--aqua-300); }
.page-hero--photo h1,
.page-hero--photo p { color: #fff; }
.page-hero--photo p { color: rgba(255, 255, 255, 0.86); }

.page-hero__inner { max-width: 40rem; }
.page-hero--center .page-hero__inner { margin-inline: auto; text-align: center; }
.page-hero h1 { max-width: 16ch; }
.page-hero--center h1 { margin-inline: auto; }
.page-hero p { margin-top: var(--space-5); font-size: var(--step-1); }

/* Page hero (interior pages) */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line-100);
}

/* Photo variant -- about/services/contact set --hero-bg-image inline.
   Plain .page-hero (privacy/terms) stays the original light, borderless
   text-only header: without an actual photo, the dark scrim + white text
   below would just read as low-contrast text on a flat tinted background. */
.page-hero--photo {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(4rem, 9vw, 6.5rem);
  border-bottom: 0;
  color: #fff;
}
.page-hero--photo::before,
.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero--photo::before {
  background-image: var(--hero-bg-image);
  background-position: center;
  background-size: cover;
}
.page-hero--photo::after {
  background:
    linear-gradient(100deg, rgba(9, 16, 24, 0.6) 0%, rgba(9, 16, 24, 0.42) 32%, rgba(9, 16, 24, 0.18) 58%, rgba(9, 16, 24, 0.05) 80%),
    linear-gradient(0deg, rgba(9, 16, 24, 0.22), rgba(9, 16, 24, 0) 40%);
}
.page-hero--photo.page-hero--center::after {
  background: rgba(9, 16, 24, 0.52);
}
.page-hero--photo h1,
.page-hero--photo p { color: #fff; }
.page-hero--photo p { color: rgba(255, 255, 255, 0.86); }

.page-hero__inner { max-width: 40rem; }
.page-hero--center .page-hero__inner { margin-inline: auto; text-align: center; }
.page-hero h1 { max-width: 16ch; }
.page-hero--center h1 { margin-inline: auto; }
.page-hero p { margin-top: var(--space-5); font-size: var(--step-1); }

/* 7. Stats band =============================================================
   Big animated counters on the same deep navy as the hero -- the page's
   "problem zone" color continues just far enough to deliver the credibility
   numbers, then hands off to the warm sand sections below. Counting is
   driven by motion-effects.js reading data-count-to; the static number in
   the markup is what non-JS / reduced-motion visitors see. */

.stats-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--navy-900);
  color: #fff;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 140% at 15% 0%, rgba(19, 173, 226, 0.16), transparent 60%),
    radial-gradient(50% 120% at 100% 100%, rgba(13, 118, 188, 0.14), transparent 60%);
}

.stats-band ul {
  display: grid;
  gap: var(--space-6) var(--space-5);
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  text-align: center;
}
@media (min-width: 700px) {
  .stats-band ul { grid-template-columns: repeat(4, 1fr); }
}

.stats-band li + li { position: relative; }
@media (min-width: 700px) {
  .stats-band li:not(:first-child)::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--space-5) / 2 - var(--space-3));
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: var(--line-dark-100);
  }
}

.stats-band strong {
  display: block;
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stats-band strong .stat-suffix { color: var(--aqua-300); }

/* Direct child only -- the label under each number ("Google rating, 264
   reviews"), not the .stat-num/.stat-suffix spans nested one level deeper
   inside <strong>, which need to stay at the big number's own size. */
.stats-band li > span {
  display: block;
  margin-top: var(--space-3);
  color: var(--ink-on-dark-2);
  font-size: var(--step--1);
}

/* 8. Service bento =========================================================
   Every tile is a full-bleed photo card: image zoom + a deepening scrim +
   an arrow that flips to point outward on hover, with a thin aqua glow ring
   standing in for a "3D lift" (a real translateZ reads as a jump on a card
   this size; the ring + shadow give depth without the jitter). */

.bento {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento__feature { grid-column: span 2; }
  .bento__tall { grid-column: 3; grid-row: 1 / span 2; }
  .bento__cta { grid-column: span 2; }
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.card h3 { color: var(--ink-900); font-size: var(--step-1); }
.card p { margin-top: var(--space-3); color: var(--ink-600); font-size: var(--step--1); }

a.card:hover,
.card:has(a:hover) {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card--media {
  position: relative;
  isolation: isolate;
  justify-content: flex-end;
  min-height: 260px;
  padding: var(--space-6);
  border: 0;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
a.card--media:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card--media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 700ms var(--ease-out);
}
a.card--media:hover img { transform: scale(1.13); }

.card--media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 11, 18, 0.05) 0%, rgba(5, 11, 18, 0.5) 58%, rgba(5, 11, 18, 0.9) 100%);
  transition: background 350ms var(--ease);
}
a.card--media:hover::after {
  background: linear-gradient(180deg, rgba(5, 11, 18, 0.12) 0%, rgba(6, 16, 26, 0.6) 48%, rgba(9, 20, 32, 0.94) 100%);
}

.card--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: box-shadow 300ms var(--ease);
  pointer-events: none;
}
a.card--media:hover::before { box-shadow: inset 0 0 0 1.5px rgba(47, 217, 230, 0.6); }

.card--media h3,
.card--media p {
  position: relative;
  z-index: 2;
  color: #fff;
}
.card--media p { color: rgba(255, 255, 255, 0.86); }

.card__arrow {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transition: transform 350ms var(--ease-out), background 250ms var(--ease), color 250ms var(--ease);
}
.card__arrow .icon { width: 18px; height: 18px; }
a.card--media:hover .card__arrow {
  transform: translate(3px, -3px) rotate(45deg);
  background: var(--aqua-400);
  border-color: var(--aqua-400);
  color: var(--navy-950);
}

.bento__tall { min-height: 320px; }

/* A dark CTA tile filling out the bento grid's leftover cell (5 photo cards
   in a 3-column grid always leaves a gap) -- same navy/aqua family as the
   page's other CTAs, but its own compact, vertical layout and copy so it
   doesn't just repeat the section CTA further down the page. */
.card--cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 230px;
  padding: var(--space-6);
  border: 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--brand-700) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.card--cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Wide enough (the bento's leftover cell is ~2/3 of a 3-column row) to lay
   the button out to the right, same split as .cta-band, instead of leaving
   that whole side of the tile empty under a stacked layout. */
@media (min-width: 700px) {
  .card--cta {
    flex-direction: row;
    align-items: center;
  }
  .card--cta__body { flex: 0 0 70%; min-width: 0; }
  .card--cta .btn { flex: none; }
}
.card--cta::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -12%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--aqua-400), transparent 70%);
  opacity: 0.4;
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
}
.card--cta .eyebrow { color: var(--aqua-300); }
.card--cta .eyebrow::before { background: var(--aqua-300); }
.card--cta h3 { color: #fff; font-size: var(--step-2); white-space: nowrap; }
@media (max-width: 460px) { .card--cta h3 { white-space: normal; } }
.card--cta p { margin-top: var(--space-3); max-width: 34ch; color: rgba(255, 255, 255, 0.82); font-size: var(--step--1); }

/* 9. Timeline (process) =====================================================
   The one numbered sequence on the site where numbering earns its keep --
   this is a real fixed order, not decoration. The connecting line is the
   page's signature: it runs from brand blue through aqua into sand, the
   same wet-to-dry read as the page's overall color arc, condensed into one
   line. Nodes are mono numerals -- a moisture-meter readout, not a badge. */

.timeline {
  position: relative;
  list-style: none;
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    padding-top: var(--space-3);
  }
  .timeline::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-500) 0%, var(--aqua-400) 38%, var(--sand-300) 68%, var(--sand-100) 100%);
  }
}

@media (max-width: 859px) {
  .timeline { padding-left: 27px; }
  .timeline::before {
    content: "";
    position: absolute;
    top: 27px;
    bottom: 27px;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-500) 0%, var(--aqua-400) 38%, var(--sand-300) 68%, var(--sand-100) 100%);
  }
  .timeline li { position: relative; padding-left: var(--space-6); }
  .timeline .step-num { position: absolute; left: calc(-27px - 2px); top: 0; }
}

.timeline li { padding-top: 0; border-top: 0; }

.timeline .step-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-5);
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand-400);
  box-shadow: 0 0 0 6px var(--surface-2);
  color: var(--brand-600);
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 600;
}
.timeline li:last-child .step-num { border-color: var(--sand-300); color: var(--brand-700); }

.timeline h3 { margin-top: var(--space-2); font-size: var(--step-1); }
.timeline p { margin-top: var(--space-3); font-size: var(--step--1); }

/* 10. Stats ================================================================ */

.stats {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--brand-100), var(--sand-100));
  box-shadow: inset 0 0 0 1px rgba(13, 118, 188, 0.1);
  list-style: none;
  text-align: center;
}

.stats strong {
  display: block;
  color: var(--brand-600);
  font-family: var(--font-mono);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.1;
}

.stats span {
  display: block;
  margin-top: var(--space-2);
  color: var(--ink-500);
  font-size: var(--step--1);
}

/* 11. Split (image + text) ================================================= */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 860px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--reverse .split__media { order: 2; }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(8, 15, 24, 0.06);
  pointer-events: none;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 900ms var(--ease-out);
}
.split:hover .split__media img { transform: scale(1.06); }

.split__body > * + * { margin-top: var(--space-4); }

.pull-quote {
  margin: 0;
  padding-left: var(--space-6);
  border-left: 3px solid var(--aqua-500);
  color: var(--ink-800);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
}

/* 12. Values grid ========================================================== */

.value-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  list-style: none;
}

@media (min-width: 760px) {
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.value-grid .card { background: var(--surface); }
.value-grid .card--accent {
  background: linear-gradient(155deg, var(--brand-100), var(--sand-100));
  border-color: transparent;
}

/* 13. Team ================================================================= */

.team {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  list-style: none;
}

.team li { transition: transform var(--dur) var(--ease-out); }

.team img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transform: scale(1.01);
  transition: transform 600ms var(--ease-out), box-shadow var(--dur) var(--ease);
}
.team li:hover img { transform: scale(1.035); box-shadow: var(--shadow-md); }

.team h3 { margin-top: var(--space-4); font-size: var(--step-1); }

.team .role {
  display: block;
  margin-top: var(--space-1);
  color: var(--brand-600);
  font-size: var(--step--1);
  font-weight: 600;
}

.team p { margin-top: var(--space-3); font-size: var(--step--1); }

/* 14. Chips / pills ======================================================== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-600);
  font-size: var(--step--1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.chips li:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.chips .icon { width: 15px; height: 15px; color: var(--brand-500); }

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  list-style: none;
  color: var(--ink-500);
  font-size: var(--step--1);
}

/* 15. Widget embeds (Google Reviews / Instagram feed) =====================
   `.section-glow` is a reusable decorative wrapper -- a soft blurred blob
   behind the section content, used to lift the reviews/Instagram sections
   off the flat sand background without touching the widgets' own iframe
   content (which lives in a separate origin and re-themes itself). */

.section-glow { position: relative; isolation: isolate; overflow: clip; }
.section-glow::before {
  content: "";
  position: absolute;
  top: -14%;
  left: 50%;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-200), transparent 65%);
  opacity: 0.55;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}
.section-glow--aqua::before { background: radial-gradient(circle, var(--aqua-300), transparent 65%); }

.widget-embed {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.widget-embed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(8, 15, 24, 0.06);
  pointer-events: none;
}
.widget-embed iframe { position: relative; display: block; width: 100%; border: 0; }

/* "View all reviews" opens a second full-screen iframe (assets/js/main.js
   creates #grw-modal-frame on the grwModal postMessage); lock the host
   page's own scroll while it's open. */
body.grw-modal-locked { overflow: hidden; }

/* 16. CTA band ============================================================= */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--brand-700) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -35%;
  right: -8%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--aqua-400), transparent 70%);
  opacity: 0.35;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

@media (min-width: 860px) {
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; }
}

.cta-band h2 { max-width: 22ch; color: #fff; font-size: var(--step-3); }
.cta-band p { margin-top: var(--space-4); max-width: 46ch; color: rgba(255, 255, 255, 0.88); }

/* 17. Contact page ========================================================= */

.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.field-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: block; margin-bottom: var(--space-4); min-width: 0; }

.field > span,
.field-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--ink-800);
  font-size: var(--step--1);
  font-weight: 500;
}

.field .hint {
  display: block;
  margin: calc(var(--space-2) * -1) 0 var(--space-2);
  color: var(--ink-400);
  font-size: var(--step--1);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink-900);
  font-family: inherit;
  font-size: var(--step-0);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field textarea { min-height: 130px; resize: vertical; }

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

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-400); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger-600); }

.field-error {
  display: block;
  margin-top: var(--space-2);
  color: var(--danger-600);
  font-size: var(--step--1);
  min-height: 0;
}

.form-status {
  display: block;
  margin-top: var(--space-4);
  font-size: var(--step--1);
}
.form-status[data-state="ok"] { color: var(--success-600); }
.form-status[data-state="error"] { color: var(--danger-600); }

.form-footnote {
  margin-top: var(--space-4);
  color: var(--ink-400);
  font-size: var(--step--1);
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, var(--brand-100), var(--sand-100));
  box-shadow: inset 0 0 0 1px rgba(13, 118, 188, 0.1);
}

.contact-card ul { list-style: none; }
.contact-card li { display: flex; gap: var(--space-4); }
.contact-card li + li { margin-top: var(--space-5); }
.contact-card .icon { flex: none; margin-top: 3px; color: var(--brand-600); }

.contact-card .label {
  display: block;
  color: var(--brand-700);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card .value {
  display: block;
  margin-top: var(--space-1);
  color: var(--ink-800);
  overflow-wrap: anywhere;
}
a.value:hover { color: var(--brand-700); }

.contact-map {
  margin-top: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact-map img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 18. FAQ ================================================================== */

.faq { max-width: 46rem; list-style: none; }

.faq details {
  border-bottom: 1px solid var(--line-200);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary .icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--brand-600);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary .icon { transform: rotate(45deg); }

.faq .faq-answer { padding-bottom: var(--space-5); max-width: 60ch; }

/* 19. Footer ===============================================================
   Returns to the hero's deep navy -- night falls again, but the home is
   protected now: the same aqua glow reads as a nightlight rather than a
   warning. Bookends the wet-to-dry color arc that runs down the page. */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(4rem, 8vw, 6rem) var(--space-6);
  background: linear-gradient(175deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--ink-on-dark-2);
  border-top: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-600), transparent 70%);
  opacity: 0.3;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -8%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--aqua-400), transparent 70%);
  opacity: 0.22;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line-dark-100);
}
.footer-cta .eyebrow { color: var(--aqua-300); }
.footer-cta .eyebrow::before { background: var(--aqua-300); }
.footer-cta h2 { max-width: 15ch; color: #fff; font-size: var(--step-3); }

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-5);
  list-style: none;
  color: var(--ink-on-dark-2);
  font-size: var(--step--1);
}
.footer-badges li { display: flex; align-items: center; gap: 0.5em; }
.footer-badges li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua-400);
}

.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr 1.6fr; }
}

.footer-brand__mark {
  display: inline-flex;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--sand-50);
}
.footer-brand img { width: 152px; height: 43px; object-fit: contain; }
.footer-brand p {
  margin-top: var(--space-5);
  max-width: 34ch;
  color: var(--ink-on-dark-3);
  font-size: var(--step--1);
}

.social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark-200);
  border-radius: var(--radius-pill);
  background: var(--glass-dark-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink-on-dark-2);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.social a:hover { border-color: var(--aqua-400); color: var(--aqua-300); transform: translateY(-2px); }
.social .icon { width: 17px; height: 17px; }

.footer-col h2 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul { margin-top: var(--space-4); list-style: none; }
.footer-col li + li { margin-top: var(--space-3); }

.footer-col a,
.footer-col span {
  color: var(--ink-on-dark-3);
  font-size: var(--step--1);
}
.footer-col a:hover { color: var(--aqua-300); }

.footer-col--contact li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.footer-col--contact .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--aqua-400);
}
.footer-col--contact a { overflow-wrap: anywhere; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark-100);
  color: var(--ink-on-dark-3);
  font-size: var(--step--1);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  list-style: none;
}
.footer-bottom a { color: var(--ink-on-dark-3); }
.footer-bottom a:hover { color: var(--aqua-300); }

/* 20. Legal / error pages ================================================== */

.prose { max-width: 44rem; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); font-size: var(--step-2); }
.prose ul { padding-left: var(--space-5); list-style: disc; }
.prose li + li { margin-top: var(--space-2); }

.error-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
}
.error-page .code {
  color: var(--brand-500);
  font-family: var(--font-mono);
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.error-page p { margin: var(--space-4) auto 0; max-width: 42ch; }
.error-page .btn-row { justify-content: center; margin-top: var(--space-6); }

/* 21. Motion 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;
  }
}
