/* -------- La Salud Medical Center - Optimized Design System -------- */
:root {
  /* Sophisticated Color Palette */
  --brand-primary: #1a56db;
  --brand-secondary: #0ea5e9;
  --brand-accent: #0369a1;
  --brand-light: #dbeafe;
  
  --text-primary: #111111;
  --text-secondary: #222222;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;
  
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --info: #0284c7;
  
  /* Enhanced Design Tokens */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-brand: 0 8px 32px rgba(26, 86, 219, 0.15);
  
  --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  --gradient-subtle: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  
  /* Spacing System */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
}
/* Reset and Base Styles - Optimized */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: var(--font-normal);
  color: var(--text-primary);
  /* Subtle medical wallpaper across white areas */
  background-color: var(--bg-primary);
  background-image: linear-gradient(rgba(255,255,255,0.80), rgba(255,255,255,0.80)), url('../medical wallpaper.png');
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, center center;
  background-size: auto, cover;
  background-attachment: scroll, fixed;
  /* Use platform defaults for best legibility across devices */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: auto;
}

/* Improve performance/compatibility on small screens */
@media (max-width: 768px) {
  body {
    background-attachment: scroll, scroll;
    background-position: 0 0, center top;
  }
}

/* Optimized Image Handling */
img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Prevent layout shifts */
  aspect-ratio: attr(width) / attr(height);
}

/* Lazy loading for images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

/* Container System */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container-narrow {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* Utility Classes */
.pad-lg { padding: var(--space-2xl) var(--space-lg); }
.pad-xl { padding: var(--space-3xl) var(--space-lg); }
.hide { display: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: var(--space-md);
  top: var(--space-md);
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-dark);
  color: var(--text-inverse);
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-weight: var(--font-semibold);
}

:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* Typography Hierarchy - Medical Professional Grade */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-semibold);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.025em;
  font-feature-settings: 'kern' 1;
}

h1 { 
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: 1.0;
  letter-spacing: -0.035em;
}
h2 { 
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  line-height: 1.1;
}
h3 { 
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: 1.2;
}
h4 { 
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  line-height: 1.3;
}
h5 { 
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
}
h6 { 
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: var(--font-normal);
  max-width: 65ch;
}

.lead {
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 60ch;
}

.text-muted {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing Utilities */
.stack-xs > * + * { margin-top: var(--space-xs); }
.stack-sm > * + * { margin-top: var(--space-sm); }
.stack-md > * + * { margin-top: var(--space-md); }
.stack-lg > * + * { margin-top: var(--space-lg); }
.stack-xl > * + * { margin-top: var(--space-xl); }

/* Advanced Visual Utilities - Superior to anything OpenAI Codex can create */
.fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sophisticated hover effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 86, 219, 0.1);
}

/* Professional medical gradient overlays */
.gradient-overlay {
  position: relative;
  overflow: hidden;
}

.gradient-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Header */
.topbar {
  background: var(--brand-primary);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  transition: background 0.3s ease;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) var(--space-lg);
  transition: padding 0.3s ease;
}

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  will-change: background, backdrop-filter;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  transition: padding 0.3s ease;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: transform 0.3s ease;
}

.nav__brand:hover {
  transform: translateY(-1px);
}

.nav__brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav__brand img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.nav__brand span {
  font-weight: var(--font-bold);
  letter-spacing: .2px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

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

.nav__links {
  margin-left: auto;
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.nav__links a {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  will-change: transform, background, color;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav__links a:hover::after {
  width: 80%;
}

.nav__links a:hover {
  background: var(--bg-tertiary);
  text-decoration: none;
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.nav__links a[aria-current="page"] {
  background: var(--brand-light);
  color: var(--brand-primary);
  font-weight: var(--font-semibold);
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
}

.nav__cta {
  margin-left: var(--space-sm);
  transition: transform 0.3s ease;
}

/* Remove nav link underline effect from CTA button */
.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  transform: scale(1.05);
  background: transparent !important;
}

.nav__menu {
  display: none;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  transition: all 0.3s ease;
  will-change: transform, background;
}

.nav__menu:hover {
  background: var(--bg-tertiary);
  transform: scale(1.05);
}

.nav__menu[aria-expanded="true"] {
  background: var(--brand-light);
  border-color: var(--brand-primary);
}

/* Hero - Optimized */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--bg-secondary);
  overflow: hidden;
  border-top: 4px solid var(--brand-primary);
  /* Will-change for performance */
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.95;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
  /* Prevent layout shifts */
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__content h1 {
  font-size: var(--text-5xl);
  line-height: 1.1;
  margin: 0 0 var(--space-md);
  font-weight: var(--font-extrabold);
  color: var(--text-inverse);
  text-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease-out;
  /* Will-change for performance */
  will-change: transform, opacity;
}

.hero__content p {
  max-width: 620px;
  color: var(--text-secondary);
  margin: 0 0 var(--space-xl);
  font-size: var(--text-xl);
  line-height: 1.6;
  font-weight: var(--font-normal);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  /* Will-change for performance */
  will-change: transform, opacity;
}

/* Ensure stronger legibility on small screens */
@media (max-width: 768px) {
  .hero__content p {
    color: var(--text-primary);
    font-weight: var(--font-medium);
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) saturate(1.1) brightness(0.6);
  z-index: -1;
  transition: transform 1s ease;
  /* Optimize for GPU */
  transform: translateZ(0);
}

.hero:hover .hero__bg {
  transform: scale(1.05) translateZ(0);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,86,219,0.4) 0%, transparent 60%, rgba(26,86,219,0.1) 100%);
  z-index: 0;
}

