@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  /* UI Pro Max Dark Mode Palette */
  --bg-color: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: #121212;
  --gold-primary: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --text-main: #FDFCF0;
  --text-muted: #8E8E93;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.2);
  
  --radius-card: 24px;
  --radius-button: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Layout */
  --nav-height: 90px;
  --container-width: 1400px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography Selection Setup */
h1, h2, h3, h4, .font-cormorant {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}

::selection {
  background: var(--gold-primary);
  color: var(--bg-color);
}

.text-gold { color: var(--gold-primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }

/* Base Components */
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.hover-underline {
  position: relative;
  text-decoration: none;
  color: var(--text-main);
}
.hover-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--gold-primary);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.hover-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Custom Fancy Nav Link (Crazy Hover) */
.nav-fancy-link {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  padding: 0.2rem;
  z-index: 10;
  cursor: pointer;
}
.nav-text-primary, .nav-text-hover {
  display: flex;
  pointer-events: none;
}
.nav-text-hover {
  position: absolute;
  top: 100%;
  left: 0.2rem;
  color: var(--gold-primary);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}
.nav-text-primary span, .nav-text-hover span {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1), 
              opacity 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform, opacity;
}
.nav-text-primary span {
  color: var(--text-main);
}
.nav-fancy-link:hover .nav-text-primary span {
  transform: translateY(-120%) scale(0.9) skewX(5deg);
  opacity: 0;
}
.nav-fancy-link:hover .nav-text-hover span {
  transform: translateY(calc(-100% - 0.2rem));
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  height: var(--nav-height);
  padding: 0 5%;
  border-radius: 0;
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  will-change: width, max-width, top, border-radius, background-color, backdrop-filter;
}
.navbar.scrolled {
  top: 25px;
  width: calc(100% - 60px);
  max-width: 1200px;
  height: 75px;
  padding: 0 3rem;
  border-radius: 100px;
  background: rgba(12, 12, 12, 0.8);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              inset 0 -1px 0 rgba(212, 175, 55, 0.05);
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  letter-spacing: 0.2em;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar.scrolled .logo { color: var(--gold-primary); }
.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
}

/* Button */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center; /* ensures text centering in flex */
  text-align: center;      /* fallback */
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 100px;    /* match btn-outline */
  background: var(--gold-primary);
  color: var(--bg-color);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  border: none;
  transition: var(--transition);
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
}
.btn-gold:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--gold-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: transparent;
  color: var(--text-main);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  text-align: center;
}
.btn-outline span {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}
.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--gold-primary);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.btn-outline:hover::before {
  transform: translateY(0);
}
.btn-outline:hover span {
  color: #000;
}
.btn-outline:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.magnetic-btn {
  cursor: pointer;
}
.magnetic-btn span {
  display: inline-block;
  pointer-events: none;
}
.btn-gold:hover::before { transform: translateX(100%); }
.btn-large {
  font-size: 1.1rem;
  padding: 1.5rem 4rem;
  border-radius: 12px;
}

/* Sections */
.section {
  padding: 10rem 5%;
  max-width: var(--container-width);
  margin: 0 auto;
}
.section-header {
  margin-bottom: 4rem;
}
.section-subtitle {
  color: var(--gold-primary);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.section-desc {
  margin-top: 1.5rem;
  color: var(--text-muted);
  max-width: 500px;
  font-size: 1.1rem;
}

/* Hero Cinematic Masterpiece */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  max-width: 100%;
  overflow: hidden;
}
.hero-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15); /* Buffer scale for initial load easing */
  filter: brightness(0.65) contrast(1.1) saturate(1.1); /* Gritty luxury grading */
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
  margin-top: 5vh;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 15vw, 13rem); /* Massive cinematic scaling */
  line-height: 0.85;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 20px rgba(255,255,255,0.1);
  margin-bottom: 0;
  visibility: hidden; /* FOUC Prevention */
}
.hero-subtitle {
  font-size: 1.15rem;
  letter-spacing: 0.5em;
  color: var(--gold-primary);
  margin-top: 2rem;
  font-weight: 500;
  position: relative;
  visibility: hidden; /* FOUC Prevention */
}

