/* ============================================================
   PRACHI PIANO — Shared Design System
   Logo-Centric: Gold #D4A800 + Black #0A0A08 + White #FFFEFA
   ============================================================ */

/* --- CSS Variables: Light & Dark Themes --- */
:root,
[data-theme="light"] {
  --brand-primary: #D4A800;
  --brand-primary-hover: #B8920A;
  --brand-primary-10: #FBF5DC;
  --brand-primary-20: #F5EBC4;
  --bg-primary: #FFFEFA;
  --bg-surface: #FDF8ED;
  --bg-surface-hover: #F9F0DA;
  --bg-deep: #F5F0E0;
  --piano-black: #1A1A1A;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4640;
  --text-muted: #8A8478;
  --border: #E8E0D0;
  --shadow-lg: 0 8px 24px rgba(212, 168, 0, 0.10);
  --nav-bg: rgba(255, 254, 250, 0.95);
  --glass-bg: rgba(255, 254, 250, 0.6);
  --glass-border: rgba(212, 168, 0, 0.15);
  --overlay-from: rgba(255, 254, 250, 0.80);
  --overlay-via: rgba(255, 254, 250, 0.60);
  --overlay-to: #FFFEFA;
  --hero-text: #1A1A1A;
  --hero-subtext: #4A4640;
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --brand-primary: #EAD24A;
  --brand-primary-hover: #F2DC6A;
  --brand-primary-10: #1E1A08;
  --brand-primary-20: #2A2410;
  --bg-primary: #0A0A08;
  --bg-surface: #141210;
  --bg-surface-hover: #1E1A14;
  --bg-deep: #050505;
  --piano-black: #0A0A0A;
  --text-primary: #F5F0E0;
  --text-secondary: #C5BFA8;
  --text-muted: #7A7468;
  --border: #2A2620;
  --shadow-lg: 0 8px 24px rgba(234, 210, 74, 0.08);
  --nav-bg: rgba(10, 10, 8, 0.95);
  --glass-bg: rgba(10, 10, 10, 0.6);
  --glass-border: rgba(212, 168, 0, 0.2);
  --overlay-from: rgba(0, 0, 0, 0.80);
  --overlay-via: rgba(0, 0, 0, 0.60);
  --overlay-to: #0A0A08;
  --hero-text: #FFFFFF;
  --hero-subtext: #E0E0E0;
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Fixed functional colors */
:root {
  --whatsapp: #25D366;
  --youtube: #FF0000;
  --star: #E8C808;
  --success: #16A34A;
  --error: #DC2626;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* --- Base Styles --- */
html, body {
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  transition: background-color 0.3s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Theme Toggle (hidden) --- */
#theme-toggle {
  display: none !important;
}

::selection {
  background-color: var(--brand-primary);
  color: var(--piano-black);
}

h1, h2, h3, .font-display {
  font-family: var(--font-heading);
  color: var(--text-primary);
}

h4, h5, h6 {
  color: var(--text-primary);
}

a {
  transition: color 0.2s ease;
}

/* --- Skip Navigation --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--brand-primary);
  color: #1A1A1A;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* --- Glass Trust Bar --- */
.glass-trust-bar {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* --- Video Container (16:9) --- */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Custom Scrollbar --- */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--brand-primary);
  border-radius: 4px;
}

/* --- WhatsApp FAB Pulse --- */
@keyframes fab-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-fab {
  animation: fab-pulse 2s infinite;
}

/* --- Scroll-to-Top Button --- */
.scroll-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Nav Scroll State --- */
.nav-scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-panel.active {
  transform: translateX(0);
}

/* --- Filter Pills (Tutorials) --- */
.filter-pill {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}

.filter-pill:hover {
  background: var(--brand-primary-20);
  border-color: var(--brand-primary);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #1A1A1A;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--brand-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--brand-primary);
}

/* --- Testimonial Carousel --- */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.testimonial-dot.active {
  background: var(--brand-primary);
  width: 24px;
  border-radius: 4px;
}

/* --- Motion Animation States --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .whatsapp-fab {
    animation: none;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* --- Horizontal Scroll (mobile cards) --- */
.horizontal-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* --- How It Works Steps --- */
.how-step::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}

.how-step:last-child::after {
  display: none;
}
