/* ==========================================================================
   EHC Homoeopathic Clinic — Design System & Stylesheet
   Crafted with Apple-level fluidity, organic vitality, and 3D depth
   Brand Colors: #1E4A33 (Forest), #3C602F (Herbal), #F4B927 (Gold), #DF7224 (Terracotta)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anek+Malayalam:wght@600;700;800&family=Manjari:wght@400;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  /* Brand Palette */
  --forest: #1E4A33;
  --forest-dark: #133222;
  --forest-light: #2A6446;
  --forest-glow: rgba(30, 74, 51, 0.16);
  --herbal: #3C602F;
  --herbal-light: #4D7A3C;
  --herbal-soft: rgba(60, 96, 47, 0.08);
  --gold: #F4B927;
  --gold-muted: #C6A933;
  --gold-glow: rgba(244, 185, 39, 0.24);
  --terracotta: #DF7224;
  --terracotta-dark: #BA5A16;
  --terracotta-glow: rgba(223, 114, 36, 0.22);

  /* Backgrounds & Surfaces */
  --bg: #FBFBF8;
  --bg-soft: #F3F2EA;
  --bg-card: #FFFFFF;
  --bg-card-glass: rgba(255, 255, 255, 0.82);
  --bg-dark-card: #162B20;

  /* Typography */
  --text-main: #15241C;
  --text-sub: #4C5E53;
  --text-muted: #829489;
  --text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --border: rgba(30, 74, 51, 0.09);
  --border-focus: rgba(30, 74, 51, 0.28);
  --border-glass: rgba(255, 255, 255, 0.6);

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(21, 36, 28, 0.04);
  --shadow-md: 0 12px 32px rgba(21, 36, 28, 0.06), 0 2px 6px rgba(21, 36, 28, 0.03);
  --shadow-lg: 0 24px 56px rgba(21, 36, 28, 0.09), 0 4px 12px rgba(21, 36, 28, 0.04);
  --shadow-hover: 0 32px 72px -12px rgba(30, 74, 51, 0.16);

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --radius-pill: 999px;

  /* Motion & Easing */
  --ease-apple: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --t-fast: 0.18s;
  --t-base: 0.3s;
  --t-slow: 0.5s;

  /* Dimensions */
  --nav-h: 100px;
  --max-w: 1240px;
  --section-pad: clamp(72px, 8vw, 130px);
  --page-pad: clamp(20px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 28px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

section[id],
div[id],
main[id] {
  scroll-margin-top: calc(var(--nav-h) + 28px);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

input,
select,
textarea {
  font-family: inherit;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #C7D4CC;
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--herbal);
}

/* Subtle organic grid texture */
.organic-grid {
  background-image: radial-gradient(rgba(30, 74, 51, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ==========================================================================
   NAVIGATION — Dual Floating Glassmorphism Pill (Apple Style)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(253, 252, 248, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(30, 74, 51, 0.08);
  box-shadow: 0 2px 14px rgba(22, 51, 35, 0.04);
  pointer-events: auto;
  transition: transform var(--t-base) var(--ease-apple),
              background 0.3s var(--ease-apple),
              box-shadow 0.3s var(--ease-apple),
              border-color 0.3s var(--ease-apple);
}

.nav.scrolled {
  background: rgba(253, 252, 248, 0.98);
  box-shadow: 0 4px 24px rgba(22, 51, 35, 0.07);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-inner>* {
  pointer-events: auto;
}

/* Brand Logo — Clean, uncontained brand identity (no pill wrapper) */
.nav-logo-pill {
  height: auto;
  min-height: 60px;
  width: auto !important;
  min-width: max-content;
  padding: 0 4px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--t-fast) var(--ease-apple), transform var(--t-fast) var(--ease-apple);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-logo-pill:hover {
  transform: translateY(-1px);
  opacity: 0.88;
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.nav-brand-logo {
  height: 58px;
  width: auto;
  max-width: 74px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.nav-brand-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--forest);
  letter-spacing: 0.06em;
  display: block;
  line-height: 1.0;
}

.nav-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  box-shadow: 0 0 6px rgba(244, 185, 39, 0.8);
}

.nav-brand-tagline {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--herbal);
  letter-spacing: 0.285em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  margin-top: 4px;
  display: block;
}

/* Center Navigation Links Pill */
.nav-links-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 6px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  list-style: none;
  gap: 4px;
  white-space: nowrap;
}

.nav-links-pill a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-sub);
  border-radius: var(--radius-pill);
  transition: all var(--t-fast) var(--ease-apple);
  white-space: nowrap !important;
}

.nav-links-pill a:hover {
  color: var(--forest);
  background: rgba(30, 74, 51, 0.05);
}

.nav-links-pill a.active {
  color: #FFFFFF;
  background: var(--forest);
  font-weight: 600;
  box-shadow: 0 4px 14px var(--forest-glow);
}

/* Button Base — Strictly Single Line & Solid Colors (No Gradients) */
button,
.btn-primary,
.btn-secondary,
.btn-nav-call,
.btn-nav-book,
.btn-branch-book,
.btn-branch-call,
.btn-whatsapp-book,
.btn-mobile-call,
.btn-mobile-book,
.seg-btn,
.slot-chip {
  white-space: nowrap !important;
  word-break: keep-all;
}

/* Right Action Buttons Pill */
.nav-action-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest);
  color: #FFFFFF;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--forest-glow);
  transition: all var(--t-fast) var(--ease-apple);
  white-space: nowrap;
}