/* Floating Architectural Specs */
.hero-specs {
  position: absolute;
  left: 5%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 10;
  visibility: hidden; /* FOUC Prevention */
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.spec-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

/* Minimalist Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  right: 5%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  z-index: 10;
  visibility: hidden; /* FOUC Prevention */
}
.scroll-text {
  writing-mode: vertical-rl;
  font-size: 0.65rem;
  color: var(--gold-primary);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.scroll-line-container {
  width: 1px;
  height: 70px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.scroll-line {
  width: 100%;
  height: 50%;
  background: var(--gold-primary);
  animation: scrollLineDrop 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scrollLineDrop {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.7;
}
.mouse {
  width: 24px;
  height: 40px;
  border: 1px solid var(--text-main);
  border-radius: 20px;
  position: relative;
}
.wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-primary);
  animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}
.scroll-text {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
@keyframes scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Stats Banner (OLED Luxury) */
/* =========================================
   STATS HIGHLIGHTS - ULTRA LUXURY UI
   ========================================= */
.stats-master-container {
  padding: 4rem 5%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.stats-grid-master {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: rgba(12, 12, 12, 0.6);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 25px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.stat-card-master {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 4.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease, border-color 0.6s ease;
  cursor: default;
}

/* Atmospheric Ambient Core Glow */
.stat-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.8s ease, height 0.8s ease;
  z-index: 0;
  pointer-events: none;
}

.stat-card-master:hover .stat-glow-bg {
  width: 150%;
  height: 150%;
}

.stat-card-master:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.15);
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(15, 15, 15, 0.9));
}

.stat-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.stat-value-wrap {
  display: flex;
  align-items: baseline; /* Perfectly aligns the 'm' relative to the '50' bottom edge! */
  justify-content: center;
  margin-bottom: 0.8rem;
  line-height: 1;
}

/* Base Numbers - Silver Gradient */
.stat-number, .stat-prefix {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  background: linear-gradient(to bottom, #ffffff, #a0a0a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: all 0.4s ease;
}

/* Base Units - Standalone Colors so they don't clip-mask into invisibility! */
.stat-unit {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #a0a0a0;
  margin-left: 0.3rem;
  transition: color 0.4s ease;
  font-weight: 400;
}

/* Gold Text Overrides (Inherited to children) */
.text-gold .stat-number, .text-gold .stat-prefix {
  background: linear-gradient(to bottom, #fdf5d3, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gold .stat-unit {
  color: var(--gold-primary); /* Ensures m² matches the gold perfectly */
}

/* Hover State Upgrades */
.stat-card-master:hover .stat-number,
.stat-card-master:hover .stat-prefix {
  background: linear-gradient(to bottom, #ffffff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.stat-card-master:hover .text-gold .stat-number,
.stat-card-master:hover .text-gold .stat-prefix {
  background: linear-gradient(to bottom, #ffffff, #fdf5d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.stat-card-master:hover .stat-unit {
  color: #ffffff;
}
.stat-card-master:hover .text-gold .stat-unit {
  color: var(--gold-light);
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.4s ease;
}

.stat-card-master:hover .stat-label {
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.35em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
  .stats-grid-master {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }
}

/* Partners Marquee (Ultra-Premium Vibe) */
.partners-section {
  padding: 6rem 0;
  background: var(--bg-color); /* Deep black for seamless integration */
  overflow: hidden;
  position: relative;
}
/* Trust Signal Adjustments */
.partners-section.partners-trust {
  padding: 1.5rem 0 2rem 0; /* Remove massive top gap to attach to hero */
  border-top: none;
  background: var(--bg-color); 
}
.partners-trust .partners-header {
  margin-bottom: 2rem; /* Tighter header for secondary signal */
}
.partners-trust .luxury-divider .text {
  font-size: 0.70rem; /* Slightly smaller for a trust signal vs headline */
  color: var(--text-muted); /* Subdued color so it doesn't steal attention from CTA */
}

.partners-header {
  margin-bottom: 4rem;
  padding: 0 5%;
}
.luxury-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.luxury-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
}
.luxury-divider .text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
}
.partners-marquee-track {
  display: flex;
  overflow: hidden;
  position: relative;
  /* Massive cinematic fade on edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, black 25%, black 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 25%, black 75%, transparent);
}
.partners-marquee-content {
  display: flex;
  align-items: center;
  /* Slower, more luxurious speed */
  animation: scroll-partners-hq 40s linear infinite;
  white-space: nowrap;
}
.partners-marquee-track:hover .partners-marquee-content {
  animation-play-state: paused;
}
.partner-hq-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 70px;
  margin-right: 6rem;
  /* Forces any transparent PNG to be a pure white silhouette! */
  filter: brightness(0) invert(1) opacity(0.3);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.partner-hq-logo:hover {
  /* Restores original colors natively from pure white */
  filter: brightness(1) invert(0) opacity(1);
  transform: translateY(-5px) scale(1.05);
}
.partner-hq-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@keyframes scroll-partners-hq {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 1.5rem;
  margin-top: 2rem;
}
.bento-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.bento-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.bento-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  filter: grayscale(20%) brightness(0.7);
}
.bento-card:hover .bento-img {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(0.9);
}
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 1;
}
.bento-solid-bg {
  position: absolute;
  inset: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, var(--bg-card), #050505);
}
.bento-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
}
.bento-content-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.bento-icon {
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
}
.bento-icon-gold {
  margin-bottom: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}
.bento-card:hover .bento-icon {
  background: var(--gold-primary);
  color: #000;
}
.bento-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.text-gold { color: var(--gold-primary) !important; }
.bento-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 90%;
}
.btn-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

