/* The Waterboy STA — implemented from "Waterboy Homepage Desktop.dc.html"
   (desktop) and "Waterboy Homepage.dc.html" (mobile breakpoint). */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #F7F1E3;
}

#wb-root {
  --bg: #F7F1E3;
  --ink: #123C6D;
  --accent: #E4572E;
  --wave-back: #4CC3E0;
  --wave-front: #4CC3E0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  min-height: 100vh;
  overflow-x: clip;
  overflow-anchor: none;
  position: relative;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: 'Alfa Slab One', serif; font-weight: 400; margin: 0; }
p, ul, ol, figure, blockquote { margin: 0; }
.script { font-family: 'Pacifico', cursive; font-weight: 400; color: var(--accent); }
.h2o { font-size: 0.65em; }

section, footer { scroll-margin-top: 84px; }

@keyframes wb-bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes wb-wave {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 3px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.nav--scrolled { background: var(--bg); border-bottom-color: var(--ink); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.nav-brand { position: relative; height: 46px; display: flex; align-items: center; }
.nav-brand-text { display: none; }
.nav-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.nav--scrolled .nav-brand-logo { opacity: 1; transform: none; }
.nav-toggle {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 3px 3px 0 var(--accent);
  padding: 0;
}
.nav-toggle span { width: 22px; height: 3px; border-radius: 2px; background: var(--ink); }
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 40px;
  margin-top: 10px;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  width: 260px;
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--accent);
}
.nav.menu-open .nav-menu { display: flex; }
.nav-menu a {
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  text-transform: lowercase;
}
.nav-menu a.cta { background: var(--accent); color: var(--bg); }

/* ============ HERO ============ */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 40px 48px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  align-content: center;
}
.sun {
  position: absolute;
  top: 28px;
  left: 36px;
  width: 200px;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}
.nav--scrolled + main .sun { opacity: 0; }
.hero-logo {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  animation: wb-bob 5.5s ease-in-out infinite;
  box-shadow: 0 24px 44px -22px rgba(18, 60, 109, 0.45);
  justify-self: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-title { font-size: 62px; line-height: 1.06; text-wrap: balance; }
.hero-tag { font-size: 30px; }
.badge {
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 8px; }
.btn { border-radius: 999px; font-weight: 800; font-size: 17px; text-align: center; }
.btn-solid { background: var(--accent); color: var(--bg); padding: 16px 28px; box-shadow: 4px 4px 0 var(--ink); }
.btn-outline { border: 3px solid var(--ink); color: var(--ink); padding: 13px 28px; }
.hero-wave { display: none; }

/* ============ WAVES DIVIDER ============ */
.waves { position: relative; height: 150px; overflow: hidden; }
.sail { position: absolute; top: 4px; left: -140px; width: 110px; z-index: 2; pointer-events: none; }
.sail img, .drift img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 6px rgba(18, 60, 109, 0.25)); }
.wave-layer { position: absolute; left: 0; width: 200%; display: flex; }
.wave-layer svg { width: 50%; height: 80px; flex-shrink: 0; }
.wave-a { bottom: 38px; animation: wb-wave 18s linear infinite; opacity: 0.35; }
.wave-b { bottom: 19px; left: -80px; animation: wb-wave 12s linear infinite; opacity: 0.65; }
.wave-c { bottom: 0; left: -30px; animation: wb-wave 8s linear infinite; }