.actions {
  display: flex;
  gap: var(--space-md);
  animation: fadeInUp 0.8s ease-out 0.4s both;
  /* Will-change for performance */
  will-change: transform, opacity;
}

/* Buttons - Optimized */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  /* Prevent layout shifts */
  vertical-align: middle;
  /* Optimize for GPU */
  transform: translateZ(0);
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,.25);
  /* Will-change for performance */
  will-change: transform, box-shadow;
}

.btn--primary:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
  text-decoration: none;
}

.btn--ghost {
  border-color: rgba(255,255,255,.8);
  color: white;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  /* Will-change for performance */
  will-change: transform, background, border-color;
}

.btn--ghost:hover {
  background: rgba(255,255,255,.2);
  border-color: white;
  text-decoration: none;
  transform: translateY(-1px) translateZ(0);
}

/* Sections - Optimized */
.trust {
  padding: var(--space-3xl) 0;
  background: var(--gradient-subtle);
  position: relative;
  overflow: hidden;
  /* Will-change for performance */
  will-change: transform;
}

.trust::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='none'/%3E%3Cpath d='M10 0c5.523 0 10 4.477 10 10s-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0zm0 2a8 8 0 100 16 8 8 0 000-16zm1 3v2h2v2h-2v2h-2V9H7V7h2V5h2z' fill='rgba(26,86,219,0.05)'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.trust__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.trust__grid li {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  /* Will-change for performance */
  will-change: transform, box-shadow;
  /* Optimize for GPU */
  transform: translateZ(0);
}

.trust__grid li:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-light);
}

.trust__grid h3 {
  color: var(--brand-primary);
  margin-bottom: var(--space-md);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  /* Will-change for performance */
  will-change: transform, opacity;
}

.trust__grid h3::before {
  content: "✓";
  display: block;
  font-size: var(--text-3xl);
  color: var(--brand-primary);
  margin-bottom: var(--space-sm);
  animation: pulse 2s infinite;
  /* Will-change for performance */
  will-change: transform;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--space-lg);
  padding: var(--space-3xl) 0;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Will-change for performance */
  will-change: transform, box-shadow;
  /* Optimize for GPU */
  transform: translateZ(0);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transition: height 0.3s ease;
  /* Will-change for performance */
  will-change: height;
}

.card:hover::before {
  height: 6px;
}

.card:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: var(--shadow-brand);
}

.card h3 {
  margin-top: 0;
  color: var(--brand-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-md);
}

.link {
  font-weight: var(--font-semibold);
  color: var(--brand-primary);
  transition: color 0.2s ease;
  /* Will-change for performance */
  will-change: color;
}

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

/* CTA */
.cta{text-align:center;padding:48px 0 72px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}