/* Bento Grid Spans */
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-small { grid-column: span 1; grid-row: span 1; }
.bento-wide { grid-column: span 3; grid-row: span 1; }

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-large { grid-column: span 2; }
  .bento-small { grid-column: span 1; }
  .bento-wide { grid-column: span 2; }
}
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-small, .bento-wide { grid-column: span 1; }
}

/* =========================================
   LA PHILOSOPHIE - MASTERPIECE DESIGN
   ========================================= */
.philosophie-section {
  padding: 8rem 5%;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  overflow: visible; /* To allow glow to bleed a bit */
}

/* Atmospheric Pulse Glow */
.philosophie-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50vw;
  height: 50vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
  animation: pulsePhGlow 8s infinite alternate ease-in-out;
}

@keyframes pulsePhGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.philosophie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.philosophy-card {
  position: relative;
  height: 420px;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.philosophy-card:hover {
  transform: translateY(-15px);
  border-color: rgba(212, 175, 55, 0.3);
  background: linear-gradient(145deg, rgba(25, 25, 25, 0.8), rgba(10, 10, 10, 0.9));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(212, 175, 55, 0.05);
}

/* Massive Watermark Number */
.philosophy-number {
  position: absolute;
  top: -25px;
  right: -15px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.02);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.philosophy-card:hover .philosophy-number {
  color: rgba(212, 175, 55, 0.06);
  transform: scale(1.05) translate(-10px, 15px);
}

/* Top Animated Accent Line */
.philosophy-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.8;
}

.philosophy-card:hover .philosophy-accent {
  width: 100%;
}

/* Icon & Content */
.ph-icon {
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  margin-bottom: auto; /* pushes content down */
  position: relative;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-card:hover .ph-icon {
  color: var(--gold-primary);
  transform: scale(1.15) translateY(-5px);
  filter: drop-shadow(0 10px 15px rgba(212, 175, 55, 0.4));
}

.philosophy-content {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.philosophy-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.1;
  transition: color 0.4s ease;
}

.philosophy-card:hover .philosophy-title {
  color: var(--gold-primary);
}

.philosophy-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.4s ease;
}

.philosophy-card:hover .philosophy-desc {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1024px) {
  .philosophie-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .philosophy-card {
    height: auto;
    min-height: 320px;
    margin-top: 0 !important;
  }
}

/* =========================================
   ÉCOSYSTÈME - CINEMATIC ROUTERS
   ========================================= */
.ecosysteme-section {
  width: 100%;
  padding: 5rem 0 7rem 0; /* Reduced padding for tighter layout */
  max-width: 100%;
  display: flex;
  justify-content: center;
  background: var(--bg-color);
}
.eco-container {
  display: flex;
  gap: 1.5rem;
  width: 90%; /* Brought in slightly for better framing */
  max-width: 1400px; /* Capped width to standard container size */
  height: 60vh; /* Reduced height to feel more like elegant cards */
  min-height: 480px; /* Reduced minimum height */
  margin: 0 auto;
}
.eco-card {
  position: relative;
  flex: 1; /* Equal width by default */
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  background: #000; /* Dark canvas for opacity blending */
  transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateZ(0); /* Force Hardware Acceleration */
}
.eco-card:hover {
  flex: 1.5; /* Cinematic expanding */
}
.eco-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
  opacity: 0.5; /* Extremely fast, replaces expensive filter: grayscale/brightness */
  z-index: 0;
  will-change: transform, opacity;
}
.eco-card:hover .eco-bg {
  transform: scale(1.05); /* Slight scale up */
  opacity: 0.85; /* Brightens elegantly */
}
.eco-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.eco-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem; /* Reduced padding to give text more horizontal space */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none; /* Prevents text from interfering with card hover */
}
.eco-title {
  font-family: 'Cormorant Garamond', serif;
  /* Dynamically scales font size to fit container: 
     Min: 1.5rem (mobile) -> Scales with 2.5vw up to max: 2.5rem */
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  color: var(--text-main);
  line-height: 1.1;
  transition: color 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(15px);
  white-space: nowrap; /* Forces one line now that we mathematically fit it */
}
.eco-subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--gold-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.eco-card:hover .eco-title {
  color: var(--gold-primary);
  transform: translateY(0);
}
.eco-card:hover .eco-subtext {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .eco-container {
    flex-direction: column;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    width: 90%;
  }
  .eco-card {
    height: 400px;
    flex: auto;
  }
  .eco-card:hover {
    flex: auto; /* disable expanding height on mobile */
  }
  .eco-content {
    position: relative; /* Return to normal flow for mobile */
    width: 100%;
    padding: 2.5rem;
  }
  .eco-title {
    font-size: 2.5rem;
    transform: translateY(0);
    white-space: normal;
  }
  .eco-subtext {
    opacity: 1;
    transform: translateY(0);
    font-size: 1rem;
    white-space: normal;
  }
}