/* ============ SECTION HEADERS ============ */
.sec-head { text-align: center; display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.sec-head h2 { font-size: 52px; }
.kicker { font-size: 28px; }

/* ============ SERVICES ============ */
.services {
  padding: 80px 40px 40px;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 36px 0;
}
.svc-row--flip .svc-art { order: 2; }
.svc-art .art { width: 100%; height: auto; display: block; }
.svc-icon { display: none; }
.svc-text { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.svc-text h3 { font-size: 34px; }
.svc-text p { font-size: 18px; line-height: 1.6; max-width: 46ch; }
.pill {
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 999px;
}
.mini-wave { width: 240px; align-self: center; }

/* ============ EVERY VISIT INCLUDES ============ */
.visit {
  padding: 80px 40px;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.visit-left { display: flex; flex-direction: column; gap: 16px; }
.sec-head--left { text-align: left; margin-bottom: 0; }
.visit .sec-head h2 { font-size: 44px; }
.pool-scene { position: relative; height: 240px; }
.pool-scene svg { width: 100%; height: 100%; overflow: visible; }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--bg);
  font-weight: 700;
  font-size: 17px;
}
.step-num {
  background: var(--accent);
  color: var(--bg);
  font-family: 'Alfa Slab One', serif;
  font-size: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============ ABOUT AJ ============ */
.about {
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}
.about-photo { position: relative; }
.about-photo img {
  width: 360px;
  height: 430px;
  object-fit: cover;
  border: 6px solid var(--accent);
  border-radius: 26px;
  display: block;
}
.photo-slot {
  display: none;
  width: 360px;
  height: 430px;
  border: 6px solid var(--accent);
  border-radius: 26px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  background: rgba(247, 241, 227, 0.12);
}
.about-photo.no-photo img { display: none; }
.about-photo.no-photo .photo-slot { display: flex; }
.about-sticker {
  position: absolute;
  bottom: -14px;
  right: -26px;
  background: var(--accent);
  color: #123C6D;
  font-family: 'Alfa Slab One', serif;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 10px;
  transform: rotate(-6deg);
  box-shadow: 4px 4px 0 rgba(18, 60, 109, 0.5);
}
.about-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.about-copy .kicker { font-size: 26px; }
.about-bio { font-size: 18px; line-height: 1.65; max-width: 56ch; }

/* ============ SERVICE AREA ============ */
.area {
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  position: relative;
}
.drift { position: absolute; top: 56px; right: 0; width: 104px; pointer-events: none; }
.area h2 { font-size: 48px; line-height: 1.1; }
.chips {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}
.chips li {
  background: var(--ink);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
}
.area-note { font-size: 15px; font-weight: 700; }
.area-note a { color: var(--ink); text-decoration: underline; }

/* ============ TESTIMONIALS ============ */
.reviews {
  padding: 80px 40px;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.reviews .sec-head { margin-bottom: 0; }
.reviews .sec-head h2 { font-size: 48px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: start; }
.review-card {
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotate(var(--tilt, 0deg));
}
.review-card:nth-child(1) { --tilt: -1.2deg; }
.review-card:nth-child(2) { --tilt: 1deg; }
.review-card:nth-child(3) { --tilt: -0.8deg; }
.stars { color: var(--accent); font-size: 19px; letter-spacing: 2px; }
.review-card blockquote { font-size: 16px; line-height: 1.6; }
.review-card figcaption { font-weight: 800; font-size: 14px; }

/* ============ CONTACT / FOOTER ============ */
.contact {
  padding: 88px 40px 32px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.contact-title { font-size: 48px; line-height: 1.1; text-wrap: balance; }
.contact-tag { font-size: 26px; }
.contact-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-c-solid { background: var(--accent); color: var(--ink); padding: 16px 26px; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25); }
.btn-c-outline { border: 3px solid var(--accent); color: var(--accent); padding: 13px 26px; }
.footer-meta { margin-top: 32px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; opacity: 0.8; }
.footer-name { font-family: 'Alfa Slab One', serif; font-size: 16px; }
.builder-link { text-decoration: underline; }

/* ============ REVEAL STATES (applied by main.js) ============ */
.rv-pending { opacity: 0; transform: translateY(26px) rotate(var(--tilt, 0deg)); }
.rv-shown {
  opacity: 1;
  transform: rotate(var(--tilt, 0deg));
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ MOBILE: desktop design, reflowed (≤767px) ============
   Keeps the desktop layout language — big art scenes, scrub animations,
   transparent nav, floating menu — and stacks/scales it for small screens.
   The mobile-design card variant is preserved in mobile-cards.css. */
@media (max-width: 767px) {
  section, footer { scroll-margin-top: 72px; }

  .nav-inner { padding: 12px 16px; }
  .nav-menu { right: 16px; }

  .hero {
    display: flex;
    flex-direction: column;
    padding: 48px 24px 32px;
    gap: 28px;
    min-height: 0;
  }
  .hero-logo { max-width: 280px; }
  .sun { top: 12px; left: 12px; width: 96px; }
  .hero-copy { gap: 16px; }
  .hero-title { font-size: 44px; }
  .hero-tag { font-size: 26px; }
  .hero-ctas { flex-wrap: wrap; }

  .waves { height: 130px; }

  .sec-head h2 { font-size: 38px; }
  .kicker { font-size: 24px; }

  .services { padding: 64px 24px 32px; }
  .svc-row { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .svc-row--flip .svc-art { order: 0; }
  .svc-art .art { max-width: 340px; margin: 0 auto; }
  .svc-text h3 { font-size: 27px; }
  .svc-text p { font-size: 16px; }

  .visit { grid-template-columns: 1fr; gap: 32px; padding: 64px 24px; }
  .visit .sec-head h2 { font-size: 36px; }
  .pool-scene { height: 200px; }
  .steps li { font-size: 15px; padding: 12px 18px; gap: 12px; }
  .step-num { width: 30px; height: 30px; font-size: 14px; }

  .about { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px; }
  .about-photo { justify-self: center; }
  .about-photo img, .photo-slot { width: min(342px, 100%); height: auto; aspect-ratio: 360 / 430; }
  .about-copy .kicker { font-size: 24px; }
  .about-bio { font-size: 16px; }

  .area { padding: 64px 24px; }
  .area h2 { font-size: 38px; }
  .drift { top: 40px; right: 8px; width: 84px; }

  .reviews { padding: 64px 24px; }
  .reviews .sec-head h2 { font-size: 38px; }
  .review-grid { grid-template-columns: 1fr; }

  .contact { padding: 72px 24px 28px; }
  .contact-title { font-size: 38px; }
  .contact-tag { font-size: 22px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo, .wave-layer { animation: none; }
  .rv-pending { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
  .nav, .nav-brand-logo, .nav-brand-text, .rv-shown { transition: none; }
}
