/* ==========================================================================
   SUMMIT PADEL — Main Stylesheet
   ==========================================================================
   Table of Contents:
   1.  Variables & Tokens
   2.  Reset & Base
   3.  Typography
   4.  Buttons
   5.  Loader
   6.  Navigation
   7.  Mobile Menu
   8.  Hero
   9.  Marquee
   10. Section Utilities
   11. Scroll Reveal Animations
   12. About
   13. Stats
   14. Courts / Facilities
   15. Video CTA
   16. Coaching
   17. Membership / Pricing
   18. Testimonials
   19. CTA Section
   20. Instagram Feed
   21. Footer
   22. Responsive — Tablet (≤1024px)
   23. Responsive — Mobile (≤768px)
   24. Responsive — Small Mobile (≤480px)
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES & TOKENS
   Update these to rebrand the site. All colors, fonts, and timing curves
   are defined here so changes cascade everywhere automatically.
   ========================================================================== */

:root {
  /* Brand colors */
  --gold:         #F8C321;
  --gold-light:   #FED831;
  --gold-dark:    #E6AC12;
  --gold-pale:    #FFF8E1;

  /* Neutrals */
  --black:        #0A0A0A;
  --black-soft:   #141414;
  --black-card:   #1A1A1A;
  --white:        #FAFAFA;
  --white-muted:  #B0B0B0;
  --grey:         #2A2A2A;
  --grey-border:  #333333;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;

  /* Easing curves */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Always reserve the vertical scrollbar gutter so the fixed nav (and page)
     don't shift horizontally when the scrollbar appears on scroll. */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  /* `clip` (not `hidden`) prevents horizontal overflow without turning
     <body> into a scroll container, which would break position: sticky
     on descendants such as the marquee ticker. */
  overflow-x: clip;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

.section-tag {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-heading em {
  font-style: italic;
  color: var(--gold);
}

.section-text {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--white-muted);
  font-weight: 300;
  line-height: 1.8;
  max-width: 550px;
}


/* ==========================================================================
   4. BUTTONS
   Two variants: solid gold (.btn-primary) and gold outline (.btn-outline).
   Both share sizing; only fills/borders differ.
   ========================================================================== */

.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(248, 195, 33, 0.25);
}

.btn-outline {
  border: 1px solid rgba(248, 195, 33, 0.4);
  color: var(--gold);
  font-weight: 500;
}

.btn-outline:hover {
  background: rgba(248, 195, 33, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}


/* ==========================================================================
   5. LOADER
   Shown on initial page load, fades out after JS fires.
   ========================================================================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  height: clamp(60px, 12vw, 100px);
  width: auto;
  opacity: 0;
  animation: loaderFade 1.5s var(--ease-out-expo) forwards;
}

.loader-bar {
  width: 120px;
  height: 1px;
  background: var(--grey-border);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--gold);
  animation: loaderBar 2s var(--ease-out-expo) forwards;
}

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

@keyframes loaderBar {
  to { width: 100%; }
}


/* ==========================================================================
   6. NAVIGATION
   Fixed top bar. Becomes blurred/translucent on scroll via .scrolled class.
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 2rem;
  border-bottom-color: rgba(248, 195, 33, 0.1);
}

/* Logo — image version */
.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  transition: height 0.4s, opacity 0.3s;
}

.nav.scrolled .nav-logo-img {
  height: 32px;
}

/* Desktop links */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Nav CTA button — higher specificity to override .nav-links a defaults */
.nav-links .nav-cta {
  padding: 0.6rem 1.6rem;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 1;
  transition: background 0.3s, transform 0.3s;
}

.nav-links .nav-cta::after {
  display: none;
}

.nav-links .nav-cta:hover {
  background: var(--gold-light);
  color: var(--black);
  transform: translateY(-1px);
}

/* Right-side nav controls — groups lang toggle + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language toggle button */
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  flex-shrink: 0;
  background: rgba(248, 195, 33, 0.08);
}

.lang-toggle:hover {
  background: rgba(248, 195, 33, 0.18);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* Hamburger toggle (hidden on desktop, shown on mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--white);
  transition: transform 0.4s var(--ease-out-expo),
              opacity  0.3s,
              width    0.4s var(--ease-out-expo);
  transform-origin: center;
}

.nav-hamburger span:nth-child(2) {
  width: 60%;
  margin-left: auto;
}

/* Active / open state — morphs into an X */
.nav-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ==========================================================================
   7. MOBILE MENU
   Full-screen overlay; links stagger in on open.
   ========================================================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out-expo), color 0.3s;
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* CTA button inside mobile menu — override menu link defaults */
.mobile-menu .btn-primary {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--black);
  padding: 0.8rem 2rem;
  max-width: 220px;
  width: auto;
}

.mobile-menu .btn-primary:hover {
  color: var(--black);
}

