:root {
  /* Three blues: navy for dark text and blocks, one accent, one light background. */
  --navy: #07375e;
  --blue: #0878b9;
  --sky: #e7f4fc;
  --white: #ffffff;
  --sun: #ffcc32;
  --ink-soft: color-mix(in srgb, var(--navy) 78%, white);
  --border: rgb(7 55 94 / 0.12);
  --border-strong: rgb(7 55 94 / 0.26);
  /* Old names still used by admin.css. */
  --pool: var(--blue);
  --turquoise: var(--blue);
  --blue-mist: var(--sky);
  --blue-air: var(--sky);
  --blue-water: var(--sky);
  --blue-depth: var(--sky);
  --mint: var(--sky);
  --display: "Avenir Next Rounded", "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  --text: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --shadow: 0 22px 60px rgb(7 55 94 / 0.12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--sky); }
section[id], main[id] { scroll-margin-top: 100px; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { text-wrap: pretty; }

.wrap { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding: clamp(5rem, 9vw, 8rem) 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform 160ms ease-out;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgb(255 255 255 / 0.98);
  border-bottom: 1px solid rgb(7 55 94 / 0.08);
}
.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgb(7 55 94 / 0.14);
}

.button {
  display: inline-flex;
  min-height: 56px;
  padding: 0.92rem 1.5rem;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: var(--blue);
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgb(7 55 94 / 0.15);
  transition: background-color 150ms ease-out, transform 150ms ease-out, box-shadow 150ms ease-out;
}
.button:hover { background: var(--navy); transform: translateY(-3px); box-shadow: 0 17px 31px rgb(7 55 94 / 0.2); }
.button:active { transform: translateY(0); }
.button-small { min-height: 48px; padding: 0.76rem 1.1rem; font-size: 0.91rem; }
:where(a, button):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 950;
  letter-spacing: -0.052em;
  text-wrap: balance;
}
h1 { max-width: 12ch; font-size: clamp(3rem, 5.1vw, 5.7rem); line-height: 0.97; }
h2 { font-size: clamp(2.5rem, 4.2vw, 4.65rem); line-height: 1; }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.07; }
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.section-heading { max-width: 820px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-heading.centered { margin-inline: auto; text-align: center; }

.hero {
  position: relative;
  overflow-x: clip;
  padding: clamp(3.5rem, 6vw, 6.5rem) 0 clamp(5rem, 8vw, 7.5rem);
  background: var(--sky);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}
.hero-copy { padding-block: 1rem; }
.hero-accent {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgb(8 120 185 / 0.3);
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: auto;
}
.level-page.advanced .hero-accent { color: var(--sky); text-decoration-color: rgb(231 244 252 / 0.35); }
.hero-text {
  max-width: 58ch;
  margin: 1.6rem 0 1.8rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.62;
}
.hero-media {
  position: relative;
  margin: 0;
  padding: 9px;
  overflow: hidden;
  background: var(--white);
  border-radius: 34px;
  /* Layered navy-tinted shadow: a hairline edge, a tight contact shadow, and a wide soft fall-off. */
  box-shadow:
    0 0 0 1px rgb(7 55 94 / 0.04),
    0 1px 2px rgb(7 55 94 / 0.06),
    0 6px 12px -2px rgb(7 55 94 / 0.06),
    0 18px 36px -8px rgb(7 55 94 / 0.10),
    0 44px 80px -24px rgb(7 55 94 / 0.22);
  transform: rotate(1.5deg);
}
.hero-media::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 9px;
  border: 1px solid rgb(255 255 255 / 0.48);
  border-radius: 25px;
  pointer-events: none;
}
.hero-media::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 9px;
  background: url("assets/video/ilios-hero-poster.webp") center 47% / cover no-repeat;
  border-radius: 25px;
}
.hero-media video {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 9 / 12;
  object-fit: cover;
  object-position: center 47%;
  border-radius: 25px;
  background: transparent;
}
.sound-section {
  background: var(--sky);
}
.sound-subtitle {
  margin: 1rem 0 0;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 0.9rem;
}
.quote-grid blockquote {
  grid-column: span 2;
  margin: 0;
  padding: clamp(1.05rem, 2vw, 1.45rem);
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(1.03rem, 1.38vw, 1.22rem);
  font-weight: 500;
  line-height: 1.36;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 21px 21px 21px 7px;
  box-shadow: 0 14px 34px rgb(7 55 94 / 0.09);
}
.quote-grid blockquote:nth-child(4) { grid-column: 2 / span 2; }
.quote-grid blockquote:nth-child(5) { grid-column: 4 / span 2; }