.btn-nav-book:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px var(--forest-glow);
  background: var(--herbal);
}

/* Mobile Hamburger Button */
.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: all var(--t-fast) var(--ease-apple);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION — Clean, Minimal, Apple Style (No 3D canvas)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 85% 15%, rgba(244, 185, 39, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(60, 96, 47, 0.05) 0%, transparent 50%),
    var(--bg);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 52px;
  position: relative;
  z-index: 2;
}

/* Left Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(60, 96, 47, 0.08);
  border: 1px solid rgba(60, 96, 47, 0.16);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--herbal);
  margin-bottom: 20px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--terracotta-glow);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 var(--terracotta-glow);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px transparent;
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 transparent;
  }
}

.hero-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--forest);
  margin-bottom: 20px;
}

.hero-title .accent-gradient {
  color: var(--forest);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: initial;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-sub);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--forest);
  color: #FFFFFF;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--forest-glow);
  transition: all var(--t-fast) var(--ease-apple);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--herbal);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 8px 24px var(--forest-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--forest);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-fast) var(--ease-apple);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #FFFFFF;
  border-color: rgba(30, 74, 51, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   HERO MEDIA STAGE & FLOATING CLINIC STATUS BADGES (Apple Style)
   ========================================================================== */
.hero-media-stage {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-3d-canvas-wrap {
  width: 100%;
  height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-3d-logo-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#hero-3d-logo-canvas:active {
  cursor: grabbing;
}

/* Floating Clinic Badges */
.hero-floating-badge {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(30, 74, 51, 0.08);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  box-shadow: 0 12px 32px -8px rgba(21, 36, 28, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all var(--t-fast) var(--ease-apple);
  animation: floatBadge 5s ease-in-out infinite;
}

.hero-floating-badge:hover {
  transform: translateY(-4px) scale(1.02);
  background: #FFFFFF;
  box-shadow: 0 16px 36px -6px rgba(21, 36, 28, 0.12);
  border-color: rgba(30, 74, 51, 0.18);
}

.badge-top-left {
  top: 18px;
  left: -12px;
  animation-delay: 0s;
}

.badge-top-right {
  top: 36px;
  right: -10px;
  animation-delay: 1.8s;
}

.badge-bottom {
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 3.2s;
  white-space: nowrap;
}

.hero-floating-badge.badge-bottom:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.02);
}

@keyframes floatBadge {

  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -6px;
  }
}

.floating-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.floating-badge-dot.green {
  background: var(--herbal);
  box-shadow: 0 0 0 3px rgba(60, 96, 47, 0.2);
  animation: pulseGreen 2.2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(60, 96, 47, 0.4);
  }

  70% {
    box-shadow: 0 0 0 7px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.floating-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-badge-icon.gold {
  background: rgba(244, 185, 39, 0.14);
  color: var(--gold);
}

.floating-badge-icon.terracotta {
  background: rgba(223, 114, 36, 0.12);
  color: var(--terracotta);
}

.floating-badge-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.badge-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--forest);
}

.badge-sub {
  font-size: 0.74rem;
  color: var(--text-sub);
  font-weight: 500;
}

@media (max-width: 992px) {
  .badge-top-left {
    top: 10px;
    left: 0;
  }

  .badge-top-right {
    top: 20px;
    right: 0;
  }
}

@media (max-width: 768px) {
  .hero-floating-badge {
    position: static;
    margin: 8px auto;
    width: fit-content;
    animation: none;
  }

  .hero-media-stage {
    min-height: auto;
    flex-direction: column;
  }

  .hero-3d-canvas-wrap {
    height: 300px;
  }

  .badge-bottom {
    transform: none;
  }

  .hero-floating-badge.badge-bottom:hover {
    transform: translateY(-2px);
  }
}

/* Hero Trust Stats Strip */
.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   HERO CLINIC CARD (Clean, Apple-Style Replacement for 3D Canvas)
   ========================================================================== */
.hero-showcase-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-clinic-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--t-base) var(--ease-apple);
}

.hero-clinic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.hero-card-logo {
  height: 44px;
  width: auto;
}

.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(60, 96, 47, 0.1);
  color: var(--herbal);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-card-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--herbal);
}

.hero-branch-pills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-branch-pill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  border: 1px solid rgba(30, 74, 51, 0.05);
}

.hero-branch-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest);
}

.hero-branch-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-branch-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--herbal);
  white-space: nowrap;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.hero-card-doc-text {
  font-size: 0.84rem;
  color: var(--text-sub);
}

.hero-card-doc-text strong {
  color: var(--forest);
}

.hero-card-action {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hero-card-action:hover {
  transform: translateX(3px);
}

/* Right 3D Media Stage */
.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-canvas-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(244, 243, 237, 0.4) 70%, transparent 100%);
  border: 1px solid rgba(30, 74, 51, 0.06);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

#hero-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#hero-3d-canvas:active {
  cursor: grabbing;
}

/* Floating Glass Badges on 3D Stage */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  transition: all var(--t-fast) var(--ease-apple);
}

.float-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-hover);
}

.float-card-1 {
  top: 30px;
  left: -20px;
  animation: floatAnim1 5s ease-in-out infinite;
}

.float-card-2 {
  bottom: 40px;
  right: -10px;
  animation: floatAnim2 6s ease-in-out infinite;
}