/* Experience Zone List */
.experience-section {
  padding: 10rem 5%;
  max-width: var(--container-width);
  margin: 0 auto;
}
.zones-container {
  position: relative;
  width: 100%;
}
.zone-list {
  display: flex;
  flex-direction: column;
}
.zone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}
.zone-item:first-child { border-top: 1px solid var(--border-color); }
.zone-item-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.zone-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.zone-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  color: var(--text-main);
  transition: var(--transition);
  text-transform: uppercase;
}
.zone-item-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.zone-tag {
  color: var(--gold-primary);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.zone-arrow {
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  transition: var(--transition);
}
.zone-item:hover {
  padding-left: 2rem;
  padding-right: 2rem;
  border-bottom-color: var(--border-gold);
}
.zone-item:hover .zone-name { color: var(--gold-primary); }
.zone-item:hover .zone-arrow {
  color: var(--gold-primary);
  transform: rotate(45deg);
}

/* Preview Image Follow Cursor */
.zone-img-preview {
  position: fixed;
  top: 0; left: 0;
  width: 350px;
  height: 450px;
  border-radius: var(--radius-card);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  border: 1px solid var(--border-gold);
  /* Uses GSAP purely for transform scale and positioning */
}
.zone-img-inner {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: inherit;
  filter: contrast(1.1) brightness(0.9);
  /* will-change to optimize fading */
  will-change: opacity;
}

/* Pricing Section */
.pricing-section {
  padding: 8rem 5%;
  background: var(--bg-color); /* Deep black */
  position: relative;
}
.pricing-section .section-header,
.coaches-premium-section .section-header,
.facilities-section .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-section .section-desc,
.coaches-premium-section .section-desc,
.facilities-section .section-desc {
  max-width: 600px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
  margin-top: 5rem;
  align-items: stretch;
}
.pricing-card {
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08); 
  border-radius: 20px;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-slow);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.9);
}

.pricing-gold {
  border-color: var(--gold-primary);
  background: linear-gradient(160deg, rgba(40, 32, 10, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.15), inset 0 0 0 1px rgba(212, 175, 55, 0.3);
  z-index: 1;
  transform: scale(1.02);
}
.pricing-gold::before {
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.2) 0%, transparent 60%);
}
.pricing-gold:hover {
  border-color: #F3E5AB;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.3), inset 0 0 0 1px rgba(212, 175, 55, 0.5);
  transform: scale(1.02) translateY(-8px);
}

.pricing-platinum {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(160deg, rgba(30, 32, 40, 0.95) 0%, rgba(5, 5, 5, 0.95) 100%);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 2;
  transform: scale(1.04);
}
.pricing-platinum::before {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}
.pricing-platinum:hover {
  border-color: #FFF;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transform: scale(1.04) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-primary);
  color: #000;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.platinum-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FFF 0%, #A0AEC0 100%);
  color: #000;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pack-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0;
}
.pricing-platinum .pack-name {
  background: linear-gradient(135deg, #FFF 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pack-features {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 3.5rem;
  padding: 0;
}
.pack-features li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: -1rem; /* Pull back to align perfectly with header */
  margin-right: -1rem;
}
.pack-features li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.pack-features li:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  transform: translateX(8px);
  border-bottom-color: transparent;
}
.pricing-gold .pack-features li:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
}

.pack-features li i {
  color: var(--gold-primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2));
}
.pack-features li:hover i {
  transform: scale(1.25) rotate(5deg);
  color: #FFF;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
}

.feature-highlight {
  color: var(--text-main) !important;
  font-weight: 500;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 80%) !important;
  border-left: 2px solid var(--gold-primary) !important;
  border-bottom: none !important;
  margin-bottom: 1rem !important;
  border-radius: 0 12px 12px 0 !important;
}
.feature-highlight i {
  color: var(--gold-light) !important;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5)) !important;
}
.feature-highlight:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, transparent 80%) !important;
  border-left-width: 4px !important;
  transform: translateX(8px);
}

/* Silver Specific Overrides */
.pricing-silver .btn-outline:hover {
  border-color: #E2E8F0;
  box-shadow: 0 10px 25px rgba(226, 232, 240, 0.2);
}
.pricing-silver .btn-outline::before {
  background-color: #E2E8F0;
}

