:root {
  --navy-deep: #0f1c38;
  --navy: #16305c;
  --navy-mid: #304a94;
  --lime: #c8e82f;
  --white: #ffffff;
  --grey-text: #b9c3d9;
  --surface: rgba(255, 255, 255, 0.04);
  --hairline: rgba(255, 255, 255, 0.12);
  --max-width: 1180px;
  --radius: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 16px;
}

p { color: var(--grey-text); }

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--navy-deep); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 28, 56, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 34px; width: auto; }
.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  opacity: 0.85;
}
.nav a:hover { opacity: 1; color: var(--lime); }
.nav-cta { flex-shrink: 0; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  position: relative;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform .3s ease, opacity .3s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — background video */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url('assets/hero-poster.webp') center / cover no-repeat var(--navy-deep);
  /* Hold a couple of seconds, then slowly pull back to reveal the courts */
  transform: scale(1.1);
  animation: heroZoom 26s ease-out forwards;
  will-change: transform;
}
@keyframes heroZoom {
  0%   { transform: scale(1.1); }
  22%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 28, 56, 0.85), rgba(15, 28, 56, 0.35) 55%, rgba(15, 28, 56, 0.6));
}
/* Smooth fade into the next (navy) section — no hard cut */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(15, 28, 56, 0), var(--navy-deep));
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(120px, 17vh, 210px);
  padding-bottom: 96px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6.5vw, 84px);
  color: var(--white);
}
.h1-loc {
  display: block;
  font-size: 0.45em;
  color: var(--lime);
  font-style: italic;
  margin-top: 12px;
  letter-spacing: 0;
}
.hero-sub {
  max-width: 540px;
  font-size: 18px;
  color: #d3dcf0;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 999px;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--lime);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: scrollhint 1.6s infinite;
}
@keyframes scrollhint {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* Sections */
.section {
  padding: 96px 0;
}
/* Lighter sections fade to the base navy at both edges — seamless boundaries */
.section-alt {
  background: linear-gradient(
    180deg,
    var(--navy-deep) 0%,
    var(--navy) 22%,
    var(--navy) 78%,
    var(--navy-deep) 100%
  );
}
.eyebrow {
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 12px;
}
.section h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  max-width: 760px;
}
.section-lead {
  max-width: 620px;
  font-size: 17px;
  margin-bottom: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-hint span { animation: none; }
  .hero-media { animation: none; transform: none; }
}

/* The Club — merged section */
.club-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
/* PHOTO PLACEHOLDER surface until court photo arrives */
.club-media {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    var(--navy);
}
.club-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.perks-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 64px 0 0;
  padding: 0;
}
.perk {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}
.perk-icon {
  width: 22px;
  height: 22px;
  color: var(--lime);
  margin-bottom: 14px;
}
.perk h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--white);
  margin: 0 0 6px;
}
.perk p {
  font-size: 14px;
  margin: 0;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.price-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
}
.price-card h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--grey-text);
  margin: 0 0 18px;
}
.price-main {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 4px;
}
.price-main span {
  font-size: 18px;
  font-weight: 500;
  color: var(--grey-text);
}
.price-per {
  font-size: 14px;
  margin: 0 0 28px;
}
.price-durations {
  list-style: none;
  margin: 0;
  padding: 0;
}
.price-durations li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--grey-text);
}
.price-durations li span:last-child {
  color: var(--white);
  font-weight: 700;
  transition: color .3s ease, transform .3s ease;
}
/* Hover highlight on the price */
.price-durations li:hover span:last-child {
  color: var(--lime);
  transform: translateX(-4px);
}
.price-badge {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime);
  border: 1px solid rgba(200, 232, 47, 0.4);
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 10px;
  white-space: nowrap;
}
.pricing-note {
  margin: 28px 0 0;
  font-size: 15px;
}
.pricing-actions {
  margin-top: 28px;
}
.hours-line {
  margin: 40px 0 0;
  font-size: 14px;
  color: rgba(185, 195, 217, 0.75);
}
.hours-line a {
  color: var(--lime);
  text-decoration: underline;
}

/* Placeholder card (events empty state) */
.placeholder-card {
  margin-top: 32px;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  background: var(--surface);
}
.placeholder-card p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
}

