/* ==========================================================================
   CarelunexHealth - Production Stylesheet
   Domain: carelunexhealth.org
   Refined Mobile Header (64px, hamburger + logo only),
   Pixel-Perfect Symmetrical Cross (X) Hamburger,
   Drawer "Book Appointment" CTA, 20px Cards, 48px Buttons.
   ========================================================================== */

:root {
  /* Brand Palette - Deep medical teal, crisp clinical mint, warm coral accent */
  --primary: #0a3d4c;
  --primary-dark: #062630;
  --primary-light: #165668;
  --primary-subtle: #e6f3f6;
  
  --secondary: #0d9488;
  --secondary-dark: #0f766e;
  --secondary-light: #2dd4bf;
  --secondary-subtle: #f0fdfa;
  
  --accent: #e06d53;
  --accent-hover: #c9553c;
  --accent-subtle: #fff5f2;

  --success: #10b981;
  --warning: #f59e0b;
  --info: #0284c7;

  /* Neutral tones */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-alt: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-inverse: #ffffff;

  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;
  --border-focus: #0d9488;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 8px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 20px -4px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 24px 38px -8px rgba(10, 61, 76, 0.18), 0 10px 15px -3px rgba(10, 61, 76, 0.08);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Button height: 48px */
  --btn-height: 48px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Header & Layout */
  --header-height: 74px;
  --header-height-mobile: 64px;
  --container-max: 1240px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* Headings & Text Alignment */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-align: left;
}

h1 { 
  font-size: clamp(2.2rem, 5vw, 3.8rem); 
  line-height: 1.1; 
  letter-spacing: -0.03em;
}
h2 { 
  font-size: clamp(1.75rem, 2.8vw + 0.3rem, 2.45rem); 
  margin-bottom: 0.75rem; 
  line-height: 1.2;
}
h3 { 
  font-size: clamp(1.2rem, 1.5vw + 0.3rem, 1.5rem); 
  margin-bottom: 0.5rem; 
}
h4 { 
  font-size: 1.15rem; 
  margin-bottom: 0.35rem; 
}

