/* =============================================================
   La Lucia Tennis Club — styles.css
   Dark theme · Tennis-ball chartreuse accent · Bebas Neue + DM Sans
   Mobile-first responsive design
   
   TABLE OF CONTENTS
   1.  CSS Custom Properties (Design Tokens)
   2.  Reset & Base
   3.  Layout Utilities
   4.  Scroll-Triggered Reveal Animations
   5.  Buttons
   6.  Navigation
   7.  Mobile Navigation Overlay
   8.  Hero Section
   9.  About Section
   10. Sessions & Pricing Section
   11. Facilities Section
   12. Membership Section
   13. Gallery Section
   14. Contact Section
   15. Footer
   16. Floating WhatsApp Button
   17. Responsive — Tablet (≥640px)
   18. Responsive — Desktop (≥1024px)
   19. Accessibility — Reduced Motion
============================================================= */


/* ---------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   Edit these variables to retheme the entire site.
--------------------------------------------------------------- */
:root {
  /* Colours */
  --clr-bg:         #0a0a0a;      /* Near-black page background */
  --clr-bg-2:       #111111;      /* Slightly lighter section backgrounds */
  --clr-bg-3:       #181818;      /* Card backgrounds */
  --clr-accent:     #c8e61d;      /* Tennis-ball chartreuse — the hero colour */
  --clr-accent-dim: #9fba0f;      /* Darker accent for hovers */
  --clr-accent-glow:rgba(200,230,29,0.15); /* Subtle glow tint */
  --clr-text:       #e8e8e8;      /* Primary body text */
  --clr-text-muted: #888888;      /* Secondary / supporting text */
  --clr-border:     #222222;      /* Subtle divider lines */
  --clr-white:      #ffffff;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;

  /* Motion */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;

  /* Nav height (used for scroll-padding-top) */
  --nav-h: 72px;
}


/* ---------------------------------------------------------------
   2. RESET & BASE
--------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.accent { color: var(--clr-accent); }


/* ---------------------------------------------------------------
   3. LAYOUT UTILITIES
--------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--clr-white);
}


/* ---------------------------------------------------------------
   4. SCROLL-TRIGGERED REVEAL ANIMATIONS
   Elements start hidden; script.js adds .visible when in view.
--------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.facilities-grid .reveal:nth-child(2),
.sessions-grid   .reveal:nth-child(2),
.membership-cards .reveal:nth-child(2) { transition-delay: 0.1s; }

.facilities-grid .reveal:nth-child(3),
.sessions-grid   .reveal:nth-child(3),
.membership-cards .reveal:nth-child(3) { transition-delay: 0.2s; }

.facilities-grid .reveal:nth-child(4) { transition-delay: 0.1s; }
.facilities-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.facilities-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.gallery-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.10s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: 0.20s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: 0.25s; }


/* ---------------------------------------------------------------
   5. BUTTONS
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Smaller variant used inside session cards */
.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.78rem;
}

/* Primary — chartreuse fill */
.btn-primary {
  background-color: var(--clr-accent);
  color: var(--clr-bg);
}
.btn-primary:hover {
  background-color: var(--clr-accent-dim);
  box-shadow: 0 8px 24px rgba(200,230,29,0.28);
}

/* Secondary — ghost on dark */
.btn-secondary {
  background-color: transparent;
  color: var(--clr-white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* Outline — transparent with accent border */
.btn-outline {
  background-color: transparent;
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-accent);
}
.btn-outline:hover {
  background-color: var(--clr-accent);
  color: var(--clr-bg);
}


/* ---------------------------------------------------------------
   6. NAVIGATION
--------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition:
    background var(--duration) var(--ease),
    backdrop-filter var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.navbar.scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ---- Logo ---- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Logo image — the LLTC png */
.nav-logo-img {
  width: 100px;
  height: 80px;
  object-fit: contain;
  /* The logo has a black bg; use mix-blend-mode so it sits cleanly
     on both transparent and solid nav backgrounds */
  mix-blend-mode: lighten;
  filter: brightness(1.1);
  border-radius: var(--radius-sm);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--clr-white);
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

/* ---- Desktop nav links ---- */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--clr-accent);
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover            { color: var(--clr-white); }
.nav-links a:hover::after     { width: 100%; }

/* Nav CTA button */
.nav-cta {
  background: var(--clr-accent) !important;
  color: var(--clr-bg) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--clr-accent-dim) !important; transform: translateY(-1px) !important; }
.nav-cta::after { display: none !important; }

