/* ============================================
   BHAVYA MUSIC ACADEMY — theme_core.css
   Design System Tokens — 386-Team Voted FINAL
   DO NOT CHANGE WITHOUT TEAM RE-VOTE
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Gujarati:wght@400;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Core Palette */
  --clr-bg:           #1E0B4B;   /* Deep indigo — warm, cultural, premium */
  --clr-bg-alt:       #16082E;   /* Darker for hero/sections */
  --clr-surface:      #2D1B5E;   /* Card backgrounds */
  --clr-surface-2:    #3D2875;   /* Elevated surfaces, hover states */
  --clr-gold:         #E8B84B;   /* Warm gold — Indian classical heritage */
  --clr-gold-light:   #F5D07C;   /* Lighter gold for hover/glow */
  --clr-cta:          #FF6B35;   /* CTA button — energetic orange-red */
  --clr-cta-hover:    #E85520;   /* CTA hover state */
  --clr-text:         #FFFFFF;   /* Primary text */
  --clr-text-muted:   #BBA8D8;   /* Secondary text — lavender muted */
  --clr-text-dim:     #7C6AA0;   /* Tertiary / placeholder text */
  --clr-border:       rgba(232, 184, 75, 0.2);  /* Subtle gold border */
  --clr-border-hover: rgba(232, 184, 75, 0.5);

  /* Typography */
  --font-primary:     'Inter', sans-serif;
  --font-gujarati:    'Noto Sans Gujarati', sans-serif;

  /* Font Sizes (fluid) */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-full: 9999px;

  /* Shadows - Premium Neon & Depth */
  --shadow-gold:   0 0 20px rgba(232, 184, 75, 0.4), 0 0 40px rgba(232, 184, 75, 0.2), 0 0 60px rgba(232, 184, 75, 0.1);
  --shadow-cta:    0 8px 32px rgba(255, 107, 53, 0.5);
  --shadow-card:   0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 16px rgba(232, 184, 75, 0.05);
  --shadow-inset:  inset 0 1px 1px rgba(255,255,255,0.1), inset 0 -1px 1px rgba(0,0,0,0.4);
  --shadow-inset:  inset 0 1px 0 rgba(255,255,255,0.06);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:  1200px;
  --container-pad:  var(--space-6);

  /* Z-index layers */
  --z-nav:      100;
  --z-overlay:  200;
  --z-modal:    300;
  --z-chatbot:  400;
}

/* ============================================
   GLOBAL RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--clr-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--clr-gold-light);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--space-20) 0;
}

.section--alt {
  background: var(--clr-bg-alt);
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.text-gold    { color: var(--clr-gold); }
.text-muted   { color: var(--clr-text-muted); }
.text-center  { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

.heading-xl {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.2;
}

.heading-md {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 600;
  line-height: 1.3;
}

.heading-sm {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.4;
}

.body-lg { font-size: var(--text-lg); line-height: 1.7; }
.body-md { font-size: var(--text-base); line-height: 1.7; }
.body-sm { font-size: var(--text-sm); line-height: 1.6; }

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-gold);
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  padding: 0.875rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Primary CTA — "Book FREE Trial Class" */
.btn-primary {
  background: var(--clr-cta);
  color: var(--clr-text);
  border-color: var(--clr-cta);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--clr-cta-hover);
  border-color: var(--clr-cta-hover);
  color: var(--clr-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Gold Outline — Secondary */
.btn-gold {
  background: transparent;
  color: var(--clr-gold);
  border-color: var(--clr-gold);
}

.btn-gold:hover {
  background: var(--clr-gold);
  color: var(--clr-bg);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* WhatsApp button */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: var(--text-lg);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: var(--text-sm);
}

/* ============================================
   CARD SYSTEM
   ============================================ */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--clr-border-hover);
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-gold), var(--shadow-card);
}

.card:hover::before {
  opacity: 1;
}

.glass-panel {
  background: rgba(45, 27, 94, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card), var(--shadow-inset);
}