.why-section {
  background: var(--sky);
}
.why-heading { max-width: 1000px; }
.why-heading h2 { font-size: clamp(3rem, 5vw, 5.2rem); }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.benefit-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgb(7 55 94 / 0.11);
}
.benefit-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.benefit-card:nth-child(1) > img { object-position: center 35%; }
.benefit-card:nth-child(2) > img { object-position: center 45%; }
.benefit-card:nth-child(3) > img { object-position: center 10%; }
.benefit-card:nth-child(4) > img { object-position: center 60%; }
.benefit-card:nth-child(5) > img { object-position: center 20%; }
.benefit-card:nth-child(6) > img { object-position: center 30%; }
.benefit-copy { padding: clamp(1.45rem, 2.5vw, 2rem); background: var(--white); }
.benefit-card:nth-child(3n + 2) .benefit-copy { background: var(--white); }
.benefit-card:nth-child(3n) .benefit-copy { background: var(--white); }
.benefit-card h3 { max-width: 20ch; }
.benefit-card p {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
}

.reviews-section {
  overflow: hidden;
  background: var(--sky);
}
.reviews-heading { margin-bottom: 2.25rem; }
.home-review-carousel { max-width: 820px; margin-inline: auto; }
.home-review-track { display: flex; gap: 1.25rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: .2rem; padding: .3rem .2rem 1rem; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.home-review-track.is-rotating { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; scroll-snap-type: none; scrollbar-width: none; touch-action: pan-y; }
.home-review-track.is-rotating .home-review-card { grid-area: 1 / 1; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 350ms ease, visibility 0s linear 350ms; }
.home-review-track.is-rotating .home-review-card.is-active { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.home-review-track:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 12px; }
.home-review-card { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; margin: 0; padding: clamp(1.4rem, 3vw, 2.25rem); background: var(--white); border: 1px solid var(--border); border-radius: 24px 24px 24px 8px; box-shadow: 0 7px 18px rgb(7 55 94 / .08); scroll-snap-align: start; scroll-snap-stop: always; }
.home-review-stars { color: #b66b00; font-size: 1rem; letter-spacing: .15em; line-height: 1; }
.home-review-card blockquote { margin: .85rem 0 1.2rem; }
.home-review-card blockquote p { margin: 0; font-family: var(--text); font-size: clamp(1.08rem, 1.7vw, 1.35rem); font-weight: 500; line-height: 1.6; }
.home-review-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .65rem; margin-top: auto; font-size: .8rem; line-height: 1.5; }
.home-review-card figcaption strong { font-weight: 700; }
.home-review-card figcaption a { color: var(--ink-soft); font-size: .73rem; text-underline-offset: 3px; }
.home-review-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .8rem; }
.home-review-more { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 52px; padding: .8rem 1.25rem; border: 1px solid var(--navy); border-radius: 999px; background: var(--navy); color: var(--white); box-shadow: 0 8px 18px rgb(7 55 94 / .18); font-size: .95rem; font-weight: 800; text-align: center; text-decoration: none; transition: background-color 160ms ease, box-shadow 160ms ease; }
.home-review-more span { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: rgb(255 255 255 / .14); }
.home-review-more:hover { background: var(--blue); box-shadow: 0 10px 24px rgb(7 55 94 / .24); }
.home-review-more:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.home-review-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .home-review-track { gap: .85rem; }
  .home-review-card { flex-basis: 100%; padding: 1.2rem; }
  .home-review-footer { flex-wrap: wrap; justify-content: center; gap: .9rem; }
  .home-review-more { width: 100%; font-size: .9rem; }
}
.stars, .mini-stars { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--sun); }
.stars { margin: 0 0 0.7rem; }
.stars svg, .mini-stars svg { width: 1.2rem; height: 1.2rem; fill: currentColor; stroke: currentColor; stroke-width: 2.8; stroke-linejoin: round; }
.stars svg { width: 2.25rem; height: 2.25rem; }
.review-count { margin: 1rem 0 0; color: var(--blue); font-size: 1.08rem; font-weight: 900; }
.review-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.review-grid blockquote {
  grid-column: span 2;
  margin: 0;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 21px 21px 21px 7px;
  box-shadow: 0 10px 28px rgb(7 55 94 / 0.08);
}
.review-grid blockquote:nth-child(4) { grid-column: 2 / span 2; }
.review-grid blockquote:nth-child(5) { grid-column: 4 / span 2; }
.review-grid p { margin: 0; color: var(--ink-soft); font-weight: 650; line-height: 1.48; }
.review-grid footer { display: flex; flex-wrap: wrap; margin-top: 0.8rem; align-items: center; justify-content: space-between; gap: 0.8rem; color: var(--blue); font-size: 0.8rem; font-weight: 950; text-transform: uppercase; letter-spacing: 0.08em; }
.mini-stars { flex-shrink: 0; }

