/* =============================================
   Emergency Rooms 24 — Global Stylesheet
   Brand colours:  Blue #1a4b8c  |  Red #cc2200
   ============================================= */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

:root {
  --er-blue: #1a4b8c;
  --er-blue-dark: #122f5a;
  --er-blue-light: #2560b0;
  --er-red: #cc2200;
  --er-red-dark: #a01a00;
  --er-red-light: #e63000;
  --white: #ffffff;
  --off-white: #f4f7fb;
  --light-grey: #e8edf4;
  --mid-grey: #8899aa;
  --dark: #0d1b2e;
  --text: #1e2d3d;
  --shadow: 0 4px 24px rgba(26, 75, 140, .12);
  --shadow-lg: 0 8px 40px rgba(26, 75, 140, .18);
  --radius: 10px;
  --radius-lg: 18px;
  --transition: all .25s ease;
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent sideways scrolling / pinch-zoom triggered by any overflow */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ─── Typography ─────────────────────────────── */
h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

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

.text-blue {
  color: var(--er-blue);
}

.text-red {
  color: var(--er-red);
}

.text-white {
  color: var(--white);
}

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

/* ─── Layout ─────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 50px 0;
}

.section-lg {
  padding: 110px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-gap {
  gap: 16px;
}

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--er-red);
  color: var(--white);
  border-color: var(--er-red);
}

.btn-primary:hover {
  background: var(--er-red-dark);
  border-color: var(--er-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 34, 0, .35);
}

.btn-secondary {
  background: var(--er-blue);
  color: var(--white);
  border-color: var(--er-blue);
}

.btn-secondary:hover {
  background: var(--er-blue-dark);
  border-color: var(--er-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 75, 140, .35);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--er-blue);
}

.btn-outline-blue {
  background: transparent;
  color: var(--er-blue);
  border-color: var(--er-blue);
}

.btn-outline-blue:hover {
  background: var(--er-blue);
  color: var(--white);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(204, 34, 0, .5);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(204, 34, 0, 0);
  }
}

/* ─── Navbar ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(26, 75, 140, .1);
  height: 72px;
  transition: box-shadow .3s ease;
}

.navbar.scrolled {
  background: #ffffffde;
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 4px 28px rgba(26, 75, 140, .15);
}

.navbar .container {
  height: 100%;
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo sizing — mobile default */
.navbar-logo img {
  height: 71px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--er-blue);
  background: var(--off-white);
}

/* ─── Dropdown (submenu) ─────────────────────── */
.navbar-nav li.has-dropdown {
  position: relative;
}

.dropdown-caret {
  font-size: .8rem;
  margin-left: 3px;
  transition: transform .25s ease;
}

/* Hide the mobile-only toggle button on desktop */
.dropdown-toggle {
  display: none;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 232px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 75, 140, .18);
  border: 1px solid var(--light-grey);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 1001;
}

/* Bridge the gap so the menu doesn't close when moving the cursor down */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.navbar-nav li.has-dropdown:hover > .dropdown-menu,
.navbar-nav li.has-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-nav li.has-dropdown:hover > a .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--off-white);
  color: var(--er-blue);
}

.dropdown-menu a .fa {
  color: var(--er-blue);
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.navbar-emergency {
  background: var(--er-red);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
}

.navbar-emergency:hover {
  background: var(--er-red-dark) !important;
  color: var(--white) !important;
}

/* Hamburger toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

/* Hamburger → X when open */
.navbar-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Large-screen logo (≥1148px) ────────────── */
@media (min-width: 1148px) {
  .navbar {
    overflow: visible;
  }

  /* Large logo — smooth transition on both properties */
  .navbar-logo img {
    height: 101px;
    margin-top: 34px;
    transition: height .4s cubic-bezier(.4, 0, .2, 1),
      margin-top .4s cubic-bezier(.4, 0, .2, 1);
  }

  /* Shrink logo once user starts scrolling */
  .navbar.scrolled .navbar-logo img {
    height: 71px;
    margin-top: 0;
  }
}

/* ─── Emergency Bar ──────────────────────────── */
.emergency-bar {
  background: var(--er-red);
  color: var(--white);
  padding: 10px 0;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  margin-top: 72px;
  /* clear the fixed navbar */
}

.emergency-bar a {
  color: var(--white);
  /* text-decoration: underline; */
  text-decoration: none;
}

.emergency-bar .bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* Desktop items (hidden on mobile) */
.bar-text,
.bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mobile CTA block (hidden on desktop) */
.bar-mobile-cta {
  display: none;
  align-items: center;
  width: 100%;
}

.bar-mobile-label {
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}

.bar-mobile-btns {
  display: flex;
  gap: 8px;
  width: 100%;
}

.bar-mobile-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, .18);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.bar-mobile-btn:hover {
  background: rgba(255, 255, 255, .32);
}