.card--glass {
  background: rgba(45, 27, 94, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   USP BADGE (appears on every page)
   ============================================ */
.usp-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(232, 184, 75, 0.12);
  border: 1px solid var(--clr-gold);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-gold);
  letter-spacing: 0.02em;
}

.usp-badge .badge-icon {
  font-size: 1rem;
}

/* ============================================
   STAR RATING
   ============================================ */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--clr-gold);
  font-size: var(--text-base);
}

/* ============================================
   GRADIENT UTILITIES
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--clr-bg) 0%, var(--clr-bg-alt) 100%);
}

/* ============================================
   MUSIC NOTE ANIMATION (CSS-only, no JS)
   Performance-safe floating notes in hero
   ============================================ */
@keyframes floatNote {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

.music-notes-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.music-note {
  position: absolute;
  bottom: -10%;
  font-size: 1.5rem;
  color: var(--clr-gold);
  animation: floatNote linear infinite;
  will-change: transform;
}

.music-note:nth-child(1)  { left: 8%;  animation-duration: 12s; animation-delay: 0s;    font-size: 1.2rem; }
.music-note:nth-child(2)  { left: 18%; animation-duration: 16s; animation-delay: 2s;    font-size: 1.8rem; opacity: 0.5; }
.music-note:nth-child(3)  { left: 30%; animation-duration: 14s; animation-delay: 4s;    font-size: 1rem; }
.music-note:nth-child(4)  { left: 45%; animation-duration: 18s; animation-delay: 1s;    font-size: 2rem; opacity: 0.4; }
.music-note:nth-child(5)  { left: 60%; animation-duration: 13s; animation-delay: 3s;    font-size: 1.3rem; }
.music-note:nth-child(6)  { left: 72%; animation-duration: 17s; animation-delay: 5s;    font-size: 1.6rem; opacity: 0.5; }
.music-note:nth-child(7)  { left: 85%; animation-duration: 11s; animation-delay: 0.5s;  font-size: 1.1rem; }
.music-note:nth-child(8)  { left: 92%; animation-duration: 15s; animation-delay: 2.5s;  font-size: 1.9rem; opacity: 0.3; }

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  height: 1px;
  background: var(--clr-border);
  margin: var(--space-12) 0;
}

.divider--gold {
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
}

/* ============================================
   GRID UTILITIES
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ============================================
   WHATSAPP FLOATING BUTTON (every page)
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: var(--z-chatbot);
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* Pulse animation for WhatsApp */
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
  animation: waPulse 2.5s infinite;
}

/* ============================================
   SECTION HEADINGS PATTERN
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .label {
  margin-bottom: var(--space-3);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--clr-text-muted);
  font-size: var(--text-lg);
}

/* ============================================
   TESTIMONIAL CARD
   ============================================ */
.testimonial {
  padding: var(--space-8);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: var(--space-8);
  font-size: 5rem;
  color: var(--clr-gold);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--clr-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.testimonial-author {
  font-weight: 600;
  color: var(--clr-gold);
  font-size: var(--text-sm);
}

/* ============================================
   INSTRUMENT GRID ICON CARD
   ============================================ */
.instrument-card {
  padding: var(--space-6);
  text-align: center;
  cursor: default;
}

.instrument-card .icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  display: block;
}

.instrument-card .name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================
   REVEAL ANIMATION (scroll-triggered via JS)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ============================================
   STICKY CTA BAR (mobile only)
   ============================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  padding: var(--space-3) var(--space-4);
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
  gap: var(--space-3);
}

/* ============================================
   RESPONSIVE — Mobile First
   ============================================ */
@media (max-width: 768px) {
  :root {
    --container-pad: var(--space-4);
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .sticky-cta {
    display: flex;
    align-items: center;
  }

  .sticky-cta .btn {
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: var(--text-sm);
  }

  /* Extra bottom spacing on mobile so content clears sticky CTA */
  body {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-note,
  .reveal,
  .btn,
  .card {
    animation: none !important;
    transition: none !important;
  }
}