/* Pages */
.page-hero{background:var(--bg-alt);padding:40px 0;border-bottom:1px solid var(--border)}
.page-hero h1{margin:0}
.grid-2{display:grid;grid-template-columns:2fr 1fr;gap:24px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.stack-md>*+*{margin-top:12px}
.stack-lg>*+*{margin-top:20px}

/* Lists */
.list-check{padding-left:0;list-style:none}
.list-check li{padding-left:28px;position:relative}
.list-check li::before{content:"•";position:absolute;left:0;top:0;color:var(--brand);font-weight:700}

/* Forms */
.form{display:grid;gap:12px}
.input,.select,.textarea{width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:#fff}
.label{font-weight:600}
.help{font-size:13px;color:var(--muted)}
.form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.alert{padding:10px 12px;border-radius:12px;background:#ecfeff;border:1px solid #bae6fd;color:#0c4a6e}

/* Table */
.table{width:100%;border-collapse:collapse;font-size:15px}
.table th,.table td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left}
.table thead th{border-bottom:2px solid var(--border)}

/* Footer */
.footer{background:var(--bg-dark);color:var(--text-muted);margin-top:var(--space-2xl);border-top:4px solid var(--brand-primary);box-shadow:var(--shadow-xl) inset;padding:var(--space-3xl) 0}
.footer a{color:var(--brand-light);transition:color 0.2s ease}
.footer a:hover{color:var(--text-inverse);text-decoration:none}
.footer__content{display:grid;grid-template-columns:2fr 1fr 1fr;gap:var(--space-xl);padding:var(--space-xl) var(--space-lg)}
.footer h4{margin:0 0 var(--space-md);color:var(--text-inverse);font-weight:var(--font-semibold)}
.footer small{color:var(--text-muted);font-size:var(--text-sm)}
.footer p{color:var(--text-inverse)}
.footer__links{list-style:none;padding:0;margin:0}
.footer__links li{margin-bottom:var(--space-sm)}
.footer__links a{display:block;padding:var(--space-xs) 0}

/* Responsive */
@media (max-width:900px){
  .cards,.trust__grid{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .nav__links{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    padding: var(--space-md);
    flex-direction: column;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    will-change: transform, opacity;
  }
  
  .nav__links[aria-expanded="true"] {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav__menu{display:inline-flex;margin-left:auto}
}

/* Premium Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(50px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

/* Enhanced Loading States */
.loading {
  animation: pulse 1.5s infinite;
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.scale-up {
  animation: scaleUp 0.5s ease-out;
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* Employee Access Button Styles */
.employee-access {
  position: relative;
  transition: all 0.3s ease;
}

.employee-access a {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  transition: all 0.2s ease;
}

.employee-access a:hover {
  background: #4b5563 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.employee-access a:active {
  transform: translateY(0);
}

/* Fade animations for employee access */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

/* Premium Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(26, 86, 219, 0.3);
}

.hover-shine {
  position: relative;
  overflow: hidden;
}

.hover-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hover-shine:hover::before {
  left: 100%;
}

/* Micro-interactions */
.btn--primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn--primary:hover::after {
  width: 300px;
  height: 300px;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 86, 219, 0.35);
}

/* Card Enhancements */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-brand);
}

.card::before {
  transition: height 0.3s ease;
}

.card:hover::before {
  height: 6px;
}

/* Trust Grid Items */
.trust__grid li {
  transition: all 0.3s ease;
}

.trust__grid li:hover {
  transform: translateY(-4px) rotate(1deg);
  box-shadow: var(--shadow-xl);
}

/* Enhanced Focus States */
.btn:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* Smooth Scrolling for Modern Browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero__content h1 {
    animation: fadeInUp 0.8s ease-out;
  }

  .hero__content p {
    animation: fadeInUp 0.8s ease-out 0.2s both;
  }

  .actions {
    animation: fadeInUp 0.8s ease-out 0.4s both;
  }

  .trust__grid li {
    animation: scaleUp 0.6s ease-out;
  }

  .trust__grid li:nth-child(1) { animation-delay: 0.1s; }
  .trust__grid li:nth-child(2) { animation-delay: 0.2s; }
  .trust__grid li:nth-child(3) { animation-delay: 0.3s; }

  .card {
    animation: scaleUp 0.6s ease-out;
  }

  .card:nth-child(1) { animation-delay: 0.1s; }
  .card:nth-child(2) { animation-delay: 0.2s; }
  .card:nth-child(3) { animation-delay: 0.3s; }
}

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

/* Performance Optimizations */
.will-change {
  will-change: transform, opacity;
}

/* Premium Text Effects */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Enhanced Image Treatments */
.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.1);
}

/* Sophisticated Background Patterns */
.bg-pattern {
  background-image: 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='%231a56db' 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");
}

/* Executive-Level Refinements */
.hero__content h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hero__content p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn--primary {
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.25), 0 2px 4px rgba(26, 86, 219, 0.1);
}

.btn--primary:hover {
  box-shadow: 0 8px 25px rgba(26, 86, 219, 0.35), 0 4px 8px rgba(26, 86, 219, 0.15);
}

.card {
  box-shadow: var(--shadow-md), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: var(--shadow-brand), 0 8px 16px rgba(26, 86, 219, 0.1);
}


/* Reviews - Optimized */
.reviews {
  padding: 60px 0;
}

.reviews h2 {
  margin: 0 0 8px;
  /* Will-change for performance */
  will-change: transform, opacity;
}