@keyframes floatAnim1 {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatAnim2 {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(12px);
  }
}

.float-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-icon-wrap.green {
  background: rgba(60, 96, 47, 0.12);
  color: var(--herbal);
}

.float-icon-wrap.gold {
  background: rgba(244, 185, 39, 0.15);
  color: var(--gold-muted);
}

.float-card-text {
  display: flex;
  flex-direction: column;
}

.float-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--forest);
}

.float-card-sub {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 500;
}

/* ==========================================================================
   BRANCHES SHOWCASE — Interactive Apple Segmented Switcher
   ========================================================================== */
.section-branches {
  padding: var(--section-pad) 0;
  background: var(--bg-soft);
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
  padding: 0 var(--page-pad);
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--herbal);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--forest);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Apple Segmented Control */
.segmented-control {
  display: inline-flex;
  background: rgba(30, 74, 51, 0.07);
  padding: 6px;
  border-radius: var(--radius-pill);
  gap: 6px;
  margin-bottom: 40px;
  border: 1px solid rgba(30, 74, 51, 0.05);
}

.seg-btn {
  padding: 10px 24px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-sub);
  border-radius: var(--radius-pill);
  transition: all var(--t-fast) var(--ease-apple);
}

.seg-btn:hover {
  color: var(--forest);
}

.seg-btn.active {
  background: #FFFFFF;
  color: var(--forest);
  box-shadow: 0 4px 12px rgba(21, 36, 28, 0.08);
}

/* Branch Detail Card Grid */
.branch-card-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.branch-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--t-base) var(--ease-apple);
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 74, 51, 0.18);
}

.branch-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  width: fit-content;
}

.badge-walkin {
  background: rgba(60, 96, 47, 0.1);
  color: var(--herbal);
}

.badge-appt {
  background: rgba(223, 114, 36, 0.12);
  color: var(--terracotta-dark);
}

.branch-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 12px;
}

.branch-hours-box {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.branch-hour-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(30, 74, 51, 0.1);
}

.branch-hour-row:last-child {
  border-bottom: none;
}

.hour-label {
  color: var(--text-sub);
  font-weight: 500;
}

.hour-val {
  color: var(--forest);
  font-weight: 700;
}

.branch-doctor-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.doctor-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.doctor-text-wrap h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
}

.doctor-text-wrap p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.branch-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-branch-book {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--forest);
  color: #FFFFFF;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  transition: all var(--t-fast) var(--ease-apple);
}

.btn-branch-book:hover {
  background: var(--herbal);
  transform: translateY(-2px);
}

.btn-branch-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(30, 74, 51, 0.08);
  color: var(--forest);
  transition: all var(--t-fast) var(--ease-apple);
}

.btn-branch-call:hover {
  background: var(--forest);
  color: #FFFFFF;
  transform: scale(1.08);
}

/* Tele-Consultation Full-Width Dark Theme Banner Card */
.tele-banner-card {
  background: var(--forest-dark);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(244, 185, 39, 0.25);
  padding: clamp(36px, 5vw, 52px);
  box-shadow: var(--shadow-lg);
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  margin-top: 10px;
}

.tele-banner-card .branch-card-badge {
  background: rgba(244, 185, 39, 0.16);
  color: var(--gold);
  border: 1px solid rgba(244, 185, 39, 0.3);
  margin: 0 auto 20px auto;
  display: inline-flex;
}

.tele-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
  line-height: 1.2;
}

.tele-banner-desc {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 740px;
  margin: 0 auto 28px auto;
}

.tele-banner-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tele-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.tele-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.tele-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-tele-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--forest-dark);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease-apple);
  white-space: nowrap !important;
}

.btn-tele-book:hover {
  background: #E5AC1E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 185, 39, 0.35);
}

.btn-tele-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease-apple);
  white-space: nowrap !important;
}

.btn-tele-wa:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   3D TILT CLINICAL SPECIALITIES (Cards with perspective & specular glare)
   ========================================================================== */
.section-specialities {
  padding: var(--section-pad) 0;
  background: var(--bg);
  position: relative;
}

.cards-grid-3d {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  perspective: 1200px;
}

/* 3D Tilt Card Component */
.card-3d-wrap {
  perspective: 1000px;
}

.card-3d {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s var(--ease-apple), box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-3d:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 74, 51, 0.2);
}

/* Specular light sheen that follows cursor */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.45), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-3d:hover .card-glare {
  opacity: 1;
}

.spec-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: var(--herbal-soft);
  color: var(--forest);
  font-size: 1.5rem;
  transition: all var(--t-fast) var(--ease-apple);
}

.card-3d:hover .spec-icon-box {
  background: var(--forest);
  color: #FFFFFF;
  transform: scale(1.1) translateZ(20px);
}

.spec-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 12px;
  transform: translateZ(15px);
}

.spec-desc {
  font-size: 0.94rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  transform: translateZ(10px);
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  transform: translateZ(12px);
}

.spec-tag {
  background: var(--bg-soft);
  color: var(--herbal);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   DOCTORS LEADERSHIP SECTION
   ========================================================================== */
.section-doctors {
  padding: var(--section-pad) 0;
  background: var(--bg-soft);
  position: relative;
}

.doctors-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.doctor-profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: center;
  transition: all var(--t-base) var(--ease-apple);
}

.doctor-profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 74, 51, 0.2);
}

