/* ==========================================================================
   ELDORADO MULTI-SPECIALIST HOSPITAL, DESIGN SYSTEM
   el_custom.css v5.0
   Architecture: Tokens → Reset → Typography → Layout → Components → Utilities → Responsive
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {

  /* --- Color System --- */
  --color-navy:          #0A1628;
  --color-navy-mid:      #122040;
  --color-navy-soft:     #1C2E52;
  --color-blue-primary:  #0066CC;
  --color-blue-bright:   #0099FF;
  --color-blue-light:    #E8F3FC;
  --color-blue-pale:     #F0F7FF;
  --color-white:         #FFFFFF;
  --color-off-white:     #F7F9FC;
  --color-gray-100:      #F2F4F8;
  --color-gray-200:      #E4E9F0;
  --color-gray-300:      #C8D2E0;
  --color-gray-400:      #8A9BB5;
  --color-gray-600:      #4A5568;
  --color-gray-800:      #1E2A3A;
  --color-text:          #1E2A3A;
  --color-text-muted:    #5A6A7E;
  --color-text-light:    #8A9BB5;
  --color-accent:        #0099FF;
  --color-accent-hover:  #0077DD;
  --color-emergency:     #C8392B;
  --color-success:       #1A7A4A;
  --color-surface:       var(--color-white);
  --color-surface-alt:   var(--color-gray-100);

  /* --- Typography --- */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  1.875rem;   /* 30px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  3.75rem;    /* 60px */
  --text-6xl:  4.5rem;     /* 72px */

  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide:  0.06em;
  --tracking-wider: 0.12em;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;
  --fw-bold:    700;

  /* --- Spacing Scale --- */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* --- Containers --- */
  --container-sm:   640px;
  --container-md:   768px;
  --container-lg:   1024px;
  --container-xl:   1200px;
  --container-2xl:  1400px;
  --container-pad:  clamp(1.25rem, 5vw, 3rem);

  /* --- Borders --- */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 999px;
  --border-color: var(--color-gray-200);

  /* --- Shadows --- */
  --shadow-sm:  0 1px 3px rgba(10,22,40,0.08), 0 1px 2px rgba(10,22,40,0.04);
  --shadow-md:  0 4px 16px rgba(10,22,40,0.10), 0 2px 6px rgba(10,22,40,0.06);
  --shadow-lg:  0 12px 40px rgba(10,22,40,0.14), 0 4px 12px rgba(10,22,40,0.08);
  --shadow-xl:  0 24px 64px rgba(10,22,40,0.18), 0 8px 24px rgba(10,22,40,0.10);
  --shadow-inset: inset 0 2px 8px rgba(10,22,40,0.08);

  /* --- Transitions --- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 280ms;
  --duration-slow: 480ms;
  --transition-base: var(--duration-base) var(--ease-out);
  --transition-slow: var(--duration-slow) var(--ease-out);

  /* --- Z-index Layers --- */
  --z-below:   -1;
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ==========================================================================
   2. RESET & NORMALIZATION
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: var(--color-blue-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl)); }
h4 { font-size: clamp(var(--text-lg), 2vw, var(--text-2xl)); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: var(--fw-semibold); }

p {
  color: var(--color-gray-600);
  line-height: var(--leading-loose);
  max-width: 70ch;
}

p + p { margin-top: var(--space-4); }

.lead {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-blue-primary);
}

.text-accent { color: var(--color-accent); }
.text-navy   { color: var(--color-navy); }
.text-muted  { color: var(--color-text-muted); }
.text-white  { color: var(--color-white); }

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--wide  { max-width: var(--container-2xl); }
.container--narrow { max-width: var(--container-md); }

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section--sm { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
.section--lg { padding-block: clamp(var(--space-20), 10vw, var(--space-32)); }

.section--dark    { background-color: var(--color-navy); }
.section--navy    { background-color: var(--color-navy-mid); }
.section--alt     { background-color: var(--color-gray-100); }
.section--blue    { background-color: var(--color-blue-pale); }

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* Stack helper */
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--space-6); }
.stack--sm > * + * { margin-top: var(--space-3); }
.stack--lg > * + * { margin-top: var(--space-10); }

