/* ============================================
   THE EDGE EXTREME FITNESS — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;900&family=Barlow+Condensed:wght@400;600;700;900&display=swap');

:root {
  --black:       #080808;
  --dark:        #111111;
  --card:        #161616;
  --border:      #222222;
  --red:         #E63030;
  --red-dark:    #B52222;
  --red-glow:    rgba(230, 48, 48, 0.25);
  --studio-pink: #FF6B8A;
  --studio-warm: #FF8C69;
  --studio-bg:   #13080D;
  --white:       #FFFFFF;
  --grey:        #999999;
  --light-grey:  #CCCCCC;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-accent:  'Barlow Condensed', sans-serif;
  --radius:       12px;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.1; }
.display { font-family: var(--font-display); letter-spacing: 0.02em; }
.accent  { font-family: var(--font-accent); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

.red     { color: var(--red); }
.grey    { color: var(--grey); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 100px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 6px;
  font-family: var(--font-accent); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: var(--transition);
}
.btn-primary {
  background: var(--red); color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark); transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--red-glow);
}
.btn-outline {
  border: 2px solid var(--white); color: var(--white);
}
.btn-outline:hover {
  background: var(--white); color: var(--black); transform: translateY(-2px);
}
.btn-ghost {
  border: 2px solid var(--border); color: var(--grey);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ── Focus states — keyboard a11y ── */
.btn:focus-visible,
.nav-links a:focus-visible,
.plan-card a:focus-visible,
.coach-card:focus-visible,
.coach-full-card:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 6px;
}
.form-control:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; transition: opacity 0.2s; }
.nav-logo:hover { opacity: 0.85; }
.nav-logo-icon { height: 38px; width: 38px; color: var(--white); flex-shrink: 0; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.nav-logo:hover .nav-logo-icon { transform: scale(1.05); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); letter-spacing: 0.04em; }
.nav-logo-tag { font-family: var(--font-accent); font-size: 0.55rem; color: var(--red); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 4px; font-weight: 700; }
.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-accent); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-grey);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--red); transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 12px; padding: 10px 24px !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform 0.3s, opacity 0.3s; transform-origin: center; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0;
}
.hero-video-wrap video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,8,8,0.85) 0%,
    rgba(8,8,8,0.6) 50%,
    rgba(230,48,48,0.08) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
}
.hero-eyebrow {
  font-family: var(--font-accent); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--red);
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 40px; height: 2px; background: var(--red);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.95;
  margin-bottom: 24px;
}
.hero-title span { color: var(--red); }
.hero-subtitle {
  font-size: 1.1rem; color: var(--light-grey); max-width: 480px;
  margin-bottom: 40px; font-weight: 300; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-accent); font-size: 0.75rem; letter-spacing: 0.15em;
  color: var(--grey); animation: bounce 2.5s infinite;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 50px; background: var(--red);
  animation: grow 2.5s infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes grow { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 60px; }
.section-tag {
  font-family: var(--font-accent); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red);
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.section-tag::before { content: ''; display: block; width: 30px; height: 2px; background: var(--red); }
.section-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); }
.section-subtitle { color: var(--grey); margin-top: 12px; max-width: 540px; font-size: 1rem; }
.section-header.center { text-align: center; }
.section-header.center .section-tag { justify-content: center; }
.section-header.center .section-tag::before { display: none; }
.section-header.center .section-subtitle { margin: 12px auto 0; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 0; }
.divider-red { height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); }

/* ── PLACEHOLDER IMAGE ── */
.placeholder-img {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--border); font-size: 2rem;
  position: relative; overflow: hidden;
}
.placeholder-img::after {
  content: 'Photo Coming Soon';
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6); padding: 10px;
  font-family: var(--font-accent); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey);
  text-align: center;
}

/* ── STATS BAR ── */
.stats-bar { background: var(--red); padding: 28px 0; }
.stats-inner { display: flex; justify-content: space-around; align-items: center; gap: 20px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; color: var(--white); line-height: 1; }
.stat-label { font-family: var(--font-accent); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ── CARD ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
}
.card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }

