/* ============================================================
   MJ LIONS EYE HOSPITAL — COMPONENTS
   Buttons, Cards, Nav, Forms, Badges, Modals, Sliders
   ============================================================ */

/* --------------------------------------------------
   1. BUTTONS
   -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--duration-fast) var(--ease-smooth);
}
.btn:hover::after { background: rgba(255,255,255,0.10); }
.btn:active { transform: scale(0.97); }

/* Primary Button */
.btn-primary {
  background: var(--grad-primary);
  color: var(--clr-text-white);
  border-color: var(--clr-primary);
  box-shadow: 0 4px 16px rgba(10,61,98,0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(10,61,98,0.45);
  transform: translateY(-2px);
}

/* Accent (Gold) Button */
.btn-accent {
  background: var(--grad-accent);
  color: var(--clr-text-primary);
  border-color: var(--clr-accent);
  box-shadow: 0 4px 16px rgba(247,168,0,0.35);
  font-weight: var(--fw-bold);
}
.btn-accent:hover {
  box-shadow: var(--shadow-glow), 0 8px 24px rgba(247,168,0,0.45);
  transform: translateY(-2px);
}

/* Secondary Button */
.btn-secondary {
  background: var(--grad-secondary);
  color: var(--clr-text-white);
  border-color: var(--clr-secondary);
  box-shadow: var(--shadow-teal);
}
.btn-secondary:hover {
  box-shadow: 0 8px 28px rgba(0,131,143,0.45);
  transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn-outline:hover {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* Ghost Button */
.btn-ghost {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.20);
}

/* Emergency Button */
.btn-emergency {
  background: var(--clr-emergency);
  color: #fff;
  border-color: var(--clr-emergency);
  box-shadow: 0 4px 16px rgba(220,38,38,0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}
.btn-emergency:hover {
  background: #b91c1c;
  box-shadow: 0 8px 28px rgba(220,38,38,0.55);
  transform: translateY(-2px);
}

/* WhatsApp Button */
.btn-whatsapp {
  background: var(--clr-whatsapp);
  color: #fff;
  border-color: var(--clr-whatsapp);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  background: #1EAF55;
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  transform: translateY(-2px);
}

/* Sizes */
.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--fs-xs); }
.btn-lg { padding: 1rem 2.25rem;   font-size: var(--fs-base); }
.btn-xl { padding: 1.125rem 2.5rem; font-size: var(--fs-lg); }

/* Icon-only */
.btn-icon {
  padding: 0.75rem;
  border-radius: var(--radius-circle);
}

/* --------------------------------------------------
   2. TOP BAR
   -------------------------------------------------- */
.top-bar {
  background: var(--clr-primary);
  padding: 0.5rem 0;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--clr-accent); }

.top-bar .top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.top-bar-item i {
  color: var(--clr-accent);
  font-size: 0.8rem;
}

.emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--clr-emergency);
  color: #fff;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  position: relative;
}

.emergency-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  display: block;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* --------------------------------------------------
   3. NAVIGATION
   -------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03); /* Ultra soft modern shadow */
  transition: transform var(--duration-base) var(--ease-smooth),
              background var(--duration-slow) var(--ease-smooth),
              box-shadow var(--duration-slow) var(--ease-smooth),
              padding var(--duration-slow) var(--ease-smooth);
}

.navbar .container {
  max-width: 1400px;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0;
}

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand-logo {
  width: 90px;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
}

.navbar-brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-extrabold);
  color: var(--clr-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.navbar-brand-tagline {
  font-size: 0.58rem;
  color: var(--clr-secondary);
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Nav Links */
.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  /* Extend hover zone downward so cursor can reach the dropdown without gap */
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text-main);
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-primary);
  background: rgba(10, 61, 98, 0.05); /* very soft, premium active state */
  box-shadow: none;
}

.nav-link .nav-caret {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.nav-item:hover .nav-caret { transform: rotate(180deg); opacity: 1; }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scaleY(0.95);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  min-width: 240px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: var(--z-dropdown);
  transform-origin: top center;
}