.bar-mobile-btn-wa {
  background: #029F3D;
  border-color: #25D366;
}

/* Solid brand-coloured mobile CTA buttons */
.bar-mobile-btn-blue {
  background: var(--er-blue);
  border-color: var(--er-blue);
  color: var(--white);
}

.bar-mobile-btn-blue:hover {
  background: var(--er-blue-dark);
}

.bar-mobile-btn-red {
  background: var(--er-red);
  border-color: var(--er-red);
  color: var(--white);
}

.bar-mobile-btn-red:hover {
  background: var(--er-red-dark);
}

/* ─── Hero ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--er-blue-dark) 0%, var(--er-blue) 60%, #1e5fa3 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, .25);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 span {
  color: #ffcc00;
}

.hero p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stat span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #ffcc00;
}

.hero-stat p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
  margin: 0;
}

.hero-card-stack {
  position: relative;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-card h3 {
  color: var(--er-blue);
  margin-bottom: 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero-cta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--light-grey);
}

.hero-cta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-cta-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.icon-red {
  background: #fff0ed;
}

.icon-blue {
  background: #edf3fc;
}

.icon-green {
  background: #edfaf2;
}

.hero-cta-item .label {
  font-size: .78rem;
  color: var(--mid-grey);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hero-cta-item .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.hero-cta-item a.value {
  color: var(--er-red);
}

/* ─── Section Headers ────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header .kicker {
  display: inline-block;
  background: var(--off-white);
  color: var(--er-blue);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid var(--light-grey);
}

.section-header h2 {
  margin-bottom: 16px;
  color: var(--dark);
}

.section-header p {
  color: var(--mid-grey);
  font-size: 1.05rem;
  margin: 0;
}

/* ─── Cards ──────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
  transition: var(--transition);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.card-icon-red {
  background: #fff0ed;
}

.card-icon-blue {
  background: #edf3fc;
}

.card-icon-green {
  background: #edfaf2;
}

.card-icon-gold {
  background: #fffbea;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.card p {
  color: var(--mid-grey);
  font-size: .95rem;
}

/* ─── Service Cards ──────────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
  transition: var(--transition);
}

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

.service-card-img {
  height: 180px;
  background: var(--er-blue);
  position: relative;
  overflow: hidden;
}

.service-card-img .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--er-blue-dark), var(--er-blue));
  font-size: 3.5rem;
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  color: var(--dark);
  margin-bottom: 8px;
}

.service-card-body p {
  color: var(--mid-grey);
  font-size: .9rem;
  margin-bottom: 16px;
}

.service-tag {
  display: inline-block;
  background: var(--off-white);
  color: var(--er-blue);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  margin: 2px;
  border: 1px solid var(--light-grey);
}

/* Linked service card (whole card is clickable) */
a.service-card,
a.service-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.service-card-link:hover {
  border-color: var(--er-blue);
}

.service-card-more {
  margin-top: 14px;
  color: var(--er-blue);
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}

a.service-card-link:hover .service-card-more {
  gap: 12px;
}

.service-card-more .fa {
  font-size: .8rem;
}

/* Image-only card (empty body hidden): the image keeps its chosen aspect
   ratio as its natural size, and only GROWS to fill the card if a taller
   neighbour stretches the grid row — so no blank strip, and no distortion
   when every card in the row is image-only. */
.service-card-imgonly {
  display: flex;
  flex-direction: column;
}

.service-card-imgonly .service-card-img {
  flex: 1 0 auto;
}

/* ─── Service card promo box (fills the last empty grid cell) ─── */
.service-card-promo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 36px 28px;
}

.service-card-promo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 320px;
}

.service-card-promo-tagline {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.service-card-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.service-card-promo-btn:hover {
  filter: brightness(.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13, 27, 46, .28);
}

.service-card-promo-btn .fa {
  font-size: .82rem;
  transition: transform .2s ease;
}

.service-card-promo-btn:hover .fa {
  transform: translateX(3px);
}

/* ─── Service card "Read more" button ─────────── */
.service-card-btn-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.service-card-btn-row.service-card-btn-right {
  justify-content: flex-end;
}

.service-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.service-card-btn:hover {
  filter: brightness(.88);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 27, 46, .22);
}

