/* ==========================================================================
   Riddhi Siddhi Medical - Premium Ayurvedic Healthcare Website Stylesheet
   Brand Colors:
   - Dark Forest Green: #07552F
   - Primary Green: #087A3E
   - Golden Yellow: #E5B82F
   - Light Cream: #FFF9E9
   - Deep Red: #A70D17
   - White: #FFFFFF
   ========================================================================== */

:root {
  --color-forest-dark: #07552F;
  --color-forest-darker: #04361E;
  --color-primary-green: #087A3E;
  --color-primary-green-light: #EBF7F0;
  --color-golden-yellow: #E5B82F;
  --color-golden-dark: #C4981C;
  --color-golden-light: #FFF8E1;
  --color-light-cream: #FFF9E9;
  --color-deep-red: #A70D17;
  --color-deep-red-light: #FDE8E9;
  --color-slate-900: #0F172A;
  --color-slate-700: #334155;
  --color-slate-500: #64748B;
  --color-slate-200: #E2E8F0;
  --color-slate-50: #F8FAFC;
  --font-family-base: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-family-serif: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family-base);
}

body {
  color: var(--color-slate-700);
  background-color: #FAFAF7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F2;
}
::-webkit-scrollbar-thumb {
  background: #B2D4C1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #087A3E;
}

/* Typography Enhancements */
.font-serif-heading {
  font-family: var(--font-family-serif);
}

.hindi-text, .font-hindi {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

/* Botanical Flourish Line */
.botanical-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto 20px;
}
.botanical-divider::before,
.botanical-divider::after {
  content: '';
  height: 1px;
  width: 48px;
  background: linear-gradient(90deg, transparent, #E5B82F, transparent);
}

/* Header & Navigation */
.header-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(8, 122, 62, 0.12);
  transition: all 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 4px 20px -2px rgba(7, 85, 47, 0.08);
}

/* Senior Design System: Card & Surface Architecture */
.premium-card {
  background: #FFFFFF;
  border: 1px solid #E5EBE6;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: #A9D1B6;
  box-shadow: 0 14px 30px -8px rgba(7, 85, 47, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
}

/* 3D Product Simulation & Visual Card */
.product-box-mockup {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(145deg, #07552F, #032E1A);
  color: #FFFFFF;
  box-shadow: 0 20px 45px -15px rgba(7, 85, 47, 0.38);
  border: 2px solid rgba(229, 184, 47, 0.45);
}

/* Floating WhatsApp Pulse */
.whatsapp-pulse {
  position: relative;
}

.whatsapp-pulse::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.6;
  animation: pulse-ring 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  z-index: -1;
}

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

/* Form Styles - Stripe / Linear Aesthetic */
.form-input-premium {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #D5E1D8;
  border-radius: 12px;
  background-color: #FFFFFF;
  font-size: 15px;
  color: #0F172A;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input-premium:focus {
  outline: none;
  border-color: #087A3E;
  box-shadow: 0 0 0 3px rgba(8, 122, 62, 0.16);
}

.form-textarea-premium {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D5E1D8;
  border-radius: 12px;
  background-color: #FFFFFF;
  font-size: 15px;
  color: #0F172A;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  resize: vertical;
}

.form-textarea-premium:focus {
  outline: none;
  border-color: #087A3E;
  box-shadow: 0 0 0 3px rgba(8, 122, 62, 0.16);
}

/* Accordion Component */
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  background: #FFFFFF;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: #CBD5E1;
}

.faq-item.active {
  border-color: #087A3E;
  box-shadow: 0 6px 16px -2px rgba(8, 122, 62, 0.08);
}

.faq-trigger {
  width: 100%;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #0F172A;
  font-size: 16px;
  gap: 14px;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  color: #087A3E;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 22px;
  color: #475569;
  line-height: 1.7;
  font-size: 15px;
}

.faq-item.active .faq-content {
  padding-bottom: 22px;
}

/* Modal Window */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 54, 30, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 22px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 30px;
  border: 1px solid #E2E8F0;
}

/* Badge styling */
.badge-pill-herbal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #EBF7F0;
  color: #07552F;
  border: 1px solid #C4E6D2;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
}

.badge-pill-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #FFF8E1;
  color: #926A08;
  border: 1px solid #F6DE98;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
}

.badge-pill-red {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #FDE8E9;
  color: #A70D17;
  border: 1px solid #F8B4B8;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 13px 20px;
  border-radius: 9999px;
  box-shadow: 0 10px 28px -5px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px -4px rgba(37, 211, 102, 0.55);
  background: #20BA5A;
}

@media (max-width: 640px) {
  .floating-whatsapp-btn span {
    display: none;
  }
  .floating-whatsapp-btn {
    padding: 14px;
    bottom: 76px; /* Above mobile bottom bar */
    right: 18px;
  }
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #D5E1D8;
  color: #07552F;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: #07552F;
  color: #FFFFFF;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .scroll-top-btn {
    bottom: 76px;
    left: 18px;
    width: 40px;
    height: 40px;
  }
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 640px) {
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    padding: 10px 16px;
    z-index: 49;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    gap: 10px;
  }
}

/* Toast Notification for Clipboard Copy */
#toastNotification {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
}

#toastNotification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
