/* ============================================================
   Dr. Kiran Bandri — Premium Healthcare Design System
   Inspired by Mayo Clinic, Cleveland Clinic, Apollo Hospitals
   Premium medical branding with trust, credibility, and calm
   ============================================================ */

/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
  /* Primary Palette — Medical Trust Blue */
  --primary-900: #0c2340;
  --primary-800: #0d3b66;
  --primary-700: #1565c0;
  --primary-600: #1976d2;
  --primary-500: #2196f3;
  --primary-400: #42a5f5;
  --primary-300: #90caf9;
  --primary-200: #bbdefb;
  --primary-100: #e3f2fd;
  --primary-50: #f0f7ff;

  /* Accent — Healing Teal */
  --accent-700: #00796b;
  --accent-600: #00897b;
  --accent-500: #009688;
  --accent-400: #26a69a;
  --accent-300: #80cbc4;
  --accent-200: #b2dfdb;
  --accent-100: #e0f2f1;
  --accent-50: #f0faf9;

  /* Vital — Emergency Red */
  --vital-700: #b71c1c;
  --vital-600: #c62828;
  --vital-500: #e53935;
  --vital-400: #ef5350;
  --vital-300: #ef9a9a;
  --vital-200: #ffcdd2;
  --vital-100: #ffebee;

  /* Neutrals */
  --ink: #1a1a2e;
  --ink-light: #2d3748;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-muted: #f1f5f9;

  /* Typography */
  --font-display: "Inter", "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows — Soft, layered, premium */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(33, 150, 243, 0.15);
  --shadow-glow-accent: 0 0 20px rgba(0, 150, 136, 0.15);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(12px);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-top-height: 38px;
  --header-height: 72px;
  --header-total-height: calc(var(--header-top-height) + var(--header-height));

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-900);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-700);
}

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

ul, ol {
  list-style: none;
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 48px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-700));
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
  color: #ffffff;
}

/* Vital/Urgent Button */
.btn-vital {
  background: linear-gradient(135deg, var(--vital-600), var(--vital-500));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
}

.btn-vital:hover {
  background: linear-gradient(135deg, var(--vital-700), var(--vital-600));
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
  color: #ffffff;
}

/* White Button */
.btn-white {
  background: #ffffff;
  color: var(--primary-800);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--ink-light);
}

.btn-outline:hover {
  background: var(--surface-soft);
  border-color: var(--primary-300);
  color: var(--primary-700);
}

/* Accent Button */
.btn-accent {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 150, 136, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-700), var(--accent-600));
  box-shadow: 0 6px 20px rgba(0, 150, 136, 0.4);
  color: #ffffff;
}

/* Button Sizes */
.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
  min-height: 40px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  min-height: 52px;
}

.btn-xl {
  padding: 18px 36px;
  font-size: 1.0625rem;
  min-height: 56px;
}

/* Icon Button */
.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ==========================================
   HEADER — Premium Two-Tier Medical Design
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
}

/* Top Utility Bar */
.header-top {
  background: var(--primary-900);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  line-height: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: var(--space-lg);
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-top-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.header-top-link svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.header-top-link:hover {
  color: #ffffff;
}

.header-top-link:hover svg {
  opacity: 1;
}

.header-top-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.header-top-right {
  display: flex;
  align-items: center;
}

.header-top-hours {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  white-space: nowrap;
}

.header-top-hours svg {
  opacity: 0.6;
  flex-shrink: 0;
}

/* Main Navigation Bar */
.header-main {
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
}

.header.scrolled .header-main {
  border-bottom-color: transparent;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary-900);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.header-logo:hover {
  opacity: 0.8;
  color: var(--primary-900);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

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

.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-light);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary-700);
  background: var(--primary-50);
}

.nav-links a.active {
  color: var(--primary-700);
  background: var(--primary-100);
  font-weight: 600;
}

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

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.hamburger:hover {
  background: var(--surface-soft);
}

