/* Infinity Pool Solutions — Lake Forest, CA
   Palette and typography for a calm, trustworthy local service site. */

:root {
  /* Brand colors sampled from the iPS logo */
  --navy-950: #050c24;   /* deepest navy, footer/hero fallback */
  --navy-900: #06124e;   /* logo navy */
  --navy-800: #0a1e5c;
  --teal-800: #06368a;   /* deep royal — button hover (11.0:1 on white) */
  --teal-700: #0a56b8;   /* royal blue — buttons/links (6.9:1 on white) */
  --teal-600: #0a62c4;   /* bright royal (5.9:1 on white) */
  --aqua-400: #22d0f6;   /* sky/cyan highlight — kickers on dark, focus rings */
  --aqua-300: #7ee9fb;
  --foam-100: #e8eef4;   /* silver-tinted light fill */
  --foam-50: #f4f7fb;
  --sand: #f4f0e8;
  --ink: #061e4e;        /* logo wordmark navy (16.1:1 on white) */
  --muted: #3d4f6b;      /* 8.3:1 on white */
  --line: #c9d4e0;       /* chrome silver border */
  --white: #ffffff;
  --shadow: 0 18px 40px -24px rgba(6, 18, 78, 0.35);
  --shadow-soft: 0 8px 24px -16px rgba(6, 18, 78, 0.28);
  --radius: 18px;
  --header-h: 84px;
  --mobile-cta-h: 0px;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scroll-padding-bottom: calc(var(--mobile-cta-h) + 12px);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px — body stays at or above 16px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--foam-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-wrap: break-word;
}

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

a { color: var(--teal-700); }

a:hover { color: var(--teal-800); }

:focus-visible {
  outline: 3px solid var(--aqua-400);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--white);
  color: var(--navy-900);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 251, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy-900);
  min-width: 0;
}

.site-header .logo {
  flex: 0 1 auto;
}

.site-header .logo-full { display: block; }

.site-header .logo-full img {
  height: 64px;
  width: auto;
  max-width: min(200px, 58vw);
}

.logo img { display: block; }

.logo-full { display: block; }

.logo-full img {
  height: 52px;
  width: auto;
  max-width: min(200px, 46vw);
}

.logo-compact { display: none; }

.logo-compact img {
  height: 36px;
  width: auto;
  max-width: min(150px, 52vw);
}

.logo-on-light {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  background: var(--white);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 0 0 1px rgba(201, 212, 224, 0.6);
}

.logo-on-light .logo-full { display: block; }

.logo-on-light .logo-full img {
  height: 48px;
  width: auto;
  max-width: 220px;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 20px;
}

.nav a[aria-current="page"] {
  color: var(--teal-700);
  font-weight: 600;
}

.nav a {
  color: var(--navy-800);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--teal-700); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy-900);
  border-radius: 1px;
  position: absolute;
  left: 12px;
  right: 12px;
  width: auto;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { color: var(--white); transform: translateY(-1px); }

.btn-primary {
  background: var(--teal-700);
  color: var(--white);
}

.btn-primary:hover { background: var(--teal-800); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy-900);
}

.btn-light:hover {
  background: var(--foam-100);
  color: var(--navy-900);
}

.btn-header {
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 16px;
  min-height: 44px;
}

.btn-header:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-950);
  color: var(--white);
  padding: 72px 0 0;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media { z-index: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% 58%;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(105deg,
      rgba(5, 12, 36, 0.92) 0%,
      rgba(6, 18, 78, 0.84) 36%,
      rgba(10, 86, 184, 0.48) 66%,
      rgba(5, 12, 36, 0.28) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  flex: 1;
  padding-top: 24px;
  padding-bottom: 72px;
}

.hero-copy {
  text-shadow: 0 2px 18px rgba(5, 12, 36, 0.45);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua-300);
  margin: 0 0 16px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--aqua-400);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.95rem, 1.15rem + 4vw, 3.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.wave {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 64px;
  color: var(--foam-50);
  margin-bottom: -1px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }

.section-head {
  max-width: 38rem;
  margin-bottom: 44px;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
}

h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 0 0 12px;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Services ---------- */
.services { background: var(--foam-50); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-soft);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

a.service-card-link {
  color: inherit;
  text-decoration: none;
}

a.service-card-link .card-more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-700);
}

