/* ============================================
   DANCE STUDIO — Dance School
   Designsysteem — "Bold Stage" (donker, neon)
   ============================================ */

:root {
  /* Accent 1 — Magenta (vervangt de oude teal-schaal: tints op donker, lichte tekstkleuren) */
  --teal-50:  #2A0E1B;
  --teal-100: #3D1528;
  --teal-300: #B81E5B;
  --teal-500: #FF2D78;
  --teal-600: #FF5C93;
  --teal-700: #FF8FB4;

  /* Accent 2 — Amber (vervangt de oude blue-schaal) */
  --blue-50:  #2A1E08;
  --blue-100: #3D2D0E;
  --blue-300: #B8841E;
  --blue-500: #FFB020;
  --blue-600: #FFC04D;
  --blue-700: #FFD27A;

  /* Neutrals — donker (geïnverteerde schaal: 900 = lichtste tekst, 50 = donkerste vlak) */
  --ink-900: #FAFAF7;
  --ink-800: #E9E9EF;
  --ink-700: #C9C9D4;
  --ink-500: #9A9AA8;
  --ink-400: #74747F;
  --ink-300: #4E4E58;
  --ink-200: #2E2E38;
  --ink-100: #1E1E25;
  --ink-50:  #17171C;

  --bg:      #0C0C0F;
  --surface: #16161C;
  --border:  #2A2A33;

  /* Neon merk-gradient (magenta → amber) */
  --gradient: linear-gradient(135deg, #FF2D78 0%, #FF4D62 50%, #FFB020 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255,45,120,.14) 0%, rgba(255,176,32,.10) 100%);

  /* Typografie */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows — dieper op donker + neon-glow voor accenten */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 1px 1px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 56px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.5);
  --glow-magenta: 0 8px 30px rgba(255,45,120,.35);
  --glow-amber:   0 8px 30px rgba(255,176,32,.30);

  --maxw: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

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

::selection { background: rgba(255,45,120,.35); color: #fff; }

/* ----- Type ----- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-600);
  font-weight: 500;
}
.mono { font-family: var(--font-mono); }

/* Gradient text */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- Layout helpers ----- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  border: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.btn-primary {
  background: var(--teal-500);
  color: var(--on-accent, #fff);
  box-shadow: var(--glow-magenta);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--ink-200);
}
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn-dark {
  background: var(--blue-500);
  color: var(--on-accent2, #fff);
}
.btn-dark:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: var(--glow-amber); }
.btn-sm { padding: 9px 14px; font-size: 12px; border-radius: var(--r-sm); }

/* ----- Cards / surfaces ----- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* ----- Placeholder image ----- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,45,120,.06) 0 10px, rgba(255,45,120,.12) 10px 11px),
    var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255,45,120,.3);
  border-radius: 4px;
  pointer-events: none;
}
.ph-label {
  position: relative;
  z-index: 1;
  background: rgba(12,12,15,.7);
  padding: 4px 10px;
  border-radius: 3px;
  backdrop-filter: blur(2px);
}

/* ----- Stencil number (stage accent) ----- */
.stencil-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 180px;
  line-height: 0.8;
  letter-spacing: -0.05em;
  background:
    repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,45,120,.22) 6px 7px),
    var(--ink-100);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ----- Section ----- */
.section {
  padding: 96px 0;
  position: relative;
}
.section-dark {
  background: #08080B;
  color: var(--ink-900);
}
.section-tinted {
  background: linear-gradient(180deg, var(--bg) 0%, var(--ink-50) 100%);
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

/* ----- Diagonal stripe accent ----- */
.stripe-accent {
  background: repeating-linear-gradient(
    -45deg,
    var(--teal-500) 0 8px,
    var(--blue-500) 8px 16px
  );
  height: 4px;
  width: 60px;
  border-radius: 2px;
}

/* ----- Scroll-in animation ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * { transition-delay: 0ms; }
.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.stagger.in > *:nth-child(6) { transition-delay: 400ms; }

/* ----- Form inputs ----- */
.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--ink-100);
  color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(255,45,120,.18);
}
.input::placeholder { color: var(--ink-400); }
.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 8px;
}