/* Platinum Specific Overrides */
.pricing-platinum .pack-features li:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}
.pricing-platinum .pack-features li i {
  color: #E2E8F0;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}
.pricing-platinum .pack-features li:hover i {
  color: #FFF;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}
.pricing-platinum .feature-highlight {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, transparent 80%) !important;
  border-left-color: #E2E8F0 !important;
}
.pricing-platinum .feature-highlight i {
  color: #FFF !important;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) !important;
}
.pricing-platinum .feature-highlight:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, transparent 80%) !important;
}
.pricing-platinum .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
}
.pricing-platinum .btn-outline::before {
  background-color: #E2E8F0;
}
.pricing-platinum .btn-outline:hover {
  border-color: #FFF;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

.pricing-card .btn-outline,
.pricing-card .btn-gold {
  width: 100%;
}

/* Ladies Beauty & Spa Section (Rose Gold Clinic Aesthetic) */
.spa-section {
  padding: 8rem 5%;
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}
.rose-gold-text {
  color: #D4B2A7 !important;
  letter-spacing: 0.3em;
}
.spa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 5rem;
}
.spa-card {
  background: linear-gradient(160deg, rgba(20, 16, 15, 0.95) 0%, rgba(5, 5, 5, 0.95) 100%);
  border: 1px solid rgba(212, 178, 167, 0.15); /* Rose gold subtle tint */
  border-top: 1px solid rgba(212, 178, 167, 0.3);
  border-radius: 20px;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(212, 178, 167, 0.05);
  transition: var(--transition-slow);
}
.spa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(212, 178, 167, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.spa-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 178, 167, 0.4);
  box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 50px rgba(212, 178, 167, 0.05);
}
.spa-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #E6C8BC 0%, #D4B2A7 100%);
  color: #2D1A15;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 10px 20px rgba(212, 178, 167, 0.2);
  white-space: nowrap;
}
.spa-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(212, 178, 167, 0.1);
}
.spa-pack-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #FFF 0%, #D4B2A7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
}
.spa-features li i {
  color: #D4B2A7 !important;
  filter: drop-shadow(0 0 5px rgba(212, 178, 167, 0.2));
}
.spa-features li:hover i {
  color: #FFF !important;
  filter: drop-shadow(0 0 10px rgba(212, 178, 167, 0.6));
}
.spa-features li:hover {
  background: linear-gradient(90deg, rgba(212, 178, 167, 0.05) 0%, transparent 100%);
}
.spa-highlight {
  background: linear-gradient(90deg, rgba(212, 178, 167, 0.08) 0%, transparent 80%) !important;
  border-left-color: #D4B2A7 !important;
}
.spa-highlight i {
  color: #FFF !important;
}
.spa-highlight:hover {
  background: linear-gradient(90deg, rgba(212, 178, 167, 0.12) 0%, transparent 80%) !important;
}
.btn-spa {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #2D1A15;
  background: linear-gradient(135deg, #E6C8BC 0%, #D4B2A7 100%);
  transition: var(--transition);
  border: none;
}
.btn-spa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 178, 167, 0.25);
  background: linear-gradient(135deg, #F3DED7 0%, #E6C8BC 100%);
}

/* Kids Club Masterpiece Section */
.kids-master-section {
  position: relative;
  padding: 12rem 5%;
  background: #050505; /* Deeper black to detach from standard background */
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.km-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 35vw;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.05em;
  user-select: none;
}
.kids-master-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  align-items: center;
}
.km-story {
  max-width: 550px;
}
.km-subtitle {
  color: var(--gold-primary);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.km-subtitle i { width: 18px; height: 18px; }
.km-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5.5rem;
  line-height: 1.05;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}
.km-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 4rem;
}

.km-activities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.km-act-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  color: #FFF;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}
.km-act-item i {
  color: var(--gold-primary);
  transition: transform 0.4s ease;
}
.km-act-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(8px);
}
.km-act-item:hover i {
  transform: scale(1.2);
}