a.service-card-link:hover .card-more { color: var(--teal-800); }

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--foam-100);
  color: var(--teal-700);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.icon-wrap svg { width: 26px; height: 26px; }

.card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card ul {
  margin: 4px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card li + li { margin-top: 4px; }

/* ---------- Why ---------- */
.why {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
}

.why-media,
.why-overlay {
  position: absolute;
  inset: 0;
}

.why-media { z-index: 0; }

.why-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* Portrait photo: keep the sparkling water and hose in frame on wide screens */
  object-position: center 48%;
}

.why-overlay {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg,
      rgba(5, 12, 36, 0.88) 0%,
      rgba(6, 18, 78, 0.76) 36%,
      rgba(6, 18, 78, 0.52) 64%,
      rgba(5, 12, 36, 0.42) 100%);
}

.why-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.why .kicker { color: var(--aqua-300); }

.why h2 {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(5, 12, 36, 0.45);
}

.why .lede {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 12px rgba(5, 12, 36, 0.4);
}

.reasons {
  display: grid;
  gap: 16px;
}

.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 18px 18px 16px;
  background: var(--white);
  border: 1px solid rgba(201, 212, 224, 0.85);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.reason-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--aqua-300);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.why .reason { color: var(--ink); }

.reason h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--navy-900);
}

.reason p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.confirm-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--sand);
  border-left: 3px solid #c4a574;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  color: #5c4e32;
}

.confirm-note strong { color: #3d341f; }

/* ---------- Area ---------- */
.area { background: var(--navy-900); color: var(--white); }

.area .kicker { color: var(--aqua-300); }

.area h2 { color: var(--white); }

.area .lede { color: rgba(255, 255, 255, 0.75); }

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.city {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.city div { min-width: 0; }


.city-pin {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(10, 86, 184, 0.22);
  color: var(--aqua-300);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.city-pin svg { width: 18px; height: 18px; }

.city strong {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.city span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.area-foot {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.area-foot a {
  color: var(--aqua-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.area-foot a:hover,
.area-foot a:focus-visible {
  color: var(--white);
}

/* ---------- Quote ---------- */
.quote { background: var(--foam-100); }

.quote-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.quote-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.calendly-wrap {
  padding: 0;
  overflow: hidden;
  min-height: 700px;
}

.calendly-inline-widget {
  min-width: 280px;
  height: 700px;
}

@media (max-width: 700px) {
  .calendly-wrap,
  .calendly-inline-widget { min-height: 760px; height: 760px; }
}


.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px; /* 16px+ so iOS Safari does not zoom on focus */
  line-height: 1.4;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--foam-50);
  color: var(--ink);
  width: 100%;
  max-width: 100%;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--aqua-400);
  outline-offset: 1px;
  border-color: var(--teal-600);
  background: var(--white);
}

.form-note {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-status {
  display: none;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e6f6ee;
  color: #14532d;
  font-size: 0.9rem;
}

.form-status.is-visible { display: block; }

.contact-aside p { margin: 0 0 16px; color: var(--muted); }

.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--teal-700);
  margin-top: 2px;
}

.contact-list a {
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover { color: var(--teal-700); }

.contact-list span {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { background: var(--white); }

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 800px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--foam-50);
  padding: 4px 16px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy-900);
  padding: 14px 0;
  min-height: 44px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--teal-700);
  border-bottom: 2px solid var(--teal-700);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-top: -4px;
}

.faq-list details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-list details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo { margin-bottom: 14px; }

.footer-brand p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua-300);
  margin: 0 0 14px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li + li { margin-top: 8px; }

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover { color: var(--aqua-300); }

.copyright {
  margin: 22px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Mobile sticky action bar (phones only) ---------- */
.mobile-cta {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .why-grid,
  .quote-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .city-grid { grid-template-columns: 1fr 1fr; }

  .hero { padding-top: 36px; min-height: 520px; }

  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(5, 12, 36, 0.88) 0%,
        rgba(6, 18, 78, 0.82) 48%,
        rgba(10, 86, 184, 0.62) 100%);
  }

  .hero-media img { object-position: 58% 62%; }

  .why-overlay {
    background:
      linear-gradient(180deg,
        rgba(5, 12, 36, 0.90) 0%,
        rgba(6, 18, 78, 0.80) 42%,
        rgba(5, 12, 36, 0.68) 100%);
  }

  .why-media img { object-position: center 42%; }

  section { padding: 64px 0; }

  /* Hamburger nav from tablet down so 768 isn't cramped */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .header-inner { gap: 12px; }

  .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 0 12px;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 120;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--foam-100);
    font-size: 1.05rem;
  }

  .nav a:last-child { border-bottom: 0; }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(5, 12, 36, 0.45);
    z-index: 90;
  }

  .site-header { z-index: 110; }
}