/* Invisible bridge fills the 8px gap so hover is never lost */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -20px;
  right: -20px;
  height: 12px;
  background: transparent;
}

.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) scaleY(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-main);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(10, 61, 98, 0.06);
  color: var(--clr-primary);
  transform: translateX(4px);
}

.dropdown-item i {
  width: 16px;
  color: var(--clr-secondary);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.dropdown-item:hover i {
  color: var(--clr-primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--clr-border-light);
  margin: 0.375rem 0.5rem;
}

/* Nested dropdown */
.nav-item-sub { position: relative; }

.nav-item-sub .dropdown-menu {
  top: -0.75rem;
  left: calc(100% + 4px);
  transform: translateX(0) scaleY(0.95);
  transform-origin: top left;
}

/* Bridge for nested dropdown — covers the 4px gap + extra margin */
.nav-item-sub .dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
  background: transparent;
}

.nav-item-sub:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(0) scaleY(1);
}

/* Navbar CTAs */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.navbar-actions .btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Mobile Toggle */
.navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
}

.toggler-line {
  width: 24px;
  height: 2px;
  background: var(--clr-primary);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.navbar-toggler.open .toggler-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar-toggler.open .toggler-line:nth-child(2) { opacity: 0; }
.navbar-toggler.open .toggler-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer */
.mobile-drawer {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  background: var(--clr-bg-white);
  z-index: var(--z-modal);
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  transform: translateX(-100%);
  transition: transform var(--duration-slower) var(--ease-smooth);
  visibility: hidden;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(4,25,46,0.6);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-smooth);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.5rem 1.25rem;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-primary);
  color: #fff;
}

.drawer-brand-name {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  color: #fff;
}

.drawer-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.drawer-close:hover { background: rgba(255,255,255,0.25); }

.drawer-body { padding: 1rem; }

.drawer-nav-item { border-bottom: 1px solid var(--clr-border-light); }

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0.5rem;
  font-weight: var(--fw-medium);
  color: var(--clr-text-primary);
  cursor: pointer;
}
.drawer-nav-link:hover { color: var(--clr-primary); }

.drawer-submenu {
  display: none;
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}
.drawer-submenu.open { display: block; }

.drawer-submenu-link {
  display: block;
  padding: 0.5rem 0.5rem;
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}
.drawer-submenu-link:hover { color: var(--clr-primary); }

.drawer-footer {
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* --------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-text {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(247,168,0,0.15);
  border: 1px solid rgba(247,168,0,0.4);
  color: var(--clr-accent-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-badge i { color: var(--clr-accent); }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: var(--fw-extrabold);
  color: var(--clr-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Trust Badges Row */
.hero-trust {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1.5rem 0;
  background: linear-gradient(to top, rgba(4,25,46,0.9) 0%, transparent 100%);
}

.hero-trust-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255,255,255,0.9);
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trust-badge-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-badge-value {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1.2;
}

/* Slide Controls */
.hero-controls {
  position: absolute;
  bottom: 5rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--clr-accent);
  width: 24px;
  border-radius: var(--radius-pill);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-xs);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  animation: bounce-y 2s ease-in-out infinite;
}

/* --------------------------------------------------
   5. TICKER / ANNOUNCEMENT BAR
   -------------------------------------------------- */
.ticker-bar {
  background: var(--clr-secondary);
  padding: 0.6rem 0;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  background: var(--clr-secondary-dark);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
  gap: 0.375rem;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  padding-left: 160px;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.ticker-item i { color: var(--clr-accent-light); }

.ticker-sep {
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
}

/* --------------------------------------------------
   6. STAT CARDS (Quick Info Strip)
   -------------------------------------------------- */
.stats-strip {
  position: relative;
  z-index: 5;
  margin-top: -3rem;
  padding-bottom: 0;
}

.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.stat-card {
  background: var(--clr-bg-white);
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-spring);
}

.stat-card:hover::before { transform: scaleX(1); }

.stat-card:hover {
  background: var(--clr-bg-light);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--clr-primary-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  background: var(--clr-primary);
  color: #fff;
  transform: rotate(-5deg) scale(1.1);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--clr-primary);
  line-height: 1;
}

