/* ==========================================================================
   BEKAL AYURVEDIC CLINIC - ULTRA-LUXURY DESIGN SYSTEM (v12.0)
   Inspired by Aman Resorts, SHA Wellness Clinic, Apple & Four Seasons
   ========================================================================== */

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

:root {
  /* Strictly Enforced Luxury Color System */
  --primary-forest: #0F4D3F;
  --deep-emerald: #155C48;
  --luxury-gold: #C9A227;
  --gold-hover: #B08C1E;
  --soft-champagne: #F8F4EA;
  --ivory-white: #FFFDF8;
  --warm-beige: #F5F1E8;
  --glass-white: rgba(255, 255, 255, 0.76);
  --glass-border: rgba(201, 162, 39, 0.28);
  
  --bg-primary: #FFFDF8;
  --bg-secondary: #F8F4EA;
  --bg-surface: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-card: rgba(255, 255, 255, 0.95);
  
  --text-primary: #0F4D3F;        /* Forest Green */
  --text-secondary: #155C48;      /* Deep Emerald */
  --text-muted: #4A6B5F;        /* Sage Muted */
  --text-inverse: #FFFDF8;

  --accent-primary: #0F4D3F;
  --accent-secondary: #C9A227;
  --border-color: rgba(15, 77, 63, 0.1);
  --border-gold: rgba(201, 162, 39, 0.35);
  
  /* Luxury Ambient Shadows */
  --shadow-sm: 0 8px 20px rgba(15, 77, 63, 0.04);
  --shadow-md: 0 16px 40px rgba(15, 77, 63, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 77, 63, 0.14);
  --shadow-glow: 0 0 40px rgba(201, 162, 39, 0.28);
  --shadow-3d: 0 25px 50px -12px rgba(15, 77, 63, 0.22);

  --font-serif: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Manrope', 'Inter', -apple-system, sans-serif;

  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg-primary: #081B17;
  --bg-secondary: #102824;
  --bg-surface: #16352D;
  --bg-glass: rgba(16, 40, 36, 0.94);
  --bg-glass-card: rgba(22, 53, 45, 0.95);

  --text-primary: #FFFFFF;
  --text-secondary: #D5D5D5;
  --text-muted: #AEB4B8;
  --text-inverse: #081B17;

  --primary-forest: #FFFFFF;
  --deep-emerald: #D5D5D5;
  --luxury-gold: #D4AF37;

  --accent-primary: #D4AF37;
  --accent-secondary: #D4AF37;
  --border-color: rgba(212, 175, 55, 0.18);
  --border-gold: rgba(212, 175, 55, 0.35);

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 45px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 75px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.section-padding { padding: 6.5rem 0; }
.text-center { text-align: center; }
.text-gold { color: var(--luxury-gold) !important; }
.text-emerald { color: var(--primary-forest) !important; }

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.section-header .sub-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-forest);
  background: rgba(201, 162, 39, 0.12);
  padding: 0.45rem 1.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  margin-bottom: 1.2rem;
}

.section-header h2 {
  font-size: clamp(2.3rem, 4.8vw, 3.5rem);
  margin-bottom: 1.2rem;
  color: var(--primary-forest);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.8;
}

/* ==========================================================================
   PREMIUM BUTTONS WITH LUXURY LIGHT-SWEEP & 3D HOVER
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-fast);
  white-space: nowrap;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 750ms ease;
}

.btn:hover::before {
  transform: rotate(30deg) translateY(100%);
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-forest), var(--deep-emerald));
  color: #FFFDF8;
  box-shadow: var(--shadow-3d);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0A3A2F, #0E4435);
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -10px rgba(15, 77, 63, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--luxury-gold), #A8851B);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-hover), #917215);
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(201, 162, 39, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.25);
  border: 1.5px solid var(--primary-forest);
  color: var(--primary-forest);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary-forest);
  color: #FFFDF8;
  transform: translateY(-3px);
}

/* ==========================================================================
   FLOATING GLASS HEADER & DESKTOP NAVIGATION BAR (CAPPED 68px)
   ========================================================================== */

