/* ===== CSS Variables ===== */
:root, [data-theme="plum"] {
  --plum: #5B2D8E;
  --plum-dark: #3E1D63;
  --plum-mid: #7B3FBF;
  --plum-rgb: 91,45,142;
  --coral: #FF6B6B;
  --coral-hover: #FF4F4F;
  --coral-rgb: 255,107,107;
  --gold: #FFD166;
  --mint: #06D6A0;
  --sky: #118AB2;
  --cream: #FFF9F0;
  --white: #FFFFFF;
  --text: #2D2D3A;
  --text-light: #6B6B80;
  --bg: #FAFAFA;
  --shadow: 0 4px 24px rgba(var(--plum-rgb),0.08);
  --shadow-lg: 0 12px 48px rgba(var(--plum-rgb),0.12);
  --radius: 16px;
  --radius-sm: 10px;

  /* Section gradients + hover surfaces (overridable per theme) */
  --hero-bg: linear-gradient(135deg, var(--plum) 0%, var(--plum-mid) 40%, var(--sky) 100%);
  --open-gym-bg: linear-gradient(135deg, var(--sky) 0%, var(--mint) 100%);
  --row-hover-bg: #FAFAFA;
}

[data-theme="pink"] {
  --plum: #E91E8C;
  --plum-dark: #C4177A;
  --plum-mid: #FF2DA0;
  --plum-rgb: 233,30,140;
  --coral: #E91E8C;
  --coral-hover: #C4177A;
  --coral-rgb: 233,30,140;

  --hero-bg: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 45%, var(--plum-mid) 100%);
  --open-gym-bg: linear-gradient(135deg, var(--plum) 0%, var(--plum-mid) 100%);
  --row-hover-bg: #FDF0F7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--plum-rgb),0.08);
  padding: 0 24px;
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 20px rgba(var(--plum-rgb),0.1);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--plum);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span:last-child { color: var(--coral); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--plum); }
.nav-cta {
  background: var(--coral);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--coral-hover); transform: translateY(-1px); }
.mobile-menu {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--plum);
  background: none;
  border: none;
  padding: 8px;
  line-height: 1;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
  color: white;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(var(--coral-rgb),0.15);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,209,102,0.1);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-text h1 .highlight { color: var(--gold); }
.hero-text p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--coral);
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--coral-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--coral-rgb),0.3); }
.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-card h3 { font-size: 1rem; margin-bottom: 8px; }
.hero-card p { font-size: 0.88rem; opacity: 0.85; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-item {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
}
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 0.75rem; opacity: 0.8; margin-top: 4px; }

/* ===== SECTIONS ===== */
section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  color: var(--coral);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 12px;
}
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ===== WHY US ===== */
.why-us { background: var(--cream); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  border: 1px solid rgba(var(--plum-rgb),0.05);
}
.why-card:hover { transform: translateY(-4px); }
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.why-card h3 { font-size: 1.1rem; color: var(--plum); margin-bottom: 8px; }
.why-card p { color: var(--text-light); font-size: 0.92rem; }

