/* ==========================================================================
   AROGYA JEEVAN AYURVEDIC CHIKITSALAYA & THERAPY CENTRE
   Global CSS & Design System
   Theme: Deep Ayurvedic Green (#1F3D2B), Regal Gold (#C9973A), Cream (#F7F3E8)
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-dark-green: #1F3D2B;
  --bg-dark-emerald: #142B1E;
  --bg-cream: #F7F3E8;
  --bg-cream-card: #FFFFFF;
  --color-gold: #C9973A;
  --color-gold-light: #E5BA65;
  --color-gold-dark: #A27623;
  --color-accent-green: #4C7A5C;
  --color-soft-green: #E2ECE5;
  
  /* Typography Colors */
  --text-on-dark: #F5F1E4;
  --text-muted-dark: #B5B09F;
  --text-on-cream: #2B2620;
  --text-muted-cream: #666055;
  
  /* Fonts */
  --font-heading: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Inter', sans-serif;
  
  /* Shadows & Glass */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 10px 25px rgba(201, 151, 58, 0.2);
  --shadow-elevated: 0 20px 40px rgba(15, 30, 21, 0.15);
  --glass-dark: rgba(31, 61, 43, 0.88);
  --glass-border: rgba(201, 151, 58, 0.25);
  
  /* Transitions & Spacing */
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --container-max: 1240px;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-on-cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Smooth Scroll container adjustments */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: inherit;
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Badge & Accent Typography */
.accent-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.accent-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: var(--color-gold);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted-cream);
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  text-align: center;
  min-height: 44px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  box-shadow: 0 14px 30px rgba(201, 151, 58, 0.35);
}

.btn-outline-gold {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: transparent;
}

.btn-outline-gold:hover {
  background-color: var(--color-gold);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
}

/* Form Fields Optimization */
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  font-size: 16px !important;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.contact-form-box {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gold);
  box-shadow: var(--shadow-soft);
}

/* Sections Backgrounds */
.bg-dark {
  background-color: var(--bg-dark-green);
  color: var(--text-on-dark);
}

.bg-dark .section-subtitle {
  color: var(--text-muted-dark);
}

.bg-cream {
  background-color: var(--bg-cream);
  color: var(--text-on-cream);
}

/* Section Dividers with Gold Wave */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.wave-divider .shape-fill {
  fill: var(--bg-cream);
}

.wave-divider-dark .shape-fill {
  fill: var(--bg-dark-green);
}

/* Persistent WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 99;
  font-size: 28px;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.5;
  z-index: -1;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Universal Footer */
.footer {
  background-color: var(--bg-dark-emerald);
  color: var(--text-on-dark);
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 3px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  object-fit: cover;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--color-gold);
}

.footer-brand p {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
}

.footer-links h4, .footer-contact h4 {
  color: var(--color-gold);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-links h4::after, .footer-contact h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--color-gold);
  margin-top: 0.4rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  display: inline-block;
  padding: 0.2rem 0;
  min-height: 36px;
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.footer-contact p {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted-dark);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 95%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #FFFFFF;
  font-size: 2.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Comprehensive Mobile Optimization Rules (< 768px) */
@media (max-width: 767px) {
  html {
    font-size: 15px;
  }

  body {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-title {
    font-size: 1.85rem !important;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    justify-content: center;
  }

  .contact-form-box {
    padding: 1.35rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 26px;
    z-index: 99;
  }

  .footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .footer-grid {
    gap: 2.25rem;
    margin-bottom: 2rem;
  }

  .footer-brand h3 {
    font-size: 1.35rem;
  }

  .footer-bottom {
    text-align: center;
    gap: 0.5rem;
  }
}

/* Mobile Smoothness & Hardware Acceleration Optimizations */
* {
  -webkit-tap-highlight-color: transparent;
}

body {
  touch-action: manipulation;
}

.service-card,
.therapy-modal-container,
.therapy-lightbox-overlay,
.nav-menu,
.whatsapp-float {
  will-change: transform;
  transform: translateZ(0);
}

.therapy-modal-container,
.therapy-gallery-strip,
.nav-menu {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ==========================================================================
   Vercel Toolbar & Feedback Widget Removal
   ========================================================================== */
vercel-live-feedback,
vercel-toolbar,
[data-vercel-toolbar],
[data-testid="vercel-toolbar"],
#vercel-live-feedback,
#vercel-toolbar,
#vercel-toolbar-container,
.__vercel-toolbar,
iframe[src*="vercel.live"],
div[id*="vercel"],
div[class*="vercel-toolbar"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  top: -99999px !important;
  left: -99999px !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  z-index: -99999 !important;
}
