/*
 * Sourabhaa Hospital - Premium Design System Stylesheet
 * Brand Guidelines: A Legacy of Trust. A Future of Care.
 */

/* --- Custom Local Fonts --- */
@font-face {
  font-family: 'Ethnocentric';
  src: url('fonts/ethnocentric-rg.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tw Cen MT';
  src: url('fonts/Tw Cen MT.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --color-primary: #6b52a2;       /* Primary Purple: headings, key interactive elements */
  --color-primary-light: #ece9f5;
  --color-primary-dark: #523a85;
  --color-success: #168754;       /* Healthcare Green: statistics, indicators, trust signals */
  --color-success-light: #e8f5e9;
  --color-accent: #f37167;        /* Warm Coral: CTA accents, hover states */
  --color-accent-light: #ffebee;
  --color-heritage: #7f271d;      /* Heritage Maroon: storytelling, heritage sections */
  --color-heritage-light: #fbeee0;

  /* Neutral Palette */
  --color-white: #ffffff;
  --color-bg-base: #ffffff;
  --color-bg-alt: #fafafa;
  --color-bg-card: #ffffff;
  --color-bg-footer: #0f172a;
  --color-border: #e5e7eb;
  --color-text-main: #111827;
  --color-text-muted: #4b5563;
  --color-text-light: #9ca3af;
  
  /* Fonts */
  --font-headings: 'Ethnocentric', sans-serif;
  --font-body: 'Tw Cen MT', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 20px 40px -15px rgba(107, 82, 162, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 25px -5px rgba(107, 82, 162, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Layout */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  
  --max-width: 1280px;
}

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

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: normal;
}

h2 {
  font-size: 2rem;
  letter-spacing: normal;
}

h3 {
  font-size: 1.5rem;
}

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

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

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

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

/* --- Skip to Content --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-accent);
}

/* --- Accessibility Focus States --- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-bg {
  background-color: var(--color-bg-alt);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Typography Utilities --- */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-accent { color: var(--color-accent); }
.text-heritage { color: var(--color-heritage); }
.font-headings { font-family: var(--font-headings); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.badge-purple {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.badge-green {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.badge-coral {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.badge-maroon {
  background-color: var(--color-heritage-light);
  color: var(--color-heritage);
}

/* Section Header */
.section-header {
  max-width: 680px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.section-header h2 {
  font-size: 2.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  position: relative;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(107, 82, 162, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 6px 18px rgba(107, 82, 162, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-success {
  background-color: var(--color-success);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(22, 135, 84, 0.25);
}

.btn-success:hover {
  background-color: #116840;
  transform: translateY(-2px);
}

.btn-coral {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-coral:hover {
  background-color: #e2584e;
  transform: translateY(-2px);
}

.btn-heritage {
  background-color: var(--color-heritage);
  color: var(--color-white);
}

.btn-heritage:hover {
  background-color: #631d15;
  transform: translateY(-2px);
}

/* --- Cards --- */
.card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: var(--color-primary-light);
}

.card-title {
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.card:hover .card-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* --- Header & Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo Design */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

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

.logo-icon {
  color: var(--color-primary);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

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

/* Nav Menu */
.nav-menu {
  display: none;
  align-items: center;
  list-style: none;
  gap: 2rem;
  height: 100%;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.5rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

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

.nav-link.active::after {
  width: 100%;
}

.nav-link:hover::after {
  width: 100%;
}

/* Discover Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  max-width: calc(100vw - 2rem);
  padding: 0.75rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* Hamburger & Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-nav {
  display: none;
}

@media (min-width: 768px) {
  .btn-nav {
    display: inline-flex;
  }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1001;
  background: transparent;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100dvh;
  background-color: var(--color-white);
  z-index: 999;
  padding: 6rem 2rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
  visibility: hidden; /* Prevent mobile horizontal scroll issues when off-screen */
}

.mobile-drawer.active {
  right: 0;
  visibility: visible;
}

.mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--color-primary);
}

.mobile-discover-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.mobile-discover-submenu {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-discover-submenu.active {
  display: flex;
}

.mobile-discover-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.mobile-discover-link:hover {
  color: var(--color-primary);
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: rgba(15, 23, 42, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Hero Section --- */
.hero {
  padding: 8rem 0 6rem 0;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(107, 82, 162, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(135deg, rgba(22, 135, 84, 0.02) 0%, rgba(255, 255, 255, 0) 50%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--color-success);
  margin-top: 0.5rem;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: var(--color-text-muted);
}

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

.hero-features {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-feature-icon {
  color: var(--color-success);
  font-size: 1.25rem;
}

.hero-feature-text {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-main);
}

/* Hero Media Display */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

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

.hero-placeholder-art {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(243, 113, 103, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  text-align: center;
}

.hero-placeholder-art svg {
  width: 80px;
  height: 80px;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.hero-placeholder-art h3 {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.hero-placeholder-art p {
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  opacity: 0.8;
}

.hero-badge-overlay {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background-color: var(--color-white);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--color-border);
}

.hero-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-success-light);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-badge-title {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-badge-desc {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
}

/* --- Legacy Story Section --- */
.legacy-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-white);
}

.legacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .legacy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.legacy-media {
  order: 2;
}

@media (min-width: 1024px) {
  .legacy-media {
    order: 1;
  }
}

.legacy-img-frame {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 8px solid var(--color-heritage-light);
}

.legacy-placeholder-art {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-heritage-light) 0%, rgba(127, 39, 29, 0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  text-align: center;
}

.legacy-placeholder-art svg {
  width: 60px;
  height: 60px;
  color: var(--color-heritage);
  margin-bottom: 1.5rem;
}

.legacy-placeholder-art h4 {
  font-size: 1.3rem;
  color: var(--color-heritage);
  margin-bottom: 0.5rem;
}

.legacy-placeholder-art p {
  font-size: 0.85rem;
  color: var(--color-heritage);
  opacity: 0.8;
}

.legacy-content {
  order: 1;
}

@media (min-width: 1024px) {
  .legacy-content {
    order: 2;
  }
}

.legacy-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.legacy-quote {
  border-left: 4px solid var(--color-heritage);
  padding-left: 1.5rem;
  font-style: italic;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 2rem;
}

/* --- Stats Grid --- */
.stats-section {
  background-color: var(--color-success-light);
  padding: 4rem 0;
  border-top: 1px solid rgba(22, 135, 84, 0.1);
  border-bottom: 1px solid rgba(22, 135, 84, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-success);
  font-family: var(--font-headings);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

/* --- Services Preview Section --- */
.services-section {
  background-color: var(--color-bg-alt);
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  flex-shrink: 0;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.service-card-bottom {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  color: var(--color-accent);
}

.service-link svg {
  transition: transform 0.2s ease;
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* --- Why Choose Us Section --- */
.why-choose-section {
  background-color: var(--color-white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.why-list {
  display: grid;
  gap: 1.5rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
}

.why-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-success-light);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.why-item-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.why-item-content p {
  font-size: 0.925rem;
}

/* --- Facilities Preview --- */
.facilities-section {
  background-color: var(--color-bg-alt);
}

.facility-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.facility-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(107, 82, 162, 0.05) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  padding: 1.5rem;
  text-align: center;
}

.facility-img-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}

.facility-img-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

.facility-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.facility-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.facility-info p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* --- Patient Experience Section --- */
.experience-section {
  background-color: var(--color-white);
}

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

@media (min-width: 1024px) {
  .exp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.exp-card {
  border-top: 4px solid var(--color-primary);
}

.exp-card.green-accent {
  border-top-color: var(--color-success);
}

.exp-card.coral-accent {
  border-top-color: var(--color-accent);
}

.exp-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.exp-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--color-text-muted);
}

.exp-list-item svg {
  color: var(--color-success);
  margin-top: 3px;
  flex-shrink: 0;
}

/* --- Location & Connectivity Section --- */
.location-section {
  background-color: var(--color-bg-alt);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .location-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.location-hubs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.location-hub-card {
  background-color: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.location-hub-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.location-hub-card p {
  font-size: 0.875rem;
}

/* Map frame */
.map-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  aspect-ratio: 16/10;
  border: 1px solid var(--color-border);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: #e5e9f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.map-placeholder h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.map-placeholder p {
  font-size: 0.85rem;
  max-width: 280px;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(243, 113, 103, 0.1);
  z-index: 1;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.cta-inner h2 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  text-align: left;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text-main);
  background: transparent;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

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

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Form Fields --- */
.contact-form {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-premium);
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--color-bg-alt);
  transition: var(--transition-fast);
}

.form-control:focus {
  background-color: var(--color-white);
  border-color: var(--color-primary);
  outline: none;
}

/* --- Timeline Component --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background-color: var(--color-heritage-light);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 50px;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    margin-bottom: 4rem;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
  }
  
  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
  }
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 4px solid var(--color-heritage);
  z-index: 1;
}

@media (min-width: 768px) {
  .timeline-dot {
    left: auto;
    right: -10px;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    right: auto;
  }
}

.timeline-year {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-heritage);
  margin-bottom: 0.5rem;
}

.timeline-card {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-bg-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-col h3 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-headings);
  font-weight: 600;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo-text {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-white);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

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

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

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link {
  font-size: 0.85rem;
}

.footer-bottom-link:hover {
  color: var(--color-white);
}

/* --- Detail Pages Hero --- */
.page-hero {
  padding: 6rem 0 4rem 0;
  background: radial-gradient(circle at 10% 90%, rgba(107, 82, 162, 0.03) 0%, rgba(255, 255, 255, 0) 50%);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

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

.breadcrumbs-separator {
  color: var(--color-text-light);
}

.page-title {
  font-size: 2.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 720px;
}

/* --- Service Detail Page Specifics --- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1.7fr 1.3fr;
  }
}

.conditions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.condition-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-bg-alt);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.condition-item svg {
  color: var(--color-success);
}

.contact-quick-sidebar {
  background-color: var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(107, 82, 162, 0.15);
  position: sticky;
  top: 110px;
}

.contact-quick-sidebar h3 {
  color: var(--color-primary-dark);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.contact-quick-sidebar p {
  color: var(--color-primary-dark);
  opacity: 0.85;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.sidebar-contact-list {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-contact-item {
  display: flex;
  gap: 1rem;
}

.sidebar-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.sidebar-contact-text h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  opacity: 0.7;
  letter-spacing: 0.5px;
}

.sidebar-contact-text p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0;
  opacity: 1;
}

.sidebar-contact-text a:hover {
  text-decoration: underline;
}

/* --- Interactive map page --- */
.connectivity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.connectivity-card {
  border-left: 4px solid var(--color-primary);
}

.connectivity-card.green { border-left-color: var(--color-success); }
.connectivity-card.coral { border-left-color: var(--color-accent); }
.connectivity-card.maroon { border-left-color: var(--color-heritage); }

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
  border-color: var(--color-primary-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Gallery Lightbox --- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10001;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10001;
  line-height: 1;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10001;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .lightbox-prev {
    left: 0.75rem;
  }

  .lightbox-next {
    right: 0.75rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
  }
}

/* --- Mobile Layout Overflow and Alignment Fixes --- */

h1, h2, h3, h4, h5, h6, .hero-title, .page-title, .section-header h2,
.card-title, .faq-trigger, .timeline-year {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

/* Ensure grid/flex children can shrink properly to contain text */
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *,
.stats-grid > *, .location-hubs > *, .conditions-grid > *,
.footer-grid > *, .exp-grid > *, .why-list > *,
.connectivity-grid > *, .gallery-grid > * {
  min-width: 0;
}

/* Fluid Typography scaling for headings using clamp() to prevent overflow of wide Ethnocentric font */
h1, .hero-title {
  font-size: clamp(1.4rem, 5vw, 2.5rem);
}

.page-title {
  font-size: clamp(1.3rem, 5.5vw, 2.75rem);
}

h2, .section-header h2, .cta-inner h2 {
  font-size: clamp(1.2rem, 4.5vw, 2.25rem);
}

h3 {
  font-size: clamp(1.1rem, 3.5vw, 1.75rem);
}

h4 {
  font-size: clamp(1rem, 3vw, 1.25rem);
}

@media (max-width: 768px) {
  /* Tablet scale overrides */
  h1, .hero-title, .page-title {
    font-size: clamp(1.2rem, 5vw, 1.85rem) !important;
    line-height: 1.25 !important;
    letter-spacing: normal !important;
  }
  
  h2, .section-header h2, .cta-inner h2 {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem) !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
  }
  
  h3 {
    font-size: clamp(1rem, 3.5vw, 1.25rem) !important;
    line-height: 1.3 !important;
  }
  
  .stat-number {
    font-size: clamp(1.8rem, 6vw, 2.2rem) !important;
  }

  /* Prevent hero badge overlay from overflowing the left/right screen bounds */
  .hero-badge-overlay {
    left: 10px !important;
    bottom: 10px !important;
    padding: 0.75rem 1rem !important;
    max-width: calc(100% - 20px) !important;
  }

  .hero-badge-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  .hero-badge-desc {
    font-size: 0.875rem !important;
  }

  /* Stack hero features vertically on mobile to prevent horizontal flex overflow */
  .hero-features {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  /* Prevent contact form from taking too much horizontal padding on small screens */
  .contact-form {
    padding: 1.5rem !important;
  }

  /* Scale section spacing on mobile for compact viewing */
  .section {
    padding: 4rem 0 !important;
  }

  /* Stack location hubs and optimize map placeholder heights */
  .location-hubs {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .map-frame {
    aspect-ratio: auto !important;
    min-height: 280px !important;
  }

  .location-grid .btn {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* CTA ::before pseudo-element - shrink on mobile */
  .cta-section::before {
    width: 120px !important;
    height: 120px !important;
    right: -20px !important;
    top: -20px !important;
  }

  /* Connectivity grid single column on small screens */
  .connectivity-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer grid single column on mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer bottom stack */
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  .footer-bottom-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.75rem !important;
  }

  /* Prevent any absolutely positioned elements from overflowing */
  .section,
  .hero,
  .cta-section,
  .legacy-section,
  .footer {
    overflow-x: hidden !important;
  }

  /* Timeline dots and items */
  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-dot {
    left: 11px !important;
    right: auto !important;
  }

  .timeline::before {
    left: 20px !important;
    transform: none !important;
  }

  /* Constrain all containers and prevent overflow */
  .container {
    padding: 0 1rem !important;
    max-width: 100% !important;
  }

  /* Cards: prevent overflow from padding */
  .card {
    padding: 1.5rem !important;
  }

  /* Buttons: prevent overflow on small screens */
  .btn {
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ trigger text overflow */
  .faq-trigger {
    font-size: 0.95rem !important;
    padding: 1rem !important;
  }
}

@media (max-width: 480px) {
  /* Mobile scale overrides (320px - 480px) */
  h1, .hero-title, .page-title {
    font-size: clamp(1rem, 5vw, 1.35rem) !important;
    line-height: 1.25 !important;
  }
  
  h2, .section-header h2, .cta-inner h2 {
    font-size: clamp(0.95rem, 4.5vw, 1.2rem) !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem) !important;
    line-height: 1.3 !important;
  }
  
  h4 {
    font-size: clamp(0.85rem, 3vw, 0.95rem) !important;
  }
  
  .stat-number {
    font-size: clamp(1.4rem, 5vw, 1.75rem) !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Scale down header logo on tiny screens to prevent header line-breaks */
  .logo-img {
    height: 40px !important;
  }
}
