/* ============================================
   RMH - Renwal Multi-Speciality Hospital CSS
   Premium Medical Design System
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #1d1d1f; /* Apple Near Black */
  --navy-dark: #000000;
  --navy-mid: #333336;
  --navy-light: #515154;
  --accent: #0066cc; /* Apple Action Blue */
  --accent-dark: #004499;
  --accent-glow: rgba(0, 102, 204, 0.15);
  --teal: #14b8a6;
  --gold: #f59e0b;
  --orange-main: #f97316;
  --red-emg: #ff3b30; /* Apple Red */
  --red-emg-dark: #c93429;
  --green: #34c759; /* Apple Green */
  --wa-green: #25D366;

  --white: #ffffff;
  --off-white: #f5f5f7; /* Apple / Airbnb Soft background */
  --light-bg: #f5f5f7;
  --text-primary: #1d1d1f; /* Apple Near Black */
  --text-secondary: #86868b; /* Apple Gray Text */
  --text-muted: #98989d;
  --border: #d2d2d7; /* Apple Border */
  --border-light: rgba(0,0,0,0.05);

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.05);
  --shadow-blue: 0 8px 30px rgba(0, 102, 204, 0.2);
  --shadow-card: 0 6px 20px rgba(0,0,0,0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px; /* Apple / Airbnb large rounding */
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --navbar-h: 76px;
  --emerbar-h: 42px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-h) + var(--emerbar-h) + 16px);
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Outfit', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: "ss01"; /* Stripe / Apple clean alt glyphs */
}

/* Stripe Tabular Numbers for Stats/Money */
.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02); /* Framer micro-animation */
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-emergency {
  background: linear-gradient(135deg, var(--red-emg) 0%, var(--red-emg-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-emergency:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45);
}

/* ===== SECTION COMMONS ===== */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-glow), rgba(20, 184, 166, 0.15));
  color: var(--accent-dark);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em; /* Apple / Stripe negative tracking */
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #38bdf8, #22d3ee, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.5)); /* Neon Glow */
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes count-up {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }


/* ===== EMERGENCY BAR ===== */
.emergency-bar {
  background: linear-gradient(135deg, var(--red-emg-dark) 0%, #991b1b 100%);
  color: var(--white);
  padding: 0;
  height: var(--emerbar-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(239,68,68,0.3);
}

.emergency-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  animation: pulse-ring 1.5s ease-out infinite;
}

.emergency-num {
  color: #fde68a;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
}

.emergency-num:hover { color: var(--white); text-decoration: underline; }

.sep {
  opacity: 0.4;
  font-size: 0.75rem;
}

.wa-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition-fast);
}

.wa-btn:hover {
  background: var(--wa-green);
  border-color: var(--wa-green);
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: var(--emerbar-h);
  z-index: 999;
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: var(--navbar-h);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  margin-left: 8px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-h) - var(--emerbar-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: blur(8px) brightness(0.9);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(7,20,40,0.6) 0%, transparent 60%);
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-text-col {
  padding-right: 20px;
}

/* ===== HERO ANIMATED DOCTORS (FLOATING BUBBLES) ===== */
.hero-visual-col {
  height: 650px;
  position: relative;
}

.floating-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-bubble {
  position: absolute;
  animation: float ease-in-out infinite;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s ease;
  overflow: hidden;
}

.floating-bubble:hover {
  border-color: var(--accent);
  z-index: 10 !important;
}

.floating-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.floating-bubble:hover img {
  transform: scale(1.05);
}

/* Specific Bubble Positions and Sizes */
.bubble-1 {
  width: 150px; height: 150px;
  top: 5%; right: 5%;
  animation-duration: 5s;
  animation-delay: 0s;
}

.bubble-2 {
  width: 170px; height: 170px;
  top: 35%; left: 0%;
  animation-duration: 6s;
  animation-delay: 1s;
}

.bubble-3 {
  width: 220px; height: 220px;
  top: 40%; right: 10%;
  animation-duration: 5.5s;
  animation-delay: 2s;
  z-index: 2; /* Bring largest to front */
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.bubble-4 {
  width: 140px; height: 140px;
  top: 5%; left: 30%;
  animation-duration: 4.5s;
  animation-delay: 0.5s;
}

.bubble-5 {
  width: 160px; height: 160px;
  bottom: 0%; left: 35%;
  animation-duration: 6.5s;
  animation-delay: 1.5s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  width: fit-content;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

.hero-stat strong {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

/* ===== QUICK BAR ===== */
.quick-bar {
  background: var(--white);
  box-shadow: 0 4px 32px rgba(11,31,58,0.12);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.quick-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  transition: var(--transition-fast);
  cursor: default;
}

.quick-item:last-child { border-right: none; }

.quick-item:hover {
  background: var(--light-bg);
}

.quick-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-glow), rgba(14,165,233,0.08));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.quick-icon.emergency-icon {
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(220,38,38,0.06));
  color: var(--red-emg);
}