/* ----- Chips / tags ----- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--ink-100);
  color: var(--ink-700);
  transition: all .15s ease;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-body);
}
.chip.active {
  background: var(--teal-500);
  color: var(--on-accent, #fff);
  border-color: var(--teal-500);
}
.chip-tone-teal {
  background: var(--teal-50);
  color: var(--teal-700);
}
.chip-tone-blue {
  background: var(--blue-50);
  color: var(--blue-700);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink-50); }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 6px; border: 3px solid var(--ink-50); }
::-webkit-scrollbar-thumb:hover { background: var(--teal-500); }

/* ----- Header / Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Thema-bewust: licht thema → lichte balk (donkere tekst leesbaar),
     donker thema → donkere balk (lichte tekst leesbaar). */
  background: color-mix(in srgb, var(--bg, #0c0c0f) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.nav-logo img { height: 44px; width: auto; }
.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-700);
  border-radius: var(--r-sm);
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color .15s;
}
.nav-link:hover { color: var(--ink-900); }
.nav-link.active { color: var(--ink-900); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.nav-cta {
  margin-left: 12px;
}
@media (max-width: 980px) {
  .nav-menu { display: none; }
}

/* Mobile menu toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
}
@media (max-width: 980px) {
  .nav-mobile-toggle { display: flex; }
}

/* ----- Footer ----- */
.footer {
  background: #08080B;
  color: var(--ink-500);
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
  font-weight: 700;
}
.footer a { color: var(--ink-500); transition: color .15s; }
.footer a:hover { color: var(--teal-600); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Misc */
.divider { height: 1px; background: var(--border); margin: 48px 0; border: none; }

/* Tag / pill for style category */
.style-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.style-tag-teal { background: var(--teal-50); color: var(--teal-700); }
.style-tag-blue { background: var(--blue-50); color: var(--blue-700); }
.style-tag-ink  { background: var(--ink-100); color: var(--ink-700); }
.style-tag-new  { background: var(--teal-500); color: var(--on-accent, #fff); }

/* ============================================
   MOBILE & TABLET RESPONSIVE
   ============================================ */

/* Tablet & smaller — section padding */
@media (max-width: 980px) {
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .nav-inner { padding: 14px 16px; }
}

/* Buttons — tighter on small screens */
@media (max-width: 560px) {
  .btn { padding: 12px 18px; font-size: 13px; }
  .btn-sm { padding: 8px 12px; font-size: 11px; }
}

/* Card content gets less padding on mobile */
@media (max-width: 560px) {
  .card { border-radius: 12px; }
}

/* Nav logo smaller on phone */
@media (max-width: 560px) {
  .nav-logo img { height: 36px; }
}

/* Footer adjustments */
@media (max-width: 720px) {
  .footer { padding: 56px 0 24px; }
}

/* Section header titles use clamp so already responsive */

/* Hero stack better on mobile */
@media (max-width: 560px) {
  .hero-grid { gap: 36px !important; }
}

/* Schedule calendar — make scrollable on small viewports */
.schedule-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.schedule-scroll-inner {
  min-width: 760px;
}
@media (max-width: 760px) {
  .schedule-scroll {
    box-shadow: inset -8px 0 12px -10px rgba(0,0,0,.5);
  }
}

/* Team showcase — scale down photos on tablet/phone */
@media (max-width: 980px) {
  .team-showcase {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .team-showcase > div:first-child {
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  /* Allow the photo column row to horizontal-scroll on tiny phones */
  .team-photo-col {
    flex-shrink: 0;
  }
}

/* Tarief calculator — better stacked padding */
@media (max-width: 720px) {
  .calc-grid > div { padding: 28px 24px !important; }
}

/* Registration form padding */
@media (max-width: 560px) {
  #registration-form .card > div:first-child { padding: 18px 20px 0 !important; }
  #registration-form .card > div:nth-child(2) { padding: 28px 20px !important; }
  #registration-form .card > div:last-child { padding: 14px 20px !important; }
}

/* Contact + Album modals */
@media (max-width: 560px) {
  .team-modal {
    grid-template-columns: 1fr !important;
  }
  .team-modal > div:last-child { padding: 24px !important; }
}

/* Gallery album grid */
@media (max-width: 720px) {
  .featured-grid { grid-template-columns: 1fr !important; }
}

/* Step indicator labels — hide on very narrow */
@media (max-width: 460px) {
  #registration-form .card .label,
  #registration-form .card span.mono { font-size: 9px !important; }
}

/* FAQ wider on mobile */
@media (max-width: 880px) {
  .faq-section { gap: 32px !important; }
}

/* Reduce stencil number size on mobile so it doesn't push layout */
@media (max-width: 720px) {
  .stencil-num { font-size: 200px !important; }
}

/* Decorative absolutely positioned items — hide on tiny screens */
@media (max-width: 560px) {
  .deco-hide-mobile { display: none !important; }
}

/* Hero floating shot — stack cleanly */
@media (max-width: 560px) {
  .hero-stack-img { position: relative !important; inset: auto !important; width: 100% !important; }
}

/* Top-bar mobile menu animation */
@media (max-width: 980px) {
  .nav-menu { display: none; }
}

/* Larger touch targets for chips on mobile */
@media (max-width: 720px) {
  .chip { padding: 8px 14px; font-size: 13px; }
}

/* Lightbox prev/next buttons sit on edges; ensure they don't cover image too much on phone */
@media (max-width: 560px) {
  .lightbox-side-btn { width: 40px !important; height: 40px !important; }
}

/* Map block — height down on phone */
@media (max-width: 560px) {
  .contact-map { height: 280px !important; }
}

/* Respecteer prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  * { scroll-behavior: auto !important; }
}
