/*
 * Ayurvedic Clinic & Pharmacy — Kottayam, Kerala
 * Style Sheet (Vanilla CSS)
 */

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

/* --- Design Tokens --- */
:root {
  --primary-emerald: #2D5A4A;
  --primary-emerald-hover: #1E3F33;
  --primary-emerald-light: #EBF1EE;
  --accent-gold: #C9A96E;
  --accent-gold-hover: #B5955D;
  --accent-gold-light: #F6EFE2;
  --bg-beige: #F5F0E6;
  --bg-beige-light: #FAF7F2;
  --bg-white: #FAFAF7;
  --text-dark: #2C3531;
  --text-muted: #5A6561;
  --text-light: #FFFFFF;
  --border-color: rgba(201, 169, 110, 0.3); /* Subtle Gold border */
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-subtle: 0 4px 20px rgba(45, 90, 74, 0.05);
  --shadow-medium: 0 10px 30px rgba(45, 90, 74, 0.1);
  --shadow-premium: 0 20px 40px rgba(28, 56, 46, 0.15);
  
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--primary-emerald);
  line-height: 1.25;
}

p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

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

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

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-smooth);
}

/* --- Layout Containers & Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--accent-gold);
}

.section-header p {
  font-size: 1.1rem;
}

.bg-white-section {
  background-color: var(--bg-white);
}

.text-gold {
  color: var(--accent-gold);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-beige);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-hover);
}

/* --- Navigation Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(245, 240, 230, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(245, 240, 230, 0.95);
  box-shadow: var(--shadow-subtle);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-emerald);
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-gold);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary-emerald);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- Cart Button --- */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-emerald-light);
  color: var(--primary-emerald);
  border: 1px solid rgba(45, 90, 74, 0.1);
}

.cart-btn:hover {
  background: var(--primary-emerald);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.cart-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-gold);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-beige);
  animation: badgePop 0.3s ease;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 24px;
  justify-content: space-between;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-emerald);
  transition: var(--transition-smooth);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition-smooth);
  text-align: center;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--primary-emerald);
  color: var(--text-light);
  border: 1px solid var(--primary-emerald);
}

.btn-primary:hover {
  background-color: var(--primary-emerald-hover);
  border-color: var(--primary-emerald-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background-color: var(--primary-emerald);
  color: var(--text-light);
  overflow: hidden;
}

/* Ambient organic SVG background */
.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  pointer-events: none;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(201, 169, 110, 0.15) 0%, rgba(45, 90, 74, 0.4) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 span {
  color: var(--accent-gold);
  display: block;
  font-size: 1.8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  animation: fadeInUp 1s ease-out;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1.2s ease-out;
}

/* --- Core Pillars --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar-card {
  background: var(--bg-white);
  padding: 48px 36px;
  border-radius: 8px;
  border-top: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  text-align: center;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.pillar-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-beige);
  color: var(--primary-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 1px solid var(--border-color);
}

.pillar-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.pillar-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.pillar-card p {
  font-size: 0.95rem;
}

/* --- Trust Badges --- */
.trust-badges-section {
  padding: 30px 0;
  background-color: var(--primary-emerald-light);
  border-top: 1px solid rgba(45, 90, 74, 0.1);
  border-bottom: 1px solid rgba(45, 90, 74, 0.1);
}

.trust-badges-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.trust-badge-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.trust-badge p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-emerald);
  line-height: 1.3;
}

/* --- About Us --- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-graphic {
  position: relative;
  background: var(--primary-emerald);
  border-radius: 12px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.about-graphic::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  animation: rotateSlow 40s linear infinite;
}

.about-motif {
  width: 200px;
  height: 200px;
  fill: var(--accent-gold);
  z-index: 2;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.about-content h3:first-of-type {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 20px;
}

.privacy-card {
  margin-top: 32px;
  padding: 24px;
  background-color: var(--primary-emerald-light);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 8px 8px 0;
}

.privacy-card h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-emerald);
  margin-bottom: 8px;
}

.privacy-card p {
  margin-bottom: 0;
  font-style: italic;
  font-size: 0.95rem;
}

/* --- Services & Treatments --- */
.services-section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.services-subsection {
  margin-bottom: 60px;
}

