:root {
  --aqua: #00b7c3;
  --aqua-deep: #006b9f;
  --navy: #0a3344;
  --ink: #14333e;
  --muted: #5a727c;
  --foam: #eef8fb;
  --sand: #f7f5f1;
  --line: rgba(10, 51, 68, 0.1);
  --white: #fff;
  --wa: #128c7e;
  --wa-dark: #0b6b60;
  --radius: 1rem;
  --shadow: 0 12px 40px rgba(10, 51, 68, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }

/* One logo file = icon + wordmark + Pool Care (no mixed styles) */
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand-logo {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(300px, 58vw);
  object-fit: contain;
  object-position: left center;
  background: transparent;
}
.brand-logo--footer {
  height: 52px;
  max-width: min(260px, 70vw);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 245, 241, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  padding: 0.45rem 0;
}
.nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy);
}
.nav a:hover { color: var(--aqua-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.84rem; }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55);
}
.btn-dark-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(10,51,68,.2);
}

/* Hero slider — background-image, fixed height, stacked fades */
.hero-slider {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #0a3344;
  height: clamp(420px, 70vh, 640px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 0 5.5rem;
  background-color: #0a3344;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slide__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(6, 24, 32, 0.82) 0%, rgba(8, 55, 70, 0.55) 55%, rgba(0, 140, 155, 0.22) 100%),
    linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.48) 100%);
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  padding-bottom: 0.5rem;
}
.eyebrow {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-weight: 600;
  font-size: 0.82rem;
}
.eyebrow.dark {
  background: rgba(0, 107, 159, 0.1);
  color: var(--aqua-deep);
}
.hero-slide h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 15ch;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.lead {
  max-width: 34rem;
  color: rgba(255,255,255,.92);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.hero-slider__controls {
  position: absolute;
  left: max(1rem, calc((100% - 1100px) / 2));
  bottom: 1.25rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.slider-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.slider-btn:hover { background: rgba(255,255,255,.32); }
.slider-dots { display: flex; gap: 0.45rem; align-items: center; }
.slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
}
.slider-dot.is-active {
  background: #fff;
  width: 1.4rem;
}

.section { padding: 4.25rem 0; }
.section-alt { background: #efebe2; }
.section-head { max-width: 36rem; margin-bottom: 1.75rem; }
.section-head h2,
.split h2,
.cta-band h2,
.section-title {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.section-head p,
.lead-sm { color: var(--muted); }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card h2, .card h3 {
  color: var(--aqua-deep);
  margin: 0.75rem 0 0.35rem;
  font-size: 1.08rem;
}
.card p { color: var(--muted); font-size: 0.94rem; }
.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.75rem;
}
.service-card .link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--aqua-deep);
}

.plans {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.plan {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--line);
}
.plan.featured {
  background: var(--navy);
  color: var(--white);
  border-color: transparent;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.plan p { margin-bottom: 1rem; color: inherit; opacity: .9; }
.plan a { font-weight: 700; color: var(--aqua-deep); }
.plan.featured a { color: #7dd3fc; }
.badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(125,211,252,.18);
  font-size: 0.75rem;
  font-weight: 700;
}

.split {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}
.inline-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.2rem;
}
.bullets { list-style: none; display: grid; gap: 0.65rem; margin-top: 1rem; }
.bullets li {
  background: var(--white);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  font-weight: 600;
}

.page-hero {
  padding: 2.75rem 0 1.5rem;
  background: linear-gradient(180deg, #e7f4f8, var(--sand));
}
.page-hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 16ch;
  margin-bottom: 0.7rem;
}
.page-hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.page-hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.2rem;
  max-height: 360px;
}
.prose { max-width: 720px; }
.prose p { margin-bottom: 1rem; color: var(--muted); }
.prose h2 {
  font-family: Fraunces, Georgia, serif;
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
}
.check-list { list-style: none; display: grid; gap: 0.5rem; margin-top: 1rem; }
.check-list li {
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.faq { display: grid; gap: 0.6rem; max-width: 760px; }
.faq details {
  background: var(--white);
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.faq details p { margin-top: 0.5rem; color: var(--muted); }

.cta-band {
  background: linear-gradient(120deg, #0e7490, #155e75);
  color: var(--white);
  padding: 2.75rem 0;
}
.cta-band h2 { color: var(--white); }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
}
.cta-inner p { color: rgba(255,255,255,.88); max-width: 32rem; }

.footer {
  padding: 2.75rem 0 6rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
  background: #f3f0ea;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.footer-brand .brand { margin-bottom: 0.75rem; }
.footer-brand p { max-width: 26rem; }
.footer-grid strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.footer-grid a,
.footer-grid span {
  display: block;
  margin-top: 0.35rem;
}
.footer-grid a:hover { color: var(--aqua-deep); }

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(7,94,84,.28);
}

.blog-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, 1fr);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}
.blog-card h2 {
  font-size: 1.15rem;
  margin: 0.35rem 0 0.45rem;
  color: var(--navy);
}
.blog-date {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.article-body a { color: var(--aqua-deep); text-decoration: underline; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .page-hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

@media (max-width: 899px) {
  .cards,
  .plans,
  .split,
  .footer-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    height: clamp(460px, 78vh, 620px);
  }
  .hero-slide {
    padding: 0 0 5rem;
  }
  .hero-slide h1 { max-width: 100%; }
  .hero-slider__controls {
    left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