.stat-suffix {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-secondary);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-top: 0.25rem;
  font-weight: var(--fw-medium);
}

/* --------------------------------------------------
   7. SERVICE CARDS
   -------------------------------------------------- */
.service-card {
  background: var(--clr-bg-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1px solid var(--clr-border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 
              0 6px 16px rgba(10, 61, 98, 0.015);
  transition: transform 0.3s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth),
              border-color 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(10, 61, 98, 0.12), 
              0 0 25px rgba(0, 131, 143, 0.2); /* Sleek teal glow */
  border-color: var(--clr-secondary-light);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  background: var(--clr-primary-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s var(--ease-spring),
              background 0.3s var(--ease-smooth);
  box-shadow: 0 4px 10px rgba(10, 61, 98, 0.04);
}

.service-card-icon svg,
.service-card-icon i {
  font-size: 1.5rem;
  color: var(--clr-primary);
  transition: color 0.3s var(--ease-smooth);
}

.service-card:hover .service-card-icon {
  background: var(--clr-primary);
  transform: scale(1.05);
}

.service-card:hover .service-card-icon i {
  color: #fff;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-primary);
  margin-bottom: 0.75rem;
  transition: color 0.3s var(--ease-smooth);
}

.service-card-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  transition: color 0.3s var(--ease-smooth);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-secondary);
  transition: var(--transition);
  margin-top: auto;
}

.service-card:hover .service-card-link {
  color: var(--clr-primary-light);
  gap: 0.625rem;
}

/* --------------------------------------------------
   8. DOCTOR CARDS
   -------------------------------------------------- */
.doctor-card {
  background: var(--clr-bg-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 61, 98, 0.06);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(10, 61, 98, 0.12);
  border-color: var(--clr-primary-light);
}

.doctor-photo-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  flex-shrink: 0;
}

.doctor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.doctor-card:hover .doctor-photo { transform: scale(1.05); }

.doctor-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0A3D62 0%, #1A6FA8 50%, #00838F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #FFFFFF;
  font-weight: 700;
  font-family: var(--font-heading);
}

.doctor-specialty-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: var(--clr-accent);
  color: var(--clr-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.doctor-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doctor-body .btn {
  margin-top: auto;
}

.doctor-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-primary);
  margin-bottom: 0.25rem;
}

.doctor-title {
  font-size: var(--fs-sm);
  color: var(--clr-secondary);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.75rem;
}

.doctor-qual {
  font-size: var(--fs-xs);
  color: var(--clr-text-secondary);
  font-weight: var(--fw-medium);
  margin-top: auto;
  margin-bottom: 0;
  font-family: var(--font-body);
}

.doctor-availability {
  display: none !important;
}

/* --------------------------------------------------
   9. TESTIMONIAL CARDS
   -------------------------------------------------- */
.testimonial-card {
  background: var(--clr-bg-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border-light);
  position: relative;
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--clr-primary-pale);
  line-height: 1;
  z-index: 0;
}

.testimonial-card > * { position: relative; z-index: 1; }

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.testimonial-stars i { color: var(--clr-accent); font-size: var(--fs-sm); }

.testimonial-text {
  font-size: var(--fs-base);
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: 1.5rem;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-primary);
  font-size: var(--fs-base);
}

.testimonial-meta {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  margin-top: 0.125rem;
}

/* --------------------------------------------------
   10. APPOINTMENT SECTION
   -------------------------------------------------- */
.appt-card {
  background: var(--clr-bg-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border-light);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.appt-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.appt-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.appt-card-icon.blue { background: var(--clr-primary-pale); color: var(--clr-primary); }
.appt-card-icon.green { background: rgba(37,211,102,0.1); color: var(--clr-whatsapp); }

.appt-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-text-primary);
}

.appt-card-subtitle {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-top: 0.2rem;
}

.appt-form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.appt-card-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-secondary);
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--fs-sm);
  color: var(--clr-text-primary);
  background: var(--clr-bg-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--clr-primary-light);
  background: var(--clr-bg-white);
  box-shadow: 0 0 0 3px var(--clr-primary-pale);
}