.steps-section {
  background: var(--sky);
}
.steps-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.step-list { display: grid; margin: 0; padding: 0; gap: 1rem; list-style: none; }
.step-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: 130px;
  padding: 1.4rem;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 23px;
}
.step-list li > span {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 950;
  background: var(--blue);
  border-radius: 50%;
}
.step-list h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.step-list p { margin: 0.45rem 0 0; color: var(--ink-soft); font-size: 1rem; font-weight: 600; line-height: 1.45; }
.steps-video {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.steps-video::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8px;
  background: url("assets/video/ilios-steps-poster.jpg") center / cover no-repeat;
  border-radius: 22px;
}
.steps-video video { position: relative; z-index: 1; width: 100%; max-height: 680px; aspect-ratio: 9 / 16; object-fit: cover; object-position: center; border-radius: 22px; background: transparent; }

.section.final-cta {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: var(--sky);
}
.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--white);
  background: var(--navy);
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.cta-card h2 { max-width: none; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.08; }
.cta-copy p { max-width: 58ch; margin: .75rem 0 0; color: var(--sky); font-size: 1.08rem; font-weight: 600; line-height: 1.55; }

/* Google rating link, shared by the homepage and the reviews page. */
.parent-stars { color: #ad7400; white-space: nowrap; letter-spacing: .1em; font-size: 1.15rem; }
.parent-rating { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; width: fit-content; margin-top: 1.3rem; text-decoration: none; }
.parent-rating > span:nth-child(2) { display: flex; align-items: center; gap: .7rem; }
.parent-rating > span:nth-child(2) > span { display: none; }
.parent-rating strong { font-size: .95rem; }
.cta-actions { display: grid; justify-items: start; gap: 1rem; }
.cta-actions .parent-rating { margin-top: 0; }
.cta-card .cta-actions { justify-items: center; }
.cta-card .parent-rating { color: var(--white); }
.cta-card .parent-stars { color: var(--sun); }

.site-footer { padding: 1.25rem 0; border-top: 1px solid var(--border); background: var(--sky); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; color: var(--ink-soft); font-size: 0.8rem; font-weight: 500; }
.social-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; text-underline-offset: 4px; }
.social-links a:hover { color: var(--navy); text-decoration: underline; }
.social-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr); gap: 2rem; }
  .hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.6rem); }
  .steps-layout { gap: 3rem; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 1.5rem, 620px); }
  .section { padding: 4.5rem 0; }
  .header-inner { min-height: 72px; }
  .brand { gap: 0.55rem; font-size: 1rem; }
  .brand img { width: 43px; height: 43px; }
  .button-small { min-height: 44px; padding: 0.68rem 0.82rem; font-size: 0.78rem; }
  .hero { padding: 2.8rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.75rem, 12vw, 4rem); }
  .hero-text { font-size: 1.04rem; }
  .hero-media { transform: none; }
  .hero-media video { aspect-ratio: 4 / 3; object-position: center 42%; }
  .hero-media::after { background-image: url("assets/video/ilios-hero-poster-mobile.webp"); background-position: center 42%; }
  .quote-grid, .benefit-grid, .review-grid, .steps-layout { grid-template-columns: 1fr; }
  .quote-grid blockquote, .quote-grid blockquote:nth-child(4), .quote-grid blockquote:nth-child(5) { grid-column: auto; padding: 1rem 1.1rem; font-size: 1rem; }
  .benefit-copy { padding: 1.35rem; }
  .review-grid blockquote, .review-grid blockquote:nth-child(4), .review-grid blockquote:nth-child(5) { grid-column: auto; }
  .step-list li { grid-template-columns: 60px 1fr; min-height: 118px; padding: 1.15rem; gap: 0.9rem; }
  .step-list li > span { width: 56px; height: 56px; font-size: 1.35rem; }
  .steps-video { display: none; }
  .cta-card { grid-template-columns: 1fr; align-items: start; }
  .cta-card .button { width: 100%; }
  .site-footer .wrap { flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
  .social-links { justify-content: center; gap: 0 1rem; }
}