.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--ink);
  margin: 5px auto;
  transition: all var(--transition-base);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  background: linear-gradient(160deg, var(--primary-900) 0%, var(--primary-800) 50%, #1a4a6e 100%);
  color: #ffffff;
  padding: calc(var(--header-total-height) + var(--space-4xl)) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 80% 20%, rgba(0, 150, 136, 0.15), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(33, 150, 243, 0.1), transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

/* Eyebrow Badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-300);
  margin-bottom: var(--space-lg);
  padding: 8px 16px;
  background: rgba(0, 150, 136, 0.15);
  border: 1px solid rgba(0, 150, 136, 0.25);
  border-radius: var(--radius-full);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Hero Title */
.hero h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-300), var(--accent-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Description */
.hero .lead {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.doctor-frame,
.hospital-frame {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.doctor-frame img,
.hospital-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-placeholder,
.hospital-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-display);
}

.doctor-placeholder .ph,
.hospital-placeholder .ph {
  font-size: 5rem;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.doctor-placeholder span,
.hospital-placeholder span {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

/* Floating Card */
.floating-card {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: #ffffff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-2xl);
  max-width: 280px;
  animation: float 6s ease-in-out infinite;
}

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

.floating-card h4 {
  font-size: 1rem;
  color: var(--primary-900);
  margin-bottom: 4px;
}

.floating-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ECG Band */
.ecg-band {
  display: block;
  width: 100%;
  height: 80px;
  background: var(--surface);
  margin-top: -1px;
}

.ecg-band svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
  padding: var(--space-4xl) 0;
}

.bg-paper { background: var(--surface); }
.bg-soft { background: var(--surface-soft); }
.bg-navy { background: var(--primary-900); color: #ffffff; }
.bg-accent { background: var(--accent-50); }

/* Section Header */
.section-header {
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.section-header.left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: var(--space-md);
  padding: 6px 14px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-full);
}

.section-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary-500);
  border-radius: 50%;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-md);
  color: var(--primary-900);
}

.section-header p {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ==========================================
   CARDS & GRIDS
   ========================================== */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.card:hover::before {
  opacity: 1;
}

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.card:hover .icon {
  background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
  transform: scale(1.05);
}

.card .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-600);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--primary-900);
}

.card p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================
   FEATURE SPLIT
   ========================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.split-media {
  position: relative;
}

.media-frame {
  border-radius: var(--radius-xl);
  background: var(--primary-50);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-100);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame .ph {
  font-size: 4rem;
  opacity: 0.3;
  color: var(--primary-400);
}

.frame-caption {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-top: var(--space-md);
  font-style: italic;
}

.split h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}

.split p {
  color: var(--ink-light);
  margin-bottom: var(--space-md);
}

/* Check List */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.9375rem;
}

.check-list svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-500);
  flex: none;
  margin-top: 2px;
}

/* ==========================================
   QUALIFICATIONS
   ========================================== */
.quals {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: var(--space-lg) 0;
}

.qual {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

/* ==========================================
   TIMELINE
   ========================================== */
.timeline {
  max-width: 720px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 180px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-200);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.tl-year {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-600);
  font-size: 0.9375rem;
}

.tl-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: 4px;
  font-size: 1.0625rem;
}

.tl-inst {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.tl-desc {
  color: var(--ink-light);
  font-size: 0.9375rem;
}

@media (max-width: 560px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .timeline-item::before {
    display: none;
  }
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.testimonial:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.testimonial blockquote {
  font-size: 1.0625rem;
  color: var(--ink);
  font-style: italic;
  line-height: 1.7;
  position: relative;
  padding-left: var(--space-lg);
  border-left: 3px solid var(--primary-300);
}

.rating {
  color: #fbbf24;
  letter-spacing: 3px;
  font-size: 1rem;
}

.testimonial footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
}

.testimonial footer .who {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-900);
}