.doctor-badge-img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  background: var(--forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.doctor-badge-initials {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.doctor-badge-symbol {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.doctor-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 4px;
}

.doctor-degree {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.doctor-bio {
  font-size: 0.94rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 16px;
}

.doctor-specialities-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-pill {
  background: var(--bg-soft);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forest);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   INTERACTIVE CALENDAR BOOKING ENGINE (Apple Style)
   ========================================================================== */
.section-booking {
  padding: var(--section-pad) 0;
  background: var(--bg);
  position: relative;
}

.booking-app-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.booking-card-main {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

/* Left: Interactive Calendar & Slot Picker */
.calendar-view-pane {
  padding: 44px;
  border-right: 1px solid var(--border);
}

.booking-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 24px;
}

.step-num-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--forest);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   3-STEP BOOKING WIZARD STYLES
   ========================================================================== */
.booking-wizard-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.wizard-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}

.wizard-progress-bar::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  padding: 0 12px;
}

.wizard-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all var(--t-fast) var(--ease-apple);
}

.wizard-step-node.active .wizard-step-circle {
  border-color: var(--forest);
  background: var(--forest);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--forest-glow);
}

.wizard-step-node.completed .wizard-step-circle {
  border-color: var(--herbal);
  background: var(--herbal);
  color: #FFFFFF;
}

.wizard-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.wizard-step-node.active .wizard-step-label {
  color: var(--forest);
  font-weight: 700;
}

.booking-wizard-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 44px);
  position: relative;
}

.wizard-pane {
  display: none;
}

.wizard-pane.active {
  display: block;
  animation: fadeInPane 0.28s ease-out;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-nav-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.booking-success-box {
  text-align: center;
  padding: 30px 10px;
}

.success-check-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(60, 96, 47, 0.1);
  color: var(--herbal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px auto;
}

/* Branch Choice Options */
.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.wizard-options-grid.grid-2-cols {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {

  .wizard-options-grid,
  .wizard-options-grid.grid-2-cols {
    grid-template-columns: 1fr;
  }
}

.wizard-choice-card {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-apple);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wizard-choice-card:hover {
  border-color: var(--herbal);
  background: #FFFFFF;
}

.wizard-choice-card.active {
  border-color: var(--forest);
  background: #FFFFFF;
  box-shadow: 0 6px 20px var(--forest-glow);
}

.choice-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 6px;
}

.choice-card-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* Month Navigation & Days Grid */
.calendar-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-curr-month {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest);
}

.calendar-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  transition: all var(--t-fast) var(--ease-apple);
}

.calendar-nav-btn:hover {
  background: var(--forest);
  color: #FFFFFF;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.cal-day-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  transition: all var(--t-fast) var(--ease-apple);
  position: relative;
}

.cal-day-cell:not(.disabled):hover {
  background: rgba(30, 74, 51, 0.08);
  color: var(--forest);
}

.cal-day-cell.active {
  background: var(--forest) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 6px 16px var(--forest-glow);
}

.cal-day-cell.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-day-cell.today::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terracotta);
  position: absolute;
  bottom: 6px;
}

/* Time Slot Chips */
.slots-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slot-period-title {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.slot-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 10px;
}

.slot-chip {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest);
  text-align: center;
  transition: all var(--t-fast) var(--ease-apple);
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-chip:hover {
  border-color: var(--herbal);
  background: rgba(60, 96, 47, 0.05);
}

.slot-chip.active {
  background: var(--forest);
  color: #FFFFFF;
  border-color: var(--forest);
  box-shadow: 0 4px 12px var(--forest-glow);
}

/* Flexible slot pill: normal clean chip without awkward 2-column span */
.slot-chip.flexible-slot-pill {
  background: rgba(30, 74, 51, 0.05);
  font-weight: 600;
}

.slot-chip.flexible-slot-pill:hover {
  border-color: var(--herbal);
  background: rgba(60, 96, 47, 0.08);
}

.slot-chip.flexible-slot-pill.active {
  background: var(--forest) !important;
  border-color: var(--forest);
  color: #FFFFFF !important;
}

/* Mobile Normal Time Slot Picker */
.mobile-time-picker-wrap {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.mobile-time-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-slot-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-apple);
  font-family: inherit;
}

.mobile-slot-select:focus {
  border-color: var(--forest);
  outline: none;
}

/* Right: Booking Summary & Patient Confirmation Form */
.booking-summary-pane {
  padding: 44px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.booking-recap-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.recap-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.recap-item:last-child {
  border-bottom: none;
}

.recap-label {
  color: var(--text-muted);
  font-weight: 500;
}

.recap-value {
  color: var(--forest);
  font-weight: 700;
}

/* Booking Form Inputs */
.booking-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.booking-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-input-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--forest);
}

.booking-input-group input,
.booking-input-group select {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-size: 0.94rem;
  color: var(--text-main);
  transition: all var(--t-fast) var(--ease-apple);
}

.booking-input-group input:focus,
.booking-input-group select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-glow);
}

/* Instant WhatsApp Booking Button */
.btn-whatsapp-book {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all var(--t-fast) var(--ease-apple);
}

.btn-whatsapp-book:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

/* Flexible Time Slot Filter Pills (Step 2) */
.time-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  background: var(--bg-soft);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  width: fit-content;
}

.time-filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-apple);
}

.time-filter-pill:hover {
  color: var(--forest);
}