p, li, span, label, input, textarea, select {
  text-align: left;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--secondary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus-visible {
  color: var(--primary);
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* Layout Containers: 1240px max width, 24px desktop, 16px mobile side padding */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Consistent Section Spacing: 80px desktop, 56px mobile */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

.section-alt {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0d4a5c 100%);
  color: var(--text-inverse);
}

.section-primary h1, .section-primary h2, .section-primary h3, .section-primary p {
  color: var(--text-inverse);
}

.section-header {
  margin-bottom: 2.75rem;
  text-align: left;
  max-width: 760px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background-color: var(--primary-subtle);
  border: 1px solid rgba(10, 61, 76, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.badge-mint {
  color: var(--secondary-dark);
  background-color: var(--secondary-subtle);
  border-color: rgba(13, 148, 136, 0.2);
}

/* ==========================================================================
   IMAGE RULES & ROBUST PREVIEW-SAFE FALLBACKS
   - All image wrappers define background teal gradient + explicit aspect-ratio
   - If image file is missing, onerror adds .img-fallback which sets opacity: 0
   - Result: Clean, beautiful gradient box with zero broken image badges!
   ========================================================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

/* Face preservation rule for images with human beings */
.img-face,
img[src*="doctor"],
img[src*="oldMan"],
img[src*="femaleDoctor"],
img[src*="face"],
img[src*="team"] {
  object-position: center 18%;
}

/* Preview-safe error fallback: hide broken icon and alt text completely */
img.img-fallback {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Image wrappers provide the fallback background & aspect ratio */
.hero-image-wrapper,
.health-card-banner,
.card-circle-media,
.page-hero-media,
.facility-media-wrapper,
.banner-media {
  background: linear-gradient(145deg, #0a3d4c 0%, #165668 50%, #0d9488 100%);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   STICKY HEADER & REFINED NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  height: var(--header-height);
}

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

/* Left Group: Hamburger + Brand Logo */
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* ==========================================================================
   5. PROPER CROSS (X) ICON (PURE CSS, 44x44px BUTTON, PERFECTLY CENTERED)
   - 3 span bars, each 22px wide, 2.5px tall, border-radius 2px
   - Positioned absolutely: top bar -7px, middle 0, bottom +7px from center
   - When open: top/bottom move translateY(0) and rotate +45deg / -45deg
   - Middle bar fades out (opacity 0, scaleX(0))
   - Smooth 0.3s transition
   ========================================================================== */
.menu-toggle {
  display: none; /* hidden on desktop (> 900px) */
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
  z-index: 1100;
}

.menu-toggle:hover {
  background-color: var(--bg-subtle);
  border-color: var(--primary);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.menu-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  width: 22px;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transform-origin: center center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

/* Initial hamburger bars (6px gap between bars) */
.menu-toggle span:nth-child(1) {
  top: calc(50% - 1.25px - 7px);
}
.menu-toggle span:nth-child(2) {
  top: calc(50% - 1.25px);
}
.menu-toggle span:nth-child(3) {
  top: calc(50% - 1.25px + 7px);
}

/* Open state: Perfect symmetrical centered cross (X) */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--primary-light);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(10, 61, 76, 0.25);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.brand-text {
  display: inline-flex;
  white-space: nowrap;
  font-size: clamp(1rem, 4.6vw, 1.25rem);
}

.brand-text span {
  color: var(--secondary);
}

/* Desktop Nav Menu: 5 exact links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

/* Nav Drawer CTA (hidden on desktop, visible inside drawer on mobile) */
.nav-drawer-cta {
  display: none;
}

/* Nav Action (Desktop header CTA) */
.nav-action {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-phone strong {
  color: var(--primary);
  display: block;
}

/* ==========================================================================
   BUTTONS: CONSISTENT 48px HEIGHT, CLEAR HOVER & FOCUS STATES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: var(--btn-height);
  min-height: var(--btn-height);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(10, 61, 76, 0.2);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(10, 61, 76, 0.28);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--primary);
  border-color: var(--border-color);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-sm {
  height: 40px;
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* ==========================================================================
   HERO SECTION: 1.05fr : 1fr TRUE 2-COLUMN SPLIT, LARGE 50% IMAGE
   ========================================================================== */
.hero {
  position: relative;
  background: 
    radial-gradient(circle at 85% 35%, rgba(45, 212, 191, 0.14) 0%, rgba(13, 148, 136, 0.06) 40%, transparent 65%),
    radial-gradient(circle at 15% 80%, rgba(10, 61, 76, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding-top: 64px;
  padding-bottom: 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(40px, 4.5vw, 64px);
}

.hero-content {
  text-align: left;
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--secondary);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 580px;
  line-height: 1.6;
}

/* Stats Row: neatly positioned below buttons */
.hero-trust {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.trust-item {
  text-align: left;
}

.trust-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Hero Media: Large 50% Column */
.hero-media {
  position: relative;
  width: 100%;
}

.hero-media-backdrop {
  position: absolute;
  inset: -14px -14px 14px 14px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.2) 0%, rgba(45, 212, 191, 0.08) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 520px;
  max-height: 640px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(13, 148, 136, 0.25);
  z-index: 2;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius-xl);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Floating Info Cards: Small, compact, sitting on EDGES (>85% photo stays visible) */
.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(13, 148, 136, 0.2);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -3px rgba(10, 61, 76, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  max-width: 250px;
}

.floating-pill-left {
  bottom: 24px;
  left: -24px;
  animation: floatSlow 6s ease-in-out infinite alternate;
}

.floating-pill-right {
  top: 28px;
  right: -24px;
  animation: floatSlow 7s ease-in-out 1s infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-subtle) 0%, #e0f2fe 100%);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.pill-text {
  text-align: left;
}

.pill-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.pill-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.2;
  margin-top: 2px;
}

/* Page Hero for internal pages */
.page-hero {
  background: 
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.18) 0%, transparent 50%),
    linear-gradient(135deg, #07252f 0%, #0d4a5c 100%);
  color: #ffffff;
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 3px solid var(--secondary);
}

.page-hero h1, .page-hero p {
  color: #ffffff;
}

.page-hero .badge {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.page-hero-media {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: auto;
}

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

/* ==========================================================================
   CARDS: 20px RADIUS, LIGHT BORDER, HOVER LIFT & SHADOW
   ========================================================================== */
.minimal-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.minimal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  text-align: left;
}

.minimal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.card-circle-media {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--secondary-light);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-circle-media img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.card-circle-media .card-icon-svg {
  width: 36px;
  height: 36px;
  color: var(--secondary-light);
}

.minimal-card-content {
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.minimal-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
  text-align: left;
}

.minimal-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  text-align: left;
}

.minimal-card-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-dark);
  margin-top: auto;
  text-align: left;
}

/* Standard Health Cards */
.cards-scroll-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.health-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  text-align: left;
}