/* ---- Hamburger ---- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform var(--duration) var(--ease),
    opacity var(--duration) var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ---------------------------------------------------------------
   7. MOBILE NAVIGATION OVERLAY
--------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
  transition: color var(--duration) var(--ease);
}

.mobile-link:hover,
.mobile-link.cta-link { color: var(--clr-accent); }


/* ---------------------------------------------------------------
   8. HERO SECTION
   Replace images/hero.jpg with your own court photo.
--------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 22s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.45) 0%,
    rgba(10,10,10,0.62) 45%,
    rgba(10,10,10,0.92) 100%
  );
}

/* Subtle decorative court lines layered over hero */
.court-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.court-line {
  position: absolute;
  background: rgba(200,230,29,0.055);
}

.cl-v { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }
.cl-h { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.cl-top { top: 18%; left: 12%; right: 12%; height: 1px; }

/* Hero text */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-md);
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--clr-white);
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease) 0.5s forwards;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.72);
  margin-top: var(--space-md);
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease) 0.7s forwards;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease) 0.9s forwards;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease) 1.4s forwards;
}

.scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(0.4); opacity: 1; }
}


/* ---------------------------------------------------------------
   9. ABOUT SECTION
   Replace images/about.jpg with your own photo.
--------------------------------------------------------------- */
.about {
  background: var(--clr-bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-text p {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-md);
}

.about-text .btn { margin-top: var(--space-xs); }

.about-visual { position: relative; }

.about-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--clr-border);
}

.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.about-img-wrap:hover img { transform: scale(1.04); }

/* Floating stat cards */
.stat-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  min-width: 90px;
}

.stat-card--tl { top: -16px; left: -16px; }
.stat-card--br { bottom: -16px; right: -16px; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--clr-accent);
}

.stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-top: 4px;
}


/* ---------------------------------------------------------------
   10. SESSIONS & PRICING SECTION
--------------------------------------------------------------- */
.sessions {
  background: var(--clr-bg);
}

.sessions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* Individual session card */
.session-card {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition:
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.session-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(200,230,29,0.07);
}

.session-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.session-icon {
  width: 48px; height: 48px;
  color: var(--clr-accent);
  flex-shrink: 0;
  padding: 8px;
  background: var(--clr-accent-glow);
  border-radius: var(--radius-sm);
}

.session-icon svg {
  width: 100%; height: 100%;
}

.session-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--clr-white);
  line-height: 1.1;
}

.session-price {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-top: 2px;
}

.session-price em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

.session-card p {
  color: var(--clr-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Session times layout */
.session-times {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-md);
}

.time-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-day {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.time-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--clr-text);
}

.time-row svg { color: var(--clr-text-muted); flex-shrink: 0; }

/* Season badges */
.season-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 4px;
}

.time-row.winter .season-badge {
  background: rgba(100,160,255,0.12);
  color: #80b4ff;
}

.time-row.summer .season-badge {
  background: rgba(255,190,50,0.12);
  color: #ffc950;
}

/* Session CTAs (court hire card) */
.session-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-md);
}

/* Floodlight two-row rate display */
.floodlight-rates {
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.rate-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--clr-text-muted);
}

.rate-label svg { color: var(--clr-accent); }

.rate-price {
  font-weight: 700;
  color: var(--clr-white);
}

.rate-price small {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--clr-text-muted);
}

/* Coaching card contact block */
.coaching-contact {
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coaching-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-accent);
  transition: color var(--duration) var(--ease);
}

.coaching-cta:hover { color: var(--clr-white); }

.coaching-note {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

/* Coaching price badge in header */
.coaching-badge {
  font-size: 0.75rem !important;
  font-weight: 700;
  background: var(--clr-accent-glow);
  color: var(--clr-accent) !important;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(200,230,29,0.3);
  letter-spacing: 0.05em;
}


/* ---------------------------------------------------------------
   11. FACILITIES SECTION
--------------------------------------------------------------- */
.facilities {
  background: var(--clr-bg-2);
}

.facilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.facility-card {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition:
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.facility-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(200,230,29,0.08);
}

.facility-icon {
  width: 52px; height: 52px;
  color: var(--clr-accent);
  margin-bottom: var(--space-md);
}

.facility-icon svg { width: 100%; height: 100%; }

.facility-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--clr-white);
  margin-bottom: var(--space-xs);
}

.facility-card p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}


/* ---------------------------------------------------------------
   12. MEMBERSHIP SECTION
--------------------------------------------------------------- */
.membership {
  padding-block: 0;
}

.membership-inner {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2xl);
}

.membership-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200,230,29,0.055) 0%, transparent 70%),
    var(--clr-bg);
  z-index: 0;
}

.membership-inner .container { position: relative; z-index: 1; }

.membership-intro {
  max-width: 620px;
  margin-inline: auto;
  color: var(--clr-text-muted);
  margin-top: var(--space-md);
  font-size: 1rem;
}

/* Three membership tier cards */
.membership-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.mem-card {
  position: relative;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition:
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.mem-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-4px);
}