.testimonial footer .ctx {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ==========================================
   EMERGENCY BANNER
   ========================================== */
.emergency {
  background: linear-gradient(135deg, var(--vital-600), var(--vital-500));
  color: #ffffff;
  padding: var(--space-xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(229, 57, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.emergency::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.emergency h3 {
  color: #ffffff;
  font-size: 1.375rem;
  position: relative;
  z-index: 1;
}

.emergency p {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.emergency .btn {
  background: #ffffff;
  color: var(--vital-600);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.emergency .btn:hover {
  background: var(--vital-100);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-800));
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-3xl);
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(0, 150, 136, 0.2), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(33, 150, 243, 0.15), transparent 60%);
  pointer-events: none;
}

.cta h2 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
}

.cta .btn-row {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ==========================================
   PAGE HEADER (Inner Pages)
   ========================================== */
.page-header {
  background: linear-gradient(160deg, var(--primary-900), var(--primary-800));
  color: #ffffff;
  padding: calc(var(--header-total-height) + var(--space-3xl)) 0 var(--space-3xl);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 80% 20%, rgba(0, 150, 136, 0.1), transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.page-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.breadcrumb {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--accent-300);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb .sep {
  margin: 0 10px;
  opacity: 0.5;
}

.page-hero {
  margin-top: var(--space-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.page-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================
   ARTICLE / LEGAL PROSE
   ========================================== */
.article-body,
.blog-content,
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-body h2,
.blog-content h2,
.legal-content h2 {
  color: var(--primary-900);
  font-size: 1.5rem;
  margin: var(--space-2xl) 0 var(--space-md);
}

.article-body h3,
.blog-content h3 {
  color: var(--primary-900);
  font-size: 1.25rem;
  margin: var(--space-xl) 0 var(--space-sm);
}

.article-body p,
.blog-content p,
.legal-content p {
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.article-body ul,
.blog-content ul,
.legal-content ul {
  list-style: disc;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-body li,
.blog-content li,
.legal-content li {
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.last-updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-xl);
}

/* ==========================================
   FORMS
   ========================================== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary-900);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  transition: all var(--transition-fast);
  min-height: 48px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--vital-500);
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: var(--accent-500);
}

.field-error {
  color: var(--vital-600);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

/* ==========================================
   FAQ ACCORDION
   ========================================== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  background: var(--surface);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--primary-200);
}

.faq-item.active {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-900);
  user-select: none;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--surface-soft);
}

.faq-icon {
  transition: transform var(--transition-base);
  color: var(--muted);
  font-size: 1rem;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-600);
}

.faq-item.active .faq-question {
  background: var(--primary-50);
}

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

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-xl);
  color: var(--ink-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 30rem;
}

/* ==========================================
   CONTACT / INFO CARDS
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info {
  padding: var(--space-xl);
}

.contact-form {
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.contact-item:hover .icon {
  background: var(--primary-100);
  transform: scale(1.05);
}

.contact-item .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-600);
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--muted);
  font-size: 0.9375rem;
}

.map-frame {
  margin-top: var(--space-2xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 400px;
  background: var(--primary-50);
  box-shadow: var(--shadow-lg);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* ==========================================
   DISEASE CARDS
   ========================================== */
.disease-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.disease-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.disease-img {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.disease-card:hover .disease-img {
  background: var(--primary-100);
}

.disease-img svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary-600);
}

.disease-body h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
}

.disease-body p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ==========================================
   BLOG CARDS
   ========================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.blog-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}

.blog-img svg {
  width: 40px;
  height: 40px;
  stroke: var(--primary-400);
}

.blog-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card .meta {
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.blog-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.blog-card h3 a {
  color: var(--primary-900);
  transition: color var(--transition-fast);
}

.blog-card h3 a:hover {
  color: var(--primary-600);
}

.blog-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.blog-link,
.blog-card .more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary-600);
  margin-top: auto;
  padding-top: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.blog-link:hover,
.blog-card .more:hover {
  gap: 10px;
  color: var(--primary-700);
}

.blog-meta {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.blog-hero-img {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  aspect-ratio: 21/9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.blog-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   APPOINTMENT HERO
   ========================================== */
.appointment-hero {
  background: linear-gradient(160deg, var(--primary-900), var(--primary-800));
  color: #ffffff;
  padding: calc(var(--header-total-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
}

.appointment-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.appointment-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
}

.appointment-form-wrapper {
  max-width: 720px;
  margin: calc(-1 * var(--space-xl)) auto 0;
  padding: 0 var(--space-lg) var(--space-3xl);
  position: relative;
  z-index: 5;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--primary-900);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-4xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

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

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

.footer li {
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--accent-300);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
}

.footer-logo .logo-mark {
  border-radius: var(--radius-md);
}

/* ==========================================
   FLOATING ELEMENTS
   ========================================== */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--primary-700);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  transform: translateY(-2px);
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ==========================================
   ERROR PAGE
   ========================================== */
.error-page {
  padding: clamp(100px, 15vw, 180px) 0;
  text-align: center;
}

.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 15vw, 10rem);
  background: linear-gradient(135deg, var(--primary-200), var(--accent-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h1 {
  margin: var(--space-md) 0 var(--space-lg);
}

.error-page p {
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto var(--space-xl);
  font-size: 1.125rem;
}

/* ==========================================
   SITEMAP
   ========================================== */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.sitemap-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.sitemap-group h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  color: var(--primary-900);
}

.sitemap-group li {
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.sitemap-group a {
  color: var(--primary-600);
  transition: color var(--transition-fast);
}

.sitemap-group a:hover {
  color: var(--primary-700);
}

/* ==========================================
   ABOUT PAGE EXTRAS
   ========================================== */
.doctor-name {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
  color: var(--primary-900);
}

.doctor-designation {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.doctor-qual {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.doctor-qual span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.about-stat {
  text-align: center;
  padding: var(--space-lg);
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.about-stat:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
}

.stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-600);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--muted);
}

.lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary-800);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.services-grid .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.services-grid .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.services-grid .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.services-grid .card:hover .icon {
  background: var(--primary-100);
}

.services-grid .icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary-600);
}

.services-grid h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--primary-900);
}