.services-subsection:last-child {
  margin-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(201, 169, 110, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-gold);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 16px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--primary-emerald);
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.service-duration {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-duration-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.service-price {
  color: var(--primary-emerald);
  background-color: var(--primary-emerald-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.service-desc {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* --- Pharmacy --- */
.pharmacy-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.pharmacy-column {
  background: var(--bg-beige-light);
  padding: 40px 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.pharmacy-column.signature-column {
  background: var(--bg-white);
  border: 2px solid var(--accent-gold);
  position: relative;
  overflow: hidden;
}

.pharmacy-column h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.pharmacy-subtext {
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* Category Filter Menu */
.category-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  background-color: var(--bg-white);
  color: var(--text-muted);
  border: 1px solid rgba(45, 90, 74, 0.15);
}

.filter-btn:hover {
  border-color: var(--primary-emerald);
  color: var(--primary-emerald);
}

.filter-btn.active {
  background-color: var(--primary-emerald);
  color: var(--text-light);
  border-color: var(--primary-emerald);
}

/* Product Formats */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(201, 169, 110, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.product-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-emerald);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 10px;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stock-counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: #C0392B; /* Dark red for stock alert */
}

/* Signature Cards */
.signature-card {
  border: 1px solid var(--accent-gold);
  background: var(--bg-beige-light);
  margin-bottom: 20px;
  position: relative;
}

.signature-card:last-child {
  margin-bottom: 0;
}

.badge-limited {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--accent-gold);
  color: var(--text-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow-subtle);
  animation: pulseGold 2s infinite;
}

/* --- Cart Drawer Panel --- */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 53, 49, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: var(--bg-white);
  box-shadow: var(--shadow-premium);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-overlay.open .cart-drawer {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.4rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.cart-close {
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close:hover {
  color: var(--primary-emerald);
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  align-items: center;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-emerald);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-emerald);
}

.quantity-btn:hover {
  background-color: var(--primary-emerald-light);
}

.cart-item-quantity {
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item-remove {
  font-size: 0.8rem;
  color: #C0392B;
  text-decoration: underline;
  margin-left: auto;
}

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  margin-top: 60px;
}

.cart-empty-icon {
  width: 48px;
  height: 48px;
  fill: var(--border-color);
  margin: 0 auto 16px;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-beige-light);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.cart-summary-row.cart-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-emerald);
  margin-bottom: 24px;
}

/* --- Contact & Booking --- */
.contact-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

.booking-box {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(201, 169, 110, 0.15);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-emerald);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid rgba(45, 90, 74, 0.2);
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.booking-box h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.contact-info-box {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon-box {
  font-size: 1.3rem;
  color: var(--accent-gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.info-details h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-emerald);
  margin-bottom: 6px;
}

.info-details p, .info-details address {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Styled Map Container */
.map-container {
  height: 250px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  margin-top: 20px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Footer --- */
.footer {
  background-color: var(--primary-emerald);
  color: var(--text-light);
  padding: 60px 0 30px;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-icon {
  fill: var(--accent-gold);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-links h4 {
  color: var(--accent-gold);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--accent-gold);
  color: var(--primary-emerald);
  transform: translateY(-2px);
}

.social-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Simulated Razorpay Modal --- */
.pay-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.pay-overlay.open {
  opacity: 1;
  visibility: visible;
}

.pay-modal {
  background: #FFFFFF;
  border-radius: 10px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.pay-overlay.open .pay-modal {
  transform: scale(1);
}

.pay-header {
  background: #0D233A; /* Razorpay theme color */
  color: #FFFFFF;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pay-merchant {
  display: flex;
  flex-direction: column;
}

.pay-merchant-name {
  font-size: 1.15rem;
  font-weight: 600;
}

.pay-purpose {
  font-size: 0.85rem;
  opacity: 0.8;
}

.pay-amount-box {
  text-align: right;
}

.pay-amount {
  font-size: 1.25rem;
  font-weight: 700;
}

.pay-currency {
  font-size: 0.8rem;
  opacity: 0.8;
  display: block;
}

.pay-body {
  padding: 24px;
}

.pay-method-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #515978;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.pay-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  cursor: pointer;
  background: #FFFFFF;
}

.pay-tab:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.pay-tab-icon {
  width: 24px;
  height: 24px;
  color: #3B82F6;
  fill: currentColor;
}

.pay-tab-text h4 {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 2px;
}

.pay-tab-text p {
  font-size: 0.75rem;
  color: #64748B;
}

/* Card view & UPI view details */
.pay-details-view {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.pay-details-view.active {
  display: flex;
}

.pay-back-btn {
  align-self: flex-start;
  font-size: 0.85rem;
  color: #3B82F6;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.pay-row {
  display: flex;
  gap: 12px;
}

.pay-footer {
  padding: 20px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.pay-btn-cancel {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748B;
  border-radius: 6px;
}

.pay-btn-submit {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  background: #3B82F6;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.pay-btn-submit:hover {
  background: #2563EB;
}

/* Loading & Success overlays inside Razorpay */
.pay-status-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1600;
  padding: 40px;
  text-align: center;
}

.pay-status-overlay.active {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #E2E8F0;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.success-check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  animation: badgePop 0.4s ease;
}

.pay-status-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 8px;
}

.pay-status-desc {
  font-size: 0.9rem;
  color: #64748B;
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badgePop {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(201, 169, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0);
  }
}

/* --- Responsive Media Queries --- */

/* Tablet Layout (768px - 1023px) */
@media (max-width: 1023px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-graphic {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .pharmacy-layout {
    grid-template-columns: 1fr;
  }
  
  .contact-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .trust-badges-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .trust-badge {
    flex: 0 0 45%;
  }
}

/* Mobile Layout (<768px) */
@media (max-width: 767px) {
  :root {
    --header-height: 70px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero h1 span {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
  
  .hero p {
    font-size: 1.05rem;
    margin-bottom: 30px;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .btn {
    width: 100%;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-beige);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: var(--transition-smooth);
    border-top: 1px solid rgba(201, 169, 110, 0.15);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Trust Badges - Horizontal Scroll */
  .trust-badges-section {
    padding: 20px 0;
  }
  
  .trust-badges-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  
  .trust-badge {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
  
  .pharmacy-column {
    padding: 24px 16px;
  }
  
  .booking-box {
    padding: 24px 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