/* Cluster helper */
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Split helper */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav__logo-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
    width: 236px;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

.nav__logo-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav__link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-gray-600);
  border-radius: var(--radius-md);
  transition: color var(--transition-base), background-color var(--transition-base);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-navy);
  background-color: var(--color-gray-100);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-blue-primary);
  color: var(--color-white) !important;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  transition: background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.nav__cta:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

/* Emergency bar */
.emergency-bar {
  background-color: var(--color-navy);
  padding: var(--space-2) 0;
  text-align: center;
}

.emergency-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.emergency-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.75);
}

.emergency-bar__item a {
  color: var(--color-white);
  font-weight: var(--fw-medium);
}

.emergency-bar__item a:hover { color: var(--color-blue-bright); }

.emergency-bar__badge {
  background-color: var(--color-emergency);
  color: white;
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  color: var(--color-navy);
  font-size: var(--text-lg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: var(--space-4) 0 var(--space-6);
  border-top: 1px solid var(--border-color);
}

.nav__mobile .nav__link {
  padding: var(--space-3) var(--space-4);
  border-radius: 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.nav__mobile .nav__cta {
  margin: var(--space-4) var(--space-4) 0;
  justify-content: center;
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--color-navy);
  overflow: hidden;
}

.hero--page {
  min-height: 280px;
  align-items: flex-end;
  padding-bottom: var(--space-12);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__content {
  position: relative;
  z-index: var(--z-raised);
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: rgba(0,153,255,0.15);
  border: 1px solid rgba(0,153,255,0.3);
  color: var(--color-blue-bright);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
  line-height: 1.1;
  margin-bottom: var(--space-6);
  max-width: 16ch;
}

.hero__title em {
  font-style: normal;
  color: var(--color-blue-bright);
}

.hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.75);
  line-height: var(--leading-loose);
  max-width: 52ch;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.hero__page-title {
  color: var(--color-white);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  position: relative;
  z-index: var(--z-raised);
}

.hero__page-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-blue-bright);
  margin-top: var(--space-3);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--color-blue-primary);
  color: var(--color-white);
  border-color: var(--color-blue-primary);
}
.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(0,102,204,0.35);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-blue-primary);
  border-color: var(--color-blue-primary);
}
.btn--outline-dark:hover {
  background-color: var(--color-blue-primary);
  color: var(--color-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-gray-600);
  border-color: transparent;
  padding-inline: var(--space-4);
}
.btn--ghost:hover {
  background-color: var(--color-gray-100);
  color: var(--color-navy);
}

.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
}

/* ==========================================================================
   8. CARDS
   ========================================================================== */

/* Info card (emergency / appointments / hours) */
.info-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--info-card-accent, var(--color-blue-primary));
}

.info-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.info-card__icon {
  width: 52px;
  height: 52px;
  background-color: var(--color-blue-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-blue-primary);
  margin-bottom: var(--space-5);
}

.info-card--emergency { --info-card-accent: var(--color-emergency); }
.info-card--emergency .info-card__icon {
  background-color: #FEF2F2;
  color: var(--color-emergency);
}

.info-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.info-card__phone {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.info-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: none;
}

/* Service card */
.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-blue-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  max-width: none;
}

/* Doctor card */
.doctor-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.doctor-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.doctor-card__avatar {
  width: 72px;
  height: 72px;
  background-color: var(--color-blue-pale);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: var(--text-2xl);
  color: var(--color-blue-primary);
  border: 2px solid var(--color-gray-200);
}

.doctor-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.doctor-card__role {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-blue-primary);
  margin-bottom: var(--space-4);
}

.doctor-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Facility image block */
.facility-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.facility-block:hover {
  box-shadow: var(--shadow-xl);
  transform: scale(1.01);
}

.facility-block img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.facility-block__label {
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-navy);
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

/* ==========================================================================
   9. SECTION COMPONENTS
   ========================================================================== */

/* Section heading pattern */
.section-header {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-header--centered { text-align: center; }
.section-header--centered p { margin-inline: auto; }

.section-header h2 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
}