.service-card-btn .fa {
  font-size: .78rem;
  transition: transform .2s ease;
}

.service-card-btn:hover .fa {
  transform: translateX(3px);
}

/* Invisible mode: whole card linked; hovering shows a dark overlay with the
   button label centred in white over the image. */
.service-card-img {
  position: relative;
}

.service-card-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 46, .62);
  opacity: 0;
  transition: opacity .25s ease;
}

.service-card-hover-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(6px);
  transition: transform .25s ease;
}

a.service-card-link:hover .service-card-hover-overlay,
a.map-card-link:hover .service-card-hover-overlay {
  opacity: 1;
}

a.service-card-link:hover .service-card-hover-overlay span,
a.map-card-link:hover .service-card-hover-overlay span {
  transform: translateY(0);
}

/* Map Embed card that is a link — behave like a card, lift on hover */
a.map-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

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

/* ─── Feature Glass (glass cards on solid brand bg) ─── */
.feature-glass {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.feature-glass::before {
  /* subtle decorative glow */
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 70%);
  pointer-events: none;
}

.feature-glass .section-header {
  position: relative;
  z-index: 1;
}

.kicker-glass {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .25) !important;
}

.glass-card {
  position: relative;
  z-index: 1;
  display: block;
  padding: 32px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
}

.glass-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
  transition: transform .3s ease;
}

.glass-card:hover .glass-card-icon {
  transform: scale(1.1);
}

.glass-card-icon .fa {
  color: #fff;
}

.glass-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.glass-card p {
  font-size: .92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
  margin: 0;
}

.glass-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.glass-card-tags span {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .9);
}

.glass-card-more {
  margin-top: 18px;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}

a.glass-card:hover .glass-card-more {
  gap: 12px;
}

/* Service Glass Cards: icon + name + description + a real Read More button
   (used instead of the tags row on this variant). */
.glass-card-btncard {
  display: flex;
  flex-direction: column;
}

.glass-card-btncard p {
  flex: 1;
}

.glass-card-readmore-btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  transition: background .25s ease, border-color .25s ease, gap .2s ease;
}

.glass-card-readmore-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--er-blue-dark);
  gap: 12px;
}

.glass-card-readmore-btn:hover .fa {
  color: var(--er-blue-dark);
}

/* ─── Split Feature (image + content + floating glass card) ─── */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-feature-rev .split-feature-media {
  order: 2;
}

.split-feature-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.split-feature-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.split-feature-glass {
  position: absolute;
  left: 24px;
  bottom: -28px;
  right: 24px;
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(13, 27, 46, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 12px 40px rgba(13, 27, 46, .25);
}

.split-feature-stat {
  flex: 1;
  text-align: center;
  color: var(--white);
}

.split-feature-stat + .split-feature-stat {
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.split-feature-stat .sf-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.split-feature-stat .sf-label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .75);
  margin-top: 4px;
}

.split-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin: 4px 0 24px;
}

.split-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .92rem;
  color: var(--text);
}

.split-feature-list li .fa {
  color: var(--er-blue);
  margin-top: 3px;
}

@media (max-width: 768px) {
  .split-feature {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .split-feature-rev .split-feature-media {
    order: 0;
  }

  .split-feature-media img {
    height: 320px;
  }

  .split-feature-list {
    grid-template-columns: 1fr;
  }

  .feature-glass {
    padding: 64px 0;
  }
}

/* ─── Service Showcase (alternating editorial rows) ─── */
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
}

.showcase-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-bottom: 64px;
  margin-bottom: 64px;
  position: relative;
}

.showcase-row:not(.showcase-row-last) {
  border-bottom: 1px solid var(--light-grey);
}

.showcase-num {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--light-grey);
  font-variant-numeric: tabular-nums;
  align-self: flex-start;
  padding-top: 6px;
}

.showcase-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.showcase-row:hover .showcase-media img {
  transform: scale(1.04);
}

.showcase-body h3 {
  color: var(--dark);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.showcase-body p {
  color: var(--mid-grey);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--er-red);
  font-weight: 700;
  font-size: .92rem;
  transition: gap .2s ease;
}