@media (max-width: 720px) {
  :root {
    --header-h: 70px;
    --mobile-cta-h: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: var(--mobile-cta-h);
  }

  .wrap { width: min(var(--max), calc(100% - 32px)); }

  .header-inner { min-height: var(--header-h); gap: 8px; }

  .site-header .logo-full { display: block; }
  .site-header .logo-full img {
    height: 48px;
    width: auto;
    max-width: min(170px, 62vw);
  }
  .logo-on-light .logo-full { display: block; }
  .logo-on-light .logo-compact { display: none; }
  .logo-compact img { height: 34px; }
  .logo-on-light .logo-full img { height: 40px; }

  /* Call lives in the sticky bar on phones — keep the header compact */
  .header-actions .btn-header { display: none; }

  .service-grid,
  .city-grid,
  .form-row { grid-template-columns: 1fr; }

  .hero {
    min-height: 0;
    padding: 28px 0 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 8px;
    padding-bottom: 36px;
  }

  .hero-lead {
    font-size: 1.05rem;
    margin-bottom: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-media img { object-position: 54% 64%; }

  section { padding: 52px 0; }

  h2 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.4rem); }

  .quote-panel { padding: 20px 16px; border-radius: 18px; }

  .faq-list { max-width: none; }

  .faq-list details { padding: 2px 14px; }

  .site-footer { padding: 40px 0 calc(28px + 8px); }

  .site-footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(244, 247, 251, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(6, 18, 78, 0.35);
  }

  .mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
  }

  .mobile-cta-call {
    background: var(--teal-700);
    color: var(--white);
  }

  .mobile-cta-call:hover { color: var(--white); background: var(--teal-800); }

  .mobile-cta-quote {
    background: var(--navy-900);
    color: var(--white);
  }

  .mobile-cta-quote:hover { color: var(--white); background: var(--navy-800); }
}

@media (max-width: 380px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }

  .mobile-cta { grid-template-columns: 0.8fr 1.2fr; gap: 8px; padding-left: 12px; padding-right: 12px; }
  .mobile-cta-btn { padding: 10px 10px; font-size: 0.9rem; white-space: nowrap; }

  .eyebrow { letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card, .site-header, .nav, .nav-toggle span, .faq-list summary::after {
    transition: none;
  }
  .btn:hover, .service-card:hover { transform: none; }
}

/* ---------- Drain and Fill page ---------- */
.page-hero {
  min-height: 520px;
}

.intro-split {
  background: var(--white);
  padding: 88px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.intro-grid .section-head {
  margin-bottom: 0;
  max-width: none;
}

.page-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.page-copy p { margin: 0 0 1em; }

.page-copy p:last-child { margin-bottom: 0; }

.intro-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.intro-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

.signs { background: var(--foam-50); padding: 88px 0; }

.sign-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 800px;
}

.sign-list li {
  position: relative;
  padding: 16px 18px 16px 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
}

.sign-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-700);
}

.includes { background: var(--white); padding: 88px 0; }

.include-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  counter-reset: include;
}

.include-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 20px 22px;
  background: var(--foam-50);
  border: 1px solid var(--line);
  border-radius: 16px;
  counter-increment: include;
}

.include-list li::before {
  content: counter(include, decimal-leading-zero);
  grid-row: 1 / span 2;
  align-self: start;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--teal-700);
  font-size: 0.9rem;
  padding-top: 3px;
}

.include-list strong {
  color: var(--navy-900);
  font-size: 1.05rem;
}

.include-list span {
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 4px;
}

.page-cta {
  background: var(--navy-900);
  color: var(--white);
  padding: 72px 0;
}

.page-cta .kicker { color: var(--aqua-400); }

.page-cta h2 { color: var(--white); }

.page-cta .lede { color: rgba(255, 255, 255, 0.78); }

.page-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.page-cta-inner .section-head,
.page-cta-inner > div:first-child { max-width: 38rem; }

.page-cta .hero-actions { margin: 0; }