.time-filter-pill.active {
  background: var(--forest);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--forest-glow);
}

.custom-time-wrap {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.custom-time-wrap input[type="time"] {
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
  background: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
}

/* EHC Health Card & Google Auth Box (Step 3) */
.card-application-box {
  background: var(--bg-soft);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 10px;
  transition: all var(--t-fast) var(--ease-apple);
}

.card-application-box.verified {
  border-style: solid;
  border-color: var(--herbal);
  background: rgba(60, 96, 47, 0.04);
}

.card-app-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.card-app-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(30, 74, 51, 0.08);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-app-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 4px;
}

.card-app-info p {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.45;
  margin: 0;
}

.btn-google-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFFFFF;
  color: #3C4043;
  border: 1.5px solid #DADCE0;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-apple);
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-google-auth:hover {
  background: #F8F9FA;
  border-color: #C1C3C7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.digital-card-preview {
  margin-top: 14px;
  background: linear-gradient(135deg, #1E4A33 0%, #153524 100%);
  color: #FFFFFF;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(30, 74, 51, 0.25);
  animation: slideInUp 0.3s ease-out;
}

.digital-card-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.digital-card-logo {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.digital-card-status {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.digital-card-number {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.digital-card-holder {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.85;
}

.holder-label {
  font-weight: 500;
}

.holder-name {
  font-weight: 700;
  text-transform: uppercase;
}

/* Sub section for conditional clinics in Step 1 */
.wizard-sub-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  animation: fadeIn 0.25s ease-out;
}

/* ==========================================================================
   PATIENT JOURNEY — 3-Step Care Path
   ========================================================================== */
.section-journey {
  padding: var(--section-pad) 0;
  background: var(--bg-soft);
  position: relative;
}

.journey-steps-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.journey-step-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--t-base) var(--ease-apple);
}

.journey-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 74, 51, 0.2);
}

.step-watermark {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(30, 74, 51, 0.05);
}

.journey-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(244, 185, 39, 0.15);
  color: var(--gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.journey-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 12px;
}

.journey-desc {
  font-size: 0.94rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ ACCORDION & PATIENT STORIES
   ========================================================================== */
.section-faq {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--t-fast) var(--ease-apple);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  text-align: left;
  cursor: pointer;
}

.faq-chevron {
  width: 24px;
  height: 24px;
  color: var(--herbal);
  transition: transform var(--t-fast) var(--ease-apple);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 28px;
  visibility: hidden;
  opacity: 0;
  transition: max-height 0.35s var(--ease-apple), padding 0.35s var(--ease-apple), opacity 0.25s ease;
  color: var(--text-sub);
  font-size: 0.96rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 28px 24px 28px;
  visibility: visible;
  opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--forest-dark);
  color: #FFFFFF;
  padding: 80px 0 36px 0;
  position: relative;
  overflow: hidden;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  text-decoration: none;
  transition: opacity var(--t-fast) var(--ease-apple);
}

.footer-logo-link:hover {
  opacity: 0.82;
}

.footer-emblem {
  height: 56px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.footer-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.footer-wordmark-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  display: block;
  line-height: 1.0;
}

.footer-wordmark-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.285em;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
  line-height: 1;
}

/* legacy — kept for safety */
.footer-brand-img {
  height: 56px;
  width: auto;
  display: block;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.footer-brand h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

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

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--page-pad) 0 var(--page-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   MOBILE DOCK / FLOATING ACTION BAR
   ========================================================================== */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-action-inner {
  display: flex;
  gap: 12px;
}

.btn-mobile-call {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-soft);
  color: var(--forest);
  padding: 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--border);
}

