/* ═══════════════════════════════════════════════════════════════
   The Blitz School of Dance — Shared Design System
   Based on bliss-new warm ivory/gold/walnut palette
   ═══════════════════════════════════════════════════════════════ */

/* ────────────────────── DESIGN TOKENS ────────────────────── */
:root {
  --ivory: #FDFAF5;
  --cream: #F5F0E8;
  --warm-white: #FAF8F4;
  --sand: #E8DFD0;
  --taupe: #C4B5A0;
  --walnut: #6B5B4A;
  --espresso: #3D3225;
  --charcoal: #2A2420;
  --gold: #B8943E;
  --gold-light: #D4B765;
  --gold-pale: rgba(184, 148, 62, 0.12);
  --rose: #C47E6E;
  --rose-pale: rgba(196, 126, 110, 0.10);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ────────────────────── RESET ────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--espresso);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--gold-light); color: var(--charcoal); }
img { max-width: 100%; display: block; }

/* ────────────────────── TYPOGRAPHY ────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--charcoal); }
.heading-xl { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.08; letter-spacing: -0.01em; }
.heading-lg { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.15; }
.heading-md { font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.25; }
.label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.text-walnut { color: var(--walnut); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* ────────────────────── LAYOUT ────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
section { padding: clamp(80px, 12vw, 160px) 0; }

/* ────────────────────── NAV ────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  background: rgba(42, 36, 32, 0.95); /* Dark charcoal background like footer */
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.site-nav.scrolled {
  background: rgba(42, 36, 32, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; height: 80px; /* Increased from 72px */
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img {
  height: 60px; width: auto;
}
.est-tag {
  font-size: 0.7rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1px 8px;
  border-radius: 100px;
  margin-left: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-menu { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-menu a {
  text-decoration: none; color: rgba(253, 250, 245, 0.85); font-size: 0.88rem;
  font-weight: 500; letter-spacing: 0.04em; transition: color 0.3s var(--ease); position: relative;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--gold); transition: width 0.4s var(--ease-out);
}
.nav-menu a:hover { color: var(--gold-light); }
.nav-menu a:hover::after { width: 100%; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 20px; position: relative;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--ivory);
  position: absolute; left: 0; transition: 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--charcoal); flex-direction: column; justify-content: center; gap: 32px;
    transition: right 0.5s var(--ease-out); box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  }
  .nav-menu.open { right: 0; }
  .nav-menu a {
    font-size: 1.1rem;
    color: rgba(253, 250, 245, 0.9);
  }
  .nav-menu a:hover {
    color: var(--gold-light);
  }
}

/* ────────────────────── BUTTONS ────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px; font-family: var(--sans);
  font-weight: 500; font-size: 0.88rem; letter-spacing: 0.04em;
  text-decoration: none; transition: all 0.4s var(--ease); cursor: pointer;
  border: none; position: relative; overflow: hidden;
}
.btn-primary { background: var(--charcoal); color: var(--ivory); }
.btn-primary:hover { background: var(--walnut); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42,36,32,0.2); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1.5px solid var(--sand); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,148,62,0.3); }

/* ────────────────────── SUBPAGE HERO ────────────────────── */
.subpage-hero {
  padding: 140px 0 80px;
  background: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.subpage-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--gold-pale); z-index: 0;
}
.subpage-hero::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--rose-pale); z-index: 0;
}
.subpage-hero .container { position: relative; z-index: 1; }
.subpage-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 16px;
}
.subpage-hero p {
  color: var(--walnut); font-weight: 300; font-size: 1.1rem;
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}
.subpage-hero .divider { margin: 16px auto 0; }

/* ────────────────────── FOOTER ────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(253, 250, 245, 0.5);
  padding: 64px 0 40px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: start;
  margin-bottom: 48px; flex-wrap: wrap; gap: 32px;
}
.footer-brand-block { max-width: 420px; }
.footer-brand-block img { height: 48px; width: auto; margin-bottom: 14px; }
.footer-tagline { font-size: 0.88rem; color: rgba(253,250,245,0.45); line-height: 1.6; }
.footer-nav { display: flex; gap: 48px; }
.footer-nav-col h4 {
  color: rgba(253,250,245,0.7); font-family: var(--sans); font-size: 0.78rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px;
}
.footer-nav-col ul { list-style: none; }
.footer-nav-col li { margin-bottom: 10px; }
.footer-nav-col a {
  text-decoration: none; color: rgba(253,250,245,0.45);
  font-size: 0.88rem; transition: color 0.3s var(--ease);
}
.footer-nav-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 12px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12); display: flex;
  align-items: center; justify-content: center;
  transition: all 0.3s var(--ease); text-decoration: none;
}
.footer-social a:hover { border-color: var(--gold-light); background: rgba(184,148,62,0.1); }
.footer-social a svg { width: 16px; height: 16px; fill: rgba(253,250,245,0.5); }
.footer-social a:hover svg { fill: var(--gold-light); }

/* ────────────────────── WHATSAPP WIDGET ────────────────────── */
.whatsapp-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; padding: 12px 20px 12px 14px;
  border-radius: 100px; text-decoration: none; font-family: var(--sans);
  font-size: 0.85rem; font-weight: 500;
  box-shadow: 0 6px 24px rgba(37,211,102,0.35); transition: all 0.3s var(--ease);
}
.whatsapp-widget:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 32px rgba(37,211,102,0.45); }
.whatsapp-widget svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }

/* ────────────────────── SCROLL ANIMATIONS ────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.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; }

/* ────────────────────── MISC ────────────────────── */
.divider { width: 48px; height: 2px; background: var(--gold); margin: 16px auto 0; }

/* ────────────────────── FORMS ────────────────────── */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--walnut); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em;
}
.form-control {
  width: 100%; background: var(--ivory); border: 1.5px solid var(--sand);
  border-radius: var(--radius); padding: 14px 18px; font-family: var(--sans);
  font-size: 0.95rem; color: var(--espresso); transition: all 0.3s var(--ease);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-pale); }
.form-control::placeholder { color: var(--taupe); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B5B4A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
