/* ADM Altburger Dance Movement - Stylesheet */
:root {
  --bg: #f7f5f0;
  --bg-elev: #ffffff;
  --bg-soft: #efece5;
  --fg: #0d0d0d;
  --muted: #6b6b63;
  --line: #e4e0d5;
  --pink: #e6007e;
  --pink-light: #ff3d9a;
  --pink-dark: #a80059;
  --photo-border: #a580c7;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.display { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,240,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1280px; margin: 0 auto; gap: 20px;
}
.nav-logo img { height: 42px; }
.nav-links {
  display: flex; gap: 26px; list-style: none;
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--fg);
  opacity: 0.75; transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--pink); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.btn-booking {
  background: var(--pink); color: #fff; padding: 9px 18px;
  border-radius: 999px; font-weight: 600; font-size: 13px;
  transition: background 0.2s, transform 0.2s;
}
.btn-booking:hover { background: var(--pink-dark); transform: translateY(-1px); }
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--fg); margin: 5px 0; border-radius: 2px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  cursor: pointer; border: none; font-family: inherit;
  transition: all 0.2s;
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(230,0,126,0.3); }
.btn-outline { background: transparent; color: var(--fg); border: 1.5px solid var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.btn-dark { background: var(--fg); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 70px 0 60px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,0,126,0.08), transparent 70%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 2; }
.breadcrumb {
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
  display: flex; gap: 8px; align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb span { opacity: 0.4; }
.page-header h1 { font-size: clamp(38px, 6vw, 80px); line-height: 0.95; letter-spacing: -0.03em; }
.page-header h1 em { color: var(--pink); font-style: italic; font-weight: 400; }
.page-header .lead {
  max-width: 640px; font-size: 17px;
  color: var(--muted); margin-top: 20px; line-height: 1.6;
}

/* ============ SECTIONS ============ */
section { padding: 80px 0; }
.section-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 36px; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.05; }
.section-title em { color: var(--pink); font-style: italic; font-weight: 400; }
.section-sub { color: var(--muted); margin-bottom: 40px; font-size: 15px; max-width: 600px; }

/* ============ CARDS ============ */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); border-color: var(--pink); }