.btn-mobile-book {
  flex: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--forest);
  color: #FFFFFF;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-strip {
    justify-content: center;
  }

  .hero-3d-stage {
    height: 440px;
  }

  .cards-grid-3d {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-card-main {
    grid-template-columns: 1fr;
  }

  .calendar-view-pane {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Base Mobile Menu Drawer — Hidden by default on desktop */
.mobile-menu-drawer {
  display: none;
}

@media (max-width: 768px) {

  :root {
    --nav-h: 84px;
  }

  .nav {
    height: var(--nav-h);
    background: rgba(253, 252, 248, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(30, 74, 51, 0.08);
    box-shadow: 0 2px 14px rgba(22, 51, 35, 0.05);
    pointer-events: auto;
  }

  .nav-inner {
    height: 100%;
    padding: 0 16px;
  }

  .nav-logo-pill {
    min-height: unset;
    gap: 10px;
    padding: 0;
  }

  .nav-brand-logo {
    height: 52px;
    width: auto;
    max-width: 64px;
  }

  .nav-brand-title {
    font-size: 1.55rem;
    letter-spacing: 0.05em;
    line-height: 1.0;
  }

  .nav-brand-tagline {
    font-size: 0.52rem;
    letter-spacing: 0.285em;
    margin-top: 3px;
  }

  .nav-links-pill,
  .nav-action-pill {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Mobile Drawer */
  .mobile-menu-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px 16px;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all var(--t-fast) var(--ease-apple);
    z-index: 999;
  }

  .mobile-menu-drawer.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu-drawer a {
    padding: 12px 18px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--forest);
    border-radius: var(--radius-sm);
  }

  .mobile-menu-drawer a:hover {
    background: var(--bg-soft);
  }

  .mobile-menu-drawer .drawer-btn-cta {
    background: var(--forest);
    color: #FFFFFF !important;
    text-align: center;
    border-radius: var(--radius-pill);
    margin-top: 6px;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--forest-glow);
  }

  .mobile-menu-drawer .drawer-btn-cta:hover {
    background: var(--herbal);
    color: #FFFFFF !important;
  }

  .branch-card-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .branch-card {
    padding: 28px 22px;
    border-radius: var(--radius-md);
  }

  .cards-grid-3d {
    grid-template-columns: 1fr;
    gap: 16px;
    perspective: none;
  }

  .card-3d-wrap {
    perspective: none;
  }

  .card-3d {
    padding: 24px 20px;
    border-radius: var(--radius-md);
    transform: none !important;
    box-shadow: 0 4px 16px rgba(30, 74, 51, 0.06);
  }

  .card-3d * {
    transform: none !important;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
  }

  .doctor-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  .doctor-badge-img {
    margin: 0 auto;
  }

  .doctor-specialities-pills {
    justify-content: center;
  }

  .journey-steps-grid {
    grid-template-columns: 1fr;
  }

  .faq-question {
    padding: 18px 20px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.open .faq-answer {
    padding-bottom: 20px;
  }

  .booking-wizard-card {
    padding: 28px 20px;
  }

  .booking-summary-pane {
    padding: 28px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .mobile-action-bar {
    display: block;
  }
}

/* Specific Mobile Optimization · 640px and below */
@media (max-width: 640px) {
  :root {
    --page-pad: 20px;
  }

  .section-head {
    padding: 0 var(--page-pad);
    margin-bottom: 32px;
  }

  .section-title {
    font-size: clamp(1.7rem, 6.8vw, 2.15rem);
    line-height: 1.2;
    word-break: break-word;
  }

  .section-desc {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .hero-inner {
    padding: 0 var(--page-pad);
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
    line-height: 1.16;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .hero-cta-group {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
    white-space: nowrap !important;
  }

  .hero-trust-strip {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .hero-stat-item {
    padding: 8px 14px;
  }

  .hero-stat-val {
    font-size: 1.15rem;
  }

  .hero-stat-label {
    font-size: 0.74rem;
  }

  .card-3d {
    padding: 24px 18px;
  }

  .branch-card {
    padding: 24px 18px;
  }

  .branch-hours-box {
    padding: 14px 14px;
  }

  .branch-hour-row {
    font-size: 0.86rem;
  }

  .doctor-profile-card {
    padding: 24px 16px;
    gap: 16px;
  }

  .doctor-badge-img {
    width: 110px;
    height: 110px;
  }

  .faq-question {
    padding: 16px 16px;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .faq-item.open .faq-answer {
    padding-bottom: 18px;
  }

  /* Booking Wizard Mobile Styles */
  .booking-wizard-container {
    padding: 0 var(--page-pad);
    width: 100%;
  }

  .booking-wizard-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }

  .wizard-options-grid,
  .wizard-options-grid.grid-2-cols {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-bottom: 20px;
  }

  .wizard-choice-card {
    padding: 16px 14px;
    border-radius: var(--radius-sm);
  }

  .choice-card-title {
    font-size: 1.05rem;
  }

  .choice-card-desc {
    font-size: 0.84rem;
  }

  /* Time slot picker: hide desktop chips, show clean mobile dropdown */
  .desktop-slots-area {
    display: none !important;
  }

  .mobile-time-picker-wrap {
    display: block !important;
  }

  .calendar-month-header {
    margin-bottom: 14px;
  }

  .calendar-days-grid {
    gap: 4px;
    margin-bottom: 20px;
  }

  .cal-day-cell {
    font-size: 0.88rem;
  }

  .custom-time-wrap {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 8px;
  }

  .custom-time-wrap input[type="time"] {
    flex: 1;
    min-width: 110px;
  }

  .booking-summary-pane {
    padding: 20px 14px;
  }

  .booking-recap-box {
    padding: 16px 14px;
    margin-bottom: 20px;
  }

  .recap-item {
    font-size: 0.88rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
  }

  .recap-value {
    text-align: left;
    word-break: break-word;
  }

  .wizard-nav-buttons {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
  }

  .wizard-nav-buttons button {
    width: 100%;
    justify-content: center;
    white-space: nowrap !important;
  }

  .wizard-progress-bar {
    margin-bottom: 24px;
  }

  .wizard-progress-bar::before {
    left: 20px;
    right: 20px;
  }

  .wizard-step-node {
    padding: 0 4px;
  }

  .wizard-step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }

  .wizard-step-label {
    font-size: 0.74rem;
  }
}

/* Ultra-compact screens · 380px and below */
@media (max-width: 380px) {
  :root {
    --page-pad: 14px;
  }

  .booking-wizard-card {
    padding: 18px 12px;
  }

  .wizard-step-label {
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   CROSS-DOCUMENT VIEW TRANSITIONS & FLUID ANIMATIONS
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: 0.25s cubic-bezier(0.32, 0.72, 0, 1) both fade-out;
  }

  ::view-transition-new(root) {
    animation: 0.35s cubic-bezier(0.32, 0.72, 0, 1) both fade-in-up;
  }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SPECIALITY 3D CARD INTERACTIVE ENHANCEMENTS (Index Page)
   ========================================================================== */
.card-3d-wrap-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  cursor: pointer;
  outline: none;
}

.card-3d-wrap-link:focus-visible .card-3d {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.spec-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed rgba(30, 74, 51, 0.12);
  transform: translateZ(14px);
}

.spec-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
  transition: all var(--t-fast) var(--ease-apple);
}

.spec-cta-link svg {
  transition: transform var(--t-fast) var(--ease-apple);
}

.card-3d:hover .spec-cta-link {
  color: var(--terracotta);
}

.card-3d:hover .spec-cta-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   SPECIALITY EDITORIAL & CLINICAL BLOG DETAIL PAGES
   ========================================================================== */
.reading-progress-container {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(30, 74, 51, 0.06);
  z-index: 998;
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--forest) 0%, var(--gold) 50%, var(--terracotta) 100%);
  transition: width 0.1s linear;
}

.article-page-wrap {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 96px;
}

/* Breadcrumbs */
.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.article-breadcrumb a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--t-fast);
}