.km-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}
/* By nesting inner card, we protect the animation from GSAP's scroll handler */
.km-card-wrapper {
  perspective: 1000px;
}
.km-card {
  position: relative;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  padding: 3rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
  overflow: hidden;
}
.km-card-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.km-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 25px 50px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.km-card-dark {
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(5, 5, 5, 0.95) 100%);
}
.km-massive-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  line-height: 1;
  color: #FFF;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.km-massive-num .km-to {
  font-size: 1.5rem;
  color: var(--gold-primary);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.km-massive-num .km-yr {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.km-card-gold {
  background: linear-gradient(160deg, #D4AF37 0%, #AA8A28 100%);
  border-color: #F3E5AB;
}
.km-card-top {
  margin-bottom: 1rem;
}
.km-card-gold:hover {
  border-color: #FFF;
  box-shadow: 0 25px 50px rgba(212, 175, 55, 0.3);
}
.text-black { color: #000 !important; }
.km-card-gold .km-card-title { color: #000; font-weight: 700; }
.km-card-gold .km-card-text { font-weight: 500; font-size: 1.1rem; }
.km-card-gold auto { color: #000; width: 32px; height: 32px; margin-bottom: 1rem; }

.km-card-glass {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 4rem 3rem;
}
.km-card-glass:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.km-limit-ring {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #ff3b30;
  margin: 0 auto 2rem;
  box-shadow: 0 0 20px rgba(255, 59, 48, 0.8);
  animation: km-pulse-red 2s infinite;
}
@keyframes km-pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.km-card-title {
  font-size: 1.3rem;
  color: #FFF;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.km-card-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .kids-master-grid { grid-template-columns: 1fr; gap: 5rem; max-width: 600px; }
  .km-bg-text { font-size: 50vw; top: 15%; opacity: 0.03; }
}
@media (max-width: 768px) {
  .km-title { font-size: 4rem; }
  .km-activities { grid-template-columns: 1fr; }
}

/* Elite Coaching Staff Section (Masonry Trust Architecture) */
.coaches-premium-section {
  padding: 10rem 0;
  background: #000;
  position: relative;
  overflow: hidden;
}
.coaches-premium-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 100px 100px;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
}
.coaches-premium-section .section-header {
  padding: 0 5%;
}

.coaches-roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: var(--container-width);
  margin: 4rem auto 0;
  padding: 0 5%;
  position: relative;
  z-index: 2;
}

/* Stagger Logic for Masonry Look */
.pill-wrap:nth-child(3n+2) { margin-top: 6rem; }
.pill-wrap:nth-child(3n+3) { margin-top: 3rem; }

.coach-pillar {
  position: relative;
  height: 500px;
  background: #070707;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.pillar-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(212, 175, 55, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.coach-pillar:hover {
  transform: translateY(-15px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 40px rgba(212, 175, 55, 0.1);
}
.coach-pillar:hover .pillar-bg {
  opacity: 1;
}

.pillar-inner {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}
.pillar-watermark {
  position: absolute;
  top: -30px;
  right: -30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  line-height: 0.8;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.coach-pillar:hover .pillar-watermark {
  color: rgba(212, 175, 55, 0.05);
  transform: rotate(180deg) scale(1.1) translateY(-20px);
}

.pillar-content {
  position: relative;
  z-index: 3;
}
.pillar-limit-bar {
  width: 30px;
  height: 3px;
  background: rgba(212, 175, 55, 0.5);
  margin-bottom: 2rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.coach-pillar:hover .pillar-limit-bar {
  width: 100px;
  background: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.pillar-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  line-height: 1.1;
  color: #FFF;
  margin-bottom: 1rem;
  transition: transform 0.6s ease;
}
.pillar-title {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.6;
  margin-bottom: 0;
  transition: color 0.6s ease;
}
.coach-pillar:hover .pillar-title {
  color: var(--gold-light);
}

.pillar-trust {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFF;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-trust i {
  color: var(--gold-primary);
  width: 18px; height: 18px;
}
.coach-pillar:hover .pillar-trust {
  opacity: 1;
  transform: translateY(0);
}

/* Female Coach Specific Styling (Rose Gold) */
.coach-pillar-rose:hover {
  border-color: rgba(212, 178, 167, 0.5);
  box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 40px rgba(212, 178, 167, 0.1);
}
.coach-pillar-rose .pillar-bg {
  background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(212, 178, 167, 0.06) 100%);
}
.coach-pillar-rose:hover .pillar-watermark {
  color: rgba(212, 178, 167, 0.05);
}
.coach-pillar-rose .pillar-limit-bar {
  background: rgba(212, 178, 167, 0.5);
}
.coach-pillar-rose:hover .pillar-limit-bar {
  background: #D4B2A7;
  box-shadow: 0 0 15px rgba(212, 178, 167, 0.5);
}
.coach-pillar-rose:hover .pillar-title {
  color: #E6C8BC;
}
.coach-pillar-rose .pillar-trust i {
  color: #D4B2A7;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .coaches-roster { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .pill-wrap:nth-child(3n+2) { margin-top: 0; }
  .pill-wrap:nth-child(3n+3) { margin-top: 0; }
  .pill-wrap:nth-child(2n+2) { margin-top: 4rem; }
}
@media (max-width: 768px) {
  .coaches-roster { grid-template-columns: 1fr; gap: 2rem; }
  .pill-wrap:nth-child(2n+2) { margin-top: 0; }
  .coach-pillar { height: 400px; }
  .pillar-name { font-size: 2.2rem; }
  .pillar-watermark { font-size: 10rem; }
}

/* Location CTA */
.location-section {
  position: relative;
  padding: 12rem 5%;
  text-align: center;
  background: var(--bg-color); /* Deep black */
  /* Border removed for seamless transition from marquee */
}
.location-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.location-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.location-icon {
  color: var(--gold-primary);
}
.location-subtitle {
  color: var(--gold-primary);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.location-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 8vw, 7rem);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  /* Dark mode large text style */
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.location-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
}

/* Exclusive Application Form - God Tier Reality Distortion UI */
.invite-form {
  position: relative;
  width: 100%;
  max-width: 650px;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 30px;
  padding: 4rem;
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.9), 
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -2px 10px rgba(212, 175, 55, 0.05);
  text-align: left;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: visible;
}

/* Mouse Spotlight Layer */
.invite-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(800px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(212, 175, 55, 0.15), transparent 40%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.invite-form:hover::before {
  opacity: 1;
}

/* Base structural glow */
.invite-form-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 60%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

.invite-form-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateZ(40px);
}
.invite-form-header i {
  color: var(--gold-primary);
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
  animation: pulseGold 3s infinite alternate;
}
@keyframes pulseGold {
  0% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8)); }
}

.invite-form-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  background: linear-gradient(to right, #ffffff, #d4af37, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  animation: textShine 8s linear infinite;
}
@keyframes textShine {
  to { background-position: 200% center; }
}

.form-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  transform: translateZ(25px);
}
.form-group-full {
  position: relative;
  z-index: 10;
  margin-bottom: 3rem;
  transform: translateZ(40px);
}
.form-group {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2px;
}
.form-group:has(.custom-select-container.open) {
  z-index: 50;
}

