/* =========================================================
   BINTANG JAYA POOL PAMEKASAN — STYLESHEET
   Struktur file:
   1. Reset & tokens (warna, font, spacing)
   2. Utilities & elemen umum (container, tombol, label)
   3. Navbar
   4. Hero
   5. Mandi Busa, Tentang, Fasilitas
   6. Harga, Sewa Kolam, Ladies Day
   7. Les Renang
   8. Galeri + Lightbox
   9. Lokasi, CTA akhir, Footer
   10. Animasi & responsive
   ========================================================= */

/* ---------- 1. RESET & TOKENS ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Warna terinspirasi air kolam */
  --color-deep: #0B4F6C;        /* biru dalam - teks & elemen gelap */
  --color-primary: #1477A6;     /* biru utama */
  --color-primary-light: #3FA9D4;
  --color-aqua: #7FD4E0;        /* aksen tosca/aqua lembut */
  --color-sun: #FF8C42;         /* aksen hangat (matahari/keceriaan) untuk CTA */
  --color-sun-dark: #E5732A;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F3FAFC;
  --color-text: #14313D;
  --color-text-muted: #4C6B77;
  --color-border: #DCEAEF;

  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 30px rgba(11, 79, 108, 0.12);
  --container-w: 1160px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--color-deep); line-height: 1.15; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 2. UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.section-label--light { color: var(--color-deep);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 900;
  max-width: 20ch;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--accent { background: var(--color-sun); color: #fff; box-shadow: 0 8px 20px rgba(255,140,66,0.35); }
.btn--accent:hover { background: var(--color-sun-dark); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1.5px solid rgba(255,255,255,0.6); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,0.24); }
.btn--ghost-dark { background: rgba(11,79,108,0.06); color: var(--color-deep); border: 1.5px solid var(--color-deep); }
.btn--ghost-dark:hover { background: rgba(11,79,108,0.12); }
.btn--outline { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); border-radius: 999px; padding: 10px 20px; font-size: 0.9rem; width: 100%; }
.btn--outline:hover { background: var(--color-primary); color: #fff; }

/* Placeholder foto: dipakai sebagai fallback background sebelum <img> selesai dimuat. */
.img-fallback-bg {
  background-color: var(--color-bg-soft);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(127,212,224,0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(20,119,166,0.25) 0%, transparent 50%),
    linear-gradient(135deg, #DFF3F7 0%, #C7E8EF 100%);
}

/* ---------- 3. NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.navbar.is-scrolled { border-color: var(--color-border); box-shadow: 0 4px 20px rgba(11,79,108,0.06); }

.navbar__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-deep);
}
.navbar__logo span { color: var(--color-primary); }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
.navbar__nav a:not(.navbar__cta) { color: var(--color-text); position: relative; }
.navbar__nav a:not(.navbar__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--color-primary); transition: width 0.2s ease;
}
.navbar__nav a:not(.navbar__cta):hover::after { width: 100%; }

.navbar__cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.navbar__cta:hover { background: var(--color-deep); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.navbar__toggle span { width: 24px; height: 2.5px; background: var(--color-deep); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---------- 4. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: linear-gradient(160deg, #0B4F6C 0%, #14709E 55%, #1FA0C9 100%);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,38,52,0.55) 0%, rgba(6,38,52,0.25) 45%, rgba(6,38,52,0.65) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 140px 24px 100px;
  color: #fff;
}
.hero__eyebrow { font-weight: 600; color: var(--color-aqua); margin-bottom: 14px; letter-spacing: 0.02em; }
.hero__title {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}
.hero__tagline { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: rgba(255,255,255,0.92); max-width: 32ch; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; z-index: 2; }

/* ---------- 5. TENTANG & FASILITAS ---------- */
.about, .facilities, .pricing, .rental, .gallery, .lessons, .location { padding: 10px 0; }
.about { background: var(--color-bg); }

.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about__photo { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.about__text p { color: var(--color-text-muted); margin-bottom: 8px; max-width: 52ch; }

.facilities { background: var(--color-bg-soft); }
.facilities__intro { color: var(--color-text-muted); max-width: 62ch; }
.facilities__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.facility-card__img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.facility-card figcaption { margin-top: 14px; font-family: var(--font-display); font-weight: 700; color: var(--color-deep); }

/* ---------- VIDEO ---------- */
.videos { padding: 80px 0; }
.videos__intro { color: var(--color-text-muted); max-width: 60ch; margin-bottom: 36px; }
.videos__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}
.video-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.video-card--featured { grid-row: 1 / 3; }
.video-card--featured .video-card__play { aspect-ratio: 4/3; }

.video-card__play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #0B4F6C;
  overflow: hidden;
}
.video-card__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.video-card__play:hover img { transform: scale(1.04); }
.video-card__play::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,79,108,0) 40%, rgba(11,79,108,0.55) 100%);
}
.video-card__icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
  z-index: 1;
}
.video-card__icon svg { width: 26px; height: 26px; color: var(--color-primary); margin-left: 3px; }
.video-card__play:hover .video-card__icon { transform: translate(-50%, -50%) scale(1.08); }

.video-card__body { padding: 18px 20px 22px; }
.video-card__body h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--color-deep); margin-bottom: 6px; }
.video-card__body p { color: var(--color-text-muted); font-size: 0.92rem; }

.video-card video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }
.video-card--featured video { aspect-ratio: 4/3; }

/* ---------- MANDI BUSA ---------- */
.foam { padding: 70px 0 90px; background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%); }
.foam__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.foam__intro { color: var(--color-text-muted); max-width: 46ch; margin-bottom: 18px; }
.foam__badge {
  display: inline-block;
  background: rgba(20,119,166,0.1);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.foam__schedule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 420px; }