.form-control::placeholder { color: var(--clr-text-muted); }

select.form-control { appearance: none; cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* WhatsApp booking */
.whatsapp-booking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  flex: 1;
  gap: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 0;
}

.whatsapp-icon-big {
  width: 80px;
  height: 80px;
  background: rgba(37,211,102,0.1);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--clr-whatsapp);
  animation: pulse-dot 2s ease-in-out infinite;
}

.whatsapp-steps {
  list-style: none;
  text-align: left;
  width: 100%;
}

.whatsapp-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--clr-border-light);
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
}

.whatsapp-step:last-child { border-bottom: none; }

.whatsapp-step-num {
  width: 24px;
  height: 24px;
  background: var(--clr-primary-pale);
  color: var(--clr-primary);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

/* --------------------------------------------------
   11. FAQ ACCORDION
   -------------------------------------------------- */
.faq-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--clr-primary-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  background: var(--clr-bg-white);
  transition: var(--transition);
}

.faq-question:hover { background: var(--clr-bg-surface); }
.faq-item.open .faq-question { background: var(--clr-primary-pale); }

.faq-question-text {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-primary);
  font-size: var(--fs-base);
}

.faq-item.open .faq-question-text { color: var(--clr-primary); }

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  background: var(--clr-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.open .faq-chevron {
  background: var(--clr-primary);
  color: #fff;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-smooth);
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  line-height: var(--lh-relaxed);
}

/* --------------------------------------------------
   12. FLOATING ELEMENTS
   -------------------------------------------------- */
/* WhatsApp FAB */
.fab-whatsapp {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: var(--z-fixed);
  width: 58px;
  height: 58px;
  border-radius: var(--radius-circle);
  background: var(--clr-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.fab-whatsapp:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
  color: #fff;
}

.fab-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--clr-whatsapp);
  animation: pulse-ring 2s ease-out infinite;
}

/* Emergency FAB */
.fab-emergency {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: var(--z-fixed);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--clr-emergency);
  color: #fff;
  padding: 0.625rem 1.125rem 0.625rem 0.875rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(220,38,38,0.4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  max-width: 58px;
  overflow: hidden;
}

.fab-emergency:hover {
  max-width: 200px;
  box-shadow: 0 8px 28px rgba(220,38,38,0.55);
  color: #fff;
}

.fab-emergency i { font-size: 1.2rem; flex-shrink: 0; }

.fab-emergency .fab-label {
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth) var(--duration-fast);
  white-space: nowrap;
}

.fab-emergency:hover .fab-label { opacity: 1; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: var(--z-fixed);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  background: var(--clr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clr-primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------
   13. CONTACT & MAP SECTION
   -------------------------------------------------- */
.contact-card {
  background: var(--clr-bg-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(10, 61, 98, 0.06);
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border-light);
}
.contact-item:last-child { border-bottom: none; }

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(247,168,0,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.25rem;
}

.contact-item-value {
  font-size: var(--fs-sm);
  color: var(--clr-primary);
  font-weight: var(--fw-semibold);
}

.contact-item-value a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-item-value a:hover {
  color: var(--clr-secondary);
  text-decoration: underline;
}

.emergency-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.emergency-left {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.emergency-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emergency-pulse-icon {
  width: 72px;
  height: 72px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-emergency);
  font-size: 2.25rem;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
  animation: emergency-pulse 2s infinite ease-in-out;
}

@keyframes emergency-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 16px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 300px;
  border: none;
  filter: grayscale(20%) contrast(1.05);
}

/* Hours Table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.625rem 0;
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  border-bottom: 1px solid var(--clr-border-light);
}

.hours-table .day {
  font-weight: var(--fw-semibold);
  color: var(--clr-primary);
}

.hours-table .time {
  text-align: right;
  color: var(--clr-secondary);
  font-weight: var(--fw-semibold);
}

.hours-table .closed {
  color: var(--clr-text-muted);
}

/* --------------------------------------------------
   14. FOOTER
   -------------------------------------------------- */
.footer {
  background: var(--clr-bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  padding: 4rem 0 3rem;
}

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

.footer-brand-logo {
  width: 56px;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
  line-height: var(--lh-relaxed);
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--clr-primary-light);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: var(--radius-pill);
}

.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }

