:root {
  --primary: #0D3B2E;        /* Deep Imperial Emerald */
  --primary-light: #185343;  /* Lighter Forest */
  --accent-gold: #C5A059;    /* Refined Warm Gold */
  --accent-gold-dark: #A6823F;
  --bg-page: #FBFDFB;        /* Porcelain White */
  --bg-sage: #F2F7F4;        /* Light Herbal Sage */
  --card-bg: #FFFFFF;
  --text-dark: #1A2421;      /* Crisp Charcoal */
  --text-muted: #566560;
  --border-light: #E2ECE6;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(13, 59, 46, 0.04);
  --shadow-md: 0 12px 30px rgba(13, 59, 46, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0px; /* Space adjusted via media query for mobile sticky bar */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Announcement Top Bar */
.top-bar {
  background: var(--primary);
  color: #D3E4DB;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bullet-sep {
  display: inline-block;
}
.top-map-link {
  color: #D3E4DB;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.top-map-link:hover {
  color: var(--accent-gold);
}
.top-cta a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 700;
}

/* Sticky Navbar */
.navbar {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}
.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.brand-subtitle {
  font-size: clamp(0.68rem, 1.2vw, 0.75rem);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 12px;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  min-height: 48px; /* Accessible touch target */
}
.btn-gold {
  background: var(--accent-gold);
  color: #FFFFFF;
}
.btn-gold:hover {
  background: var(--accent-gold-dark);
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  margin-left: 10px;
}
.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
}
.btn-trans {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-left: 10px;
}
.btn-trans:hover {
  background: #FFFFFF;
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: clamp(48px, 6vw, 90px) 0 clamp(40px, 5vw, 80px);
  background: radial-gradient(circle at 10% 20%, rgba(234, 242, 236, 0.6) 0%, rgba(251, 253, 251, 1) 90%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.credential-pill {
  display: inline-flex;
  align-items: center;
  background: #E4EFE8;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.credential-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 12px;
}
.hero-malayalam {
  font-family: 'Manjari', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--accent-gold-dark);
  margin-bottom: 16px;
}
.hero-desc {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.trust-metrics {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}
.metric-num {
  display: block;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 800;
  color: var(--primary);
}
.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
  margin: 0 clamp(14px, 2.5vw, 28px);
}

/* Doctor Portrait Visual */
.portrait-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background: #E8F0EC;
  max-width: 440px;
  margin: 0 auto;
}
.doctor-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
}
.portrait-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(16px, 3vw, 24px);
  background: linear-gradient(to top, rgba(13, 59, 46, 0.95) 15%, rgba(13, 59, 46, 0.7) 60%, transparent);
  color: #FFFFFF;
}
.portrait-info h4 {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 700;
}
.portrait-info p {
  font-size: 0.85rem;
  color: #D3E4DB;
}
.location-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-top: 4px;
}

/* Sections */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
}
.bg-sage {
  background-color: var(--bg-sage);
}
.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.section-sub {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.section-sub.light {
  color: var(--accent-gold);
}
.section-title-wrap h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-lead {
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
}
.malayalam-subtitle {
  font-family: 'Manjari', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--primary-light);
  font-weight: 700;
}

/* Philosophy 3-Cards */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
.philo-card {
  background: var(--card-bg);
  padding: clamp(24px, 3.5vw, 36px) clamp(20px, 2.5vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.philo-badge {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 14px;
}
.philo-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.philo-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Treatments Grid */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 32px);
}
.treatment-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.treatment-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.treatment-icon-box {
  font-size: 1.8rem;
  background: var(--bg-sage);
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.treatment-content h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--primary);
  margin-bottom: 8px;
  font-family: 'Manjari', 'Plus Jakarta Sans', sans-serif;
}
.en-tag {
  font-size: 0.78rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-block;
  margin-left: 6px;
}
.treatment-bullets {
  list-style: none;
  margin-top: 12px;
}
.treatment-bullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
  font-family: 'Manjari', 'Plus Jakarta Sans', sans-serif;
}
.treatment-bullets li::before {
  content: "•";
  color: var(--accent-gold);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
}