.foam__time {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 6px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.foam__time:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--color-aqua); }
.foam__time span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-deep);
  margin-bottom: 2px;
}
.foam__sessions { margin: 14px 0 22px; font-weight: 700; color: var(--color-primary); font-size: 0.92rem; }
.foam__location {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--color-text-muted); font-size: 0.9rem;
  max-width: 46ch; margin-bottom: 26px;
}
.foam__location svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--color-primary); }

.foam__visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3.4; }
.foam__visual img { width: 100%; height: 100%; object-fit: cover; }
.foam__bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.15) 70%);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.foam__bubble--a { width: 64px; height: 64px; top: 12%; left: 10%; }
.foam__bubble--b { width: 38px; height: 38px; top: 55%; left: 72%; }
.foam__bubble--c { width: 26px; height: 26px; top: 75%; left: 22%; }

/* ---------- 6. HARGA, SEWA, LADIES DAY ---------- */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.price-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.price-card--highlight { background: var(--color-deep); border-color: var(--color-deep); }
.price-card--highlight .price-card__amount,
.price-card--highlight .price-card__title { color: #fff; }
.price-card--highlight .price-card__desc { color: rgba(255,255,255,0.75); }
.price-card__amount { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.price-card__title { font-weight: 700; color: var(--color-deep); }
.price-card__desc { font-size: 0.9rem; color: var(--color-text-muted); }

.rental { background: var(--color-bg-soft); }
.rental__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.rental-card {
  background: #fff; border-radius: var(--radius-md); padding: 28px 24px;
  border-top: 4px solid var(--color-primary-light);
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-soft);
}
.rental-card__label { font-family: var(--font-display); font-weight: 700; color: var(--color-primary); font-size: 0.95rem; }
.rental-card__amount { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--color-deep); }
.rental-card__time { color: var(--color-text-muted); font-size: 0.92rem; }
.rental__cta { margin-top: 36px; }

.ladies-day {
  background: var(--color-aqua);
  padding: 56px 0;
}
.ladies-day__box { text-align: center; }
.ladies-day h2 { color: #fff; margin-left: auto; margin-right: auto; }
.ladies-day__time { color: rgba(255,255,255,0.95); font-weight: 600; font-size: 1.1rem; }

/* ---------- 7. GALERI + LIGHTBOX ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.gallery__item {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__item:hover { transform: scale(1.02); }
@media (hover: hover) {
  .gallery__item::after {
    content: ""; position: absolute; inset: 0; background: rgba(11,79,108,0.15); opacity: 0; transition: opacity 0.2s ease;
  }
  .gallery__item:hover::after { opacity: 1; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,20,28,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  padding: 24px;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img { width: min(90vw, 800px); max-height: 85vh; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); }
.lightbox__close { position: absolute; top: 24px; right: 28px; color: #fff; font-size: 2.4rem; line-height: 1; }

/* ---------- 8. LES RENANG ---------- */
.lessons__intro { color: var(--color-text-muted); max-width: 62ch; margin-bottom: 36px; }
.lessons__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.coach-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.coach-card h3 { font-size: 1.15rem; }
.coach-card ul { display: flex; flex-direction: column; gap: 6px; color: var(--color-text-muted); font-size: 0.92rem; }
.lessons__note { margin-top: 28px; color: var(--color-text-muted); font-size: 0.92rem; }

/* ---------- 9. LOKASI, CTA, FOOTER ---------- */
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.location__address { color: var(--color-text-muted); margin: 10px 0 26px; }
.location__map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3; }
.location__map { width: 100%; height: 100%; display: block; }

.final-cta { background: linear-gradient(160deg, var(--color-deep) 0%, var(--color-primary) 100%); padding: 90px 0; }
.final-cta__box { text-align: center; color: #fff; }
.final-cta h2 { color: #fff; margin: 0 auto 12px; }
.final-cta p { color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.final-cta__buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.footer { background: #0A3547; color: rgba(255,255,255,0.85); padding: 56px 0 24px; }
.footer__grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__brand { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.footer__grid a:hover { color: #fff; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__copy { text-align: center; padding-top: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ---------- FLOATING WHATSAPP ---------- */
.floating-wa {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,0.45);
  transition: transform 0.2s ease;
}
.floating-wa:hover { transform: scale(1.08); }
.floating-wa svg { width: 30px; height: 30px; }

/* ---------- SCROLL REVEAL (satu momen halus per section) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 10. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .about__grid, .location__grid, .foam__grid { grid-template-columns: 1fr; }
  .about__photo { order: -1; }
  .foam__visual { order: -1; aspect-ratio: 16/10; }
  .facilities__grid, .pricing__grid, .rental__grid, .lessons__grid { grid-template-columns: 1fr 1fr; }
  .videos__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .video-card--featured { grid-row: auto; }
  .video-card--featured .video-card__play, .video-card--featured video { aspect-ratio: 16/9; }
}

@media (max-width: 720px) {
  .navbar__nav {
    position: fixed; top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-130%);
    transition: transform 0.28s ease;
  }
  .navbar__nav.is-open { transform: translateY(0); }
  .navbar__nav a { padding: 6px 0; }
  .navbar__cta { text-align: center; }
  .navbar__toggle { display: flex; }

  .pricing__grid, .rental__grid, .lessons__grid, .facilities__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__content { padding-top: 120px; }
  .foam__schedule { grid-template-columns: repeat(4, 1fr); max-width: 100%; }
}

@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .btn { width: 100%; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}