/* ==========================================================================
   Alkor Dance — Multi-Theme Stylesheet & Owner Theme Switcher (Fixed Contrast & Framing)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,800;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   THEME 1: VIBRANT STAGE & PASSION (Plum, Stage Gold & Latin Rose)
   -------------------------------------------------------------------------- */
:root, [data-theme="vibrant"] {
  --bg-body: #0b0314;
  --bg-section-alt: #160728;
  --bg-card: rgba(32, 10, 56, 0.7);
  --border-card: rgba(245, 158, 11, 0.3);
  
  --accent-gold: #f59e0b;
  --accent-rose: #e11d48;
  --accent-rose-hover: #be123c;
  
  --text-heading: #ffffff;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-tagline: #f59e0b;
  
  --bg-badge: rgba(245, 158, 11, 0.15);
  --text-badge: #f59e0b;
  --border-badge: rgba(245, 158, 11, 0.35);
  
  --header-bg: rgba(11, 3, 20, 0.92);
  --header-text: #ffffff;
  
  --hero-bg: radial-gradient(circle at 70% 30%, rgba(225, 29, 72, 0.25) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
              linear-gradient(180deg, #0b0314 0%, #160728 100%);
  --hero-heading: linear-gradient(135deg, #ffffff 0%, #fef3c7 60%, #f59e0b 100%);
  --hero-sub: #cbd5e1;
  
  --bg-cred: rgba(255, 255, 255, 0.05);
  --border-cred: rgba(245, 158, 11, 0.3);
  --text-cred-title: #f59e0b;
  --text-cred-body: #cbd5e1;
  
  --bg-timetable: rgba(32, 10, 56, 0.8);
  --bg-timetable-controls: rgba(11, 3, 20, 0.9);
  --text-timetable-slot: #f59e0b;
  --text-timetable-title: #ffffff;
  --text-timetable-venue: #cbd5e1;
  --border-timetable-row: rgba(255, 255, 255, 0.08);
  
  --bg-faq: rgba(32, 10, 56, 0.5);
  --text-faq-q: #ffffff;
  --text-faq-a: #cbd5e1;
  
  --bg-modal: #160728;
  --text-modal: #ffffff;
  --bg-input: rgba(255, 255, 255, 0.08);
  --border-input: rgba(255, 255, 255, 0.2);
  --text-input: #ffffff;
  
  --bg-footer: #0b0314;
  --text-footer: #cbd5e1;
  --border-footer: rgba(245, 158, 11, 0.2);
}

/* --------------------------------------------------------------------------
   THEME 2: MODERN LUXURY & ELEGANCE (Navy, Champagne Gold & Slate)
   -------------------------------------------------------------------------- */
[data-theme="luxury"] {
  --bg-body: #0f172a;
  --bg-section-alt: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.85);
  --border-card: rgba(251, 191, 36, 0.3);
  
  --accent-gold: #fbbf24;
  --accent-rose: #d97706;
  --accent-rose-hover: #b45309;
  
  --text-heading: #ffffff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-tagline: #fbbf24;
  
  --bg-badge: rgba(251, 191, 36, 0.15);
  --text-badge: #fbbf24;
  --border-badge: rgba(251, 191, 36, 0.35);
  
  --header-bg: rgba(15, 23, 42, 0.94);
  --header-text: #ffffff;
  
  --hero-bg: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.25) 0%, transparent 55%),
              linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --hero-heading: linear-gradient(135deg, #ffffff 0%, #fef3c7 60%, #fbbf24 100%);
  --hero-sub: #94a3b8;
  
  --bg-cred: rgba(255, 255, 255, 0.05);
  --border-cred: rgba(251, 191, 36, 0.3);
  --text-cred-title: #fbbf24;
  --text-cred-body: #cbd5e1;
  
  --bg-timetable: rgba(30, 41, 59, 0.9);
  --bg-timetable-controls: rgba(15, 23, 42, 0.95);
  --text-timetable-slot: #fbbf24;
  --text-timetable-title: #ffffff;
  --text-timetable-venue: #94a3b8;
  --border-timetable-row: rgba(255, 255, 255, 0.08);
  
  --bg-faq: rgba(30, 41, 59, 0.6);
  --text-faq-q: #ffffff;
  --text-faq-a: #94a3b8;
  
  --bg-modal: #1e293b;
  --text-modal: #ffffff;
  --bg-input: rgba(255, 255, 255, 0.08);
  --border-input: rgba(255, 255, 255, 0.2);
  --text-input: #ffffff;
  
  --bg-footer: #0f172a;
  --text-footer: #94a3b8;
  --border-footer: rgba(251, 191, 36, 0.25);
}

/* --------------------------------------------------------------------------
   THEME 3: FRESH & BRIGHT STUDIO (Clean Light Gray, Dark Text & Royal Blue)
   -------------------------------------------------------------------------- */
[data-theme="bright"] {
  --bg-body: #f8fafc;
  --bg-section-alt: #ffffff;
  --bg-card: #ffffff;
  --border-card: #cbd5e1;
  
  --accent-gold: #d97706;       /* Warm Amber Gold */
  --accent-rose: #2563eb;       /* Royal Blue */
  --accent-rose-hover: #1d4ed8;
  
  --text-heading: #0f172a;      /* Dark High-Contrast Navy */
  --text-main: #0f172a;
  --text-muted: #334155;        /* Dark Slate Body */
  --text-tagline: #d97706;
  
  --bg-badge: #eff6ff;
  --text-badge: #1d4ed8;
  --border-badge: #bfdbfe;
  
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-text: #0f172a;
  
  --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --hero-heading: linear-gradient(135deg, #ffffff 0%, #fef3c7 60%, #fbbf24 100%);
  --hero-sub: #cbd5e1;
  
  --bg-cred: #f1f5f9;
  --border-cred: #cbd5e1;
  --text-cred-title: #d97706;
  --text-cred-body: #334155;
  
  --bg-timetable: #ffffff;
  --bg-timetable-controls: #f1f5f9;
  --text-timetable-slot: #1d4ed8;
  --text-timetable-title: #0f172a;
  --text-timetable-venue: #475569;
  --border-timetable-row: #e2e8f0;
  
  --bg-faq: #ffffff;
  --text-faq-q: #0f172a;
  --text-faq-a: #334155;
  
  --bg-modal: #ffffff;
  --text-modal: #0f172a;
  --bg-input: #f8fafc;
  --border-input: #cbd5e1;
  --text-input: #0f172a;
  
  --bg-footer: #0f172a;
  --text-footer: #cbd5e1;
  --border-footer: #334155;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--bg-body);
  color: var(--text-main);
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: #fbbf24;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-heading);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  letter-spacing: -0.01em;
}

.hero-section h1 {
  background: var(--hero-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--hero-sub) !important;
}

p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  gap: 10px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-rose-hover) 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.55);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0314 !important;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold) !important;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-footer);
  height: 84px;
  display: flex;
  align-items: center;
  transition: background 0.35s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  object-fit: cover;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--header-text);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent-gold);
  font-style: italic;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--header-text);
  position: relative;
  padding: 6px 0;
}