/* Regimenal Therapies */
.therapy-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 20px);
}
.therapy-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: clamp(20px, 2.5vw, 28px) clamp(16px, 2vw, 22px);
  border: 1px solid var(--border-light);
}
.therapy-head h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.arabic-sub {
  display: block;
  font-size: 0.95rem;
  color: var(--accent-gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
  direction: rtl;
  text-align: left;
}
.therapy-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Booking & Venue Module */
.booking-wrapper {
  background: var(--primary);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  color: #FFFFFF;
}
.booking-left {
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
}
.booking-left h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}
.booking-left p {
  color: #D3E4DB;
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.schedule-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.5vw, 20px) clamp(18px, 3vw, 24px);
  margin-bottom: 32px;
}
.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: clamp(0.85rem, 1.2vw, 0.98rem);
  font-family: 'Manjari', 'Plus Jakarta Sans', sans-serif;
  gap: 12px;
}
.schedule-row:last-child {
  border-bottom: none;
}
.schedule-row .time {
  font-weight: 700;
  color: var(--accent-gold);
  flex-shrink: 0;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.booking-right {
  background: #FFFFFF;
  color: var(--text-dark);
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
}
.booking-right h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  color: var(--primary);
  margin-bottom: 6px;
}
.venue-name {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.venue-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.venue-item .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.venue-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary);
}
.venue-item p, .venue-item a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
}

/* Hyperlinks */
.map-link {
  color: var(--primary) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-block;
  margin-top: 2px;
  word-break: break-word;
}
.map-link:hover {
  color: var(--accent-gold-dark) !important;
}

.insta-link {
  color: var(--primary) !important;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}
.insta-link:hover {
  color: var(--accent-gold-dark) !important;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #08261E;
  color: #A9BFB7;
  padding: clamp(48px, 6vw, 80px) 0 32px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  margin-bottom: 48px;
}
.footer-brand {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.footer-nav h5, .footer-contact h5 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-nav ul {
  list-style: none;
}
.footer-nav li {
  margin-bottom: 8px;
}
.footer-nav a {
  color: #A9BFB7;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--accent-gold);
}
.footer-contact p {
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 0.8rem;
}
.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Mobile Sticky Bottom Floating Action Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border-light);
}
.mobile-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
}
.mobile-call {
  background: var(--bg-sage);
  color: var(--primary);
  border: 1px solid var(--border-light);
}
.mobile-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

/* Tablet Interface Optimizations (Portrait & Landscape iPads) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-btn-group {
    justify-content: center;
  }
  .trust-metrics {
    justify-content: center;
  }
  .booking-wrapper {
    grid-template-columns: 1fr;
  }
  .philosophy-grid {
    grid-template-columns: 1fr 1fr;
  }
  .treatment-grid {
    grid-template-columns: 1fr;
  }
  .therapy-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Smartphone Interface Optimizations (< 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Prevents sticky mobile bar from overlapping footer */
  }
  .top-bar {
    display: none; /* Frees vertical screen estate on phones */
  }
  .nav-links, .nav-action-btn {
    display: none; /* Keep header clean; floating bar takes over actions */
  }
  .navbar {
    height: 64px;
  }
  .hero {
    padding: 36px 0 28px;
  }
  .hero-btn-group .btn {
    width: 100%;
    margin-left: 0;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .treatment-card {
    flex-direction: column;
    gap: 16px;
    padding: 22px;
  }
  .treatment-icon-box {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  .therapy-cards-grid {
    grid-template-columns: 1fr;
  }
  .schedule-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .contact-actions .btn {
    width: 100%;
    margin-left: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mobile-sticky-bar {
    display: flex; /* Active only on phones */
  }
}