/* ── MEMBERSHIP CARDS ── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.plan-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  position: relative; transition: var(--transition);
}
.plan-card.featured {
  border-color: var(--red);
  background: linear-gradient(145deg, var(--card), #1a0a0a);
}
.plan-card.featured::before {
  content: 'Most Popular'; position: absolute; top: 0; right: 24px;
  background: var(--red); color: var(--white);
  font-family: var(--font-accent); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 0 0 8px 8px;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(230,48,48,0.12); }
.plan-name { font-family: var(--font-accent); font-size: 1rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); }
.plan-price { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; margin: 12px 0 4px; }
.plan-price sup { font-size: 1.5rem; vertical-align: super; }
.plan-period { font-size: 0.85rem; color: var(--grey); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 32px; }
.plan-features li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--light-grey); display: flex; align-items: center; gap: 10px; }
.plan-features li::before { content: '✓'; color: var(--red); font-weight: 700; }

/* ── COACH CARDS ── */
.coaches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.coach-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; aspect-ratio: 3/4;
}
.coach-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.coach-img-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--border);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.coach-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.3) 60%, transparent 100%);
  transition: var(--transition);
}
.coach-card:hover .coach-overlay { background: linear-gradient(to top, rgba(230,48,48,0.9) 0%, rgba(8,8,8,0.7) 60%, transparent 100%); }
.coach-card:hover .coach-img { transform: scale(1.08); }
.coach-card:hover .coach-img-placeholder { transform: scale(1.08); }
.coach-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 24px;
  transform: translateY(0); transition: var(--transition);
}
.coach-name { font-family: var(--font-display); font-size: 1.8rem; }
.coach-title { font-family: var(--font-accent); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 2px; }
.coach-cta {
  margin-top: 16px; opacity: 0; transform: translateY(12px);
  transition: var(--transition); transition-delay: 0.05s;
  font-family: var(--font-accent); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.coach-cta::after { content: '→'; }
.coach-card:hover .coach-cta { opacity: 1; transform: translateY(0); }
.coach-contact-modal {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.coach-contact-modal.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 48px; max-width: 480px; width: 90%;
  transform: scale(0.9); transition: transform 0.3s;
}
.coach-contact-modal.active .modal-box { transform: scale(1); }
.modal-close { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; color: var(--grey); }
.modal-coach-name { font-family: var(--font-display); font-size: 2.5rem; color: var(--white); }
.modal-divider { height: 2px; background: var(--red); width: 60px; margin: 16px 0; }
.modal-info { display: flex; flex-direction: column; gap: 14px; }
.modal-info-item { display: flex; align-items: center; gap: 12px; color: var(--light-grey); font-size: 0.95rem; }
.modal-info-item span:first-child { color: var(--red); font-weight: 700; min-width: 70px; font-family: var(--font-accent); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem; }

/* ── STUDIO SECTION ── */
.studio-banner {
  background: linear-gradient(135deg, var(--studio-bg) 0%, #1a0810 100%);
  border: 1px solid rgba(255, 107, 138, 0.15);
  border-radius: var(--radius); padding: 60px 48px;
  position: relative; overflow: hidden;
}
.studio-banner::before {
  content: 'THE STUDIO'; position: absolute; right: -20px; top: -20px;
  font-family: var(--font-display); font-size: 8rem; color: rgba(255,107,138,0.04);
  line-height: 1; pointer-events: none;
}
.studio-tag { color: var(--studio-pink) !important; }
.studio-tag::before { background: var(--studio-pink) !important; }
.classes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 32px; }
.class-card {
  background: rgba(255,107,138,0.06); border: 1px solid rgba(255,107,138,0.15);
  border-radius: 10px; padding: 28px 20px; text-align: center;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; color: var(--white);
}
.class-card:hover { background: rgba(255,107,138,0.12); border-color: var(--studio-pink); transform: translateY(-4px); }
.class-icon { font-size: 2.2rem; margin-bottom: 12px; }
.class-name { font-family: var(--font-accent); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--studio-pink); }
.class-desc { font-size: 0.8rem; color: var(--grey); margin-top: 6px; }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-family: var(--font-accent); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 8px;
}
.form-control {
  width: 100%; background: var(--dark); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 18px; color: var(--white);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s;
}
.form-control:focus { outline: none; border-color: var(--red); }
.form-control::placeholder { color: #444; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── FOOTER ── */
footer {
  background: var(--dark); border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo img { height: 48px; filter: invert(1); margin-bottom: 16px; }
.footer-about { color: var(--grey); font-size: 0.9rem; max-width: 300px; line-height: 1.7; }
.footer-heading {
  font-family: var(--font-accent); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--red);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--grey); font-size: 0.9rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--grey); font-size: 0.8rem; }

/* ── SCROLL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links { display: none; }
  .nav-links.nav-open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 998;
    background: rgba(8,8,8,0.97); backdrop-filter: blur(20px);
    align-items: center; justify-content: center; gap: 36px;
  }
  .nav-links.nav-open .nav-cta { margin-left: 0; }
  .hamburger { display: flex; }
  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .coaches-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { gap: 32px; }
}
@media (max-width: 480px) {
  .coaches-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}