.quick-icon.wa-icon {
  background: linear-gradient(135deg, rgba(37,211,102,0.12), rgba(37,211,102,0.06));
  color: var(--wa-green);
}

.quick-icon.loc-icon {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.06));
  color: var(--gold);
}

.quick-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 3px;
}

.quick-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  transition: var(--transition-fast);
}

.quick-val:hover { color: var(--accent-dark); }

.emergency-val { color: var(--red-emg) !important; }
.wa-val { color: var(--wa-green) !important; }
.loc-val { color: var(--navy) !important; font-weight: 600; }

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-img-col {}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-img-wrap:hover .about-img {
  transform: scale(1.04);
}

.about-badge-float {
  position: absolute;
  bottom: 24px;
  right: 24px;
}

.float-badge {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: 20px 32px;
  box-shadow: 0 20px 40px rgba(11, 31, 58, 0.12);
  text-align: center;
  animation: float 4s ease-in-out infinite;
}

.float-badge strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.float-badge span {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-content {}

.about-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.mission-statement {
  background: linear-gradient(to right, rgba(14, 165, 233, 0.05), transparent);
  border-left: 4px solid var(--accent);
  padding: 24px 24px 24px 40px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 32px 0;
  position: relative;
}

.quote-icon {
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: -10px;
  left: 10px;
  width: 64px;
  height: 64px;
}

.mission-statement p {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.6;
  margin: 0 0 12px 0;
  position: relative;
  z-index: 1;
}

.mission-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-pillars {
  margin-top: 48px;
}

.about-pillars-track {
  display: flex;
  flex-direction: column;
}

.pillars-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mobile-duplicate {
  display: none !important;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.pillar:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.08);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-text strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.pillar-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* ===== DEPARTMENTS (PREMIUM GRID) ===== */
.dept-section {
  background: radial-gradient(circle at 50% 0%, #f8fafc 0%, var(--white) 100%);
  padding: 96px 0 64px;
  position: relative;
}

.dept-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}

.dept-header-left {
  max-width: 680px;
}

.dept-clean-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.dept-clean-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.dept-clean-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.dept-clean-card {
  flex: 0 1 calc(33.333% - 19px); /* 3 cards per row */
  min-width: 320px;
  background: var(--bg-tint, rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.dept-clean-card:hover {
  background: var(--white);
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 0 24px 48px rgba(14, 165, 233, 0.08);
  transform: translateY(-8px);
}

.dept-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dept-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dept-clean-card:hover .dept-icon {
  transform: scale(1.1) rotate(5deg);
}

.dept-clean-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.dept-clean-card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.dept-clean-card a {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
}

.dept-clean-card a .arrow {
  margin-left: 6px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.dept-clean-card:hover a {
  opacity: 0.9;
}

.dept-clean-card:hover a .arrow {
  transform: translateX(6px);
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  background: var(--off-white);
  padding: 80px 0;
  overflow: hidden;
}

.gallery-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.gallery-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding: 16px 4px;
  flex: 1;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.gallery-carousel::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 calc(50% - 12px);
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  background: var(--white);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-nav-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.gallery-nav-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

@media (max-width: 768px) {
  .dept-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-item {
    flex: 0 0 85%;
  }
  .gallery-nav-btn {
    display: none;
  }
}

/* ===== DOCTORS ===== */
.doctors-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.doctors-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.doctors-section .section-tag {
  background: rgba(14,165,233,0.15);
  border-color: rgba(14,165,233,0.3);
  color: var(--accent);
}

.doctors-section .section-title {
  color: var(--white);
}

.doctors-section .section-desc {
  color: rgba(255,255,255,0.6);
}



.doctor-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.doctor-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(14,165,233,0.4);
  box-shadow: 0 12px 40px rgba(14,165,233,0.15);
  transform: translateY(-6px);
}

.doctor-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img {
  transform: scale(1.06);
}

.doctor-dept-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--bg, var(--accent-dark));
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doctor-info {
  padding: 18px 16px 20px;
}

.doctor-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.doctor-qual {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 3px;
}

.doctor-exp {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  font-weight: 500;
}

.doctor-timing {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  line-height: 1.3;
}

.doctor-view-btn {
  margin: 0 16px 16px;
  padding: 9px 14px;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.25);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transition: var(--transition-fast);
}

.doctor-card {
  cursor: pointer;
}

.doctor-card:hover .doctor-view-btn {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ===== DOCTOR MODAL ===== */
.doctor-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 31, 58, 0.4);
  backdrop-filter: blur(12px); /* Apple glass blur */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.doctor-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.doctor-modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,0.15);
}