.health-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.health-card-banner {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 190px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.health-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform var(--transition-normal);
}

.health-card:hover .health-card-banner img {
  transform: scale(1.04);
}

.health-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.health-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.health-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: left;
}

.health-card-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  text-align: left;
}

.health-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.health-card-meta {
  font-size: 0.825rem;
  color: var(--text-light);
  font-weight: 600;
}

/* How It Works (Steps with circular icons top-center) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: left;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-num {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--secondary);
  background: var(--secondary-subtle);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

/* Mid-Page Medical Banner Section */
.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(40px, 4vw, 64px);
}

.banner-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

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

/* Filter / Sorting Dropdown */
.filter-section {
  margin-bottom: 2.25rem;
}

.filter-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.filter-dropdown-container {
  position: relative;
  display: inline-block;
  min-width: 270px;
}

.filter-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--btn-height);
  padding: 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.filter-dropdown-toggle:hover,
.filter-dropdown-toggle:focus-visible,
.filter-dropdown-container.open .filter-dropdown-toggle {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.filter-dropdown-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.filter-dropdown-container.open .filter-dropdown-toggle svg {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 270px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  list-style: none;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.filter-dropdown-container.open .filter-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-dropdown-item {
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-dropdown-item:hover,
.filter-dropdown-item:focus-visible {
  background-color: var(--secondary-subtle);
  color: var(--secondary-dark);
}

.filter-dropdown-item.active {
  background-color: var(--primary-subtle);
  color: var(--primary);
  font-weight: 700;
}

.filter-dropdown-item.active::after {
  content: "✓";
  font-weight: 800;
  color: var(--secondary);
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 860px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.open {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--secondary-subtle);
  color: var(--secondary-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input, .form-select {
  height: var(--btn-height);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-error {
  color: #dc2626;
  font-size: 0.78rem;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: #dc2626;
}

.form-group.has-error .form-error {
  display: block;
}

.form-alert-success {
  display: none;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER (STRICTLY CLEAN, UNCLUTTERED, IDENTICAL ACROSS ALL 5 PAGES)
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 3rem;
}

.footer-col {
  text-align: left;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--secondary-light);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.925rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover, .footer-links a:focus-visible {
  color: var(--secondary-light);
  transform: translateX(3px);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-contact-list strong {
  color: #ffffff;
}

.footer-disclaimer-box {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-disclaimer-box p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   4. FIX MOBILE NAVBAR (AT 900px AND BELOW)
   - Header: single row [hamburger button] [logo], nothing on the right
   - Header height: 64px, padding: 0 16px, gap: 12px
   - HIDE the "Book Appointment" button from header
   - Logo never wraps or overflows
   - Drawer opens below header (top: 64px, max-height calc(100vh - 64px),
     solid white background, padding: 8px 20px 24px, box-shadow)
   - Menu links: 52px tall, font-size: 18px, border-bottom 1px solid
   - Last item in drawer: "Book Appointment" button (full width, 48px height, teal)
   ========================================================================== */

@media (max-width: 900px) {
  .site-header {
    height: var(--header-height-mobile);
  }

  .navbar {
    height: var(--header-height-mobile);
    padding: 0;
    justify-content: flex-start;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  /* Hamburger visible on the left */
  .menu-toggle {
    display: flex;
  }

  /* Header left: exactly [hamburger button] [logo] with gap 12px */
  .nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  /* Logo text: never wraps, clean clamp */
  .brand-text {
    font-size: clamp(0.95rem, 4.4vw, 1.25rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* HIDE Book Appointment and phone from header on mobile */
  .nav-action {
    display: none !important;
  }

  /* Mobile Drawer opens strictly below 64px header */
  .nav-menu {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-height-mobile));
    background-color: #ffffff;
    box-shadow: 0 16px 32px rgba(10, 61, 76, 0.16);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px 20px 24px 20px;
    gap: 0;
    z-index: 1050;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 52px;
    line-height: 52px;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    color: var(--secondary-dark);
    font-weight: 700;
  }

  /* The "Book Appointment" button as LAST item in drawer */
  .nav-drawer-cta {
    display: block !important;
    border-bottom: none !important;
    margin-top: 18px;
    padding-top: 4px;
    width: 100%;
  }

  .nav-drawer-cta .btn {
    width: 100%;
    height: var(--btn-height);
    font-size: 1rem;
  }

  /* Hero stacks on 900px and below */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .hero-media-backdrop {
    inset: -8px -8px 8px 8px;
    border-radius: 26px;
  }

  .hero-image-wrapper {
    aspect-ratio: 4 / 3;
    min-height: 320px;
    max-height: 420px;
    border-radius: var(--radius-lg);
  }

  .floating-pill {
    padding: 0.5rem 0.75rem;
    max-width: 220px;
  }

  .floating-pill-left {
    bottom: 12px;
    left: 12px;
  }

  .floating-pill-right {
    top: 12px;
    right: 12px;
  }

  .page-hero-grid,
  .banner-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-hero-media {
    max-width: 100%;
    margin-left: 0;
  }

  .minimal-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .minimal-card {
    padding: 1.1rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .card-circle-media {
    width: 60px;
    height: 60px;
    margin-bottom: 0.85rem;
  }

  .minimal-card-title {
    font-size: 1rem;
  }

  .minimal-card-desc {
    font-size: 0.825rem;
  }

  .cards-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .cards-scroll-container > .health-card {
    flex: 0 0 85%;
    max-width: 330px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

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

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn-group .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 1.25rem;
    justify-content: space-between;
  }

  .trust-item {
    flex: 1 1 30%;
    min-width: 80px;
  }

  .trust-num {
    font-size: 1.5rem;
  }

  .trust-label {
    font-size: 0.775rem;
  }

  .hero-image-wrapper {
    aspect-ratio: 1 / 1;
    min-height: 280px;
    max-height: 360px;
  }

  .floating-pill {
    padding: 0.4rem 0.6rem;
    gap: 0.5rem;
  }

  .pill-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .pill-title {
    font-size: 0.775rem;
  }

  .pill-desc {
    display: none;
  }

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

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

/* Extra small screens: 340px and below */
@media (max-width: 340px) {
  .brand-text {
    font-size: 0.95rem;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .brand-icon svg {
    width: 18px;
    height: 18px;
  }
  .nav-left {
    gap: 8px;
  }
}

@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;
  }
  .floating-pill-left,
  .floating-pill-right {
    animation: none !important;
  }
  .hero-image-wrapper:hover img {
    transform: none !important;
  }
}
/* Schedule Section Outline Button Strict Text & Border Fix */
.btn-group a.btn-outline[href*="services.html"],
.btn-group a.btn-outline {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  background-color: transparent !important;
  opacity: 1 !important;
}

.btn-group a.btn-outline:hover {
  background-color: #ffffff !important;
  color: var(--primary, #0f4c5c) !important; /* Hover karne par text dark ho jayega */
  border-color: #ffffff !important;
}
/* Small screen responsive CSS for .hero-trust */
.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobile screen par 2 columns */
  gap: 12px;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0; /* Subtle Border */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Soft Shadow */
  margin-top: 20px;
}

.hero-trust .trust-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid #edf2f7; /* Inner border for items */
  border-radius: 8px;
  background-color: #f8fafc;
}

/* Jab text lamba ho ya 3rd item odd ho toh use full width dene ke liye */
.hero-trust .trust-item:last-child {
  grid-column: span 2; /* 3rd item span full row */
}

/* Font styles */
.hero-trust .trust-item h3,
.hero-trust .trust-item .stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.hero-trust .trust-item p,
.hero-trust .trust-item .stat-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 4px;
}
/* Small screen size par normal-width horizontal scroll */
@media (max-width: 768px) {
  .steps-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 12px 16px; /* Touch target aur border cut off na ho */
    -webkit-overflow-scrolling: touch;
  }

  /* Scrollbar styling (optional) */
  .steps-grid::-webkit-scrollbar {
    height: 4px;
  }

  .steps-grid::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
  }

  .steps-grid .step-card {
    /* Fixed pixel ki jagah width ko screen ke mutabiq normal rakha hai */
    flex: 0 0 85%; /* 85% width har card ki, baki 15% next card ka preview dikhaega */
    max-width: 320px; /* Badi mobile screens par card zyada stretch na ho */
    scroll-snap-align: center; /* Scroll karne par card screen ke center me snap hoga */
  }
}
/* Hero Content container ko center karne ke liye */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Horizontally center karta hai */
  justify-content: center;
  text-align: center; /* Paragraph aur Headings ke text ko center karta hai */
}

/* Trust items / Stats section ko center karne ke liye */
.hero-trust {
  display: flex;
  justify-content: center; /* Items ko center me align karta hai */
  align-items: center;
  flex-wrap: wrap; /* Small screens par properly wrap karne ke liye */
  gap: 20px;
  width: 100%;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}