.nav-link.active, .nav-link:hover {
  color: var(--accent-gold);
}

/* TEMPORARY OWNER DESIGN SWITCHER BOX */
.theme-switch-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed var(--accent-gold);
  padding: 4px 10px;
  border-radius: 8px;
  margin-right: 6px;
}

.theme-switch-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.theme-select {
  background: var(--bg-body);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  padding: 4px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--accent-gold);
  cursor: pointer;
}

/* Stage Hero Section */
.hero-section {
  position: relative;
  padding: 90px 0 100px;
  background: var(--hero-bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.badge {
  background: var(--bg-badge);
  border: 1px solid var(--border-badge);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-badge);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-image-frame {
  position: relative;
  border-radius: 24px;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-rose) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-image-frame img {
  border-radius: 18px;
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center 15%; /* Keep Coach Ekaterina's face & posture in frame */
}

/* Sections Base */
.section {
  padding: 84px 0;
  position: relative;
  background: var(--bg-body);
}

.section-deep {
  background-color: var(--bg-section-alt);
  transition: background-color 0.35s ease;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-header .tagline {
  color: var(--text-tagline);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

/* Cards & Glassmorphism */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.dance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.dance-card h3, .dance-card h4 {
  color: var(--text-heading);
}

.dance-card p {
  color: var(--text-muted);
}

.dance-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

/* SMART IMAGE FRAMING & OBJECT POSITION CONTROLS */
.card-img-wrapper {
  margin: -32px -32px 24px -32px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  height: 220px;
}

.card-img-wrapper img, .card-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Default: upper 20% to capture dancers' heads & faces */
  transition: transform 0.5s ease;
}

/* Helper Focal Point Classes */
.img-pos-top {
  object-position: center top !important;
}

.img-pos-upper {
  object-position: center 20% !important;
}

.img-pos-center {
  object-position: center center !important;
}

.dance-card:hover .card-img-wrapper img, .dance-card:hover .card-photo-box img {
  transform: scale(1.06);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-badge);
  border: 1px solid var(--border-badge);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Bio Section (Ekaterina Prus) */
.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.bio-image-frame {
  border-radius: 24px;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-gold) 100%);
}

.bio-image-frame img {
  border-radius: 18px;
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 15%;
}

.bio-credentials {
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cred-card {
  background: var(--bg-cred);
  border: 1px solid var(--border-cred);
  padding: 16px 18px;
  border-radius: 10px;
}

.cred-card strong {
  display: block;
  color: var(--text-cred-title);
  font-size: 1rem;
  margin-bottom: 4px;
}

.cred-card span {
  color: var(--text-cred-body);
}

/* Timetable Module */
.timetable-wrapper {
  background: var(--bg-timetable);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.timetable-controls {
  display: flex;
  background: var(--bg-timetable-controls);
  border-bottom: 1px solid var(--border-timetable-row);
  padding: 14px 20px;
  gap: 10px;
  overflow-x: auto;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 99px;
  border: 1px solid var(--border-card);
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-rose);
  color: #ffffff !important;
  border-color: var(--accent-rose);
}

.timetable-list {
  padding: 20px;
}

.timetable-row {
  display: grid;
  grid-template-columns: 140px 1.5fr 1fr 140px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-timetable-row);
  align-items: center;
  gap: 16px;
}

.time-slot {
  font-weight: 800;
  color: var(--text-timetable-slot);
}

.timetable-title {
  color: var(--text-timetable-title);
}

.timetable-venue {
  font-size: 0.88rem;
  color: var(--text-timetable-venue);
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.review-card p {
  color: var(--text-muted);
}

.review-name {
  font-weight: 700;
  color: var(--text-heading);
}

.stars {
  color: var(--accent-gold);
  margin-bottom: 14px;
  font-size: 1.1rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-card);
  border-radius: 10px;
  margin-bottom: 14px;
  background: var(--bg-faq);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-faq-q);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 20px;
  display: none;
  color: var(--text-faq-a);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-footer);
  color: var(--text-footer);
  padding: 70px 0 30px;
  transition: background 0.35s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.footer-grid a {
  color: var(--text-footer);
}

.footer-grid a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: var(--text-modal);
}

.modal-content h2 {
  color: var(--text-modal) !important;
}

.modal-content p {
  color: var(--text-muted) !important;
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-input);
  font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Sticky Mobile Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--header-bg);
  border-top: 1px solid var(--border-footer);
  padding: 10px 16px;
  z-index: 99;
  backdrop-filter: blur(10px);
}

.mobile-sticky-bar .btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .bio-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .timetable-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: var(--bg-modal);
    border-bottom: 1px solid var(--border-card);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-sticky-bar {
    display: block;
  }
  body {
    padding-bottom: 74px;
  }
  .theme-switch-box {
    margin-right: 0;
  }
}