.footer-link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--clr-accent-light);
  padding-left: 4px;
}

.footer-link i {
  font-size: 0.65rem;
  color: var(--clr-secondary-light);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
}

.footer-contact-item i {
  color: var(--clr-accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

/* --------------------------------------------------
   15. PERFORMANCE / STATS PAGE
   -------------------------------------------------- */
.perf-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.perf-counter {
  background: var(--grad-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.perf-counter:hover {
  border-color: rgba(247,168,0,0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.perf-counter-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--clr-accent);
}

.perf-counter-number {
  font-family: var(--font-heading);
  font-size: var(--fs-5xl);
  font-weight: var(--fw-extrabold);
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.perf-counter-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  font-weight: var(--fw-medium);
}

/* --------------------------------------------------
   16. ABOUT SECTION
   -------------------------------------------------- */
.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.about-image-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--clr-accent);
  color: var(--clr-text-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-glow);
  text-align: center;
}

.about-image-badge-number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  line-height: 1;
}

.about-image-badge-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-features { display: flex; flex-direction: column; gap: 0.875rem; }

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--clr-primary-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* --------------------------------------------------
   17. SECTION WAVE DIVIDERS
   -------------------------------------------------- */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* --------------------------------------------------
   18. BADGES & CHIPS
   -------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.chip-primary { background: var(--clr-primary-pale); color: var(--clr-primary); }
.chip-secondary { background: var(--clr-secondary-pale); color: var(--clr-secondary-dark); }
.chip-accent { background: var(--clr-accent-pale); color: var(--clr-accent-dark); }
.chip-success { background: rgba(16,185,129,0.1); color: var(--clr-success); }

/* --------------------------------------------------
   19. INSURANCE / PARTNER LOGOS
   -------------------------------------------------- */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--clr-bg-white);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-md);
  height: 80px;
  transition: var(--transition);
  filter: grayscale(100%);
  opacity: 0.6;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* --------------------------------------------------
   20. MOBILE RESPONSIVE OVERRIDES
   -------------------------------------------------- */
@media (max-width: 1024px) {
  .stats-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .perf-counter-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }

  .navbar-nav,
  .navbar-actions { display: none; }
  .navbar-toggler { display: flex; }
  .mobile-drawer { display: block; }
  .navbar-inner { padding: 0.875rem 0; }

  .hero { height: 90vh; min-height: 500px; max-height: 700px; }
  .hero-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .hero-actions { flex-direction: column; }
  .hero-trust-inner { gap: 1rem; }

  .stats-strip { margin-top: -1.5rem; }
  .stats-strip-grid { grid-template-columns: repeat(2, 1fr); }

  .perf-counter-number {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .ticker-label { display: none; }
  .ticker-track { padding-left: 1rem; }

  .top-bar-left > .top-bar-item:first-child { display: none; }
  .top-bar .top-bar-inner { justify-content: center; }
  .top-bar-left { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1.25rem; width: 100%; }
  .top-bar-item { justify-content: center; }
  .top-bar .top-bar-right { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .appt-card { padding: 1.5rem; }

  .fab-emergency {
    bottom: 9rem;
    max-width: 48px;
    padding: 0.75rem;
    border-radius: var(--radius-circle);
  }
  .fab-emergency .fab-label { display: none; }
}

@media (max-width: 480px) {
  .stats-strip-grid { grid-template-columns: 1fr; }
  .perf-counter-grid { grid-template-columns: 1fr; gap: 1rem; }
  .perf-counter { padding: 1.5rem 1.25rem; }
  .navbar-brand-logo {
    width: 80px;
    height: auto;
  }
  .navbar-brand-name {
    font-size: var(--fs-base);
  }
  .navbar-brand-tagline {
    font-size: 0.55rem;
  }
  .hero-trust-inner { justify-content: center; }
  .trust-badge:nth-child(n+3) { display: none; }
  .about-image-badge { right: 0.5rem; bottom: -1rem; }
}

/* ============================================================
   21. PREMIUM ANIMATED BACKDROPS & GLOWS (NEW)
   ============================================================ */

/* Stats Section Deep Navy Glow Background */
#stats {
  position: relative;
  overflow: hidden;
  background: #04192E; /* Deep premium navy blue base */
  padding-block: var(--section-padding-y);
}