.page-cta .btn-header {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.page-cta .btn-header:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

@media (max-width: 900px) {
  .intro-grid,
  .include-list { grid-template-columns: 1fr; }

  .intro-split,
  .signs,
  .includes { padding: 64px 0; }

  .page-hero { min-height: 420px; }
}

@media (max-width: 720px) {
  .intro-split,
  .signs,
  .includes { padding: 52px 0; }

  .page-cta { padding: 48px 0; }

  .page-cta .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .page-cta .btn { width: 100%; }
}

.include-photo { max-width: 820px; margin: 0 auto 36px; }
.include-photo img { width: 100%; height: auto; display: block; }

/* Services dropdown */
.nav-item.has-sub { position: relative; display: flex; align-items: center; }
.nav-parent { display: inline-flex; align-items: center; gap: 5px; }
.nav-parent .caret { transition: transform .2s ease; }
.sub-nav {
  position: absolute; top: 100%; left: -14px; min-width: 220px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; margin-top: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 130;
}
.sub-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sub-nav a { display: block; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.sub-nav a:hover, .sub-nav a:focus-visible { background: var(--foam-100); }
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }
@media (max-width: 900px) {
  .nav-item.has-sub { display: block; }
  .nav-parent .caret { display: none; }
  .sub-nav {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; min-width: 0; background: transparent;
  }
  .sub-nav::before { display: none; }
  .nav .sub-nav a { padding-left: 44px; font-size: 1rem; border-radius: 0; }
  .nav .sub-nav a::before { content: "\2013"; margin-right: 8px; opacity: .6; }
}


/* Breadcrumbs on service pages */
.breadcrumbs {
  margin: 0 0 14px;
  font-size: 0.85rem;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  opacity: 0.65;
}
.page-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}
.page-hero .breadcrumbs a:hover,
.page-hero .breadcrumbs a:focus-visible {
  color: var(--aqua-300);
  text-decoration: underline;
}
.breadcrumbs li[aria-current="page"] {
  color: rgba(255, 255, 255, 0.92);
}

/* ------------------------------------------------------------------ */
/* Landing page: weekly pool service (Google Ads)                     */
/* All rules are scoped to body.lp so the main site is unchanged.     */
/* ------------------------------------------------------------------ */
.lp .lp-header .logo {
  max-width: min(42vw, 200px);
}
.lp .lp-hero {
  min-height: 0;
}
.lp .lp-hero .hero-grid {
  grid-template-columns: 1fr;
  max-width: 780px;
  padding-top: 28px;
  padding-bottom: 48px;
}
.lp .lp-hero .hero-copy {
  max-width: 40rem;
}
.lp .lp-how {
  padding: 72px 0;
  background: var(--white, #fff);
}
.lp .lp-steps {
  counter-reset: lpstep;
}
.lp .lp-steps li {
  list-style: none;
  position: relative;
  padding-left: 3.1rem;
}
.lp .lp-steps li::before {
  counter-increment: lpstep;
  content: counter(lpstep);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--navy-800, #0a1a5c);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp .lp-reasons {
  display: grid;
  gap: 20px;
}
.lp .footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
}

@media (min-width: 900px) {
  .lp .lp-hero {
    min-height: calc(100svh - var(--header-h));
  }
  .lp .lp-hero .hero-grid {
    align-items: center;
    padding-top: 48px;
    padding-bottom: 72px;
  }
}

@media (max-width: 900px) {
  .lp .footer-grid {
    grid-template-columns: 1fr;
  }
  /* Keep the header call button visible on this page (main site hides it). */
  .lp .header-actions .btn-header {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .lp .lp-hero {
    min-height: 0;
  }
  .lp .lp-hero .hero-grid {
    padding-top: 16px;
    padding-bottom: 28px;
  }
  .lp .lp-hero h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.25rem);
    line-height: 1.15;
    margin: 8px 0 10px;
  }
  .lp .lp-hero .eyebrow {
    margin-bottom: 0;
  }
  .lp .lp-hero .hero-lead {
    font-size: 1rem;
    margin-bottom: 16px;
  }
  .lp .lp-hero .hero-actions {
    gap: 8px;
  }
  .lp .lp-hero .wave {
    height: 36px;
  }
}

@media (max-width: 420px) {
  .lp .lp-phone-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .lp .header-actions .btn-header {
    padding: 8px 14px;
  }
}