/* Events */
.events-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.events-head h2 { margin-bottom: 0; }
.events-head-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  margin-bottom: 6px;
}
.events-all {
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.events-all:hover { opacity: 0.85; }
.events-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.events-nav[hidden] { display: none; }
.events-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.events-arrow:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}
.events-track {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.events-track::-webkit-scrollbar { display: none; }
.events-track .placeholder-card { flex: 1 1 100%; margin-top: 0; }
.event-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.event-card.no-media { grid-template-columns: 1fr; }
.event-card-body { padding: 36px; }
.event-card-media {
  position: relative;
  min-height: 340px;
}
.event-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-tag {
  display: inline-block;
  background: var(--lime);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.event-card h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.event-card p {
  max-width: 520px;
  margin-bottom: 24px;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}
.event-meta span { display: inline-flex; align-items: center; }
.event-meta span + span::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  margin: 0 12px;
}
.events-note {
  margin-top: 24px;
  font-size: 14px;
}
.events-note a {
  color: var(--lime);
  text-decoration: underline;
}

/* "Coming soon" slide at the end of the track */
.event-coming {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 340px;
  transition: background .2s ease;
}
.event-coming:hover { background: rgba(255, 255, 255, 0.07); }
.event-coming-inner { max-width: 420px; padding: 36px; }
.event-coming h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.event-coming p { margin: 0 0 20px; }
.event-coming-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Events page */
.page-head {
  padding-top: 180px;
  padding-bottom: 72px;
}
.page-title {
  font-size: clamp(36px, 5.5vw, 64px);
  max-width: 760px;
}
.nav a.nav-current { opacity: 1; color: var(--lime); }
.events-list {
  display: grid;
  gap: 24px;
}
.events-list .event-card { flex: none; }
.events-list .placeholder-card { margin-top: 0; }

/* Gallery — exhibition slider */
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.gallery-head h2 { margin-bottom: 0; }
.gallery-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 6px;
}
.gal {
  margin-top: 48px;
  outline: none;
}
.gal:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }
.gal-stage {
  position: relative;
  height: clamp(420px, 62vh, 620px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
  cursor: pointer;
}
.gal-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1);
}
.gal-slide.is-active { opacity: 1; visibility: visible; }
/* Blurred backdrop fills the stage so any aspect ratio sits well — nothing is cropped */
.gal-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(38px) saturate(1.15);
  transform: scale(1.15);
  opacity: 0.4;
}
.gal-slide picture {
  position: relative;
  height: 100%;
  display: flex;
}
.gal-slide picture img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform: scale(1);
  transition: transform 6s ease-out;
}
.gal-slide.is-active picture img { transform: scale(1.04); }
.gal-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
}
.gal-index {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: rgba(185, 195, 217, 0.65);
}
.gal-index em {
  font-style: normal;
  font-size: 22px;
  color: var(--lime);
  margin-right: 8px;
}
.gal-caption {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.gal-progress {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.gal-progress span {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--lime);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), width .6s cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .gal-slide { transition: none; }
  .gal-slide picture img,
  .gal-slide.is-active picture img { transition: none; transform: none; }
}

/* Map */
.map-wrap {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
}
.map-wrap iframe { display: block; filter: grayscale(0.1); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  padding: 72px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-logo { height: 32px; width: auto; }
.footer-whatsapp { margin: 4px 0; }
.footer-contacts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  color: var(--grey-text);
}
.footer-contacts a:hover { color: var(--lime); }

/* Instagram handle with icon */
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ig-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.footer-copy {
  font-size: 12.5px;
  color: rgba(185,195,217,0.6);
  margin: 0;
}

/* Mobile nav panel */
.mobile-nav { display: none; }

body.nav-open { overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav-cta { display: none; }

  .section { padding: 72px 0; }

  .club-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .club-media { order: 1; }
  .perks-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 64px;
  }

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

  .gallery-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .gallery-nav { margin-bottom: 0; }
  .gal { margin-top: 28px; }
  .gal-stage { height: clamp(380px, 56vh, 520px); }

  .event-card { grid-template-columns: 1fr; }
  .event-card-media {
    order: -1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .events-head { flex-direction: column; align-items: flex-start; }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    inset: 0;
    padding: 108px 32px 40px;
    background: var(--navy-deep);
    transform: translateX(100%);
    transition: transform .5s cubic-bezier(.65, 0, .35, 1);
    z-index: 90;
    overflow-y: auto;
  }
  .mobile-nav.open { transform: translateX(0); }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
  }
  .mobile-nav-links a {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: clamp(28px, 8vw, 38px);
    color: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-nav-links a:hover { color: var(--lime); }

  .mobile-nav-cta {
    margin: 32px 0;
    text-align: center;
    width: 100%;
  }

  .mobile-nav-secondary {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
    color: var(--grey-text);
  }
  .mobile-nav-secondary a:hover { color: var(--lime); }
}

@media (max-width: 520px) {
  .section { padding: 56px 0; }
  .gal-bar {
    grid-template-columns: auto 1fr;
    row-gap: 12px;
  }
  .gal-progress { grid-column: 1 / -1; width: 100%; }
  .perks-row { grid-template-columns: 1fr 1fr; gap: 28px; }
  .price-card { padding: 28px 24px; }
}