.doctor-modal-overlay.active .doctor-modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  background: var(--light-bg);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--red-emg);
  color: var(--white);
  transform: scale(1.05);
}

.modal-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
}

.modal-left {
  background: var(--light-bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--border);
}

.modal-doctor-img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Don't cut image */
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.modal-timing-wrap {
  margin-top: 24px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.modal-right {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-name {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
  padding-right: 40px;
}

.modal-qual {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
}

.modal-title-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.spec-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-tag {
  background: var(--light-bg);
  border: 1px solid var(--border);
  color: var(--navy) !important;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: default;
}

.spec-tag:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  color: var(--accent) !important;
}

.modal-bio-wrap {
  margin-top: 8px;
}

.modal-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

@media (max-width: 768px) {
  .modal-inner { grid-template-columns: 1fr; }
  .modal-left { padding: 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .modal-doctor-img { max-width: 260px; }
  .modal-right { padding: 24px; gap: 20px; }
  .modal-name { font-size: 1.8rem; }
}

/* ===== DOCTOR PROFILES (DETAILED) ===== */
.doctor-profiles-section {
  margin-top: 72px;
}

.profiles-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 32px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profiles-heading::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent), var(--teal));
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.doctor-profiles-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doc-profile-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  transition: var(--transition);
}

.doc-profile-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(14,165,233,0.3);
  box-shadow: 0 12px 40px rgba(14,165,233,0.1);
  transform: translateX(4px);
}

.doc-profile-left {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.2);
  border-right: 1px solid rgba(255,255,255,0.07);
}

.doc-profile-img-wrap {
  overflow: hidden;
  flex: 1;
  min-height: 180px;
}

.doc-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.doc-profile-card:hover .doc-profile-img {
  transform: scale(1.06);
}

.doc-profile-meta {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.doc-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--bc, rgba(14,165,233,0.4));
  color: var(--bc, var(--accent));
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doc-emg-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
}

.emg-dot {
  width: 6px;
  height: 6px;
  background: var(--red-emg);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-ring 1.5s ease-out infinite;
}

.doc-opd-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.25);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
}

.doc-profile-right {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-profile-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.2;
}