/* Staggered entrance delays */
.mobile-menu.open a:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.open a:nth-child(7) { transition-delay: 0.40s; }


/* ==========================================================================
   8. HERO
   Full-viewport section with video background, dark overlay for text
   contrast, centered content, and a scroll-down indicator.

   LOADING STRATEGY:
   - .hero-fallback is a dark gradient shown immediately (no network).
   - .hero-video sits on top with position:absolute; as it loads and
     autoplays, it covers the fallback seamlessly.
   - preload="metadata" in the HTML keeps initial payload tiny.
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Container for both fallback and video */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Gradient fallback — visible instantly while video buffers */
.hero-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1510 0%, #0a0a0a 50%, #1a1510 100%);
}

.hero-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(248, 195, 33, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(248, 195, 33, 0.05) 0%, transparent 50%);
}

/* Video — positioned over the fallback, covers entire hero */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Dark gradient overlay — sits above the video to keep text legible.
   The opacity ramps up heavily toward the center and bottom so the
   headline, subtitle, and buttons always have strong contrast. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Center vignette — darkens behind the text block */
    radial-gradient(ellipse at 50% 50%, rgba(10, 10, 10, 0.55) 0%, transparent 75%),
    /* Top-to-bottom gradient — heavy at bottom for scroll fade */
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.45) 0%,
      rgba(10, 10, 10, 0.35) 30%,
      rgba(10, 10, 10, 0.45) 55%,
      rgba(10, 10, 10, 0.7)  80%,
      rgba(10, 10, 10, 0.95) 100%
    );
  z-index: 2;
}

/* Centered text block — z-index: 3 sits above the overlay (z-index: 2) */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
  width: 100%;
}

.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: heroReveal 1s 2.2s var(--ease-out-expo) forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: heroReveal 1.2s 2.4s var(--ease-out-expo) forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: var(--white-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: heroReveal 1.2s 2.6s var(--ease-out-expo) forwards;
}

/* Hero buttons — centered row, stacks on mobile */
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroReveal 1.2s 2.8s var(--ease-out-expo) forwards;
}

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

/* Scroll-down indicator — centered at bottom of hero
   Uses left/right:0 + margin auto so animation doesn't break centering */
/* Scroll-down indicator — centered at bottom of hero.
   Uses left/right:0 + flexbox so animation doesn't break centering.
   z-index: 3 keeps it above the video overlay. */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroFadeIn 1s 3.2s var(--ease-out-expo) forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--grey-border);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%     { top: -100%; }
  50%    { top: 100%; }
  50.01% { top: -100%; }
  100%   { top: 100%; }
}


/* ==========================================================================
   9. MARQUEE
   Infinite horizontal scroll ticker between hero and content sections.
   ========================================================================== */

.marquee-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--grey-border);
  border-bottom: 1px solid var(--grey-border);
  overflow: hidden;
  background: var(--black);
  /* Permanently pinned to the bottom of the viewport as a persistent
     ticker bar. Body padding-bottom (set in JS to this bar's height)
     reserves space so it never hides footer content. */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  white-space: nowrap;
}

.marquee-item span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.marquee-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ==========================================================================
   10. SECTION UTILITIES
   Shared padding and layout helpers used across all content sections.
   ========================================================================== */

section {
  position: relative;
}

.section-pad {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}


/* ==========================================================================
   11. SCROLL REVEAL ANIMATIONS
   Elements with these classes start hidden and animate in when they enter
   the viewport. JS (IntersectionObserver) adds the .visible class.
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo);
}

/* Visible state (added by JS) */
.reveal.visible       { opacity: 1; transform: translateY(0); }
.reveal-left.visible  { opacity: 1; transform: translateX(0); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays — add to sibling elements for cascading reveals */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }


/* ==========================================================================
   12. ABOUT
   Two-column layout: image left, text right.
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1300px;
  margin: 0 auto;
  align-items: stretch;
}

.about-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(248, 195, 33, 0.2);
  pointer-events: none;
}

/* Decorative corner frame */
.about-accent {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--gold);
  opacity: 0.3;
}


/* ==========================================================================
   13. STATS
   Four stat counters in a single row (collapses to 2×2 on mobile).
   ========================================================================== */

.stats {
  background: var(--black-soft);
  border-top: 1px solid var(--grey-border);
  border-bottom: 1px solid var(--grey-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  gap: 2rem;
}

.stat-item {
  padding: 1rem 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-muted);
  font-weight: 400;
}


/* ==========================================================================
   14. COURTS / FACILITIES
   Three feature cards in a row.
   ========================================================================== */

.courts-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.courts-header .section-text {
  margin: 0 auto;
}

.courts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.court-card {
  background: var(--black-card);
  border: 1px solid var(--grey-border);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out-expo);
}

