/* ===========================================================
   Funky 2 Fresh Pool Service — design tokens
   navy: brand backdrop (matches logo circle)
   pool-blue: primary accent, water
   lime: FUNKY text, secondary accent
   pink: the "2", pop accent, CTAs
   sand: warm light section bg
=========================================================== */
:root {
  --navy: #0a2647;
  --navy-deep: #071a33;
  --pool-blue: #29c5f6;
  --pool-blue-dark: #0e9dcc;
  --lime: #a4d539;
  --pink: #ef3f7d;
  --sand: #fbf6ec;
  --white: #ffffff;
  --ink: #0a2647;
  --ink-soft: #3d5876;

  --font-display: "Bungee", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(10, 38, 71, 0.15);
  --shadow-pop: 0 6px 0 rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--navy);
}

.eyebrow {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--pink);
  display: block;
  margin-bottom: -.2em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.pink { color: var(--pink); }
.lime { color: var(--lime); }
.blue { color: var(--pool-blue); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .03em;
  padding: 16px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(3px); box-shadow: none; }

.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  background: var(--pool-blue);
  color: var(--navy-deep);
  box-shadow: 0 6px 0 rgba(0,0,0,.12);
}
.btn-secondary:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 4px solid var(--pool-blue);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
}
.nav-logo img { height: 52px; width: auto; border-radius: 50%; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  color: var(--white);
}
.nav-links a { opacity: .85; transition: opacity .15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--pool-blue); }
.nav-call {
  background: var(--lime);
  color: var(--navy-deep);
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 700;
}
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 30px;
    gap: 18px;
    display: none;
    border-bottom: 4px solid var(--pool-blue);
  }
  .nav-links.open { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #123a63 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 70px 0 130px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(41,197,246,.25), transparent 45%),
    radial-gradient(circle at 5% 85%, rgba(164,213,57,.18), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--lime); }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
}
.hero h1 .stroke {
  -webkit-text-stroke: 2px var(--pool-blue);
}
.hero p.lead {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: #cfe3f2;
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero-badges {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-badges div {
  font-family: var(--font-display);
  font-size: .78rem;
  color: var(--navy-deep);
  background: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.hero-badges span { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: .72rem; margin-top: 2px; }

.hero-logo {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-logo img {
  width: min(100%, 380px);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.45));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo img { animation: none; }
}

.wave-divider {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 90px; display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
}

/* ===== Section shells ===== */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-alt { background: var(--white); }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  border-bottom: 6px solid var(--pool-blue);
  transition: transform .2s ease;
}
.service-card:nth-child(2n) { border-bottom-color: var(--lime); }
.service-card:nth-child(3n) { border-bottom-color: var(--pink); }
.service-card:hover { transform: translateY(-6px); }
.service-card .ic {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--sand);
  margin-bottom: 16px;
}
.service-card .ic svg { width: 28px; height: 28px; stroke: var(--navy); }
.service-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); }
.service-card p { margin: 0; font-size: .95rem; }
.service-card.cta-card {
  background: var(--navy);
  color: var(--white);
  border-bottom-color: var(--pink);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card.cta-card h3 { color: var(--white); }
.service-card.cta-card p { color: #cfe3f2; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== Gallery / before-after slider ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
.gallery-item { }
.gallery-item h3 {
  font-family: var(--font-script);
  color: var(--navy);
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.ba-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  user-select: none;
  touch-action: pan-y;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-slider .ba-after { z-index: 1; }
.ba-slider .ba-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-tag {
  position: absolute;
  top: 14px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: .7rem;
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--white);
}
.ba-tag.before-tag { left: 14px; background: rgba(10,38,71,.75); }
.ba-tag.after-tag { right: 14px; background: var(--pink); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 0;
  z-index: 4;
  pointer-events: none;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -1.5px;
  width: 3px;
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(0,0,0,.15);
}
.ba-handle .grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  font-size: 1.1rem;
  color: var(--pool-blue-dark);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.gallery-showcase {
  margin-top: 46px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.gallery-showcase img { width: 100%; max-height: 420px; object-fit: cover; }
.gallery-showcase figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(10,38,71,.85), transparent);
  color: var(--white);
  font-family: var(--font-script);
  font-size: 1.6rem;
  padding: 40px 26px 16px;
}

@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.about-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.about-card .eyebrow { color: var(--lime); }
.about-card h2 { color: var(--white); }
.signature {
  font-family: var(--font-script);
  color: var(--pool-blue);
  font-size: 1.8rem;
  margin-top: 20px;
}
.about-facts {
  display: grid;
  gap: 18px;
}
.about-fact {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.about-fact .ic {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
}
.about-fact .ic svg { width: 22px; height: 22px; stroke: var(--navy); }
.about-fact h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: .82rem; color: var(--navy); }
.about-fact p { margin: 0; font-size: .92rem; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--pool-blue), var(--pool-blue-dark));
  color: var(--navy-deep);
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: var(--navy-deep); }
.cta-band .btn-primary { background: var(--navy); color: var(--white); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: #b9cbdc;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo img { height: 50px; width: 50px; border-radius: 50%; }
.footer-logo span { font-family: var(--font-display); color: var(--white); font-size: 1rem; }
.site-footer h4 { font-family: var(--font-display); color: var(--white); font-size: .82rem; margin-bottom: 16px; }
.site-footer a { display: block; margin-bottom: 10px; opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--pool-blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-credit {
  text-align: center;
  font-size: .72rem;
  opacity: .55;
  margin-top: 14px;
}
.footer-credit a { text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { opacity: 1; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Contact page ===== */
.contact-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 90px;
  position: relative;
  overflow: hidden;
}
.contact-hero .eyebrow { color: var(--lime); }
.contact-hero h1 { color: var(--white); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.contact-card h2 { font-size: 1.5rem; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 2px solid #e1e9f0;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--sand);
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pool-blue);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: -6px; }

.info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.info-card h2 { color: var(--white); font-size: 1.5rem; }
.info-list { display: grid; gap: 22px; margin-top: 26px; }
.info-list .row { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.info-list .ic svg { width: 22px; height: 22px; stroke: var(--pool-blue); }
.info-list h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: .78rem; }
.info-list p, .info-list a { margin: 0; color: #cfe3f2; font-size: .95rem; }
.info-card .signature { margin-top: 30px; }

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; margin-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .contact-hero { padding-bottom: 50px; }
}