.services-grid p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ==========================================
   FADE-IN ANIMATIONS
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero-visual { max-width: 400px; margin: 0 auto; }
}

/* Mobile */
@media (max-width: 820px) {
  :root {
    --header-height: 60px;
  }

  .header-top {
    display: none !important;
  }

  .header-main .container {
    height: var(--header-height) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .header-logo {
    display: flex !important;
  }

  .hamburger {
    display: block !important;
    z-index: 1001; /* Ensure it stays above the menu if needed */
  }

  .nav-links {
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: var(--surface) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: var(--space-md) var(--space-lg) var(--space-xl) !important;
    border-top: 1px solid var(--border-light);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease !important;
    z-index: 999 !important;
    overflow-y: auto !important;
    display: flex !important;
  }

  .nav-links.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .nav-links a {
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--border-light) !important;
    font-size: 1.1rem !important;
    width: 100%;
    text-align: left;
  }

  .nav-links .nav-cta {
    margin: var(--space-lg) auto 0 !important;
    text-align: center !important;
    border-bottom: none !important;
    width: 100%;
    max-width: 300px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-total-height) + var(--space-3xl)) 0 var(--space-2xl);
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero .lead {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .g3 { grid-template-columns: 1fr; }
  .g2 { grid-template-columns: 1fr; }

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

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

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

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

  .section {
    padding: var(--space-3xl) 0;
  }

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

/* Small Mobile */
@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr; }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: var(--space-lg);
    max-width: 100%;
  }

  .cta {
    padding: var(--space-2xl) var(--space-lg);
  }

  .cta .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

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

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ==========================================
   Floating Call Button
   ========================================== */
.floating-call-btn {
  position: fixed;
  bottom: 24px;
  right: 96px; /* Position to the left of the whatsapp button */
  width: 56px;
  height: 56px;
  background-color: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-call-btn:hover,
.floating-call-btn:focus {
  background-color: var(--primary-800);
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  color: white;
}

.floating-call-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .floating-call-btn {
    bottom: 15px;
    right: 70px;
    width: 45px;
    height: 45px;
  }
}
/* ==========================================
   PREMIUM REDESIGN UTILITIES
   ========================================== */

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-xl);
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-xl);
  color: white;
}

/* Premium Typography */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-700), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.text-gradient-light {
  background: linear-gradient(135deg, #ffffff, var(--primary-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Card Lift Animation */
.card-lift {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  will-change: transform;
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

/* Premium Hero Overlay */
.hero-premium {
  position: relative;
  background: #f8fafc;
  overflow: hidden;
  padding: calc(var(--header-total-height) + 80px) 0 100px;
}

.hero-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 70%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(33, 150, 243, 0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-premium::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 150, 136, 0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-premium > * {
  position: relative;
  z-index: 1;
}

/* Floating Appointment Widget */
.floating-widget {
  position: absolute;
  bottom: -40px;
  right: 10%;
  width: 320px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  z-index: 10;
  animation: float-slow 6s ease-in-out infinite;
}

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

.premium-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(33, 150, 243, 0.1);
  color: var(--primary-700);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