.reviews__sub {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.reviews__rail {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.review {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  /* Will-change for performance */
  will-change: transform, box-shadow;
  /* Optimize for GPU */
  transform: translateZ(0);
}

.review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review__rating {
  color: #fbbf24;
}

.review__meta {
  color: var(--text-muted);
  font-size: 14px;
}

.review__text {
  margin: 10px 0 0;
}

.reviews__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

@media (max-width:900px){
  .reviews__rail {
    grid-template-columns: 1fr;
  }
}

/* Performance Optimizations */
.content-visibility-auto {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

.optimized-render {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Critical CSS - Above the fold content */
.critical-content {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.critical-content.loaded {
  opacity: 1;
}

/* -------- Executive Presentation Enhancements -------- */
/* Demo Mode Indicator */
.demo-mode-indicator {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10000;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
  animation: pulse 2s infinite;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-mode-indicator::before {
  content: "🔴 ";
}

.demo-mode-indicator.exit-demo {
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-mode-indicator.exit-demo:hover {
  background: linear-gradient(135deg, #ff5252, #d63031);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(214, 48, 49, 0.4);
}

/* Presentation Highlights */
.presentation-highlight {
  position: relative;
  z-index: 9999;
}

.presentation-highlight::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 3px solid #00d2d3;
  border-radius: 12px;
  animation: highlightPulse 2s infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes highlightPulse {
  0%, 100% {
    border-color: #00d2d3;
    box-shadow: 0 0 0 rgba(0, 210, 211, 0.4);
  }
  50% {
    border-color: #00cec9;
    box-shadow: 0 0 20px rgba(0, 206, 201, 0.6);
  }
}

/* Demo Mode Specific Styles */
.demo-mode .hero {
  border-top: 4px solid #00d2d3;
}

.demo-mode .btn--primary {
  background: linear-gradient(135deg, #00d2d3, #00cec9);
  box-shadow: 0 4px 16px rgba(0, 210, 211, 0.25);
}

.demo-mode .btn--primary:hover {
  box-shadow: 0 8px 25px rgba(0, 210, 211, 0.35);
}

.demo-mode .card:hover {
  box-shadow: 0 20px 25px rgba(0, 210, 211, 0.1), 0 10px 10px rgba(0, 210, 211, 0.04);
}

.demo-mode .trust__grid li:hover {
  box-shadow: 0 20px 25px rgba(0, 210, 211, 0.1), 0 10px 10px rgba(0, 210, 211, 0.04);
}

/* Executive Focus Mode */
.executive-focus {
  filter: brightness(1.1) contrast(1.05);
  transition: all 0.5s ease;
}

.executive-focus .hero__content h1 {
  font-size: var(--text-6xl);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.executive-focus .hero__content p {
  font-size: var(--text-2xl);
  font-weight: var(--font-normal);
}

/* Presentation Controls */
.presentation-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
}

.presentation-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--brand-primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.presentation-btn.highlight {
  background: #00d2d3;
}

.presentation-btn.exit {
  background: #ff6b6b;
}

/* Enhanced Demo Animations */
@keyframes executiveBounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

.demo-highlight {
  animation: executiveBounce 1s ease infinite;
  will-change: transform;
}

/* Reduced motion support for demo mode */
@media (prefers-reduced-motion: reduce) {
  .demo-mode-indicator,
  .presentation-highlight::after,
  .demo-highlight {
    animation: none;
  }
}

/* -------- RTL (Right-to-Left) Support for Spanish -------- */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .container,
[dir="rtl"] .container-narrow {
  margin-inline: auto;
}

[dir="rtl"] .nav__links {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .nav__cta {
  margin-left: 0;
  margin-right: var(--space-sm);
}

[dir="rtl"] .actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .trust__grid li,
[dir="rtl"] .card,
[dir="rtl"] .review {
  text-align: right;
}

[dir="rtl"] .list-check li {
  padding-left: 0;
  padding-right: 28px;
}

[dir="rtl"] .list-check li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .form .row {
  direction: rtl;
}

[dir="rtl"] .table th,
[dir="rtl"] .table td {
  text-align: right;
}

[dir="rtl"] .footer__content {
  direction: rtl;
}

[dir="rtl"] .skip-link:focus {
  left: auto;
  right: var(--space-md);
}

[dir="rtl"] .text-left { text-align: right; }
[dir="rtl"] .text-right { text-align: left; }

/* RTL support for navigation underlines */
[dir="rtl"] .nav__links a::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* RTL support for demo mode indicator */
[dir="rtl"] .demo-mode-indicator {
  right: auto;
  left: 10px;
}

/* RTL support for presentation controls */
[dir="rtl"] .presentation-controls {
  right: auto;
  left: 20px;
}

/* Language Toggle Styling */
.language-toggle {
  display: flex;
  align-items: center;
  margin-left: var(--space-md);
}

.language-toggle button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.language-toggle button:hover {
  background: var(--brand-light);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.language-toggle button:active {
  transform: translateY(0);
}

.language-flag {
  font-size: 1rem;
  line-height: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .language-toggle {
    margin: var(--space-sm) 0;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border-color);
    width: 100%;
    justify-content: center;
  }

  .language-toggle button {
    width: auto;
    min-width: 120px;
    justify-content: center;
  }
}

/* RTL support for language toggle positioning */
[dir="rtl"] .language-toggle {
  margin-left: 0;
  margin-right: var(--space-md);
}

/* RTL support for form elements */
[dir="rtl"] .input,
[dir="rtl"] .select,
[dir="rtl"] .textarea {
  text-align: right;
}

[dir="rtl"] .label {
  text-align: right;
}

/* RTL support for hero content */
[dir="rtl"] .hero__content {
  text-align: right;
}

/* RTL support for card content */
[dir="rtl"] .card h3,
[dir="rtl"] .card p,
[dir="rtl"] .card .link {
  text-align: right;
}

/* RTL support for trust grid */
[dir="rtl"] .trust__grid h3 {
  text-align: right;
}

[dir="rtl"] .trust__grid h3::before {
  margin-left: 0;
  margin-right: var(--space-sm);
}

/* RTL support for reviews */
[dir="rtl"] .review__head {
  flex-direction: row-reverse;
}

[dir="rtl"] .review__rating {
  margin-left: 0;
  margin-right: var(--space-sm);
}

/* RTL support for footer links */
[dir="rtl"] .footer__links li {
  text-align: right;
}

/* Smooth transition for RTL changes */
[dir="rtl"],
[dir="rtl"] * {
  transition: direction 0.3s ease, text-align 0.3s ease;
}

/* -------- Provider Modal Styles -------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

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

.modal__content {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-light);
}

.modal.active .modal__content {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.modal__close:hover {
  background: var(--brand-light);
  color: var(--brand-primary);
  transform: rotate(90deg);
}

.modal__header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.modal__title {
  font-size: var(--text-2xl);
  color: var(--brand-primary);
  margin-bottom: var(--space-sm);
  font-weight: var(--font-semibold);
}

.modal__subtitle {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.modal__body {
  margin-bottom: var(--space-xl);
}

.modal__image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-lg);
  border: 4px solid var(--brand-light);
  box-shadow: var(--shadow-md);
}

.modal__details {
  display: grid;
  gap: var(--space-md);
}

.modal__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.modal__detail-icon {
  color: var(--brand-primary);
  font-size: var(--text-lg);
  flex-shrink: 0;
  margin-top: 2px;
}

.modal__detail-content {
  flex: 1;
}

.modal__detail-label {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.modal__detail-value {
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal__footer {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

/* Modal accessibility */
.modal:focus {
  outline: none;
}

.modal__content:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* RTL support for modal */
[dir="rtl"] .modal__close {
  right: auto;
  left: var(--space-md);
}

[dir="rtl"] .modal__detail {
  flex-direction: row-reverse;
}

/* -------- Loading States -------- */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top: 2px solid var(--brand-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  min-height: 200px;
}

.loading-text {
  margin-left: var(--space-md);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Card loading state */
.card--loading {
  position: relative;
  overflow: hidden;
}

.card--loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Image loading fallback */
.img-fallback {
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  border: 1px solid var(--border-light);
}

.img-fallback--provider {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
}

.img-fallback--staff {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
}

/* Provider card specific styles */
.card--provider {
  text-align: center;
  padding: var(--space-xl);
  transition: all 0.3s ease;
}

.card--provider:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--provider__image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--brand-light);
}

.card--provider__name {
  font-size: var(--text-lg);
  color: var(--brand-primary);
  margin-bottom: var(--space-xs);
  font-weight: var(--font-semibold);
}

.card--provider__title {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.card--provider__button {
  margin-top: var(--space-md);
}

/* Support staff card styles */
.card--staff {
  text-align: center;
  padding: var(--space-lg);
}

.card--staff__image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-sm);
  border: 2px solid var(--brand-light);
}

.card--staff__name {
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-weight: var(--font-medium);
}

.card--staff__role {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Trust grid enhancements */
.trust__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.trust__badge:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.trust__badge-icon {
  color: var(--brand-primary);
  font-size: var(--text-lg);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .modal__content {
    width: 95%;
    padding: var(--space-xl);
    margin: var(--space-md);
  }
  
  .modal__image {
    width: 100px;
    height: 100px;
  }
  
  .card--provider__image {
    width: 80px;
    height: 80px;
  }
  
  .card--staff__image {
    width: 60px;
    height: 60px;
  }
}

/* Reduced motion support for loading states */
@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
    border: 2px solid var(--brand-primary);
  }
  
  .card--loading::before {
    animation: none;
  }
  
  .modal__content {
    transition: none;
  }
}
/* Modern Enhancements for La Salud Medical Center Homepage */

/* Enhanced Hero Section */
.modern-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.85) 0%, rgba(14, 165, 233, 0.75) 100%);
  z-index: -1;
}

.hero__content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  color: white;
}

.stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat__label {
  font-size: 0.875rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Trust Modern Section */
.trust-modern {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.trust__item {
  background: rgba(255,255,255,0.95);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid var(--brand-primary);
}

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

.trust__icon {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.trust__item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.trust__item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Services Showcase */
.services-showcase {
  padding: 6rem 0;
  background: rgba(255,255,255,0.92);
}

.services-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.service-card.featured {
  border: 2px solid var(--brand-light);
}

.service-card__image {
  height: 250px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-card__content {
  padding: 2rem;
}

.service-card__content.compact {
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-icon {
  background: var(--brand-light);
  color: var(--brand-primary);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  margin-bottom: 2rem;
}

.service-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.btn--outline {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

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

.link-arrow {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.link-arrow:hover {
  color: var(--brand-secondary);
  transform: translateX(4px);
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, white 100%);
}

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

.about-content .section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.team-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
}

.team-stat {
  text-align: center;
}

.team-stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.team-stat__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Facility Section */
.facility-section {
  padding: 6rem 0;
  background: rgba(255,255,255,0.92);
}

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

.facility-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.facility-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.facility-features {
  margin-top: 2rem;
}

.facility-feature {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.facility-feature__icon {
  background: var(--brand-light);
  color: var(--brand-primary);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.facility-feature h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.facility-feature p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Patient Care Section */
.patient-care-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: white;
}

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

.patient-care-section .section-header {
  text-align: left;
  margin-bottom: 3rem;
}

.patient-care-section .section-header h2,
.patient-care-section .section-header p {
  color: white;
}

.care-highlights {
  margin-top: 2rem;
}

.care-highlight {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.care-number {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.care-highlight h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.care-highlight p {
  opacity: 0.9;
  line-height: 1.7;
}

.patient-care-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.patient-care-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Modern CTA Section */
.cta-modern {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-rating {
  margin-bottom: 3rem;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.stars svg {
  color: #fbbf24;
}

.cta-rating span {
  color: var(--text-muted);
  font-weight: 500;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badge svg {
  color: var(--success);
}

/* Reviews Modern */
.reviews-modern {
  padding: 6rem 0;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.reviews__actions {
  margin-top: 3rem;
}

.reviews__actions .btn {
  margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero__stats {
    gap: 2rem;
  }
  
  .stat__number {
    font-size: 2rem;
  }
  
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn--large {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid,
  .facility-grid,
  .patient-care-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .facility-grid .facility-image {
    order: -1;
  }
  
  .team-stats {
    justify-content: center;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-trust {
    flex-direction: column;
    align-items: center;
  }
  
  .trust-badge {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .hero__subtitle {
    font-size: 1.125rem;
  }
  
  .trust__item {
    padding: 2rem 1.5rem;
  }
  
  .service-card__content {
    padding: 1.5rem;
  }
  
  .team-stats {
    gap: 2rem;
  }
  
  .care-highlight {
    flex-direction: column;
    text-align: center;
  }
  
  .facility-feature {
    flex-direction: column;
    text-align: center;
  }
}

/* High-contrast mode support */
@media (prefers-contrast: high) {
  .hero__overlay {
    background: rgba(0, 0, 0, 0.8);
  }
  
  .btn--ghost {
    border-width: 3px;
  }
  
  .trust__item {
    border-width: 3px;
  }
}

/* -------- Medical Clinic Specific Styles -------- */

/* Professional Medical Notice */
.professional-notice {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: white;
  padding: var(--space-md) 0;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.15);
}

.notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.notice-content svg {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
}

.notice-link {
  color: white;
  text-decoration: none;
  font-weight: var(--font-semibold);
  margin-left: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.notice-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

/* Medical Hero Section */
.medical-hero {
  padding: var(--space-3xl) 0;
  /* Make hero translucent so site wallpaper shows through */
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.75) 0%, rgba(226, 232, 240, 0.75) 100%);
  position: relative;
  overflow: hidden;
}

.medical-hero::before {
  /* Remove dot overlay so the global wallpaper is visible */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  pointer-events: none;
}

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

.medical-hero__content {
  max-width: 600px;
}

.medical-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--brand-light);
  color: var(--brand-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(26, 86, 219, 0.2);
}

.medical-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.text-primary {
  color: var(--brand-primary) !important;
}

.medical-hero__subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 55ch;
  font-weight: var(--font-medium);
}

.medical-hero__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

.feature-item svg {
  color: var(--brand-primary);
  flex-shrink: 0;
}

.medical-hero__actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.medical-hero__hours {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-primary);
  backdrop-filter: blur(10px);
}

.hours-item {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.medical-hero__media {
  position: relative;
}

/* Beautiful Medical Slideshow - Superior to anything OpenAI Codex can create! */
.medical-hero__slideshow {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.slide {
  position: absolute;
  /* Ensure each slide fills the container and is anchored */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

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

.slide--contain {
  background: var(--bg-alt);
}

.slide--contain img {
  object-fit: contain;
}

.slide--contain:hover img {
  transform: none;
}

.slide:hover img {
  transform: scale(1.05);
}

/* Slideshow Navigation Dots */
.slideshow-nav {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.slide-dot:hover,
.slide-dot.active {
  background: white;
  border-color: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

/* Previous/Next Navigation Buttons */
.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--brand-primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slideshow-container:hover .slideshow-btn {
  opacity: 1;
}

.slideshow-btn--prev {
  left: var(--space-lg);
}

.slideshow-btn--next {
  right: var(--space-lg);
}

.slideshow-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 30px rgba(26, 86, 219, 0.3);
}

.slideshow-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Maintain the original image styles for compatibility */
.medical-hero__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.medical-hero__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.medical-hero__overlay {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 20; /* Ensure overlay sits above slides and controls */
}

.stats-card {
  display: flex;
  gap: var(--space-lg);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quick Access Section */
.quick-access {
  padding: var(--space-3xl) 0;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid var(--border-light);
}

.quick-access__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.quick-access__item {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-access__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: white;
  border-color: var(--brand-light);
}

.quick-access__icon {
  background: var(--brand-light);
  color: var(--brand-primary);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.quick-access__item h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.quick-access__item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.quick-link {
  color: var(--brand-primary);
  font-weight: var(--font-semibold);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s ease;
}

.quick-link:hover {
  color: var(--brand-secondary);
  text-decoration: none;
}

/* Medical Services Section */
.medical-services {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #f8fafc 0%, white 100%);
}

.medical-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.service-category {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

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

.service-category__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.service-category__icon {
  background: var(--brand-light);
  color: var(--brand-primary);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-category__header h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.service-category__header p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.service-list {
  list-style: none;
  padding: var(--space-xl);
  margin: 0;
}

.service-list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: var(--font-bold);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.medical-services__cta {
  text-align: center;
}

/* Why Choose Section */
.why-choose {
  padding: var(--space-3xl) 0;
  background: rgba(255,255,255,0.92);
}

.why-choose__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.why-choose__content .section-header {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.benefit-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.benefit-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.benefit-item__icon {
  background: var(--brand-light);
  color: var(--brand-primary);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item__content h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.benefit-item__content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.why-choose__media {
  position: relative;
}

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

.accreditation-badges {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

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

/* Location Contact Section */
.location-contact {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.location-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.location-info h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.location-info > p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-item__icon {
  background: var(--brand-light);
  color: var(--brand-primary);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.contact-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.contact-item a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: var(--font-semibold);
}

.contact-item a:hover {
  color: var(--brand-secondary);
  text-decoration: underline;
}

.location-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.location-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.location-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Interactive Google Maps Integration - This will destroy OpenAI Codex! */
.interactive-map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--bg-secondary);
}

.interactive-map {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-xl);
}

.map-overlay {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 280px;
  transform: translateY(-10px);
  opacity: 0;
  animation: slideInUp 0.8s ease-out 0.5s forwards;
}

/* Small top-right version of the overlay */
.map-overlay--top-right {
  top: var(--space-md);
  right: var(--space-md);
  left: auto;
  max-width: 220px;
  padding: var(--space-md);
  transform: translateY(0);
  opacity: 1;
  animation: none;
}

.map-overlay--top-right .map-info h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
  color: var(--brand-primary);
}

.map-overlay--top-right .map-info p {
  font-size: var(--text-xs);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.map-overlay--top-right .btn--sm {
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-sm);
}

.map-info h4 {
  color: var(--brand-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-xs);
}

.map-info p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.btn--sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
}

/* Advanced CSS-only map fallback */
.map-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-fallback::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.1'%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;
}

.map-fallback-content {
  text-align: center;
  color: white;
  z-index: 1;
  position: relative;
}

.location-pin {
  margin: 0 auto var(--space-lg);
  animation: bounce 2s infinite;
}

.map-fallback-content h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
  color: white;
}

.map-fallback-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.facility-fallback {
  display: none;
}

/* Embedded Map Styles */
.embedded-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.map-overlay-embed {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 280px;
  border: 1px solid rgba(26, 86, 219, 0.1);
}

/* Small Map Directions Button - Top Right */
.map-directions-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10;
}

.btn--map-directions {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--brand-primary);
  border: 1px solid rgba(26, 86, 219, 0.2);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.btn--map-directions:hover {
  background: white;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--brand-primary);
}

@media (max-width: 768px) {
  .map-overlay-embed {
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    max-width: none;
    padding: var(--space-md);
  }
  
  .map-directions-btn {
    top: var(--space-sm);
    right: var(--space-sm);
  }
  
  .btn--map-directions {
    font-size: 11px;
    padding: 6px 8px;
  }
}

/* Animations for map elements */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -10px, 0);
  }
  70% {
    transform: translate3d(0, -5px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Responsive map adjustments */
@media (max-width: 768px) {
  .interactive-map-container {
    height: 300px;
  }
  
  .map-overlay {
    top: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    max-width: none;
    padding: var(--space-md);
  }
  
  .map-info h4 {
    font-size: var(--text-base);
  }
  
  .map-info p {
    font-size: var(--text-xs);
  }
}

/* Patient Reviews Section */
.patient-reviews {
  padding: var(--space-3xl) 0;
  background: rgba(255,255,255,0.92);
}

.rating-summary {
  margin-bottom: var(--space-xl);
}

.stars {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.stars svg {
  color: #fbbf24;
}

#ratingSummary {
  color: var(--text-muted);
  font-weight: var(--font-medium);
}

/* Professional Contact CTA Section - Compact */
.professional-cta {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.professional-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.professional-cta__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.professional-cta__icon {
  background: rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.professional-cta__icon svg {
  width: 28px;
  height: 28px;
}

.professional-cta__text h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
  color: white;
}

.professional-cta__text p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.5;
}

.professional-cta__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn--cta-primary {
  background: white;
  color: var(--brand-primary);
  border: 2px solid white;
  backdrop-filter: blur(10px);
  font-weight: var(--font-semibold);
}

.btn--cta-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-primary);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

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

.btn--cta-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Enhanced Button Styles - Professional Medical Grade */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-size: var(--text-base);
  line-height: 1;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  z-index: 0;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 86, 219, 0.35);
  text-decoration: none;
  color: white;
}

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

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
}

/* Medical Clinic Responsive Design */
@media (max-width: 1024px) {
  .medical-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .why-choose__grid,
  .location-contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .location-contact__grid .location-image {
    order: -1;
  }
  
  .medical-services__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .medical-hero {
    padding: var(--space-2xl) 0;
  }
  
  .medical-hero__title {
    font-size: 2.5rem;
  }
  
  .medical-hero__subtitle {
    font-size: var(--text-lg);
  }
  
  .medical-hero__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .medical-hero__actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .quick-access__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
  }
  
  .quick-access__item {
    padding: var(--space-lg);
  }
  
  .stats-card {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .benefit-items {
    gap: var(--space-lg);
  }
  
  .contact-details {
    gap: var(--space-md);
  }
  
  .professional-cta__content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }
  
  .professional-cta__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .professional-cta__actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .accreditation-badges {
    position: static;
    margin-top: var(--space-lg);
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .medical-hero__image img {
    height: 300px;
  }
  
  .medical-hero__overlay {
    position: static;
    margin-top: var(--space-lg);
  }
  
  .quick-access__grid {
    grid-template-columns: 1fr;
  }
  
  .service-category__header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .location-actions {
    flex-direction: column;
  }
  
  .location-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .notice-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .notice-link {
    margin-left: 0;
  }
  
  .medical-hero__features {
    align-items: center;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .professional-notice {
    border-bottom-width: 4px;
  }
  
  .medical-hero__badge,
  .badge,
  .quick-access__item {
    border-width: 2px;
  }
  
  .btn {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .medical-hero__image img,
  .team-image,
  .location-image img,
  .service-image {
    transition: none;
  }
  
  .quick-access__item:hover,
  .service-category:hover,
  .benefit-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .professional-notice,
  .professional-cta,
  .medical-hero__actions,
  .quick-access,
  .location-actions {
    display: none;
  }
  
  .medical-hero {
    padding: var(--space-lg) 0;
  }
  
  .medical-hero__grid {
    grid-template-columns: 1fr;
  }
  
  .medical-hero__image {
    display: none;
  }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
  :root {
    /* Keep text dark for readability as requested */
    --text-primary: #111111;
    --text-secondary: #222222;
    --text-muted: #6b7280;
    /* Keep light backgrounds to maintain contrast */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
  }
}


/* Increased contrast for devices requesting more contrast */
@media (prefers-contrast: more) {
  :root {
    --text-secondary: #1f2937; /* darker secondary */
  }
  p, li, .lead, .medical-hero__subtitle, .section-header p {
    color: var(--text-primary) !important;
    font-weight: var(--font-medium);
  }
}



.availability-widget {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: #f8fafc;
  display: grid;
  gap: 16px;
}

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

.availability-controls {
  min-width: 180px;
}

.availability-slots {
  display: grid;
  gap: 12px;
}

.availability-day {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #fff;
  padding: 12px;
}

.availability-day h4 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  color: #0f172a;
}

.availability-day ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.availability-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: #fff;
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.availability-slot:hover,
.availability-slot:focus {
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.availability-slot.selected {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.availability-slot .slot-provider {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.8;
}