/* Trust strip */
.trust-strip {
  background-color: var(--color-navy);
  padding: var(--space-6) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.trust-item__icon {
  color: var(--color-blue-bright);
  font-size: var(--text-xl);
}

/* Welcome / about section */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-split__visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-split__visual img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-normal);
}

.about-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: var(--color-blue-pale);
  color: var(--color-blue-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--fw-bold);
  margin-top: 1px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-12), 6vw, var(--space-16));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,153,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 { color: var(--color-white); margin-bottom: var(--space-4); }
.cta-banner p  { color: rgba(255,255,255,0.7); margin-inline: auto; margin-bottom: var(--space-8); }

/* Appointment form section */
.appointment-section {
  background: linear-gradient(135deg, var(--color-navy-mid) 0%, var(--color-navy) 100%);
  position: relative;
  overflow: hidden;
}

.appointment-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/appointment_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
}

.appointment-form-wrap {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  box-shadow: var(--shadow-xl);
}

/* Contact info split */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-blue-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-primary);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.contact-info-item__text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.contact-info-item__text span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   10. FORMS
   ========================================================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-navy);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder { color: var(--color-gray-400); }

.form-control:focus {
  outline: none;
  border-color: var(--color-blue-primary);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}

.form-control:hover:not(:focus) {
  border-color: var(--color-gray-300);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BB5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-5);
}

.form-grid--full { grid-column: 1 / -1; }

.form-feedback {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-5);
}

.form-feedback--success {
  background-color: #ECFDF5;
  color: var(--color-success);
  border: 1px solid #A7F3D0;
}

.form-feedback--error {
  background-color: #FEF2F2;
  color: var(--color-emergency);
  border: 1px solid #FECACA;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--color-navy);
  color: rgba(255,255,255,0.65);
  padding-top: clamp(var(--space-16), 8vw, var(--space-24));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.footer__tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  max-width: 32ch;
  margin-bottom: var(--space-6);
}

.footer__emergency {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-5);
}

.footer__emergency-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-emergency);
  font-weight: var(--fw-semibold);
}

.footer__emergency-number {
  font-size: var(--text-md);
  color: var(--color-white);
  font-weight: var(--fw-bold);
}

.footer-col__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-base);
}

.footer-nav a:hover { color: var(--color-white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ==========================================================================
   12. PAGE-SPECIFIC SECTIONS
   ========================================================================== */

/* Specialties sidebar layout (homepage) */
.specialties-section {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 560px;
}

.specialties-sidebar {
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.specialties-sidebar__content {
  position: relative;
  z-index: var(--z-raised);
  padding: var(--space-10) var(--space-8);
  color: var(--color-white);
}

.specialties-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.5) 100%);
}