/* Stunning glowing backdrop shapes */
.stats-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Large, vibrant glowing blur circles (Mesh Gradient effect) */
.shape-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px); /* Massive blur for smooth glow */
  opacity: 0.45;
  animation: float-blob 22s ease-in-out infinite alternate;
}

.shape-blob-1 {
  width: 450px;
  height: 450px;
  top: -15%;
  left: -5%;
  background: radial-gradient(circle, #00BCD4 0%, rgba(0, 188, 212, 0) 70%); /* Bright Teal Glow */
  animation-duration: 25s;
}

.shape-blob-2 {
  width: 500px;
  height: 500px;
  bottom: -15%;
  right: -5%;
  background: radial-gradient(circle, #F7A800 0%, rgba(247, 168, 0, 0) 70%); /* Vibrant Gold Glow */
  animation-duration: 30s;
  animation-delay: -5s;
}

.shape-blob-3 {
  width: 350px;
  height: 350px;
  top: 30%;
  left: 35%;
  background: radial-gradient(circle, #7C3AED 0%, rgba(124, 58, 237, 0) 70%); /* Royal Violet Glow in center */
  animation-duration: 22s;
  animation-delay: -10s;
}

/* Ensure container content overlays floating elements properly */
#stats .container {
  position: relative;
  z-index: 2;
}

#stats .heading-section {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--fw-extrabold);
  color: var(--clr-primary, #0a3d62) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  margin-bottom: 0.75rem;
}

#stats .subtitle {
  color: var(--clr-text-secondary, #4a5568) !important;
  font-size: var(--fs-base);
  max-width: 550px;
  margin-inline: auto;
}

/* Clean Chart Card — light background */
.performance-chart-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--clr-border, #e2e8f0);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 24px rgba(10,61,98,0.10);
  transition: all 0.4s var(--ease-smooth);
}

.performance-chart-card:hover {
  border-color: var(--clr-primary-pale, #b3d4f0);
  box-shadow: 0 8px 40px rgba(10,61,98,0.16);
  transform: translateY(-4px);
}

.performance-chart-header {
  margin-bottom: 2rem;
  text-align: center;
}

.performance-chart-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-primary, #0a3d62);
  margin-bottom: 0.5rem;
}

.performance-chart-subtitle {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary, #64748b);
}

.performance-chart-body {
  position: relative;
  height: 380px;
  width: 100%;
}

/* ============================================================
   23. MOBILE ALIGNMENT & RESPONSIVE FIXES (NEW)
   ============================================================ */
@media (max-width: 576px) {
  /* Emergency contact card layout adjustments on mobile */
  .emergency-card {
    position: relative;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
    padding: 1.5rem 1.25rem !important;
  }
  
  .emergency-left {
    width: 100%;
  }

  .emergency-left > div {
    padding-right: 3.5rem; /* prevent title/subtitle text from overlapping with absolute ambulance icon */
  }
  
  .emergency-right {
    position: absolute;
    top: 1.5rem;
    right: 1.25rem;
  }
  
  .emergency-pulse-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.5rem !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.15) !important;
  }

  /* Full-width responsive stacked buttons for tap target ease */
  .contact-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  
  .contact-buttons a, 
  .contact-buttons button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding-block: 1rem !important;
  }

  /* Expand chart container and scale padding on smaller viewports */
  .performance-chart-card {
    padding: 1.25rem 1rem !important;
    margin-top: 2rem !important;
  }

  .performance-chart-header {
    margin-bottom: 1.25rem !important;
  }

  .performance-chart-body {
    height: 280px !important; /* Slightly decrease height on small mobile screens to keep good aspect ratio */
  }
}