.showcase-link:hover {
  gap: 13px;
}

/* Reversed row: media and body swap sides via grid order */
.showcase-row-rev .showcase-media { order: 3; }
.showcase-row-rev .showcase-body  { order: 2; }
.showcase-row-rev .showcase-num   { order: 1; }

@media (max-width: 900px) {
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .showcase-num {
    font-size: 2.2rem;
  }

  .showcase-row-rev .showcase-media,
  .showcase-row-rev .showcase-body,
  .showcase-row-rev .showcase-num {
    order: initial;
  }

  .showcase-media {
    aspect-ratio: 16 / 10;
  }
}

/* ─── Emergency Strip ────────────────────────── */
.emergency-strip {
  background: linear-gradient(90deg, var(--er-red-dark) 0%, var(--er-red) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.emergency-strip h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.emergency-strip p {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.emergency-nums {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

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

.emergency-num .num {
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
}

.emergency-num .lbl {
  font-size: .8rem;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── Medical Aid Section ────────────────────── */
.aid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.aid-badge {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  cursor: default;
}

.aid-badge:hover {
  border-color: var(--er-blue);
  color: var(--er-blue);
  background: var(--off-white);
}

/* ─── Testimonials ───────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
}

.stars {
  color: #f5a623;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.testimonial-card p {
  color: var(--text);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--er-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info span {
  display: block;
  font-weight: 700;
  font-size: .92rem;
}

.author-info small {
  color: var(--mid-grey);
  font-size: .8rem;
}

/* ─── Bg Variants ────────────────────────────── */
.bg-off-white {
  background: var(--off-white);
}

.bg-blue {
  background: var(--er-blue);
}

.bg-dark {
  background: var(--dark);
}

/* ─── Footer ─────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 64px;
  margin-bottom: 9px;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: .88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--white);
}

.social-link:hover {
  background: var(--er-red);
}

/* ─── Page Hero (inner pages) ────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--er-blue-dark) 0%, var(--er-blue) 100%);
  padding: 60px 0 70px;
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, .7);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .sep {
  opacity: .4;
}

/* ─── Font Awesome icon helpers ─────────────── */
.fa {
  vertical-align: middle;
}

/* Spacing after icons used inline with text */
.bar-link .fa,
.bar-mobile-btn .fa,
.bar-text .fa,
.btn .fa,
.navbar-emergency .fa,
.footer-col a .fa,
.contact-row .fa {
  margin-right: 7px;
}

/* Hero quick-contact card icon size */
.hero-cta-item .icon .fa {
  font-size: 1.25rem;
  color: inherit;
}

/* Emergency strip large icon */
.emergency-num .num .fa {
  font-size: 2rem;
}

/* WhatsApp float icon */
.whatsapp-float .fa {
  font-size: 1.6rem;
  line-height: 1;
}

/* Social link icon */
.social-link .fa {
  font-size: 1rem;
}

/* ─── Rich text (Text + Image paragraphs) ─────── */
.rich-text > :last-child {
  margin-bottom: 0;
}

.rich-text p {
  margin-bottom: 12px;
}

.rich-text ul,
.rich-text ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.rich-text ul {
  list-style: disc;
}

.rich-text ol {
  list-style: decimal;
}

.rich-text li {
  margin-bottom: 6px;
}

.rich-text h3,
.rich-text h4 {
  color: var(--dark);
  margin-bottom: 8px;
}

.rich-text a {
  color: var(--er-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text a:hover {
  color: var(--er-red);
}

.rich-text blockquote {
  border-left: 3px solid var(--er-blue);
  padding-left: 16px;
  margin: 0 0 14px;
  font-style: italic;
}

/* ─── Misc ───────────────────────────────────── */
.divider {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--er-blue), var(--er-red));
  width: 60px;
  margin: 16px auto 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  color: var(--er-blue);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .4);
  font-size: 1.7rem;
  color: var(--white);
  transition: var(--transition);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .5);
}

/* ─── Accordion ──────────────────────────────── */
.accordion-item {
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-header {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--off-white);
}

.accordion-header.open {
  color: var(--er-blue);
  background: var(--off-white);
}

.accordion-body {
  padding: 0 24px 18px;
  color: var(--mid-grey);
  font-size: .95rem;
  display: none;
}

.accordion-body.open {
  display: block;
}

/* ─── Contact Form ───────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-grey);
  border-radius: 8px;
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--er-blue);
  box-shadow: 0 0 0 3px rgba(26, 75, 140, .1);
}

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

/* ─── Map Embed ──────────────────────────────── */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

/* ─── Mobile nav slide animations ────────────── */
@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes navItemOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-22px);
  }
}

