/* ==========================================================================
   AMRIT YOG SHALA - MODERN LUXURY THERAPY THEME
   ========================================================================== */

/* 1. Global Variables & Design Tokens */
:root {
  --bg-primary: #FAF8F5;
  --surface-white: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.75);
  --brand-accent: #2D5A27;       /* Deep Forest Sage */
  --brand-light: #E8F0E6;        /* Soft Sage Tint */
  --gold-accent: #C5A059;       /* Muted Warm Gold */
  --gold-hover: #B38E46;
  --text-dark: #1A2B1E;         /* Deep Slate Gray */
  --text-muted: #5A6E5F;        /* Soft Muted Green */
  --border-light: rgba(45, 90, 39, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(45, 90, 39, 0.08);
  --shadow-lg: 0 20px 40px rgba(45, 90, 39, 0.15);

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Overrides */
body.dark-theme {
  --bg-primary: #121A13;
  --surface-white: #1B261C;
  --surface-glass: rgba(27, 38, 28, 0.85);
  --brand-accent: #81C784;       /* Softer green for dark background */
  --brand-light: #253526;
  --gold-accent: #E5C158;
  --text-dark: #E8F0E6;         /* Light text for contrast */
  --text-muted: #A3B8A5;
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 0.5rem 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  background: var(--brand-light);
}

/* 2. Global Resets & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--brand-accent);
}

a {
  text-decoration: none;
  color: inherit;
}

/* 3. Modern Glassmorphism Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 7%;
  position: sticky;
  top: 0;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform var(--transition-smooth);
}

.site-logo { height: 60px; width: auto; transition: transform 0.3s ease; }
.site-logo:hover { transform: scale(1.05); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--gold-accent);
  transition: width var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--brand-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-nav {
  background: var(--brand-accent);
  color: #FFFFFF !important;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(45, 90, 39, 0.2);
}

.cta-nav:hover {
  background: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Header Hide on Scroll Script Support */
.header-hidden {
  transform: translateY(-100%);
}

/* 4. Hero Banner */
.hero {
  padding: 120px 7% 90px;
  text-align: center;
  background: radial-gradient(circle at 80% 20%, var(--brand-light) 0%, transparent 60%);
  position: relative;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  max-width: 850px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.btn-primary {
  background: var(--brand-accent);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(45, 90, 39, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(45, 90, 39, 0.35);
}

.btn-secondary {
  background: var(--surface-white);
  color: var(--brand-accent);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--brand-light);
  transform: translateY(-3px);
}

/* 5. About Section */
.about-section {
  padding: 90px 7%;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  flex: 1;
  position: relative;
}

.profile-pic {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.about-content {
  flex: 1.2;
}

.about-content p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

.therapist-badge {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-accent);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-accent);
  margin-top: 1rem;
}

/* 6. Programs Section & Modern Cards */
.programs {
  padding: 90px 7%;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-accent);
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.98rem;
}

.enroll-btn {
  background: transparent;
  color: var(--brand-accent);
  border: 2px solid var(--brand-accent);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  align-self: flex-start;
}

.card:hover .enroll-btn {
  background: var(--brand-accent);
  color: #fff;
}

/* 7. Stats Banner */
.stats {
  display: flex;
  justify-content: space-around;
  background: var(--brand-accent);
  color: #fff;
  padding: 3.5rem 5%;
  border-radius: var(--radius-lg);
  margin: 4rem 7%;
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
}

.stat-item h2 {
  font-size: 2.8rem;
  color: var(--gold-accent);
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* 8. Reviews & Feedback Section */
.feedback-section {
  padding: 90px 7%;
}

.reviews-display {
  margin-top: 3rem;
}

#reviewsList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--surface-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
}

.review-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.review-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.reviewer-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-accent);
}

/* 9. Contact Section & Footer */
.contact-section {
  padding: 60px 7%;
  text-align: center;
}

.contact-info p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: var(--text-muted);
}

footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 10. WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.05) translateY(-3px);
}

.whatsapp-float img {
  width: 26px;
  height: 26px;
}

/* 11. Custom Modals & Overlays */
.modal, .health-overlay, .logo-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 43, 30, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content, .health-modal {
  background: var(--surface-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close, .close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* 12. Floating Mobile Hamburger & Responsive Layout */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.4rem; }
  .about-container { flex-direction: column; }
  .stats { flex-direction: column; gap: 2rem; }

  /* Navbar Adjustments */
  .navbar {
    position: sticky;
    top: 0;
    justify-content: space-between;
    padding: 0.8rem 5%;
  }

  /* Fixed Floating Hamburger Icon */
  .menu-toggle {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 2001;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 13px 11px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--brand-accent);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
  }

  /* Overlay Dropdown Container */
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--surface-white);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
  }

  .nav-container.active {
    display: flex;
    animation: fadeIn 0.25s ease-in-out forwards;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
  }

  /* Hamburger to X Animation */
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}