.article-breadcrumb a:hover {
  color: var(--terracotta);
}

.article-breadcrumb-separator {
  color: rgba(30, 74, 51, 0.3);
}

.article-breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

/* Article Hero Header */
.article-header {
  margin-bottom: 36px;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 74, 51, 0.08);
  color: var(--forest);
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--forest);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.article-lead-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--text-sub);
  line-height: 1.6;
  max-width: 860px;
  margin-bottom: 24px;
}

/* Author & Metadata Bar */
.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.author-info-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--forest);
  display: block;
}

.author-info-role {
  font-size: 0.78rem;
  color: var(--text-sub);
  display: block;
}

.meta-item-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-sub);
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

/* Featured Banner Media */
.article-hero-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(30, 74, 51, 0.12);
  margin-bottom: 48px;
  border: 1.5px solid rgba(30, 74, 51, 0.08);
}

.article-hero-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-apple);
}

.article-hero-media:hover img {
  transform: scale(1.02);
}

.article-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 39, 27, 0.85) 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Two-Column Editorial Layout */
.article-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

/* Main Body Editorial Styles */
.article-body-content {
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-body-content p {
  margin-bottom: 22px;
}

.article-body-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--forest);
  margin-top: 42px;
  margin-bottom: 18px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-body-content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--gold);
  border-radius: 4px;
}

.article-body-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest);
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Key Highlights Callout Card */
.article-callout-card {
  background: #FFFFFF;
  border-left: 4px solid var(--forest);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(30, 74, 51, 0.06);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-callout-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--forest);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Comparison Grid: Conventional vs EHC Homoeopathy */
.comparison-container {
  margin: 36px 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-header {
  padding: 16px 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--forest);
  font-size: 1.1rem;
}

.comparison-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comparison-col {
  padding: 24px;
}

.comparison-col:first-child {
  border-right: 1px solid var(--border);
  background: rgba(239, 68, 68, 0.02);
}

.comparison-col:last-child {
  background: rgba(30, 74, 51, 0.03);
}

.comparison-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.col-conventional {
  color: #B91C1C;
}

.col-homeo {
  color: var(--forest);
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comparison-list li {
  font-size: 0.92rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Conditions Cards Grid inside Article */
.condition-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.condition-detail-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base) var(--ease-apple);
}

.condition-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 74, 51, 0.2);
}

.condition-detail-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.condition-detail-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 12px;
}

.condition-key-symptom {
  font-size: 0.82rem;
  color: var(--herbal);
  background: var(--herbal-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: inline-block;
}

/* Dr. Manu Quote Box */
.dr-quote-card {
  background: linear-gradient(135deg, rgba(30, 74, 51, 0.06) 0%, rgba(244, 185, 39, 0.08) 100%);
  border: 1.5px solid rgba(30, 74, 51, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  position: relative;
}

.dr-quote-icon {
  font-size: 2.2rem;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 14px;
}

.dr-quote-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.6;
  margin-bottom: 16px;
}

.dr-quote-author {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dr-quote-author span {
  color: var(--terracotta);
  font-weight: 500;
  font-size: 0.82rem;
}

/* FAQ Accordion using HTML5 Details */
.faq-section-wrap {
  margin: 48px 0;
}

.faq-section-wrap .faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--t-fast) var(--ease-apple);
}

.faq-section-wrap .faq-item[open] {
  border-color: rgba(30, 74, 51, 0.25);
  box-shadow: var(--shadow-sm);
}

.faq-section-wrap .faq-question {
  padding: 18px 22px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  transition: color var(--t-fast);
}

.faq-section-wrap .faq-question::-webkit-details-marker {
  display: none;
}

.faq-section-wrap .faq-question:hover {
  color: var(--terracotta);
}

.faq-section-wrap .faq-icon-arrow {
  width: 20px;
  height: 20px;
  transition: transform var(--t-base) var(--ease-apple);
  color: var(--forest);
}

.faq-section-wrap .faq-item[open] .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--terracotta);
}

.faq-section-wrap .faq-answer {
  padding: 0 22px 20px 22px;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.65;
  max-height: none;
  visibility: visible;
  opacity: 1;
}

/* Sidebar Styling */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-consult-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(30, 74, 51, 0.08);
  position: relative;
  overflow: hidden;
}

.sidebar-consult-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--forest) 0%, var(--gold) 100%);
}

.sidebar-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 8px;
}

.sidebar-card-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 20px;
}

.sidebar-btn-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--forest);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease-apple);
  box-shadow: 0 4px 14px rgba(30, 74, 51, 0.2);
  margin-bottom: 12px;
}

