:root {
  color-scheme: light;
  --bg: #050a12;
  --bg-muted: #0b1524;
  --accent: #f4b21f;
  --accent-soft: rgba(244, 178, 31, 0.15);
  --text: #f3f6fb;
  --text-muted: rgba(243, 246, 251, 0.7);
  --card: #101b2d;
  --border: rgba(255, 255, 255, 0.1);
  --gradient: radial-gradient(circle at top, #143057, #050a12 60%);
  --max-width: 1200px;
}

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

body {
  font-family: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gradient);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

section {
  padding: 5rem 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: rgba(5, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-nav a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(244, 178, 31, 0.4);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px rgba(244, 178, 31, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.hero {
  position: relative;
  padding: 0;
  margin: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      120deg,
      rgba(5, 10, 18, 0.85),
      rgba(5, 10, 18, 0.4)
    ),
    url("hero.jpg");
  background-size: cover;
  background-position: center 35%;
  opacity: 0.9;
  z-index: 0;
  transform: scale(1.05);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 6rem 1.5rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-media {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.hero-media .badge {
  position: absolute;
  top: -1rem;
  right: 1rem;
  background: var(--card);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.media-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  aspect-ratio: 5 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-info {
  padding: 1rem 1.2rem 1.5rem;
}

.media-info span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stat-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  width: fit-content;
}

.stat-pill strong {
  font-size: 2.4rem;
  line-height: 1;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
}

.about,
.programs,
.coaches,
.facilities,
.gallery,
.performers,
.registration,
.cta {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.about h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 1rem 0;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-list li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}

.coach-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.8rem;
  border-radius: 24px;
}

.coach-card__photo {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  aspect-ratio: 3 / 4;
}

.coach-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.coach-card blockquote {
  margin-top: 1rem;
  font-style: italic;
  color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 3rem 1.5rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.stats div {
  text-align: center;
  border: 1px solid rgba(244, 178, 31, 0.3);
  padding: 1.4rem 1rem;
  border-radius: 18px;
}

.stats strong {
  font-size: 2rem;
  display: block;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.program-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.8rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.program-card ul {
  list-style: none;
  margin-top: 1rem;
  color: var(--text-muted);
}

.program-card li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.program-card li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.time {
  color: var(--text-muted);
}

.price {
  margin-top: 1.5rem;
}

.price span {
  font-size: 2rem;
  font-weight: 600;
}

.program-note {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border);
  color: var(--text-muted);
}

.coach-grid,
.facility-grid,
.performer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.coach-grid article,
.facility-grid article,
.performer-grid article {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 22px;
}

.facility-grid ul {
  list-style: none;
  color: var(--text-muted);
}

.performer-grid article h3 {
  font-size: 1.1rem;
}

.cta {
  margin-top: 2rem;
  background: linear-gradient(135deg, #f4b21f, #ff7a18);
  border-radius: 30px;
  color: #0b1524;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem;
  align-items: center;
}

.cta .eyebrow {
  color: #0b1524;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta .btn {
  background: #0b1524;
  color: #fff;
  box-shadow: none;
}

.cta .btn-secondary {
  border: 1px solid rgba(11, 21, 36, 0.4);
  background: transparent;
  color: #0b1524;
}

footer {
  padding: 4rem 1.5rem 2rem;
  background: #03060c;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

footer h3,
footer h4 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.6rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

footer a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.footer-note {
  text-align: center;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* Registration Form Styles */
.registration-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.registration-form {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 24px;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.batch-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.batch-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 200ms ease;
}

.batch-option:hover {
  border-color: var(--accent);
  background: rgba(244, 178, 31, 0.05);
}

.batch-option input[type="radio"] {
  width: auto;
  margin: 0;
}

.batch-option input[type="radio"]:checked + span {
  color: var(--accent);
}

.declaration {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 16px;
  margin: 2rem 0;
}

.declaration h3 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.declaration p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.signature-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .registration-form {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .batch-options {
    gap: 0.6rem;
  }
  
  .batch-option {
    padding: 0.8rem;
  }
}

/* Gallery Styles */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #0b1524;
  border-color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(244, 178, 31, 0.2);
}

.gallery-image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-item:hover .gallery-image-container img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 10, 18, 0.9), rgba(5, 10, 18, 0.4));
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 300ms ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  padding: 1.5rem;
  color: var(--text);
}

.gallery-overlay-content h3 {
  margin-bottom: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.gallery-overlay-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.view-btn {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #0b1524;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 200ms ease;
}

.view-btn:hover {
  background: #ff7a18;
  transform: translateY(-1px);
}

.gallery-load-more {
  text-align: center;
  padding: 2rem 0;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  transition: color 200ms ease;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-info {
  text-align: center;
  color: var(--text);
}

.lightbox-info h3 {
  margin-bottom: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
}

.lightbox-info p {
  color: var(--text-muted);
  max-width: 600px;
}

/* Gallery Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item {
  animation: fadeInUp 0.6s ease backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }

/* Hide gallery items when filtering */
.gallery-item.hidden {
  display: none;
}

@media (max-width: 768px) {
  .gallery-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .lightbox-close {
    top: -30px;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 18, 0.95);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 250ms ease;
    font-size: 1.2rem;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }
}