/* Label dynamics */
.form-group label {
  position: relative;
  z-index: 3;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  margin-left: 0.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  transform-origin: left bottom;
}

/* Magical Active Focus states */
.form-group:has(.form-input:focus) label,
.form-input:not(:placeholder-shown) ~ label {
  color: var(--gold-primary);
  transform: translateY(-5px) scale(1.05);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  letter-spacing: 0.3em;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 1.75rem;
  border-radius: 16px;
  color: #FFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
  transition: opacity 0.3s ease;
}
.form-input:focus::placeholder {
  opacity: 0;
}

/* Focus input itself pops */
.form-input:focus {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6), 
    inset 0 0 20px rgba(212, 175, 55, 0.1),
    0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(-4px) translateZ(15px);
}

.form-input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* The Animated Base Line that shoots out */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  border-radius: 16px;
  background: linear-gradient(90deg, transparent, #FFF, var(--gold-primary), #FFF, transparent);
  background-size: 200% auto;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: liquidGold 3s linear infinite;
}
@keyframes liquidGold {
  to { background-position: 200% center; }
}

.form-group:has(.form-input:focus)::after {
  width: 90%;
  left: 5%;
  opacity: 1;
  box-shadow: 0 -5px 25px rgba(212, 175, 55, 0.5), 0 0 10px rgba(255, 255, 255, 0.2);
}
/* God Tier Custom Select */
.custom-select-container {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 1.75rem;
  border-radius: 16px;
  color: #FFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.custom-select-trigger.open {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6), 
    inset 0 0 20px rgba(212, 175, 55, 0.1),
    0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(-4px) translateZ(15px);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.custom-select-trigger:hover:not(.open) {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.custom-options {
  position: absolute;
  display: block;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  transform-origin: top center;
  transform: translateY(-15px) translateZ(50px);
}
.custom-select-container.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) translateZ(50px);
}

.custom-option {
  padding: 1.2rem 1.75rem;
  font-family: 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.custom-option:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.custom-option:hover, .custom-option.selected {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  padding-left: 2.2rem;
}
.custom-option::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold-primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}
.custom-option:hover::before, .custom-option.selected::before {
  transform: scaleY(1);
}

/* Hide original select */
.select-wrapper select {
  display: none;
}