.doc-profile-qual {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.doc-profile-qual span {
  color: var(--accent);
  font-weight: 600;
}

.doc-profile-timing {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.doc-profile-title {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
}

.doc-specializations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.spec-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.spec-tag:hover {
  background: rgba(14,165,233,0.15);
  border-color: rgba(14,165,233,0.35);
  color: var(--accent);
}

.doc-profile-bio {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  border-left: 2px solid rgba(14,165,233,0.3);
  padding-left: 14px;
  margin-top: 4px;
}

/* Responsive for profiles */
@media (max-width: 768px) {
  .doc-profile-card {
    grid-template-columns: 1fr;
  }

  .doc-profile-left {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    height: auto;
  }

  .doc-profile-img-wrap {
    width: 120px;
    min-height: 140px;
    flex: none;
  }

  .doc-profile-right {
    padding: 20px;
  }

  .doc-profile-header {
    flex-direction: column;
    gap: 8px;
  }

  .doc-profile-timing {
    white-space: normal;
  }
}

/* ===== WHY SECTION ===== */
.why-section {
  background: linear-gradient(135deg, var(--off-white) 0%, #e8f4fd 100%);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

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

.why-check {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(14,165,233,0.3);
  margin-top: 2px;
}

.why-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.why-item p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ===== LINEAR DARK SECTION ===== */
.linear-dark-section {
  background: #0a0a0a; /* Pure deep dark */
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  margin-top: 40px;
}

.linear-dark-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(ellipse at top, rgba(0,102,204,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.dark-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.text-white { color: #fff !important; }
.text-muted { color: #888 !important; }

.bento-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.bento-stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.bento-stat-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.bento-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.bento-cashless-card {
  grid-column: span 4;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.cashless-content h4 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 24px;
  font-weight: 500;
}

.scheme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.linear-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.stat-num {
  font-size: 3.5rem;
  font-weight: 200; /* Apple/Stripe ultra thin */
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

@media (max-width: 992px) {
  .dept-bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-standard { grid-column: span 2; }
  .bento-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-cashless-card { grid-column: span 2; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .dept-bento-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .bento-large { grid-column: span 1; grid-row: span 1; }
  .bento-wide { grid-column: span 1; grid-row: span 1; }
  .bento-standard { grid-column: span 1; grid-row: span 1; }
  .bento-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bento-stat-card { padding: 24px 12px; }
  .stat-num { font-size: 2.5rem; }
  .bento-cashless-card { display: none !important; }
}

/* ===== FACILITIES ===== */
.facilities-section {
  background: var(--white);
}

.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.marquee-row {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.marquee-row::-webkit-scrollbar {
  display: none;
}

/* Base track styles */
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

/* Native JS Auto-Scroller handles marquee animation */

/* Remove CSS animation on tracks */
.track-right {
  /* Handled by JS */
}
.track-left {
  /* Handled by JS */
}
.track-reviews {
  /* Handled by JS */
}

/* Card Styling for Marquee */
.facility-marquee-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 380px; /* Fixed width so it loops smoothly */
  transition: var(--transition);
  cursor: default;
}

.facility-marquee-card:hover {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-blue);
  transform: translateY(-5px);
}

.facility-marquee-card .fac-icon {
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.facility-marquee-card:hover .fac-icon {
  transform: scale(1.1);
}

.facility-marquee-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.facility-marquee-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .facility-marquee-card {
    width: 320px;
    padding: 20px;
    gap: 16px;
  }
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-cards-desktop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-card.emergency-card {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border-color: rgba(239,68,68,0.2);
}

.contact-card.emergency-card:hover {
  border-color: var(--red-emg);
  box-shadow: 0 8px 24px rgba(239,68,68,0.15);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(14,165,233,0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.emergency-card .contact-card-icon {
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(239,68,68,0.05));
  color: var(--red-emg);
}

.wa-icon-c {
  background: linear-gradient(135deg, rgba(37,211,102,0.12), rgba(37,211,102,0.05)) !important;
  color: var(--wa-green) !important;
}

.contact-card-body h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.contact-card-body a,
.contact-card-body span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  transition: var(--transition-fast);
}

.contact-card-body a:hover {
  color: var(--accent-dark);
}

.emergency-card .contact-card-body a {
  color: var(--red-emg);
  font-size: 1.05rem;
}

.map-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  min-height: 420px;
  position: relative;
}

.map-overlay-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

/* ===== GALLERY MARQUEE ===== */
.gallery-marquee-wrapper {
  margin-top: 32px;
}

.gallery-marquee-card {
  width: 320px;
  height: 240px; /* Cropped thumbnail height */
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.gallery-marquee-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.gallery-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* Show the top of the poster */
  transition: transform 0.5s ease;
}

.gallery-marquee-card:hover .gallery-img-wrap img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 40, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.gallery-overlay span {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.gallery-marquee-card:hover .gallery-overlay {
  opacity: 1;
}

/* ===== LIGHTBOX OVERLAY ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Show the full uncropped poster */
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: var(--accent);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: -50px;
    right: 50%;
    transform: translateX(50%);
  }
  .lightbox-close:hover {
    transform: translateX(50%) scale(1.1);
  }
  .gallery-marquee-card {
    width: 280px;
    height: 200px;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  padding: 4px;
}

.footer-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.footer-tag {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}

.footer-about {
  font-size: 0.84rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition-fast);
}

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

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

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

.footer-contact-list a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition-fast);
}

.footer-contact-list a:hover {
  color: var(--accent);
}

.emergency-contact a {
  color: #fca5a5 !important;
  font-weight: 700;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ===== FLOATING EMERGENCY BUTTON ===== */
.fab-emergency {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 990;
  background: linear-gradient(135deg, var(--red-emg), var(--red-emg-dark));
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 8px 24px rgba(239,68,68,0.4);
  transition: var(--transition);
  animation: pulse-ring 2s ease-out infinite;
}

.fab-emergency::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(239,68,68,0.4);
  animation: pulse-ring 2s ease-out 0.5s infinite;
}

.fab-emergency:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 32px rgba(239,68,68,0.5);
}

/* ===== GOOGLE REVIEWS MARQUEE ===== */
.reviews-section {
  background: var(--light-bg);
  padding: 80px 0;
  overflow: hidden;
}

.reviews-header {
  text-align: center;
  margin-bottom: 40px;
}

.google-rating-box {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.rating-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stars {
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

.reviews-marquee-wrapper {
  position: relative;
  width: 100%;
  padding: 10px 0;
}

/* Masking edges for a fade-in/out effect */
.reviews-marquee-wrapper::before,
.reviews-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.reviews-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--light-bg), transparent);
}
.reviews-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--light-bg), transparent);
}

.track-reviews {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-left: 24px;
}

.review-card {
  width: 380px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.review-stars {
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
  font-style: italic;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

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

.reviewer-info {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.reviewer-badge {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .review-card {
    width: 320px;
    padding: 24px;
  }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  width: 48px;
  height: 48px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(16px);
}

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

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .doctors-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  :root {
    --navbar-h: 68px;
    --emerbar-h: 38px;
  }

  .section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--emerbar-h) + var(--navbar-h));
    left: 0; right: 0;
    background: rgba(7, 20, 40, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 998;
  }

  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img { height: 320px; }
  .about-pillars { 
    height: 140px; 
    overflow: hidden; 
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    margin-top: 32px;
  }
  .about-pillars-track {
    display: flex;
    flex-direction: column;
    animation: scroll-vertical 10s linear infinite;
  }
  .about-pillars-track:hover, .about-pillars-track:active {
    animation-play-state: paused;
  }
  .pillars-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px; /* equal to gap */
  }
  .mobile-duplicate {
    display: flex !important;
  }
  .pillar {
    margin: 0;
    padding: 14px 16px;
    height: 64px; /* fixed height for predictable scroll */
    justify-content: center;
    box-shadow: none;
    border-color: rgba(0,0,0,0.08);
  }
  .pillar-icon {
    width: 36px; height: 36px;
  }
  .pillar-text strong {
    font-size: 1rem;
    margin-bottom: 2px;
  }
  .pillar-text p {
    font-size: 0.75rem;
  }

  .hero-split-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-text-col { padding-right: 0; padding-top: 40px; }
  .hero-visual-col { height: 400px; justify-content: center; }
  
  /* Scale down the bubbles for tablet/mobile */
  .bubble-1 { width: 100px; height: 100px; top: 0%; right: 5%; }
  .bubble-2 { width: 120px; height: 120px; top: 15%; left: 0%; }
  .bubble-3 { width: 150px; height: 150px; top: 25%; right: 5%; }
  .bubble-4 { width: 90px; height: 90px; top: 0%; left: 25%; }
  .bubble-5 { width: 110px; height: 110px; bottom: 10%; left: 25%; }

  .hero-btns { justify-content: center; }
  .hero-stats { margin: 0 auto; justify-content: center; }

  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-stats { grid-template-columns: repeat(4, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 320px; }

  .quick-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .quick-item { border-bottom: 1px solid var(--border); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }

  .hero-stats { flex-wrap: wrap; gap: 8px; border-radius: var(--radius-lg); }
  .hero-stat { padding: 8px 16px; }
}

@media (max-width: 768px) {
  /* SWIPEABLE HORIZONTAL LISTS FOR MOBILE TO SAVE SPACE */
  .dept-clean-grid, .facilities-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    /* CRITICAL: justify-content:center + overflow-x:auto clips left cards.
       flex-start ensures scroll always starts from card 1 */
    justify-content: flex-start !important;
    scroll-snap-type: x mandatory;
    gap: 16px !important;
    padding-bottom: 24px !important;
    
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  /* Fix for missing right padding on horizontal scroll */
  .dept-clean-grid::after, .facilities-grid::after {
    content: '';
    flex: 0 0 7.5vw;
  }

  .dept-clean-grid::-webkit-scrollbar, .facilities-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .dept-clean-card, .facility-card {
    flex: 0 0 85% !important; /* Card takes 85% of screen, showing a peek of the next one */
    min-width: unset !important;
    scroll-snap-align: center;
  }

  /* CRITICAL FIX: Cards inside horizontal swipe containers are hidden
     off-screen horizontally so the IntersectionObserver (vertical scroll trigger)
     never fires for them. Force all cards inside swipeable rows to be visible. */
  .dept-clean-grid .dept-clean-card,
  .doctors-grid .doctor-card,
  .facilities-grid .facility-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  :root { --emerbar-h: 0px; }

  .emergency-bar { display: none; }

  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 2rem; }
  .hero-title { font-size: 2.8rem; }
  .dept-clean-title { font-size: 2rem; }

  .hero-btns { flex-direction: column; gap: 16px; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  .hero-visual-col { height: 320px; }
  .bubble-1 { width: 80px; height: 80px; top: 5%; right: 5%; }
  .bubble-2 { width: 100px; height: 100px; top: 20%; left: 0%; }
  .bubble-3 { width: 130px; height: 130px; top: 35%; right: 10%; }
  .bubble-4 { width: 75px; height: 75px; top: 10%; left: 25%; }
  .bubble-5 { width: 90px; height: 90px; bottom: 5%; left: 30%; }

  /* Fix overlapping stats */
  .hero-stats { 
    display: grid !important; 
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    width: 100%;
    margin-top: 24px;
    background: transparent !important;
  }
  .stat-divider { display: none; }
  .hero-stat { 
    flex-direction: column; 
    text-align: center; 
    padding: 16px; 
    background: rgba(255,255,255,0.08); 
    border-radius: var(--radius-lg); 
    border: 1px solid rgba(255,255,255,0.1);
  }

  .contact-cards-desktop { grid-template-columns: 1fr; }

  .why-stats { grid-template-columns: repeat(2, 1fr); }

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

  .footer-bottom { flex-direction: column; text-align: center; }

  /* Compact footer — 2-column layout to use right side space */
  .footer {
    padding: 40px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 24px !important;
    padding-bottom: 24px !important;
  }

  /* First column (Logo + About + Social) spans full width */
  .footer-grid > *:first-child {
    grid-column: 1 / -1;
  }

  /* Last column (Contact Info) spans full width */
  .footer-grid > *:last-child {
    grid-column: 1 / -1;
  }

  .footer-about { margin-bottom: 16px; }
  .footer-col-title { margin-bottom: 12px; }
  .footer-links { gap: 8px; }
  .footer-contact-list { gap: 10px; }

  .fab-emergency span { display: none; }
  .fab-emergency { padding: 14px; border-radius: 50%; }

  .google-rating-box {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    text-align: center;
  }
  .rating-details {
    align-items: center;
  }
}

/* ===== DOCTOR SELECTION MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(19, 49, 58, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content.doctor-select-content {
  background: var(--surface);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header-centered {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header-centered h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal-header-centered p {
  color: rgba(19, 49, 58, 0.7);
  font-size: 0.95rem;
}

.doctor-select-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-select-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(12, 86, 81, 0.1);
  text-decoration: none;
  transition: all 0.2s ease;
}

.doc-select-card:hover {
  background: rgba(15, 107, 99, 0.04);
  border-color: rgba(15, 107, 99, 0.2);
  transform: translateY(-2px);
}

.doc-select-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: #f0f4f4;
}

.doc-select-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 2px;
}

.doc-select-info span {
  font-size: 0.85rem;
  color: rgba(19, 49, 58, 0.6);
  font-weight: 500;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(19, 49, 58, 0.05);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent-strong);
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(19, 49, 58, 0.1);
}

@media (max-width: 768px) {
  .modal-content.doctor-select-content {
    padding: 24px;
    width: 95%;
  }
}


/* ===== DOCTOR SELECTION MODAL ===== */
.modal-overlay#doctor-selection-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(19, 49, 58, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay#doctor-selection-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content.doctor-select-content {
  background: var(--surface);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay#doctor-selection-modal.active .modal-content.doctor-select-content {
  transform: translateY(0) scale(1);
}