/* ===== PROGRAMS ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  border: 1px solid rgba(var(--plum-rgb),0.05);
}
.program-card:hover { transform: translateY(-4px); }
.program-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.program-img .placeholder-label {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.program-body { padding: 24px; }
.program-body h3 { font-size: 1.05rem; color: var(--plum); margin-bottom: 6px; }
.program-body .ages { font-size: 0.8rem; color: var(--coral); font-weight: 600; margin-bottom: 8px; }
.program-body p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 12px; }
.program-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--plum);
}
.program-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--plum);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.program-cta:hover { background: var(--plum-dark); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: linear-gradient(135deg, var(--plum) 0%, var(--plum-mid) 100%); color: white; }
.testimonials .section-header .eyebrow { color: var(--gold); }
.testimonials .section-header h2 { color: white; }
.testimonials .section-header p { color: rgba(255,255,255,0.7); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.15);
}
.testimonial-stars { color: var(--gold); margin-bottom: 12px; font-size: 1.1rem; }
.testimonial-text { font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; opacity: 0.9; font-style: italic; }
.testimonial-author { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; opacity: 0.6; }

/* ===== PRICING ===== */
.pricing { background: var(--cream); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.price-card.featured {
  border-color: var(--coral);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.price-card .badge {
  display: inline-block;
  background: var(--coral);
  color: white;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.price-card h3 { font-size: 1.15rem; color: var(--plum); margin-bottom: 8px; }
.price-card .price { font-size: 2.4rem; font-weight: 800; color: var(--text); }
.price-card .price span { font-size: 0.9rem; font-weight: 400; color: var(--text-light); }
.price-card .features {
  list-style: none;
  margin: 20px 0;
  text-align: left;
}
.price-card .features li {
  padding: 8px 0;
  border-bottom: 1px solid #F0F0F0;
  font-size: 0.88rem;
  color: var(--text-light);
}
.price-card .features li::before {
  content: '\2713';
  color: var(--mint);
  font-weight: 700;
  margin-right: 8px;
}

/* ===== SCHEDULE ===== */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule-table thead { background: var(--plum); color: white; }
.schedule-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.schedule-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #F0F0F0;
  font-size: 0.9rem;
}
.schedule-table tr:hover { background: var(--row-hover-bg); }
.class-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-gym { background: #EDE9FE; color: var(--plum); }
.tag-cheer { background: #FFE0E0; color: #C0392B; }
.tag-silks { background: #D1FAE5; color: #065F46; }
.tag-open { background: #FEF3C7; color: #92400E; }
.tag-adult { background: #DBEAFE; color: #1E40AF; }

/* ===== OPEN GYM HIGHLIGHT ===== */
.open-gym-section {
  background: var(--open-gym-bg);
  color: white;
}
.open-gym-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.open-gym-inner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.open-gym-inner p { opacity: 0.9; margin-bottom: 20px; font-size: 1.05rem; line-height: 1.7; }
.open-gym-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ogf-item {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
}
.ogf-item .icon { font-size: 2rem; margin-bottom: 8px; }
.ogf-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.ogf-item p { font-size: 0.82rem; opacity: 0.8; }

/* ===== CONTACT / CTA ===== */
.final-cta {
  background: var(--plum);
  color: white;
  text-align: center;
}
.final-cta h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.final-cta p { opacity: 0.8; max-width: 500px; margin: 0 auto 32px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 32px auto 0;
}
.contact-item {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.15);
}
.contact-item .icon { font-size: 1.5rem; margin-bottom: 8px; }
.contact-item h4 { font-size: 0.9rem; margin-bottom: 4px; }
.contact-item p { font-size: 0.85rem; opacity: 0.75; }
.contact-item a { color: var(--gold); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto 32px;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
}
.contact-form .form-group.full-width {
  grid-column: 1 / -1;
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.9;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.15);
}
.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.contact-form select option {
  background: var(--plum-dark);
  color: white;
}
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-form .btn-primary {
  grid-column: 1 / -1;
  justify-content: center;
  font-size: 1.05rem;
  padding: 16px 36px;
  margin-top: 8px;
}

/* ===== FOOTER ===== */
footer {
  background: #1A1A2E;
  color: rgba(255,255,255,0.6);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.85rem;
}
footer a { color: var(--gold); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin: 0 auto 32px; }
  .hero-text h1 { font-size: 2.4rem; }
  .hero-buttons { justify-content: center; }
  .hero-badges { justify-content: center; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--plum);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 8px;
  }
  .nav-links a {
    display: block;
    padding: 14px 0;
  }
  .nav-cta {
    text-align: center;
    display: block;
  }
  .mobile-menu { display: block; }
  .open-gym-inner { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.8rem; }
  .contact-form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-text h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: 1fr; }
  section { padding: 60px 16px; }
  .schedule-table { font-size: 0.8rem; }
  .schedule-table th,
  .schedule-table td { padding: 10px 8px; }
}

/* ===== THEME TOGGLE (preview widget) ===== */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(var(--plum-rgb),0.12);
  font-family: inherit;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { box-shadow: 0 6px 32px rgba(0,0,0,0.18); }
.theme-toggle:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
.theme-toggle-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 36px;
}
.theme-toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 13px;
  background: var(--plum);
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}
.theme-toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
[data-theme="pink"] .theme-toggle-thumb { transform: translateX(20px); }
.theme-toggle-icons {
  display: flex;
  gap: 6px;
  font-size: 0.95rem;
  line-height: 1;
}
.theme-icon { opacity: 0.4; transition: opacity 0.3s; }
.theme-icon.active { opacity: 1; }
@media (max-width: 600px) {
  .theme-toggle { bottom: 16px; right: 16px; padding: 8px 14px; gap: 8px; }
  .theme-toggle-label { font-size: 0.7rem; min-width: 32px; }
}

/* ===== PINK THEME — targeted overrides ===== */
/* Keep the two-tone logo: dark "Lem" + pink "Possible" */
[data-theme="pink"] .logo { color: var(--text); }

/* Hero & Open Gym CTAs read better as white pill on the pink background */
[data-theme="pink"] .hero .btn-primary,
[data-theme="pink"] .open-gym-section .btn-primary {
  background: var(--white);
  color: var(--plum);
}
[data-theme="pink"] .hero .btn-primary:hover,
[data-theme="pink"] .open-gym-section .btn-primary:hover {
  background: var(--white);
  color: var(--plum-dark);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