.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 68px;
  max-height: 68px;
  z-index: 99999;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: background-color 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  display: flex;
  align-items: center;
}

.header-nav.scrolled {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 25px rgba(14, 90, 70, 0.12);
  border-bottom: 1px solid rgba(200, 164, 77, 0.35);
}

[data-theme="dark"] .header-nav.scrolled {
  background: rgba(8, 38, 31, 0.96);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.header-nav.nav-hidden {
  transform: none !important;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  gap: 1rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-brand img {
  height: 42px;
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-forest);
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
}

.logo-text .tagline {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--luxury-gold);
  white-space: nowrap;
}

/* Balanced Desktop Navigation Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1200px) {
  .nav-menu { gap: 0.75rem; }
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--luxury-gold);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 77, 63, 0.08);
  color: var(--primary-forest);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  transform: rotate(20deg) scale(1.08);
}

.mobile-toggle {
  display: none;
  font-size: 1.25rem;
  color: var(--primary-forest);
  background: rgba(15, 77, 63, 0.08);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-header, .drawer-actions { display: none; }

/* Floating Action Dock */
.floating-actions {
  position: fixed;
  bottom: 1.6rem;
  right: 1.4rem;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition: opacity 250ms ease, transform 250ms ease, visibility 250ms ease;
}

.floating-actions.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  visibility: hidden;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 77, 63, 0.25);
  transition: transform var(--transition-bounce);
}

.float-btn:hover {
  transform: scale(1.12);
}

.float-btn.whatsapp { background: #25D366; }
.float-btn.call { background: #007AFF; }
.float-btn.book { background: var(--luxury-gold); }

/* Mobile Drawer (<992px) */
@media (max-width: 992px) {
  .desktop-only-btn { display: none !important; }
  .mobile-toggle { display: flex !important; }

  .drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
  }

  .drawer-header .drawer-title {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--primary-forest);
    font-size: 1.2rem;
  }

  .drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 77, 63, 0.08);
    color: var(--primary-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
  }

  .drawer-actions {
    display: flex !important;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 330px;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 1.8rem 1.4rem;
    box-shadow: -15px 0 40px rgba(0,0,0,0.28);
    transition: right var(--transition-smooth);
    overflow-y: auto;
    z-index: 1050;
  }

  .nav-menu.open {
    right: 0 !important;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.75rem 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
}

@media (max-width: 375px) {
  .logo-brand img { height: 36px; max-height: 36px; }
  .logo-text .title { font-size: 0.88rem; }
  .logo-text .tagline { display: none; }
}

/* ==========================================================================
   ELEGANT SCROLL-TRIGGERED ANIMATIONS (v63.0)
   ========================================================================== */
.reveal-on-scroll,
.why-scroll-reveal,
.reveal-card,
.why-card,
.glass-card,
.contact-card-luxury,
.map-luxury-wrapper,
.news-card,
.gallery-card {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible,
.why-scroll-reveal.is-visible,
.reveal-card.is-visible,
.why-card.is-visible,
.glass-card.is-visible,
.contact-card-luxury.is-visible,
.map-luxury-wrapper.is-visible,
.news-card.is-visible,
.gallery-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .why-scroll-reveal,
  .reveal-card,
  .why-card,
  .glass-card,
  .contact-card-luxury,
  .map-luxury-wrapper,
  .news-card,
  .gallery-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   PREMIUM LIGHT CREAM SPLASH / LOADING SCREEN (#F8F3E6)
   ========================================================================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #F8F3E6;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 450ms ease, visibility 450ms ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.splash-logo {
  width: 165px;
  max-width: 75vw;
  height: auto;
  object-fit: contain;
  animation: splashPulse 2s ease-in-out infinite alternate;
}

@keyframes splashPulse {
  0% { transform: scale(0.97); opacity: 0.92; }
  100% { transform: scale(1.03); opacity: 1; }
}
