/* ── RESET & VARIABLES ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy:       #0c1c28;
  --navy-mid:   #121f2d;
  --navy-light: #1a2d3d;
  --blue:       #1BA3D4;
  --blue-glow:  rgba(27, 163, 212, 0.25);
  --blue-light: #87CEEA;
  --white:      #FFFFFF;
  --off-white:  #C8DCE8;
  --muted:      #7A9AAD;
  --border:     rgba(255, 255, 255, 0.08);
  --radius:     6px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: #22B8EC;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--blue-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── NAVIGATION ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}

#navbar.scrolled {
  background: rgba(12, 28, 40, 0.96);
  padding: 0.65rem 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-logo-emoji {
  font-size: 2rem;
  line-height: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: #22B8EC;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--navy) url('assets/images/hero-bg.jpg') center / cover no-repeat;
  transform-origin: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 28, 40, 0.55) 0%,
    rgba(12, 28, 40, 0.45) 50%,
    rgba(12, 28, 40, 0.90) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero-logo {
  width: 300px;
  height: auto;
  margin: 0 auto 1.75rem;
  filter: brightness(1) drop-shadow(0 0 18px rgba(255,255,255,0.60)) drop-shadow(0 0 45px rgba(180,225,255,0.48)) drop-shadow(0 0 90px rgba(100,190,255,0.32));
  animation: fadeDown 1s ease both;
}

.hero-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-sub {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 2rem;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1s ease 0.55s both;
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--blue));
  margin: 0 auto;
  animation: pulse 2s ease-in-out infinite;
}

/* ── SECTIONS ── */
.section {
  padding: 110px 0;
}
.section-alt {
  background: var(--navy-mid);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  color: var(--white);
}

/* ── ABOUT ── */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pillar:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 20px var(--blue-glow);
}

.pillar-icon {
  width: 32px;
  height: 32px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.pillar p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── COACHES ── */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.coach-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
}
.coach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(27,163,212,0.2);
}

.coach-photo {
  width: 100%;
  aspect-ratio: 590 / 920;
  overflow: hidden;
  background: var(--navy-light);
  position: relative;
}
.coach-photo.no-photo::after {
  content: 'Photo coming soon';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s;
  filter: grayscale(100%);
}
.coaches-grid .coach-card:nth-child(1) .coach-photo img {
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
}
.coaches-grid .coach-card:nth-child(1):hover .coach-photo img {
  transform: scale(1.02);
}
.coaches-grid .coach-card:nth-child(2) .coach-photo img {
  object-position: center 15%;
  transform: scale(1.35);
}
.coaches-grid .coach-card:nth-child(2):hover .coach-photo img {
  transform: scale(1.4);
}
.coaches-grid .coach-card:nth-child(3) .coach-photo img {
  object-position: center 30%;
  transform: scale(1.2);
}
.coaches-grid .coach-card:nth-child(3):hover .coach-photo img {
  transform: scale(1.25);
}
.coach-card:hover .coach-photo img {
  transform: scale(1.04);
}

.coach-info {
  padding: 1.75rem;
}
.coach-info h3 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.coach-role {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.coach-info p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── SCHEDULE ── */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.schedule-day {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.schedule-day h3 {
  font-size: 1.6rem;
  color: var(--blue);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.class-row {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.class-row:last-child { border-bottom: none; }

.time {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.class-name {
  font-size: 0.92rem;
  color: var(--off-white);
  margin-top: 0.15rem;
}
.class-name em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 0.4rem;
}

/* ── MEMBERSHIP ── */
.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.membership-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.membership-card .btn {
  margin-top: auto;
}
.membership-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.membership-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.membership-card.featured:hover {
  box-shadow: 0 12px 40px var(--blue-glow), 0 0 0 1px var(--blue);
}

.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 1.1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.membership-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  color: var(--blue);
  line-height: 1;
}
.period {
  font-size: 0.85rem;
  color: var(--muted);
}

.features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}
.features li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}
.features li:last-child { border-bottom: none; }
.features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.75rem;
}

.membership-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── GALLERY ── */
.gallery-opening {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.gallery-opening-item {
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy-light);
}
.gallery-opening-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy-light);
  position: relative;
  aspect-ratio: 4 / 3;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21,43,58,0.2);
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 0; }

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

.g-tall { grid-row: span 2; aspect-ratio: unset; }
.g-wide { grid-column: span 2; aspect-ratio: unset; }
.g-contain img { object-fit: contain; background: #000; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0 1.2rem;
  user-select: none;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-block {
  margin-bottom: 2.5rem;
}
.contact-block:last-child { margin-bottom: 0; }

.contact-block h3 {
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.contact-block p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.8;
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--off-white);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.insta-link:hover { color: var(--blue); }

.contact-map iframe {
  border-radius: var(--radius);
  width: 100%;
  filter: grayscale(20%) contrast(1.05);
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}
.footer-logo {
  height: 80px;
  width: auto;
  margin: 0 auto 1.5rem;
}
.footer p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}
.footer a {
  color: var(--blue);
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer a:hover { color: var(--blue-light); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger coach cards */
.coaches-grid .coach-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.coaches-grid .coach-card.reveal:nth-child(3) { transition-delay: 0.24s; }

/* ── KEYFRAMES ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-pillars {
    grid-template-columns: 1fr;
  }
  .coaches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .coaches-grid .coach-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: 75vw;
    max-width: 300px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--border);
    z-index: 150;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1rem;
  }
  .nav-cta {
    padding: 0.65rem 1.5rem;
  }

  .coaches-grid {
    grid-template-columns: 1fr;
  }
  .coaches-grid .coach-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .membership-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .g-tall { grid-row: span 1; aspect-ratio: 4/5; }
  .g-wide { grid-column: span 2; }

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

@media (max-width: 480px) {
  .hero-logo { width: 160px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .g-wide { grid-column: span 1; }
}