.court-card:hover {
  border-color: rgba(248, 195, 33, 0.4);
  transform: translateY(-5px);
}

.court-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.court-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

/* Show the full image (less cropping) instead of filling the frame */
.court-card-img img.img-contain {
  object-fit: contain;
  background: var(--black-soft);
}

.court-card:hover .court-card-img img {
  transform: scale(1.08);
}

.court-card-body {
  padding: 1.5rem;
}

.court-card-tag {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.court-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.court-card p {
  font-size: 0.85rem;
  color: var(--white-muted);
  font-weight: 300;
  line-height: 1.6;
}


/* ==========================================================================
   15. VIDEO CTA
   The promo video plays muted as a looping background teaser.
   On click, the overlay fades out, the video unmutes and continues
   playing with a close button. On close, overlay returns.
   ========================================================================== */

.video-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
  border-top: 1px solid var(--grey-border);
  border-bottom: 1px solid var(--grey-border);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* Poster image — visible as section background before play */
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

/* When playing: hide poster */
.video-section.playing .video-poster {
  opacity: 0;
}

/* Background video — hidden initially, revealed on play */
.video-bg-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

/* Dark overlay — dims the poster so text is readable */
.video-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  z-index: 1;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

/* When playing: overlay fades out */
.video-section.playing .video-overlay-dark {
  opacity: 0;
  visibility: hidden;
}

/* Text content — centered over the video */
.video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

/* When playing: text fades out */
.video-section.playing .video-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Play button */
.video-play {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(248, 195, 33, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  transition: background 0.4s, border-color 0.4s, transform 0.3s;
  cursor: pointer;
}

.video-play:hover {
  background: rgba(248, 195, 33, 0.15);
  border-color: var(--gold);
  transform: scale(1.1);
}

.video-play svg {
  width: 24px;
  height: 24px;
  fill: var(--gold);
  margin-left: 3px;
}

.video-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.video-content h2 em {
  font-style: italic;
  color: var(--gold);
}

.video-content .section-text {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Close button — shown only during active playback */
.video-controls {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.video-section.playing .video-controls {
  opacity: 1;
  visibility: visible;
}

.video-close-btn {
  width: 44px;
  height: 44px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
}

.video-close-btn:hover {
  background: rgba(10, 10, 10, 0.8);
  border-color: var(--gold);
}

/* When playing: show video with proper aspect ratio */
.video-section.playing .video-bg-player {
  opacity: 1;
  object-fit: contain;
  background: var(--black);
}


/* ==========================================================================
   16. COACHING
   Split layout: text left, full-bleed image right.
   ========================================================================== */

.coaching {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

.coaching-text {
  padding: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coaching-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.coaching-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white-muted);
}

.coaching-list-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.coaching-list-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--gold);
  fill: none;
}

.coaching-image {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.coaching-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================================
   17. MEMBERSHIP / PRICING
   Three-tier pricing cards. Middle card (.featured) is highlighted.
   ========================================================================== */

.membership-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.membership-header .section-text {
  margin: 0 auto;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.membership-card {
  background: var(--black-card);
  border: 1px solid var(--grey-border);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: border-color 0.4s, transform 0.4s var(--ease-out-expo);
}

.membership-card:hover {
  border-color: rgba(248, 195, 33, 0.4);
  transform: translateY(-5px);
}

/* Featured / highlighted tier */
.membership-card.featured {
  border-color: var(--gold);
  background: linear-gradient(to bottom, rgba(248, 195, 33, 0.08), var(--black-card));
}

.membership-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--gold);
  color: var(--black);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  padding: 0.3rem 1rem;
}

.membership-tier {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.membership-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.membership-price sup {
  font-size: 1.2rem;
  vertical-align: super;
  margin-right: 2px;
}

.membership-period {
  font-size: 0.75rem;
  color: var(--white-muted);
  margin-bottom: 2rem;
}

.membership-features {
  margin-bottom: 2rem;
  text-align: left;
}

.membership-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.membership-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Full-width buttons inside pricing cards */
.membership-card .btn-primary,
.membership-card .btn-outline {
  width: 100%;
  display: block;
  text-align: center;
}


/* ==========================================================================
   18. TESTIMONIALS
   ========================================================================== */

.testimonials {
  background: var(--black-soft);
  border-top: 1px solid var(--grey-border);
  border-bottom: 1px solid var(--grey-border);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--black);
  border: 1px solid var(--grey-border);
  padding: 2rem;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--white-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: var(--grey);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
}

.testimonial-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.testimonial-role {
  font-size: 0.7rem;
  color: var(--white-muted);
}


/* ==========================================================================
   19. CTA SECTION
   Final call-to-action block before the footer.
   ========================================================================== */

.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(248, 195, 33, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .section-heading {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.cta-section .section-text {
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}


/* ==========================================================================
   19b. SECTION DIVIDER
   Decorative break between the CTA and the contact form.
   ========================================================================== */

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--grey-border));
}

.divider-line:last-child {
  background: linear-gradient(to left, transparent, var(--grey-border));
}

.divider-emblem {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(248, 195, 33, 0.45);
  border-radius: 50%;
  background: rgba(248, 195, 33, 0.04);
}

/* Expanding ring pulse around the emblem */
.divider-emblem::before {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(248, 195, 33, 0.25);
  border-radius: 50%;
  animation: dividerPulse 3.2s var(--ease-out-expo) infinite;
}

.divider-emblem svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

@keyframes dividerPulse {
  0%       { transform: scale(1);    opacity: 0.7; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .divider-emblem::before {
    animation: none;
  }
}


/* ==========================================================================
   20. INSTAGRAM FEED
   Grid of square image thumbnails linking to Instagram.
   ========================================================================== */

.insta-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border: 1px solid var(--grey-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.social-link:hover {
  border-color: var(--gold);
  background: rgba(248, 195, 33, 0.1);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--white-muted);
  transition: fill 0.3s;
}

.social-link:hover svg {
  fill: var(--gold);
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.insta-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--grey);
  position: relative;
  cursor: pointer;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.3s;
}

.insta-item:hover img {
  transform: scale(1.1);
  opacity: 0.7;
}

.insta-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 195, 33, 0.15);
  opacity: 0;
  transition: opacity 0.4s;
}

