:root {
  /* Night palette sampled from the brand poster: near-black base, warm
     charcoal surfaces, gold accents, and the pool's teal kept for the
     activity pills so the schedule stays readable at a glance. */
  --night-950: #070b0d;
  --night-900: #0c1315;
  --night-850: #111a1d;
  --night-800: #162126;
  --night-700: #1f2d33;
  --night-600: #2b3c44;

  --gold-400: #e8c476;
  --gold-500: #d4a94f;
  --gold-600: #b8893a;
  --gold-soft: rgba(212, 169, 79, .14);
  --gold-line: rgba(212, 169, 79, .28);

  --lagoon-400: #3bbec0;
  --lagoon-200: #ace9e7;

  --cream: #f6f1e7;
  --cream-dim: #c7c0b5;
  --cream-faint: #8d867b;

  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--cream);
  background: var(--night-950);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; margin: 0 0 .5rem; }
h1 {
  font-family: "Frank Ruhl Libre", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
h2 {
  font-family: "Frank Ruhl Libre", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 500;
}
h3 { font-size: 1.06rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--cream-faint); }

/* The poster's signature hairline under headings. */
.rule { width: 58px; height: 1px; margin: 0 0 1.6rem; background: linear-gradient(to left, var(--gold-500), transparent); }
.center .rule { margin-inline: auto; background: linear-gradient(to left, transparent, var(--gold-500), transparent); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 13, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(246, 241, 231, .07);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600; font-size: 1.4rem; letter-spacing: .08em;
  text-decoration: none; color: var(--cream);
}
.nav-links { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.nav-links a {
  text-decoration: none; color: var(--cream-dim); font-size: .9rem; font-weight: 400;
  position: relative; padding-bottom: 3px; transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: var(--gold-500); transform: scaleX(0); transition: transform .25s ease;
}
.nav-links a:hover { color: var(--gold-400); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: .6rem; align-items: center; }

/* ---------- language switch ---------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(246, 241, 231, .16);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--cream-dim);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  padding: .42rem .7rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-switch button:hover { color: var(--gold-400); }
.lang-switch button[aria-pressed="true"] {
  background: var(--gold-soft);
  color: var(--gold-400);
}
.lang-switch button + button { border-inline-start: 1px solid rgba(246, 241, 231, .12); }
.lang-switch button:focus-visible { outline: 2px solid var(--gold-500); outline-offset: -2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--night-950);
  padding: .75rem 1.5rem; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(212, 169, 79, .18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212, 169, 79, .28); filter: brightness(1.06); }
.btn-sm { padding: .5rem 1.1rem; font-size: .86rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1.02rem; }
.btn-ghost {
  background: transparent; color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(246, 241, 231, .28);
}
.btn-ghost:hover {
  background: rgba(246, 241, 231, .06); color: var(--gold-400);
  box-shadow: inset 0 0 0 1px var(--gold-line);
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(212, 169, 79, .1), transparent 58%),
    linear-gradient(160deg, var(--night-950) 0%, var(--night-850) 52%, var(--night-800) 100%);
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.hero::after {
  /* Warm floor-light wash, echoing the pool photos. */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 45%;
  background: linear-gradient(to top, rgba(212, 169, 79, .07), transparent);
  pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ripple { position: absolute; border-radius: 50%; border: 1px solid rgba(246, 241, 231, .06); }
.r1 { width: 480px; height: 480px; top: -140px; inset-inline-start: -120px; }
.r2 { width: 720px; height: 720px; bottom: -340px; inset-inline-end: -200px; }
.r3 { width: 300px; height: 300px; top: 38%; inset-inline-end: 20%; border-color: var(--gold-line); }
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  color: var(--gold-400); font-size: .8rem; font-weight: 500;
  letter-spacing: .22em; margin-bottom: 1.1rem; text-transform: uppercase;
}
.lede { font-size: clamp(1.02rem, 2vw, 1.16rem); color: var(--cream-dim); max-width: 620px; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0 2.8rem; }