@media (max-width: 380px) {
  .header-inner { gap: 0.5rem; }
  .brand { gap: 0.4rem; font-size: 0.88rem; }
  .brand span { max-width: 7ch; line-height: 1.1; }
  .brand img { width: 38px; height: 38px; }
  .why-heading h2 { font-size: 2.6rem; }
  .step-list li { grid-template-columns: 44px minmax(0, 1fr); gap: 0.75rem; padding: 1rem; }
  .step-list li > span { width: 44px; height: 44px; }
}

/* JS opts items in only after creating the observer. With JS unavailable,
   every element retains its normal, visible styling. Individual translate and
   scale preserve existing media rotations and button hover transforms. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; }
  .reveal-entering {
    animation: reveal-in 400ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms) both;
  }
  [data-reveal="visual"] { --reveal-scale: 0.98; }
  [data-reveal]:focus-within { opacity: 1; animation: none; }
}

@keyframes reveal-in {
  from { opacity: 0; translate: 0 20px; scale: var(--reveal-scale, 1); }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@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; }
}

/* Shared navigation and the locations page. */
.header-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.nav-location { font-weight: 750; text-underline-offset: 6px; text-decoration: none; }
.nav-location:hover, .nav-location[aria-current="page"] { text-decoration: underline; }
.locations-hero { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--sky); }
.locations-intro { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.locations-intro h1 { margin: 1rem 0 1.5rem; font-family: var(--display); font-size: clamp(3rem, 5.7vw, 5rem); line-height: 1.06; letter-spacing: -.055em; }
.locations-lead { max-width: 490px; color: var(--ink-soft); font-size: 1.15rem; line-height: 1.7; margin-bottom: 2rem; }
.locations-intro .button { gap: 1.5rem; }
.locations-photo { position: relative; margin: 0; overflow: hidden; border-radius: 100px 28px 28px 28px; box-shadow: var(--shadow); }
.locations-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 48% 38%; }
.pool-section { background: var(--white); }
.pool-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.pool-heading h2 { margin-bottom: 0; }
.pool-heading > p { max-width: 350px; color: var(--ink-soft); line-height: 1.7; }
.pool-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.pool-tools[hidden], .pool-card[hidden] { display: none; }
.pool-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.pool-filters button { min-height: 44px; padding: .75rem 1.2rem; border: 1px solid var(--border); border-radius: 99px; background: var(--white); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.pool-filters button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pool-filters button:hover { border-color: var(--navy); }
.pool-count { color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }
.pool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.pool-card { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--sky); border: 1px solid var(--border); border-radius: var(--radius); }
.pool-card-top { display: flex; align-items: center; justify-content: space-between; }
.pool-city { font-size: .85rem; font-weight: 750; color: var(--blue); }
.pool-number { font-family: var(--display); font-size: 1.3rem; color: var(--ink-soft); }
.pool-card h3 { margin: 1.4rem 0 .7rem; font-family: var(--display); font-size: 1.85rem; letter-spacing: -.035em; }
.pool-area { color: var(--ink-soft); line-height: 1.55; margin: 0; }
.pool-area > span { display: block; font-size: .78rem; margin-bottom: .3rem; }
.pool-area strong { display: block; font-weight: 650; color: var(--navy); }
.pool-directions { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; margin-top: 1.5rem; font-weight: 750; text-underline-offset: 5px; }
.pool-booking { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 2rem; padding: 2rem; background: var(--sky); border-radius: var(--radius); }
.pool-booking h3 { margin: 0; font-family: var(--display); font-size: 1.5rem; }
.pool-booking p { margin-bottom: 0; color: var(--ink-soft); line-height: 1.6; }
.pool-booking .button { flex-shrink: 0; }
@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; padding-block: .75rem; gap: .6rem; }
  .header-nav { flex-wrap: wrap; gap: .5rem 1rem; }
  .locations-intro { grid-template-columns: 1fr; }
  .locations-intro h1 { font-size: clamp(2.8rem, 10vw, 4.2rem); }
  .locations-photo { border-top-left-radius: 65px; }
  .pool-heading, .pool-booking { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .pool-heading > p { margin-top: 0; }
  .pool-tools { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .pool-count { margin: .5rem 0; }
  .pool-grid { grid-template-columns: 1fr; }
  .pool-booking { padding: 1.5rem; }
}

/* The map and cards use the same public intersection coordinates. */
.pool-privacy { margin: 0 0 2rem; padding: 1.15rem 1.4rem; border-left: 3px solid var(--blue); border-radius: 0 14px 14px 0; background: var(--sky); font-weight: 750; line-height: 1.5; }
.pool-privacy span { display: block; margin-top: .3rem; max-width: 85ch; color: var(--ink-soft); font-size: .9rem; font-weight: 450; }
.pool-locator.has-map { display: grid; grid-template-columns: minmax(290px, .85fr) minmax(0, 1.3fr); gap: 1.5rem; align-items: start; }
.pool-locator.has-map .pool-grid { grid-template-columns: 1fr; gap: .8rem; max-height: 674px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-color: var(--sky) transparent; padding: 3px 10px 3px 3px; }
.pool-locator.has-map .pool-card { padding: 1.35rem 1.5rem; border-radius: 22px; }
.pool-locator.has-map .pool-card h3 { margin-top: .7rem; font-size: 1.55rem; }
.pool-card { transition: border-color 150ms ease, background-color 150ms ease; }
.pool-card.is-selected { background: var(--sky); border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.pool-card-actions { display: flex; flex-wrap: wrap; column-gap: 1.25rem; align-items: center; margin-top: .9rem; }
.pool-card-actions .pool-directions { margin-top: 0; font-size: .82rem; gap: .35rem; }
.pool-show, .pool-map-reset { border: 0; background: transparent; padding: 0; font: inherit; color: var(--blue); font-weight: 750; min-height: 44px; cursor: pointer; }
.pool-show { display: inline-flex; gap: .7rem; align-items: center; font-size: .9rem; }
.pool-show[hidden], .pool-map-panel[hidden], .pool-map-error[hidden] { display: none; }
.pool-show:hover, .pool-map-reset:hover { text-decoration: underline; text-underline-offset: 4px; }
.pool-map-panel { overflow: hidden; border: 1px solid #dce3e8; border-radius: 24px; background: #fff; box-shadow: 0 8px 28px rgb(7 55 94 / .05); scroll-margin-top: 135px; }
.pool-map-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 1.2rem; border-bottom: 1px solid #e5eaee; font-size: .85rem; font-weight: 750; }
.pool-map-reset { font-size: .78rem; }
#pool-map { height: 535px; z-index: 0; background: #edf0f2; font-family: var(--text); }
#pool-map .leaflet-control-zoom { overflow: hidden; border: 1px solid #dce3e8; border-radius: 12px; box-shadow: 0 4px 16px rgb(7 55 94 / .1); }
#pool-map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; color: var(--navy); background: #fff; }
#pool-map .leaflet-control-zoom a:hover { background: #f1f5f7; }
#pool-map .leaflet-control-zoom a.leaflet-disabled { color: #a2adb5; }
#pool-map .leaflet-control-zoom-in { border-bottom-color: #e5eaee; }
#pool-map .leaflet-control-attribution { background: rgb(255 255 255 / .9); color: #52616c; }
#pool-map .leaflet-control-attribution a { color: var(--ink-soft); }
.pool-map-caption { margin: 0; padding: 1rem 1.2rem; min-height: 78px; color: var(--ink-soft); font-size: .82rem; line-height: 1.5; }
.pool-map-error { margin: 0; padding: 0 1.2rem 1rem; color: var(--navy); font-size: .85rem; }
.pool-pin { display: flex; align-items: center; justify-content: center; background: var(--navy); color: white; border: 3px solid white; border-radius: 50%; box-shadow: 0 3px 12px rgb(7 55 94 / .25); font-family: var(--text); font-weight: 800; font-size: 13px; }
.pool-pin:hover, .pool-pin.is-selected { background: var(--blue); box-shadow: 0 0 0 5px rgb(8 120 185 / .2); }
.pool-popup { color: var(--navy); font-family: var(--text); line-height: 1.45; }
.pool-popup > strong { font-size: 1rem; }
.pool-popup p { margin: .5rem 0; }
.pool-popup small { display: block; color: var(--ink-soft); }
.pool-popup a { display: inline-block; padding: .8rem 0 .4rem; color: var(--blue); font-weight: 750; text-underline-offset: 3px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--navy); width: 32px; height: 32px; line-height: 32px; }
.leaflet-popup-content-wrapper { border-radius: 16px; }
@media (max-width: 850px) {
  .pool-locator.has-map { grid-template-columns: 1fr; }
  .pool-locator.has-map .pool-grid { max-height: none; overflow: visible; padding: 3px; overscroll-behavior-y: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pool-map-panel { grid-row: 1; }
  #pool-map { height: 350px; }
  .pool-map-caption { min-height: 65px; }
}
@media (max-width: 700px) {
  .pool-locator.has-map .pool-grid { grid-template-columns: 1fr; }
  .pool-map-heading { flex-wrap: wrap; gap: .25rem; padding-inline: 1rem; }
  .pool-filters button { padding-inline: 1rem; font-size: .9rem; }
  .pool-privacy { padding-inline: 1rem; }
}

/* A shorter introduction and a map-first locator on small screens. */
.locations-hero { padding-block: clamp(2rem, 4vw, 3.5rem); }
.locations-intro h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.locations-lead { margin-bottom: 0; }
.pool-section { padding-top: 2.5rem; }
.pool-title { margin: 0 0 .75rem; font-size: 2rem; }
.pool-privacy { padding: 0; margin-bottom: 1.5rem; border: 0; background: none; color: var(--ink-soft); font-size: .9rem; font-weight: 450; }
.pool-tools { margin-bottom: 1rem; }
.pool-picker { display: none; }
.pool-popup .pool-directions { margin-top: .3rem; }
@media (max-width: 850px) {
  .locations-intro { grid-template-columns: 1fr; }
  .locations-photo { display: block; width: 100%; max-width: 480px; justify-self: center; border-radius: 24px; }
  .locations-intro h1 { margin-block: .75rem; }
  .locations-lead { font-size: 1rem; line-height: 1.5; }
  .pool-title { font-size: 1.5rem; }
  .pool-section { padding-top: 1.5rem; }
  .pool-tools:has(+ .pool-picker:not([hidden])) { display: none; }
  .pool-picker:not([hidden]) { display: grid; gap: .5rem; margin-bottom: 1rem; }
  .pool-picker label { font-size: .85rem; font-weight: 700; }
  .pool-picker select { width: 100%; min-height: 48px; padding: .75rem; border: 1px solid var(--border); border-radius: 12px; background: white; color: var(--navy); font: inherit; }
  .pool-locator.has-map .pool-grid { display: none; }
  .pool-locator.has-map.map-unavailable .pool-grid { display: grid; }
  .pool-map-panel { border-radius: 16px; }
  #pool-map { height: clamp(320px, 52svh, 460px); }
  #pool-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
  .pool-map-caption { min-height: 0; padding: .75rem 1rem; }
  .pool-booking { margin-top: 1.25rem; padding: 1.25rem; }
  .pool-booking .button { width: 100%; }
}

/* Keep the complete navigation comfortable as the site grows. */
@media (min-width: 701px) and (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; padding-block: .8rem; }
  .header-nav { gap: 1.25rem; }
}
.nav-location { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 700px) {
  .header-inner { position: relative; gap: .5rem; }
  .header-inner .brand { min-height: 44px; }
  .header-nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: .45rem; }
  .header-nav .nav-location { font-size: .83rem; }
  .header-nav .button-small { position: absolute; top: .75rem; right: 0; }
}
@media (max-width: 370px) {
  .header-inner .brand span { font-size: .82rem; max-width: 95px; line-height: 1.1; }
  .header-nav .button-small { padding-inline: .65rem; font-size: .72rem; }
}

/* Keep all six main-page links reachable at narrow widths. */
@media (min-width: 701px) and (max-width: 1180px) {
  .header-inner { flex-wrap: wrap; padding-block: .75rem; }
  .header-nav { width: 100%; justify-content: space-between; gap: .75rem; }
}
@media (max-width: 700px) {
  .header-nav { flex-wrap: wrap; justify-content: flex-start; column-gap: 1rem; row-gap: 0; }
}

/* Contact and shared footer use the site's existing tokens and reveal system. */
.contact-section { background: linear-gradient(180deg, var(--white), var(--sky)); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-copy { padding-top: 1rem; }
.contact-copy h1 { max-width: 12ch; font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.06; }
.contact-copy > p:not(.eyebrow) { max-width: 38ch; margin: 1.5rem 0 2rem; color: var(--ink-soft); line-height: 1.7; font-size: 1.08rem; }
.contact-email { display: grid; gap: .5rem; font-size: .95rem; }
.contact-email span { color: var(--ink-soft); }
.contact-email a { font-weight: 650; text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-card { padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1rem; }
.contact-field { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-field label { font-size: .85rem; font-weight: 700; }
.contact-field label span { color: var(--ink-soft); font-weight: 400; }
.contact-field :is(input, select, textarea) { width: 100%; min-width: 0; min-height: 50px; padding: .85rem; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--sky); color: var(--navy); font: inherit; font-size: 16px; }
.contact-field textarea { resize: vertical; min-height: 125px; }
.contact-field :is(input, select, textarea):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; background: var(--white); }
.contact-field [aria-invalid="true"] { border-color: #a33232; }
.contact-error { color: #a33232; font-size: .83rem; line-height: 1.5; }
.contact-note { margin: 1rem 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.6; }
.contact-submit { width: 100%; gap: 1rem; font-family: inherit; font-size: 1rem; cursor: pointer; }
.contact-submit:disabled { opacity: .65; cursor: wait; }
.contact-success { padding: 2rem 0; text-align: center; }
.contact-success p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.7; margin: 1.25rem 0 2rem; }
.contact-success .button { font: inherit; font-weight: 700; cursor: pointer; }
.contact-check { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.5rem; border-radius: 50%; background: var(--sky); color: var(--blue); font-size: 2rem; }
.contact-card [hidden] { display: none; }
/* Forms that are not wired up yet stay visible but greyed out. */
.form-paused { opacity: .45; filter: grayscale(1); user-select: none; }
.form-paused-note { margin: 0 0 1.5rem; padding: 1rem 1.15rem; color: var(--navy); font-size: .95rem; line-height: 1.6; background: var(--sky); border-radius: 14px; }
.form-paused-note a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
/* Shared footer: the same page sequence as the main menu, with compact social and legal rows. */
.site-footer { padding: 1.35rem 0 .7rem; }
.site-footer .footer-layout { display: grid; grid-template-columns: 1fr; align-items: start; gap: .6rem; text-align: left; }
.footer-brand { width: fit-content; min-height: 44px; font-size: 1rem; gap: .6rem; }
.footer-brand span { max-width: none; }
.footer-brand img { width: 36px; height: 36px; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; max-width: 100%; text-decoration: none; font-size: .82rem; line-height: 1.4; }
.footer-nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.footer-nav a:focus-visible, .footer-brand:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.footer-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1.5rem; padding-top: .6rem; border-top: 1px solid var(--border); width: 100%; font-size: .7rem; line-height: 1.6; }
.footer-smallprint { display: grid; gap: .1rem; }
.footer-bottom .social-links { justify-content: flex-start; gap: 0 1rem; font-size: .76rem; }
.footer-bottom .social-links a { min-height: 36px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .9rem; }
@media (max-width: 850px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-copy h1 { max-width: 18ch; }
  .contact-copy > p:not(.eyebrow) { max-width: 55ch; margin: 1.2rem 0; }
  .site-footer .footer-layout { grid-template-columns: 1fr; gap: .65rem; }
  .footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 0 .75rem; }
  .footer-nav a { min-height: 44px; }
}
@media (max-width: 540px) {
  .contact-section { padding: 3.5rem 0; }
  .contact-form-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .contact-copy { padding: 0; }
  .contact-copy h1 { font-size: 2.6rem; }
  .site-footer { padding: .9rem 0 .75rem; }
  .footer-nav a { font-size: .85rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .25rem; padding-top: .35rem; }
  .footer-bottom .social-links { order: -1; width: 100%; justify-content: space-between; gap: 0 .5rem; }
}
@media (max-width: 380px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* A tighter homepage rhythm without changing other page layouts. */
.home-content > .section:not(.final-cta) { padding-block: clamp(2.5rem, 5vw, 4rem); }
.home-content .section-heading { margin-bottom: clamp(1.5rem, 2.5vw, 2rem); }
.home-content .hero { padding-block: clamp(2rem, 4vw, 3.5rem); }
.home-content .hero-grid { gap: clamp(1.5rem, 4vw, 3.5rem); }
.home-content .hero-copy { padding-block: 0; }
.home-content .hero h1 { max-width: 15ch; font-size: clamp(2.7rem, 4.8vw, 4.5rem); }
.home-content .hero-text { margin: 1.2rem 0 1.4rem; font-size: clamp(1.04rem, 1.3vw, 1.16rem); }
.home-content .hero-media video { max-height: 520px; }
.home-content .why-heading h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.home-content .benefit-card > img { aspect-ratio: 2 / 1; }
.home-content .benefit-copy { padding: 1.25rem; }
.home-content .benefit-card h3 { font-size: clamp(1.35rem, 1.8vw, 1.65rem); }
.home-content .benefit-card p { margin-top: .65rem; font-size: 1rem; }
.home-content .reviews-heading { margin-bottom: 1.3rem; }
.home-content .reviews-heading h2 { font-size: clamp(2.1rem, 3.3vw, 3rem); }
.home-content .reviews-heading > p:last-child { margin-bottom: 0; }
.home-content .steps-layout { gap: clamp(2rem, 5vw, 4rem); }
.home-content .steps-copy h2 { font-size: clamp(2.4rem, 3.8vw, 3.5rem); }
.home-content .step-list { gap: .75rem; }
.home-content .step-list li { grid-template-columns: 52px minmax(0, 1fr); min-height: 100px; padding: 1rem; gap: 1rem; }
.home-content .step-list li > span { width: 48px; height: 48px; font-size: 1.35rem; }
.home-content .steps-video { width: min(100%, 280px); justify-self: center; }
.home-content .steps-video video { max-height: 460px; }
@media (min-width: 1100px) {
  .home-content .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .home-content .hero h1 { font-size: clamp(2.55rem, 10.5vw, 3.5rem); }
  .home-content .hero-grid { gap: 1.5rem; }
  .home-content .quote-grid { gap: .65rem; }
  .home-content .benefit-grid { gap: 1rem; }
  .home-content .benefit-copy { padding: 1.1rem; }
  .home-content .step-list li { grid-template-columns: 44px minmax(0, 1fr); gap: .75rem; }
  .home-content .step-list li > span { width: 44px; height: 44px; }
}