.modal-header-centered {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header-centered h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal-header-centered p {
  color: rgba(19, 49, 58, 0.7);
  font-size: 0.95rem;
}

.doctor-select-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-select-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(12, 86, 81, 0.1);
  text-decoration: none;
  transition: all 0.2s ease;
}

.doc-select-card:hover {
  background: rgba(15, 107, 99, 0.04);
  border-color: rgba(15, 107, 99, 0.2);
  transform: translateY(-2px);
}

.doc-select-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: #f0f4f4;
}

.doc-select-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 2px;
}

.doc-select-info span {
  font-size: 0.85rem;
  color: rgba(19, 49, 58, 0.6);
  font-weight: 500;
}

@media (max-width: 768px) {
  .modal-content.doctor-select-content {
    padding: 24px;
    width: 95%;
  }
}


/* --- MOBILE CONTACT LIST (NATIVE APP STYLE) --- */
.mobile-contact-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.mcl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mcl-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s ease;
  border-radius: 8px;
}
.mcl-item:last-child {
  border-bottom: none;
  padding-bottom: 8px;
}
.mcl-item:hover {
  background: #f8fafc;
}
.mcl-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-blue {
  background: rgba(43, 107, 243, 0.1);
  color: var(--accent);
}
.icon-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-emg);
}
.icon-green {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
.mcl-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mcl-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mcl-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.text-red { color: var(--red-emg) !important; }
.text-green { color: #16a34a !important; }

@media (min-width: 769px) {
  .contact-cards-mobile { display: none !important; }
}

@media (max-width: 768px) {
  .contact-cards-desktop { display: none !important; }
  .hide-on-mobile { display: none !important; }
}


/* --- QUICK BAR MOBILE --- */
.quick-mobile {
  display: none; /* hidden on desktop */
}

/* Mobile styles */
@media (max-width: 768px) {
  .quick-desktop {
    display: none !important;
  }
  .quick-mobile {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    background: var(--white);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  .qm-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--navy);
  }
  .qm-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 107, 243, 0.1);
    color: var(--accent);
  }
  .qm-wa .qm-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
  }
  .qm-loc .qm-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
  }
  .qm-btn span {
    font-size: 0.75rem;
    font-weight: 600;
  }
}