.live-card {
  background: rgba(22, 33, 38, .82);
  border: 1px solid rgba(246, 241, 231, .1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
  max-width: 390px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.live-head { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .16); }
.live-label { font-weight: 600; font-size: .88rem; }
.live-tag {
  margin-inline-start: auto; background: var(--gold-soft); color: var(--gold-400);
  font-size: .72rem; font-weight: 600; padding: .22rem .7rem; border-radius: 999px;
}
.live-num { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .85rem; }
.live-num strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem; font-weight: 600; line-height: 1; color: var(--gold-400);
}
.live-num span { color: var(--cream-faint); font-size: .85rem; }
.bar { height: 6px; background: rgba(246, 241, 231, .1); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(to left, var(--gold-500), var(--gold-400)); border-radius: 999px; }
.bar.sm { height: 5px; }
.live-foot { margin: .75rem 0 0; font-size: .78rem; color: var(--cream-faint); }

/* Admin-uploaded hero photo replaces the flat gradient. */
.hero.has-photo { background-size: cover; background-position: center; }
.hero.has-photo .hero-bg { opacity: .45; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--night-900); border-block: 1px solid rgba(246, 241, 231, .06); }
.section-lede { color: var(--cream-dim); max-width: 660px; margin-bottom: 2.2rem; }
.center .section-lede { margin-inline: auto; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  background: var(--night-850);
  border: 1px solid rgba(246, 241, 231, .07);
  border-radius: var(--radius); padding: 1.6rem;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.section.alt .card { background: var(--night-850); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--cream-dim); font-size: .93rem; }
.card .muted { font-size: .82rem; margin-bottom: .5rem; color: var(--gold-600); }
.icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-soft); color: var(--gold-400);
  border: 1px solid var(--gold-line);
  display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 1rem;
}

/* ---------- schedule ---------- */
.days { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.day {
  background: var(--night-850); border: 1px solid rgba(246, 241, 231, .07);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.day h3 { margin-bottom: 1rem; color: var(--gold-400); font-weight: 600; }
.day ul { list-style: none; margin: 0; padding: 0; }
.day li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .65rem 0; border-bottom: 1px solid rgba(246, 241, 231, .07);
}
.day li:last-child { border-bottom: 0; }
.t { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--cream); }

.pill { font-size: .76rem; font-weight: 600; padding: .25rem .75rem; border-radius: 999px; white-space: nowrap; }
.pill.sm { font-size: .66rem; padding: .15rem .55rem; }
.pill.women { background: rgba(244, 114, 182, .14); color: #f9a8d4; }
.pill.men { background: rgba(129, 140, 248, .14); color: #a5b4fc; }
.pill.mixed { background: rgba(59, 190, 192, .14); color: var(--lagoon-400); }
.pill.classes { background: var(--gold-soft); color: var(--gold-400); }

/* ---------- gallery ---------- */
/* Editorial mosaic: the first photo leads at double size, the rest follow
   in a steady rhythm. Collapses to a single column on phones. */
.shots { display: grid; gap: .8rem; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 195px; }
.shot {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--night-800); cursor: zoom-in;
  border: 1px solid rgba(246, 241, 231, .07); padding: 0;
  display: block; width: 100%; height: 100%;
}
.shot img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 13, .5), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot:hover { border-color: var(--gold-line); }
.shot:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.shot:first-child { grid-column: span 2; grid-row: span 2; }