/* Featured / highlighted membership card */
.mem-card--featured {
  border-color: var(--clr-accent);
  background: linear-gradient(145deg, var(--clr-bg-3) 60%, rgba(200,230,29,0.05) 100%);
  box-shadow: 0 0 0 1px var(--clr-accent), 0 16px 48px rgba(200,230,29,0.12);
}

.mem-card--featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--clr-accent), 0 24px 60px rgba(200,230,29,0.18);
}

/* "Most Popular" badge */
.mem-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-accent);
  color: var(--clr-bg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.mem-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.mem-tier {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--clr-white);
  line-height: 1;
}

.mem-price {
  text-align: right;
}

.mem-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: var(--clr-accent);
  line-height: 1;
}

.mem-period {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Perks checklist inside each card */
.mem-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mem-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--clr-text);
}

.mem-perks li svg {
  flex-shrink: 0;
  color: var(--clr-accent);
}

/* Note item (exclusion) */
.mem-perk--note {
  color: var(--clr-text-muted) !important;
  font-size: 0.82rem !important;
}

.mem-perk--note svg {
  color: var(--clr-text-muted) !important;
}

/* CTA button at bottom of each card */
.mem-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}


/* ---------------------------------------------------------------
   13. GALLERY SECTION
   Replace images/gallery-*.jpg with your own photos.
--------------------------------------------------------------- */
.gallery {
  background: var(--clr-bg-2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--clr-bg-3);
  aspect-ratio: 1 / 1;
}

.gallery-item--large {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

.gallery-item--tall {
  aspect-ratio: 3 / 4;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--clr-accent);
}


/* ---------------------------------------------------------------
   14. CONTACT SECTION
--------------------------------------------------------------- */
.contact { background: var(--clr-bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-icon {
  width: 44px; height: 44px;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--clr-accent);
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-item strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-item a {
  color: var(--clr-text);
  transition: color var(--duration) var(--ease);
}
.contact-item a:hover { color: var(--clr-accent); }

/* Social link pills */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text);
  transition:
    border-color var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.social-link svg { width: 16px; height: 16px; }
.social-link:hover { border-color: var(--clr-accent); color: var(--clr-accent); }

/* Google Map iframe */
.map-wrap {
  width: 100%;
  min-height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-3);
}

/* Dark-tint the map to match site theme */
.map-wrap iframe {
  filter: invert(90%) hue-rotate(180deg);
}


/* ---------------------------------------------------------------
   15. FOOTER
--------------------------------------------------------------- */
.footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding-block: var(--space-xl) var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* Footer logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.footer-logo-img {
  width: 44px; height: 44px;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: brightness(1.1);
  border-radius: var(--radius-sm);
}

.footer-brand p {
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 300px;
}

.footer-social {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-muted);
  transition:
    border-color var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.footer-social svg { width: 18px; height: 18px; }
.footer-social:hover { border-color: var(--clr-accent); color: var(--clr-accent); }

.footer-links h4,
.footer-contact h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-md);
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact li,
.footer-contact a {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--clr-accent); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}


/* ---------------------------------------------------------------
   16. FLOATING WHATSAPP BUTTON
--------------------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 900;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
  animation: waPulse 3s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
  animation: none;
}

.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--clr-bg-3);
  color: var(--clr-white);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.wa-float:hover .wa-tooltip { opacity: 1; }


/* ---------------------------------------------------------------
   17. RESPONSIVE — TABLET (≥ 640px)
--------------------------------------------------------------- */
@media (min-width: 640px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sessions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .session-times {
    flex-direction: row;
    gap: var(--space-lg);
  }

  .membership-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Featured card spans full width on tablet */
  .mem-card--featured {
    grid-column: 1 / -1;
  }
}


/* ---------------------------------------------------------------
   18. RESPONSIVE — DESKTOP (≥ 1024px)
--------------------------------------------------------------- */
@media (min-width: 1024px) {
  /* Show desktop nav, hide hamburger */
  .nav-links { display: flex; }
  .hamburger { display: none; }

  /* About: two columns */
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Sessions: two-column grid */
  .sessions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Facilities: three columns */
  .facilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Membership: three equal columns */
  .membership-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .mem-card--featured {
    grid-column: auto;
  }

  /* Gallery: editorial multi-col layout */
  .gallery-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 260px 260px;
  }

  .gallery-item--large {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: unset;
  }

  .gallery-item--tall {
    grid-column: 3;
    grid-row: 1 / 3;
    aspect-ratio: unset;
  }

  .gallery-item { aspect-ratio: unset; }

  /* Contact: side-by-side */
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .map-wrap { min-height: 460px; }

  /* Footer: three columns */
  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}


/* ---------------------------------------------------------------
   19. ACCESSIBILITY — Reduced motion
   Respects the user's OS preference to minimise animations.
--------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-img { animation: none; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