.insta-item:hover::after {
  opacity: 1;
}


/* ==========================================================================
   20b. CONTACT FORM
   ========================================================================== */

.contact-section {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-header .section-text {
  max-width: 520px;
  margin: 1rem auto 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-field label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.contact-field input,
.contact-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: var(--black-card);
  border: 1px solid var(--grey-border);
  padding: 0.85rem 1rem;
  transition: border-color 0.3s, background 0.3s;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--black-soft);
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* Honeypot — hidden from real users, bots may fill it and get flagged */
.contact-hp {
  display: none;
}

@media (max-width: 640px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
  .contact-form .btn-primary {
    align-self: stretch;
    text-align: center;
  }
}


/* ==========================================================================
   21. FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--grey-border);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem) 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

/* Footer brand column */
.footer-brand-logo {
  display: block;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 70px;
  width: auto;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--white-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 1.5rem;
}

/* Social icon row */
.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--grey-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}

.footer-social-link:hover {
  border-color: var(--gold);
  background: rgba(248, 195, 33, 0.1);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--white-muted);
}

/* Footer link columns */
.footer-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--white-muted);
  font-weight: 300;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--gold);
}

/* Footer bottom bar */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--white-muted);
  font-weight: 300;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: var(--white-muted);
  font-weight: 300;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: var(--gold);
}


/* ==========================================================================
   22. RESPONSIVE — Tablet (≤1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .courts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .membership-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .insta-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .insta-item:last-child {
    display: none;
  }
}


/* ==========================================================================
   23. RESPONSIVE — Mobile (≤768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  .nav-links   { display: none; }
  .nav-hamburger { display: flex; }

  /* About section stacks */
  .about                { grid-template-columns: 1fr; }
  .about-image          { aspect-ratio: 3 / 2; }
  .about-accent         { display: none; }

  /* Stats to 2-column grid */
  .stats-grid           { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  /* Cards single column */
  .courts-grid          { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }

  /* Coaching stacks, image on top */
  .coaching             { grid-template-columns: 1fr; }
  .coaching-image        { min-height: 350px; order: -1; }
  .coaching-text         { padding: 2rem 1.5rem; }

  /* Pricing single column */
  .membership-grid       { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .membership-card:last-child { grid-column: auto; max-width: none; }

  /* Testimonials single column */
  .testimonials-grid     { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
  .testimonial-card:last-child { grid-column: auto; max-width: none; }

  /* Instagram 3-column */
  .insta-grid            { grid-template-columns: repeat(3, 1fr); }
  .insta-item:nth-child(4),
  .insta-item:nth-child(5) { display: none; }

  /* Footer stacks */
  .footer-top            { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom         { flex-direction: column; text-align: center; }

  /* Hero buttons stack on mobile */
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
    max-width: 280px;
  }

  /* CTA buttons stack on mobile */
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .cta-btns .btn-primary,
  .cta-btns .btn-outline {
    width: 100%;
    max-width: 280px;
  }

  .video-section {
    height: 50vh;
    min-height: 400px;
  }
}


/* ==========================================================================
   24. RESPONSIVE — Small Mobile (≤480px)
   ========================================================================== */

@media (max-width: 480px) {
  .hero {
    min-height: 100svh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-heading {
    font-size: 2rem;
  }

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

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

  .insta-item:nth-child(3) {
    display: none;
  }
}