@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 165px; } }
@media (max-width: 560px) {
  .shots { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .shot:first-child { grid-column: span 1; grid-row: span 1; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(7, 11, 13, .95); backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%; border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.lightbox-close, .lightbox-nav {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; border: 1px solid rgba(246, 241, 231, .16);
  border-radius: 999px; background: rgba(246, 241, 231, .08);
  color: var(--cream); font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-400); }
.lightbox-close { top: 1.25rem; inset-inline-end: 1.25rem; }
.lightbox-nav.prev { inset-inline-start: 1.25rem; }
.lightbox-nav.next { inset-inline-end: 1.25rem; }
.lightbox-nav.prev, .lightbox-nav.next { top: 50%; transform: translateY(-50%); }
.lightbox-count {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: var(--cream-faint); font-size: .82rem; letter-spacing: .1em;
}

/* ---------- google map ---------- */
.map-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(246, 241, 231, .1);
  background: var(--night-800); margin-bottom: 1.2rem;
}
.map-frame iframe { display: block; width: 100%; height: 400px; border: 0; }
.map-directions { display: inline-block; }

/* ---------- app section ---------- */
.app-inner { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .app-inner { grid-template-columns: 1fr 300px; } }

.stores { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.store {
  text-decoration: none; background: var(--night-800); color: var(--cream);
  border: 1px solid rgba(246, 241, 231, .12);
  border-radius: 14px; padding: .65rem 1.3rem; display: block;
  transition: border-color .2s ease, background .2s ease;
}
.store:hover { border-color: var(--gold-line); background: var(--night-700); }
.store-sub { display: block; font-size: .66rem; color: var(--cream-faint); }
.store-name { display: block; font-size: 1rem; font-weight: 600; }
.fineprint { font-size: .82rem; color: var(--cream-faint); }
.fineprint a { color: var(--gold-400); font-weight: 500; }

.phone {
  background: var(--night-800); border: 1px solid rgba(246, 241, 231, .12);
  border-radius: 34px; padding: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5); justify-self: center; width: 280px;
}
.phone-screen { background: var(--night-900); border-radius: 26px; overflow: hidden; padding: 1.1rem 1rem; min-height: 460px; }
.ps-head {
  background: linear-gradient(150deg, var(--night-950), var(--night-700));
  margin: -1.1rem -1rem 1rem; padding: 1.4rem 1.1rem 1.6rem;
  border-radius: 0 0 22px 22px; border-bottom: 1px solid var(--gold-line);
}
.ps-hello { display: block; font-size: .7rem; color: var(--gold-400); letter-spacing: .1em; }
.ps-title { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; letter-spacing: .04em; }
.ps-status { font-size: .74rem; color: var(--cream-dim); display: flex; align-items: center; gap: .35rem; }
.ps-status i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.ps-card { background: var(--night-850); border: 1px solid rgba(246, 241, 231, .08); border-radius: 18px; padding: 1rem; margin-bottom: .9rem; }
.ps-label { font-size: .6rem; color: var(--cream-faint); font-weight: 600; letter-spacing: .12em; }
.ps-big { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.4rem; font-weight: 600; line-height: 1.1; color: var(--gold-400); }
.ps-sub { font-size: .7rem; color: var(--cream-faint); display: block; margin-bottom: .6rem; }
.ps-btn {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--night-950);
  text-align: center; border-radius: 12px; padding: .6rem; font-weight: 600; font-size: .84rem; margin-top: .8rem;
}
.ps-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--night-850); border: 1px solid rgba(246, 241, 231, .08);
  border-radius: 12px; padding: .55rem .8rem; margin-bottom: .5rem;
  font-size: .8rem; font-weight: 500;
}

/* ---------- floating whatsapp ---------- */
.wa-fab {
  position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.15rem; border-radius: 999px;
  background: #25d366; color: #062a15; text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37, 211, 102, .42); }
.wa-fab svg { width: 26px; height: 26px; fill: currentColor; flex: none; }

@media (max-width: 640px) {
  /* Icon-only on small screens so it never covers the content. */
  .wa-fab { padding: .85rem; }
  .wa-fab-label { display: none; }
}

/* ---------- footer ---------- */
.footer { background: var(--night-900); color: var(--cream-dim); padding-top: 3.5rem; border-top: 1px solid rgba(246, 241, 231, .07); }
.footer .muted { color: var(--cream-faint); }
.footer a { color: var(--gold-400); }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding-bottom: 2.5rem; }
.footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem; letter-spacing: .08em; color: var(--cream); margin-bottom: .4rem;
}
.footer-contact p { margin-bottom: .45rem; font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(246, 241, 231, .08); padding-block: 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: .83rem; }
.admin-link { font-size: .83rem; text-decoration: none; opacity: .65; }
.admin-link:hover { opacity: 1; color: var(--gold-400); }

/* The full link row plus both buttons needs ~960px; below that the links
   collapse so the header never pushes the page into horizontal scroll. */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .nav-actions { margin-inline-start: auto; }
}

/* On the narrowest phones one call to action is enough. */
@media (max-width: 420px) {
  .nav-actions .btn:not(.btn-ghost) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img, .shot::after, .card, .btn, .wa-fab { transition: none; }
  .shot:hover img, .card:hover, .btn:hover, .wa-fab:hover { transform: none; }
}