/* --- BOTTOM SHEET MODAL --- */
.qm-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none; /* hidden by default */
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: flex-end;
}
.qm-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.qm-modal-content {
  background: var(--white);
  width: 100%;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.qm-modal-overlay.active .qm-modal-content {
  transform: translateY(0);
}
.qm-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.qm-modal-header h4 {
  font-size: 1.25rem;
  color: var(--navy);
}
#qm-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
}
.qm-modal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  text-decoration: none;
  margin-bottom: 12px;
}
.qm-modal-item:last-child {
  margin-bottom: 0;
}
.qmi-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
}
.qmi-title {
  font-size: 0.85rem; font-weight: 600; color: var(--text-light); text-transform: uppercase;
}
.qmi-sub {
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
}
@media (max-width: 768px) { .hero-scroll-indicator { display: none !important; } }


/* ===== SCHEMES MARQUEE SECTION ===== */
.schemes-marquee-section {
  padding: 40px 0;
  background: var(--white);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-header {
  text-align: center;
  margin-bottom: 30px;
}

.marquee-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  font-weight: 600;
}

.schemes-marquee-wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  /* Gradient mask for fading edges */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.schemes-marquee-wrapper:hover .schemes-marquee-track {
  animation-play-state: paused;
}

.schemes-marquee-track {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 60px;
  padding: 0 30px;
  animation: scroll-left 25s linear infinite;
  min-width: max-content;
  white-space: nowrap;
}