@keyframes navPanelIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {

  /* Mobile emergency bar: hide desktop text/links, show compact CTA */
  .bar-text,
  .bar-link {
    display: none;
  }

  .bar-mobile-cta {
    display: flex;
  }

  .section,
  .section-sm {
    padding: 56px 0;
  }

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

  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-card-stack {
    margin-top: 32px;
  }

  .hero-stats {
    gap: 24px;
  }

  .emergency-nums {
    gap: 24px;
  }

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

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

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

  /* ─── Mobile nav panel ──── */
  .navbar-toggle {
    display: flex;
  }

  .navbar-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    /* items left-aligned */
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 8px 24px 28px;
    gap: 0;
    box-shadow: 0 12px 40px rgba(26, 75, 140, .16);
    border-top: 3px solid var(--er-red);
  }

  /* Panel fade+drop when opening */
  .navbar-nav.open {
    display: flex;
    animation: navPanelIn .22s ease both;
  }

  /* Each item slides in from the left, staggered */
  .navbar-nav.open li {
    width: 100%;
    opacity: 0;
    border-bottom: 1px solid var(--light-grey);
    animation: navItemIn .28s ease forwards;
  }

  .navbar-nav.open li:last-child {
    border-bottom: none;
  }

  /* Stagger delays */
  .navbar-nav.open li:nth-child(1) {
    animation-delay: .06s;
  }

  .navbar-nav.open li:nth-child(2) {
    animation-delay: .12s;
  }

  .navbar-nav.open li:nth-child(3) {
    animation-delay: .18s;
  }

  .navbar-nav.open li:nth-child(4) {
    animation-delay: .24s;
  }

  .navbar-nav.open li:nth-child(5) {
    animation-delay: .30s;
  }

  .navbar-nav.open li:nth-child(6) {
    animation-delay: .36s;
  }

  /* Reverse stagger when closing */
  .navbar-nav.closing li {
    animation: navItemOut .18s ease forwards !important;
  }

  .navbar-nav.closing li:nth-child(6) {
    animation-delay: .00s !important;
  }

  .navbar-nav.closing li:nth-child(5) {
    animation-delay: .05s !important;
  }

  .navbar-nav.closing li:nth-child(4) {
    animation-delay: .10s !important;
  }

  .navbar-nav.closing li:nth-child(3) {
    animation-delay: .15s !important;
  }

  .navbar-nav.closing li:nth-child(2) {
    animation-delay: .20s !important;
  }

  .navbar-nav.closing li:nth-child(1) {
    animation-delay: .25s !important;
  }

  /* Nav link style in mobile */
  .navbar-nav a {
    display: block;
    padding: 16px 0;
    font-size: 1.08rem;
    letter-spacing: .01em;
    border-radius: 0;
    background: transparent !important;
  }

  .navbar-nav a:hover,
  .navbar-nav a.active {
    color: var(--er-blue);
    background: transparent !important;
    padding-left: 6px;
  }

  .navbar-emergency {
    display: inline-flex !important;
    margin-top: 16px;
    padding: 13px 24px !important;
    border-radius: 8px !important;
    font-size: 1rem;
    background: var(--er-red) !important;
    color: var(--white) !important;
  }

  /* ── Mobile dropdown (accordion) ── */
  .navbar-nav li.has-dropdown {
    position: relative;
  }

  /* Hide the desktop hover caret; show a tappable toggle button instead */
  .dropdown-caret {
    display: none;
  }

  .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 56px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
  }

  .dropdown-toggle .fa {
    transition: transform .25s ease;
  }

  .navbar-nav li.has-dropdown.open > .dropdown-toggle .fa {
    transform: rotate(180deg);
  }

  /* Submenu is a collapsed accordion; expands when parent li has .open */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 8px 12px;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .dropdown-menu::before {
    display: none;
  }

  .navbar-nav li.has-dropdown.open > .dropdown-menu {
    max-height: 500px;
  }

  .dropdown-menu a {
    padding: 12px 0 12px 4px;
    font-size: 1rem;
    border-left: 2px solid var(--light-grey);
    padding-left: 14px;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .emergency-nums {
    flex-direction: column;
    gap: 20px;
  }
}