.form-footer {
  position: relative;
  z-index: 2;
  transform: translateZ(35px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* 3D Depth Management: Push siblings backwards when dropdown is open */
.invite-form:has(.custom-select-container.open) .form-footer,
.invite-form:has(.custom-select-container.open) .form-grid {
  transform: translateZ(0px);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.form-group-full:has(.custom-select-container.open) {
  transform: translateZ(60px) !important;
  z-index: 999 !important;
}

.w-full {
  width: 100%;
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stunning button sweep */
.w-full::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg) translate(-100%, -100%);
  animation: submitSweep 3.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes submitSweep {
  0% { transform: rotate(45deg) translate(-100%, -100%); }
  50% { transform: rotate(45deg) translate(100%, 100%); }
  100% { transform: rotate(45deg) translate(100%, 100%); }
}

.w-full span {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.w-full:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(212, 175, 55, 0.3), 0 0 30px rgba(212, 175, 55, 0.1);
  letter-spacing: 0.25em;
}

.form-security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.invite-form:hover .form-security-notice {
  color: rgba(255, 255, 255, 0.5);
}
.form-security-notice i {
  width: 14px; height: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Ladies Spa Form Overrides (Pink Theme) --- */
.invite-form-spa::before {
  background: radial-gradient(800px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(226, 173, 161, 0.15), transparent 40%);
}
.invite-form-spa .invite-form-glow {
  background: radial-gradient(circle at top right, rgba(226, 173, 161, 0.1), transparent 60%);
}
.invite-form-spa .invite-form-header i {
  color: #E2ADA1;
  filter: drop-shadow(0 0 15px rgba(226, 173, 161, 0.5));
  animation: pulsePink 3s infinite alternate;
}
@keyframes pulsePink {
  0% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(226, 173, 161, 0.4)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(226, 173, 161, 0.8)); }
}
.invite-form-spa .invite-form-header h3 {
  background: linear-gradient(to right, #ffffff, #E2ADA1, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.invite-form-spa .form-group:has(.form-input:focus) label,
.invite-form-spa .form-group:has(.custom-select-trigger.open) label,
.invite-form-spa .form-input:not(:placeholder-shown) ~ label {
  color: #E2ADA1;
  text-shadow: 0 0 15px rgba(226, 173, 161, 0.4);
}
.invite-form-spa .form-input:focus,
.invite-form-spa .custom-select-trigger.open {
  background: rgba(226, 173, 161, 0.05);
  border-color: rgba(226, 173, 161, 0.6);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6), 
    inset 0 0 20px rgba(226, 173, 161, 0.1),
    0 0 20px rgba(226, 173, 161, 0.2);
}
.invite-form-spa .form-group::after {
  background: linear-gradient(90deg, transparent, #FFF, #E2ADA1, #FFF, transparent);
  background-size: 200% auto;
}
.invite-form-spa .form-group:has(.form-input:focus)::after,
.invite-form-spa .form-group:has(.custom-select-trigger.open)::after {
  box-shadow: 0 -5px 25px rgba(226, 173, 161, 0.5), 0 0 10px rgba(255, 255, 255, 0.2);
  width: 90%;
  left: 5%;
  opacity: 1;
}
.invite-form-spa .select-icon {
  color: #E2ADA1;
}
.invite-form-spa .form-group:has(.custom-select-trigger.open) .select-icon {
  filter: drop-shadow(0 0 10px #E2ADA1);
}

/* Custom Select Dropdown Pink Overrides */
.invite-form-spa .custom-options {
  border-color: rgba(226, 173, 161, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(226, 173, 161, 0.15);
}
.invite-form-spa .custom-option:hover, 
.invite-form-spa .custom-option.selected {
  background: rgba(226, 173, 161, 0.1);
  color: #E2ADA1;
}
.invite-form-spa .custom-option::before {
  background: #E2ADA1;
}

.invite-form-spa .w-full:hover {
  box-shadow: 0 25px 50px rgba(226, 173, 161, 0.3), 0 0 30px rgba(226, 173, 161, 0.1);
}

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .invite-form { padding: 2.5rem; border-radius: 20px; transform: none !important; }
  .invite-form-header h3 { font-size: 2rem; }
}

/* Masterpiece Footer (UI/UX Pro Max) */
.footer-masterpiece {
  background: var(--bg-color); /* OLED Deep Black */
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15); /* Gold tinted hairline border */
  z-index: 1;
}

/* Master Grid Layout */
.footer-grid-master {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5% 5rem;
  position: relative;
  z-index: 2;
}
.footer-master-brand {
  max-width: 400px;
}
.footer-master-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  letter-spacing: 0.25em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  letter-spacing: 0.03em;
}

/* Advanced Social Icons Component (Inherited & Upgraded) */
.social-icons {
  display: flex;
  gap: 1.25rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Circle is more architectural and premium here */
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-primary);
  background: transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.social-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.social-icon i {
  width: 20px; /* Tighter ratio */
  height: 20px;
  transition: transform 0.4s ease;
}
.social-icon:hover {
  background: var(--gold-primary);
  color: var(--bg-color);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
  transform: translateY(-5px);
  border-color: var(--gold-primary);
}
.social-icon:hover i {
  transform: scale(1.15);
}

/* Footer Links Column Math */
.footer-master-links {
  display: flex;
  gap: 6rem;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-nav-col h4 {
  color: var(--gold-primary);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-nav-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}
.footer-nav-col a.hover-underline:hover {
  color: var(--gold-light);
}

/* Colossal Architectural Typography Background */
.footer-colossal-wrapper {
  position: relative;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-top: -4.5rem; /* Tuck significantly underneath the grid */
  pointer-events: none;
}
.footer-colossal-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21vw; /* Massively responsive width spanning */
  line-height: 0.73;
  color: var(--text-main);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.05em;
  user-select: none;
  /* Ultra-Luxury Cinematic Mask - fades into pure black abyss at the bottom */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sub-Bottom Legal Text */
.footer-master-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.legal-links {
  display: flex;
  gap: 2rem;
}
.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.legal-links a:hover {
  color: var(--text-main);
}

/* Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}
.reveal-text {
  opacity: 0;
  transform: translateY(20px);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .zone-item-left { gap: 1rem; }
  .zone-name { font-size: 1.8rem; }
  .zone-item-right { display: none; } 
  .footer-grid-master { flex-direction: column; gap: 4rem; }
  .footer-master-links { flex-direction: column; gap: 3rem; }
  .footer-master-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