.marquee-logo {
  height: 60px; /* uniform height */
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: grayscale(100%);
}

.marquee-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-25%); /* Moves exactly 1 group out of 4 */
  }
}

@media (max-width: 768px) {
  .marquee-logo {
    height: 45px;
    max-width: 120px;
  }
  .schemes-marquee-track {
    gap: 40px;
    animation-duration: 20s;
  }
  .schemes-marquee-wrapper {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  }
}


@keyframes scroll-vertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ===== MOBILE FLOATING CTA BAR ===== */
.mobile-floating-cta {
  display: none;
}

@media (max-width: 768px) {
  /* Add padding to body so the floating bar doesn't overlap footer content */
  body {
    padding-bottom: 80px;
  }
  
  .mobile-floating-cta {
    display: flex;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    gap: 8px;
  }
  
  .cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
  }
  
  .whatsapp-cta {
    background: #10b981;
    color: white;
  }
  
  .book-cta {
    background: var(--accent);
    color: white;
  }
}



/* ===== DOCTORS SWIPER ===== */
.doctors-swiper {
  width: 100%;
  padding-bottom: 40px !important; /* Space for pagination */
  overflow: hidden;
}
.doctors-swiper .swiper-slide {
  height: auto;
}
/* Desktop Grid Fallback */
@media (min-width: 901px) {
  .doctors-swiper {
    padding-bottom: 0 !important;
    overflow: visible;
  }
  .doctors-swiper .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    transform: none !important;
  }
  .doctors-swiper .swiper-slide {
    width: auto !important;
  }
  .doctors-swiper .swiper-pagination {
    display: none;
  }
}
/* Mobile Coverflow Tweaks */
@media (max-width: 900px) {
  .doctors-swiper .swiper-slide {
    width: 75%; /* Set specific width for coverflow */
  }
  /* Custom Dashes for Swiper Pagination */
  .doctors-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
  }
  .doctors-swiper .swiper-pagination-bullet-active {
    width: 24px;
    background: var(--white);
  }
}

/* ===== NATIVE CAROUSEL INDICATORS ===== */
.native-carousel-indicators {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .native-carousel-indicators {
    display: flex;
  }
}
.native-carousel-indicators .indicator {
  width: 12px;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transition: all 0.3s ease;
}
.native-carousel-indicators .indicator.active {
  width: 24px;
  background: var(--accent);
}


/* ===== DEVELOPER MODAL ===== */
.dev-credit-btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 32px;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dev-credit-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.dev-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.dev-modal {
  position: fixed;
  z-index: 99999;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--light);
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.dev-modal.open {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .dev-modal {
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    transform: translate(-50%, 50%);
    opacity: 0;
    pointer-events: none;
  }
  .dev-modal.open {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
  }
}

.dev-modal-header {
  position: relative;
  padding: 32px 24px;
  background: linear-gradient(135deg, #007aff, #0056b3);
  border-radius: 24px 24px 0 0;
  color: var(--white);
  overflow: hidden;
}

@media (min-width: 768px) {
  .dev-modal-header {
    border-radius: 24px 24px 0 0;
  }
}

.dev-modal-header::after {
  content: "</>";
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 140px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  font-family: monospace;
  pointer-events: none;
}

.dev-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.dev-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.dev-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.dev-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.dev-info h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.dev-info p {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.dev-modal-body {
  padding: 24px;
}

.dev-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.dev-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(10, 61, 98, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.dev-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 61, 98, 0.08);
}

.dev-contact-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.dev-contact-icon.call {
  background: #eef2ff;
  color: #4f46e5;
}

.dev-contact-icon.email {
  background: #ecfdf5;
  color: #10b981;
}

.dev-contact-icon.insta {
  background: #fdf2f8;
  color: #db2777;
}

.dev-contact-text {
  display: flex;
  flex-direction: column;
}

.dev-contact-text strong {
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}

.dev-contact-text span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.dev-link-icon {
  position: absolute;
  right: 16px;
  color: #cbd5e1;
}

/* --- FAB Speed Dial Menu (Desktop Only) --- */
.fab-container {
  position: fixed;
  z-index: 55;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 4px;
}

.fab-container:hover .fab-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transition: transform 0.2s, color 0.2s;
  position: relative;
  text-decoration: none;
  margin-right: 6px; /* Align with center of main fab icon */
}