.sidebar-btn-book:hover {
  background: var(--gold);
  color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(244, 185, 39, 0.3);
}

.sidebar-btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease-apple);
}

.sidebar-btn-call:hover {
  background: rgba(30, 74, 51, 0.05);
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* Sidebar Teleconsultation Box */
.sidebar-tele-box {
  background: linear-gradient(135deg, #1E4A33 0%, #153524 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  box-shadow: 0 4px 20px rgba(30, 74, 51, 0.15);
}

.sidebar-tele-badge {
  background: var(--gold);
  color: var(--forest);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 10px;
}

.sidebar-tele-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-tele-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 16px;
}

.sidebar-tele-link {
  color: var(--gold);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-fast);
}

.sidebar-tele-link:hover {
  gap: 10px;
}

/* Sidebar Other Specialities */
.sidebar-specialities-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sidebar-specialities-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 14px;
}

.sidebar-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-spec-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--t-fast);
}

.sidebar-spec-link:hover {
  background: var(--bg-soft);
  color: var(--forest);
  transform: translateX(4px);
}

.sidebar-spec-link.active {
  background: rgba(30, 74, 51, 0.08);
  color: var(--forest);
  font-weight: 700;
}

.sidebar-spec-emoji {
  font-size: 1.1rem;
}

/* Bottom Full CTA Strip */
.article-bottom-cta {
  background: linear-gradient(135deg, var(--forest) 0%, #153524 100%);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  color: #FFFFFF;
  text-align: center;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(30, 74, 51, 0.2);
}

.article-bottom-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244, 185, 39, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bottom-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.bottom-cta-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.bottom-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive Breakpoints for Specialities Layout */
@media (max-width: 992px) {
  .article-content-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .article-sidebar {
    position: static;
    margin-top: 24px;
  }

  .comparison-columns {
    grid-template-columns: 1fr;
  }

  .comparison-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .article-page-wrap {
    padding-top: calc(var(--nav-h) + 16px);
    padding-bottom: 100px;
  }

  .article-breadcrumb {
    font-size: 0.8rem;
    gap: 6px;
    margin-bottom: 16px;
  }

  .article-header {
    margin-bottom: 24px;
  }

  .article-category-badge {
    font-size: 0.74rem;
    padding: 4px 10px;
    margin-bottom: 12px;
  }

  .article-main-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .article-lead-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  /* Compact Author & Meta Bar */
  .article-meta-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
  }

  .author-avatar-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .author-info-title {
    font-size: 0.88rem;
  }

  .author-info-role {
    font-size: 0.74rem;
  }

  .meta-item-tag {
    font-size: 0.78rem;
    padding-left: 12px;
  }

  /* Mobile Hero Media */
  .article-hero-media {
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(30, 74, 51, 0.08);
  }

  .article-hero-media img {
    max-height: 240px;
  }

  .article-hero-caption {
    padding: 10px 14px;
    font-size: 0.74rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  /* Body Content */
  .article-body-content {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .article-body-content p {
    margin-bottom: 18px;
  }

  .article-body-content h2 {
    font-size: 1.38rem;
    margin-top: 32px;
    margin-bottom: 14px;
  }

  .article-body-content h3 {
    font-size: 1.15rem;
    margin-top: 22px;
    margin-bottom: 10px;
  }

  .article-callout-card {
    padding: 18px 16px;
    margin: 22px 0;
    border-radius: 12px;
  }

  .comparison-container {
    margin: 28px 0;
    border-radius: 14px;
  }

  .comparison-col {
    padding: 18px 16px;
  }

  .condition-details-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 20px 0;
  }

  .condition-detail-card {
    padding: 18px 16px;
    border-radius: 12px;
  }

  .dr-quote-card {
    padding: 22px 18px;
    margin: 28px 0;
    border-radius: 14px;
  }

  .dr-quote-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .dr-quote-text {
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 12px;
  }

  .dr-quote-author {
    font-size: 0.84rem;
    flex-wrap: wrap;
  }

  .faq-section-wrap {
    margin: 32px 0;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.96rem;
  }

  .faq-answer {
    padding: 0 16px 16px 16px;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .article-bottom-cta {
    padding: 32px 20px;
    margin-top: 40px;
    border-radius: 20px;
  }

  .bottom-cta-title {
    font-size: 1.45rem;
  }

  .bottom-cta-desc {
    font-size: 0.92rem;
    margin-bottom: 22px;
  }

  .bottom-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .bottom-cta-actions .btn-primary,
  .bottom-cta-actions .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 0.92rem;
  }

  .sidebar-spec-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .sidebar-spec-link {
    font-size: 0.8rem;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 80px;
  }

  .nav-brand-logo {
    height: 48px;
    width: auto;
    max-width: 60px;
  }

  .nav-brand-title {
    font-size: 1.42rem;
    letter-spacing: 0.04em;
    line-height: 1.0;
  }

  .nav-brand-tagline {
    font-size: 0.48rem;
    letter-spacing: 0.27em;
    margin-top: 3px;
  }

  .article-main-title {
    font-size: 1.45rem;
  }

  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .meta-item-tag {
    border-left: none;
    padding-left: 0;
  }

  .article-hero-media img {
    max-height: 200px;
  }

  .sidebar-spec-list {
    grid-template-columns: 1fr;
  }
}