/* ============ IMAGE SLOTS ============ */
.img-slot {
  position: relative;
  background-size: cover; background-position: center;
  background-color: var(--bg-soft);
}
.img-slot.gradient-1 { background-image: linear-gradient(135deg, #e6007e, #a80059); }
.img-slot.gradient-2 { background-image: linear-gradient(135deg, #0d0d0d, #2a2a2a); }
.img-slot.gradient-3 { background-image: linear-gradient(135deg, #ff3d9a, #e6007e); }
.img-slot.gradient-4 { background-image: linear-gradient(135deg, #2a2a2a, #a80059); }
.img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  color: #fff; font-size: 20px; text-align: center;
  letter-spacing: -0.01em; padding: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  pointer-events: none;
}


/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 1000; display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.active { display: flex; }
.modal-box {
  background: var(--bg-elev); border-radius: 20px;
  max-width: 480px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 36px; position: relative;
}
.modal-box.wide { max-width: 720px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; background: var(--bg-soft);
  border: none; border-radius: 50%; cursor: pointer;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--pink); color: #fff; }
.modal h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.modal h2 em { color: var(--pink); font-style: normal; }
.modal p { margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
.modal .legal-text { font-size: 13px; color: #3a3a35; }
.modal .legal-text strong { color: var(--fg); display: inline-block; margin-bottom: 2px; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group .req { color: var(--pink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 14px;
  background: var(--bg); color: var(--fg);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--pink); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-error { color: #dc2626; font-size: 13px; margin-top: 6px; display: none; }
.form-error.show { display: block; }
.form-submit {
  width: 100%; background: var(--pink); color: #fff;
  border: none; padding: 13px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.form-submit:hover { background: var(--pink-dark); transform: translateY(-1px); }
.form-success {
  background: #e8f5e9; border: 1.5px solid #4caf50; color: #2e7d32;
  padding: 16px; border-radius: 10px; margin-top: 12px;
  display: none; font-size: 14px;
}
.form-success.show { display: block; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.checkbox-row input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--pink); }
.checkbox-row label { font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.checkbox-row a { color: var(--pink); }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand-name {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 28px; color: var(--pink); letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.footer-brand-text { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 260px; margin-bottom: 16px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a { color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--pink); }
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft); color: var(--fg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; transition: all 0.2s;
}
.social-links a:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--muted); margin-left: 16px; cursor: pointer; }
.footer-bottom a:hover { color: var(--pink); }


/* ============ ANIMATIONS ============ */
/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes stickerRotate {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(-12deg) scale(1.05); }
}

/* Hero page-load animation */
.hero h1,
.hero .hero-badge,
.hero .hero-sub,
.hero .hero-actions,
.page-header .breadcrumb,
.page-header h1,
.page-header .lead {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .hero-badge { animation-delay: 0.02s; }
.hero h1 { animation-delay: 0.08s; }
.hero .hero-sub { animation-delay: 0.16s; }
.hero .hero-actions { animation-delay: 0.22s; }
.hero-visual { animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-sticker { animation: stickerRotate 4s ease-in-out infinite; animation-delay: 0.8s; }
.page-header .breadcrumb { animation-delay: 0.02s; }
.page-header h1 { animation-delay: 0.08s; }
.page-header .lead { animation-delay: 0.16s; }

/* Scroll-reveal: elements start invisible, JS adds .revealed when visible */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children — quick successive fade-in */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.04s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.08s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.12s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.16s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(7) { transition-delay: 0.22s; }
.reveal-stagger.revealed > *:nth-child(8) { transition-delay: 0.24s; }
.reveal-stagger.revealed > *:nth-child(n+9) { transition-delay: 0.26s; }

/* Modal/lightbox entry anim */
.modal.active .modal-box { animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
.modal { transition: opacity 0.25s; }

/* Enhanced hover effects */
.formation-card:hover .formation-img,
.video-card:hover .video-thumb,
.trainer-card:hover .trainer-img {
  transform: scale(1.04);
}
.formation-img, .video-thumb, .trainer-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.formation-card, .video-card, .trainer-card, .card, .event-card, .explore-card, .value-card, .svc, .fd-nav-other a, .stat-box {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background-color 0.3s;
}

/* Button hover ripple feel */
.btn, .btn-booking, .form-submit {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s, box-shadow 0.3s, border-color 0.25s, color 0.25s;
}
.btn:active, .btn-booking:active, .form-submit:active { transform: scale(0.97); }

/* Link underline sweep on nav */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%; bottom: -4px;
  height: 2px; background: var(--pink);
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after, .nav-links a.active::after {
  left: 0; right: 0;
}

/* Timeline dots pulse on hover */
.year-block:hover::before {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 7px var(--pink);
}
.year-block::before {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

/* Social links hover bounce */
.social-links a {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s, color 0.3s;
}
.social-links a:hover {
  transform: translateY(-4px) scale(1.1);
}

/* Chip toggle smooth */
.crew-chip {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.crew-chip.on {
  transform: scale(1.05);
}


/* Filter-bar buttons smooth */
.filter-bar button, .year-filter button {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-bar button:active, .year-filter button:active { transform: scale(0.96); }

/* ============ MOBILE ============ */
@media (max-width: 1024px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    margin-left: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); padding: 20px;
    border-bottom: 1px solid var(--line);
    align-items: stretch; gap: 14px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 8px 0; }
  .nav-links a::after { display: none; }
  .nav-inner { padding: 12px 20px; gap: 10px; }
  .nav-logo img { height: 36px; }
  .btn-booking { padding: 8px 14px; font-size: 12px; }
  .container { padding: 0 20px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  section { padding: 60px 0; }
  .page-header { padding: 50px 0 44px; }
  .form-row { grid-template-columns: 1fr; }

  /* Section title smaller on mobile */
  .section-title { font-size: 28px; }

  /* Modal full-ish screen */
  .modal-box { padding: 28px 22px; max-height: 88vh; border-radius: 16px; }
  .modal h2 { font-size: 24px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 10px 16px; }
  .nav-logo img { height: 32px; }
  .nav-right { gap: 6px; }
  .btn-booking { padding: 7px 12px; font-size: 11px; }

  section { padding: 48px 0; }
  .page-header { padding: 36px 0 32px; }

  .btn { padding: 12px 20px; font-size: 14px; }

  .footer { padding: 48px 0 24px; margin-top: 60px; }
  .footer-brand-name { font-size: 24px; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; width: 100%; }

  /* Modal */
  .modal-box { padding: 22px 18px; border-radius: 14px; }
  .modal h2 { font-size: 22px; }
  .modal p { font-size: 13px; }
  .modal-close { width: 32px; height: 32px; top: 12px; right: 12px; }


  /* Form-success, error text smaller */
  .form-group input, .form-group select, .form-group textarea { font-size: 15px; padding: 11px 12px; } /* keep ≥ 16px target on iOS — 15px triggers zoom, so we actually go 16px */
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { padding: 16px; gap: 10px; }

  /* Prevent iOS zoom by ensuring 16px inputs */
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
}

/* ============ REDUCED MOTION: respect user setting ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