.fab-action:hover {
  transform: scale(1.1);
  color: var(--primary);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(10, 61, 98, 0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

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

.service-icon svg {
  width: 32px;
  height: 32px;
}

.fab-main {
  display: flex;
  align-items: center;
  background: var(--green);
  color: var(--white);
  border-radius: 30px;
  padding: 0 6px;
  height: 56px;
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.34);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.fab-icon-wrapper {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.fab-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.fab-text {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-in-out, padding 0.3s ease;
  padding-right: 0;
}

.fab-container:hover .fab-main {
  padding: 0 20px 0 6px;
}

.fab-container:hover .fab-text {
  max-width: 150px;
  opacity: 1;
  padding-left: 8px;
}

.mobile-booking-bar {
  position: fixed;
  z-index: 54;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: none;
  grid-template-columns: 0.8fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.mobile-booking-bar a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
  border-radius: 50px;
}

.mobile-booking-bar a.btn-whatsapp {
  background: #25d366;
}

.mobile-booking-bar a + a {
  background: var(--cyan);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  /* Spring physics easing — matches reference video's buttery feel */
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for sibling reveal elements */
.why-grid .why-card:nth-child(1) { transition-delay: 0s; }
.why-grid .why-card:nth-child(2) { transition-delay: 0.1s; }
.why-grid .why-card:nth-child(3) { transition-delay: 0.2s; }
.why-grid .why-card:nth-child(4) { transition-delay: 0.3s; }

.blog-grid .blog-card:nth-child(1) { transition-delay: 0s; }
.blog-grid .blog-card:nth-child(2) { transition-delay: 0.12s; }
.blog-grid .blog-card:nth-child(3) { transition-delay: 0.24s; }

.hero .reveal {
  opacity: 1;
  transform: none;
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(18px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@media (max-width: 1120px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .hero,
  .split-section,
  .why-section,
  .appointment-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-media {
    align-self: center;
    max-width: 620px;
  }

  .service-grid,
  .clinical-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    margin-inline: -16px;
  }

  .review-summary,
  .review-card {
    flex-basis: 315px;
  }

  .testimonial-card,
  .review-summary,
  .review-card {
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 108px;
    display: flex;
    flex-direction: column-reverse;
  }

  .hero-copy {
    width: 334px;
    max-width: 100%;
    padding-right: 0;
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .desktop-only {
    display: none !important;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 54px);
  }

  .hero-actions,
  .hero-actions .button,
  .hero-actions .review-badge {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .hero-proof {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 12px;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .hero-proof > span {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  
  .hero-proof::-webkit-scrollbar {
    display: none;
  }

  .hero-proof span {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    scroll-snap-align: start;
    border-radius: 50px;
    padding: 10px 20px;
    white-space: nowrap;
  }

  .floating-card {
    position: relative;
    inset: auto !important;
    width: 100%;
    margin-top: 10px;
  }

  .scroll-cue {
    display: none;
  }

  .treatment-layout,
  .treatment-detail {
    grid-template-columns: 1fr;
  }

  .clinical-grid,
  .why-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-inline: -16px;
    padding-inline: 16px;
    padding-bottom: 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .clinical-grid::-webkit-scrollbar,
  .why-grid::-webkit-scrollbar {
    display: none;
  }

  .clinical-grid .clinical-card,
  .why-grid .why-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .blog-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .slider-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider-controls {
    display: none;
  }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
  }

  .trust-bar .trust-item {
    border-radius: var(--radius);
    background: rgba(0, 180, 216, 0.04);
    border: 1px solid rgba(0, 180, 216, 0.1);
    padding: 20px 16px;
  }
  
  .trust-bar .trust-item strong {
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .service-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-inline: -16px;
    padding-inline: 16px;
    padding-bottom: 30px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .service-grid::-webkit-scrollbar {
    display: none;
  }
  
  .service-grid .service-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .timeline div {
    grid-template-columns: 1fr;
  }

  .treatment-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -16px;
    padding-bottom: 16px;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .treatment-list::-webkit-scrollbar {
    display: none;
  }
  
  .treatment-tab {
    flex: 0 0 auto;
    width: auto;
    scroll-snap-align: start;
    padding: 14px 24px;
    border-radius: 50px;
    white-space: nowrap;
  }

  .section,
  .appointment-section,
  .contact-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .video-card {
    min-height: 290px;
  }

  .clinical-card,
  .clinical-card.large {
    min-height: 310px;
  }

  .fab-container {
    display: none;
  }

  .mobile-booking-bar {
    display: grid;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-bottom: 120px;
  }

  .footer-note {
    justify-self: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reviews-track {
    animation: none;
  }
}
