/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Design Tokens ─── */
:root {
  --black:      #0a0a0a;
  --surface:    #111111;
  --surface-2:  #181818;
  --border:     #222222;
  --gold:       #C8192A;
  --gold-light: #e02235;
  --gold-dim:   rgba(200, 25, 42, 0.15);
  --gold-glow:  rgba(200, 25, 42, 0.35);
  --navy:       #C8192A;
  --navy-light: #C8192A;
  --red-brand:  #C8192A;
  --red-glow:   rgba(200, 25, 42, 0.35);
  --white:      #f2f2f2;
  --muted:      #888888;
  --text:       #d4cfc6;

  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Base ─── */
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Noise texture overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ─── Password Gate ─── */
#password-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#password-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 360px;
}
.pg-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}
.pg-logo span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
}
.pg-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -0.75rem;
}
#pg-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
#pg-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
#pg-input:focus {
  border-color: var(--red-brand);
}
#pg-form button {
  padding: 0.75rem 1rem;
  background: var(--red-brand);
  color: var(--white);
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
#pg-form button:hover {
  background: var(--gold-light);
}
#pg-error {
  font-size: 0.8rem;
  color: var(--red-brand);
  text-align: center;
  min-height: 1.2em;
}

/* ─── Section Shared ─── */
section { position: relative; }

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

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  display: block;
  flex: 1;
  max-width: 4rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.02em;
}

.btn-primary {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 1rem 2.5rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(5, 0, 84, 0.5);
}

.btn-secondary {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 1rem 2.5rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-secondary:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

  .instructor-card { max-width: 400px; margin: 0 auto; }

  .hero-stats {
    display: none;
  }

  .trial-actions { flex-direction: row; flex-wrap: wrap; }
  .trial-actions .btn-primary { width: auto; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-links { flex-wrap: wrap; gap: 1rem 1.5rem; }

  .instructor-credentials {
    grid-template-columns: 1fr 1fr;
  }

  .location-right { position: static; }
}

@media (max-width: 600px) {
  nav { padding: 1rem 1.25rem; }
  .container { padding: 0 1.25rem; }
  .hero-content { padding: 4.5rem 1.25rem 3rem; }
  section { padding-block: 3rem; }
  .philosophy, .instructor, .classes, .schedule, .location, .trial { padding: 3rem 0; }

  /* Classes: 2 columns (descriptions handled in sections.css) */
  .classes-grid { grid-template-columns: repeat(2, 1fr); }

  /* Location: shorter map */
  .map-frame { aspect-ratio: 4/3; }

  .trial-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .trial-actions .btn-primary,
  .trial-actions .btn-secondary {
    text-align: center;
    width: 100%;
  }

  .instructor-credentials { grid-template-columns: 1fr; }

  .schedule-footer { flex-direction: column; gap: 1rem; }
}