.specialties-sidebar h2 {
  color: var(--color-white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.specialties-sidebar ul li {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.specialties-sidebar ul li::before {
  content: '→';
  color: var(--color-blue-bright);
  font-size: var(--text-xs);
}

.specialties-grid {
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  background-color: var(--color-gray-100);
}

/* Facility image masonry-like grid */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

/* ==========================================================================
   13. UTILITY CLASSES
   ========================================================================== */

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.mt-auto      { margin-top: auto; }
.mx-auto      { margin-inline: auto; }
.ml-auto      { margin-left: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden { @extend .sr-only; }

.d-flex  { display: flex; }
.d-grid  { display: grid; }
.d-none  { display: none !important; }
.d-block { display: block; }

.hidden-mobile { display: block; }
.hidden-desktop { display: none; }

.full-width { width: 100%; }

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shadow { box-shadow: var(--shadow-md); }
.rounded { border-radius: var(--radius-lg); }

/* Map embed */
.map-frame {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .specialties-section {
    grid-template-columns: 1fr;
  }

  .specialties-sidebar {
    min-height: 260px;
    align-items: flex-end;
  }
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
  }

  .about-split__visual img { height: 340px; }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta  { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile {
      display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero--page { min-height: 220px; }

  .hidden-mobile { display: none; }
  .hidden-desktop { display: block; }

  .trust-strip__inner {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }

  .appointment-form-wrap {
    padding: var(--space-6);
  }
}

/* ==========================================================================
   15. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   16. MOBILE NAV OPEN STATE (JS-toggled)
   ========================================================================== */

.nav__mobile--open {
  display: flex !important;
}

/* ==========================================================================
   17. SCROLL REVEAL ANIMATION
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}



.wa-fab {
  position: fixed;
  bottom: clamp(1.5rem, 5vw, 2rem);
  right:  clamp(1.25rem, 4vw, 2rem);
  z-index: var(--z-toast);

  /* Safe area on iOS notched devices */
  bottom: max(clamp(1.5rem, 5vw, 2rem), calc(env(safe-area-inset-bottom) + 1rem));
  right:  max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-right));

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;

  /* Entry animation, slides up + fades in */
  animation: wa-entry 0.6s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wa-entry {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Tooltip label */
.wa-fab__tooltip {
    background-color: #23cb62;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: var(--fw-medium);
    line-height: 1;
    padding: 0.45rem 0.875rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    pointer-events: none;
    border: 1px solid #fff;
    opacity: 0;
    transform: translateX(1000px);
    transition: opacity  var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.wa-fab:hover  .wa-fab__tooltip,
.wa-fab:focus-within .wa-fab__tooltip {
  opacity: 1;
  transform: translateX(25px);
}

/* Main button */
.wa-fab__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 3.5rem;    /* 56px */
  height: 3.5rem;
  border-radius: var(--radius-full);

  background: linear-gradient(145deg, #25D366 0%, #20b858 100%);
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.45),
    0 2px 6px  rgba(0, 0, 0, 0.18);

  text-decoration: none;
  cursor: pointer;
  outline: none;

  transition:
    transform  var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

/* Desktop: slightly larger */
@media (min-width: 768px) {
  .wa-fab__btn {
    width: 3.75rem;
    height: 3.75rem;
  }
}

.wa-fab__btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.55),
    0 3px 10px rgba(0, 0, 0, 0.2);
}

.wa-fab__btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    0 2px 10px rgba(37, 211, 102, 0.35),
    0 1px 4px rgba(0, 0, 0, 0.15);
  transition-duration: 80ms;
}

/* Focus ring, keyboard accessibility */
.wa-fab__btn:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}

/* Icon */
.wa-fab__icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* Pulse ring, draws attention subtly */
.wa-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2.5s 2s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 0.8; }
  70%  { transform: scale(1.55); opacity: 0;   }
  100% { transform: scale(1.55); opacity: 0;   }
}

/* Reduced motion, keep button visible, kill animations */
@media (prefers-reduced-motion: reduce) {
  .wa-fab { animation: none; }
  .wa-fab__pulse { animation: none; display: none; }
  .wa-fab__tooltip {
    opacity: 0;
    transform: none;
    transition: opacity 0.15s;
  }
  .wa-fab:hover  .wa-fab__tooltip,
  .wa-fab:focus-within .wa-fab__tooltip {
    opacity: 1;
  }
}

/* ==========================================================================
   19. BREADCRUMB NAV
   ========================================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-text-muted);
}

.breadcrumb li + li::before {
  content: '›';
  color: var(--color-gray-300);
  font-size: 1.1em;
}

.breadcrumb a {
  color: var(--color-blue-primary);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

/* Breadcrumb inside page hero (dark bg) */
.hero--page .breadcrumb a,
.hero--page .breadcrumb li { color: rgba(255,255,255,0.6); }
.hero--page .breadcrumb li + li::before { color: rgba(255,255,255,0.3); }
.hero--page .breadcrumb [aria-current="page"] { color: rgba(255,255,255,0.9); }

/* ==========================================================================
   20. SKIP TO CONTENT (accessibility)
   ========================================================================== */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: calc(var(--z-toast) + 10);
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: top 0.15s;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--color-blue-bright);
  outline-offset: 2px;
}
.wa-callout{
  position:fixed;
  bottom:24px;
  right:24px;
  width:64px;
  height:64px;
  background:#25D366;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
  z-index:9999;
  transition:transform .2s ease, box-shadow .2s ease;
}

.wa-callout:hover{
  transform:scale(1.08);
  box-shadow:0 12px 28px rgba(0,0,0,.35);
}

.wa-icon{
  width:30px;
  height:30px;
}