/* ============================================================
   Spring Heritage Hospital – Custom CSS
   Theme: Teal / Turquoise Blue-Green
   ============================================================ */

:root {
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --gold:     #d4a843;
  --gold-light: #f0c96b;
  --white:    #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --brand-shadow: 0 14px 32px rgba(7,50,44,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(15,118,110,0.98) 0%, rgba(13,148,136,0.96) 55%, rgba(45,212,191,0.92) 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-card {
  width: min(100%, 430px);
  padding: 2rem;
  border-radius: 2rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 25px 60px rgba(7,50,44,0.28);
  text-align: center;
}

.site-loader-logo-wrap {
  width: min(100%, 220px);
  height: 220px;
  margin: 0 auto 1.5rem;
  padding: 1.1rem;
  border-radius: 2rem;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 18px 40px rgba(7,50,44,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loaderFloat 2.4s ease-in-out infinite;
}

.site-loader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-loader-copy {
  color: rgba(255,255,255,0.96);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.site-loader-bar {
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.24);
}

.site-loader-progress {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.95) 45%, rgba(212,168,67,0.98) 100%);
  transform-origin: left center;
  animation: loaderProgress 6s linear forwards;
}

body.loader-active {
  overflow: hidden;
}

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

@keyframes loaderProgress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--teal-50); }
::-webkit-scrollbar-thumb { background: var(--teal-500); border-radius: 3px; }

/* ── Selection ─────────────────────────────────────────── */
::selection { background: var(--teal-300); color: var(--teal-900); }

/* ── Utility ───────────────────────────────────────────── */
.teal-gradient {
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-500) 50%, var(--teal-400) 100%);
}
.teal-gradient-light {
  background: linear-gradient(135deg, var(--teal-50) 0%, var(--teal-100) 100%);
}
.gold-text { color: var(--gold); }
.text-teal { color: var(--teal-600); }

/* ── Navbar ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 1.25rem 0;
}
#navbar.menu-open {
  z-index: 1200;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.site-logo-badge {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--brand-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.site-logo {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}
.site-brand-copy {
  display: flex;
  flex-direction: column;
}
.brand-text-main {
  color: white;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.brand-text-sub {
  color: var(--teal-200);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(13,148,136,0.12);
  padding: 0.75rem 0;
}
#navbar.scrolled .site-logo-badge {
  background: rgba(255,255,255,0.98);
  border-color: rgba(13,148,136,0.12);
  box-shadow: 0 10px 24px rgba(13,148,136,0.14);
}
#navbar.scrolled .brand-text-main { color: var(--teal-800); }
#navbar.scrolled .brand-text-sub { color: var(--teal-600); }
#navbar.scrolled .nav-link { color: var(--gray-800); }
#navbar.scrolled .nav-link:hover { color: var(--teal-600); }
#navbar.scrolled .nav-cta { background: var(--teal-600); color: white; }
#navbar.scrolled .mobile-menu-toggle,
#navbar.menu-open .mobile-menu-toggle {
  color: var(--teal-800);
  background: rgba(240,253,250,0.95);
  border-color: rgba(13,148,136,0.18);
}

.nav-link {
  position: relative;
  color: white;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  background: var(--gold);
  color: var(--teal-900);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,168,67,0.35);
}

/* ── Mobile Menu ───────────────────────────────────────── */
.mobile-menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  transition: all 0.25s ease;
}
.mobile-menu-toggle span {
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
#mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(86vw, 360px);
  height: 100dvh;
  max-width: 100vw;
  z-index: 1202;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-104%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, visibility 0.22s ease;
}
#mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1201;
  background: rgba(15,23,42,0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}
.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255,255,255,0.98);
  border-right: 1px solid rgba(13,148,136,0.12);
  border-radius: 0 24px 24px 0;
  box-shadow: 28px 0 70px rgba(15,23,42,0.26);
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.mobile-menu-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem;
  border-bottom: 1px solid var(--teal-100);
  background: linear-gradient(135deg, var(--teal-50), #ffffff);
}
.mobile-menu-head .brand-text-main {
  color: var(--teal-800);
}
.mobile-menu-head .brand-text-sub {
  color: var(--teal-600);
}
.mobile-menu-close {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--teal-100);
  border-radius: 14px;
  background: white;
  color: var(--teal-800);
  transition: background 0.2s ease, transform 0.2s ease;
}
.mobile-menu-close:hover {
  background: var(--teal-50);
  transform: scale(1.03);
}
html.mobile-menu-open,
body.mobile-menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.28rem 0.85rem;
  padding: 0.92rem 1rem;
  color: var(--gray-800);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: all 0.2s;
}
.mobile-link::after {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}
.mobile-link:hover,
.mobile-link.active {
  background: var(--teal-50);
  border-color: var(--teal-100);
  color: var(--teal-700);
}
.mobile-link.active::after {
  background: var(--teal-500);
}
.mobile-menu-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--teal-100);
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 28%);
}
.mobile-call-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 0.95rem;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-800);
  text-decoration: none;
  border: 1px solid var(--teal-100);
}
.mobile-call-link span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mobile-call-link strong {
  font-size: 0.95rem;
}

@media (max-width: 1279px) {
  #navbar {
    padding: 0.9rem 0;
  }
  #navbar.menu-open {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(13,148,136,0.12);
  }
  #navbar.menu-open .brand-text-main {
    color: var(--teal-800);
  }
  #navbar.menu-open .brand-text-sub {
    color: var(--teal-600);
  }
}

@media (max-width: 420px) {
  .site-brand {
    gap: 0.55rem;
  }
  .site-logo-badge {
    width: 2.65rem;
    height: 2.65rem;
  }
  .brand-text-main {
    font-size: 0.94rem;
  }
  .brand-text-sub {
    font-size: 0.6rem;
  }
  .mobile-menu-toggle {
    width: 2.55rem;
    height: 2.55rem;
  }
}

/* ══════════════════════════════════════════════════════════
   PAGE HERO — inner pages (About / Services / Insurance / Contact)
══════════════════════════════════════════════════════════ */
.page-hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 9rem 1rem 5rem;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.05);
  animation: hero-zoom 20s ease-in-out infinite alternate;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,50,44,0.82) 0%, rgba(7,50,44,0.65) 60%, rgba(7,50,44,0.85) 100%);
}
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-200);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 1.2rem;
}
.page-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-hero-sub {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.84);
}

.about-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 220px;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(240,253,250,0.95), rgba(255,255,255,0.98));
  border: 1px solid var(--teal-100);
  box-shadow: 0 20px 45px rgba(13,148,136,0.12);
}

.about-logo-image {
  width: 100%;
  max-width: 360px;
  max-height: 180px;
  object-fit: contain;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   HERO — Premium Medical
══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Real photo backdrop */
.hero-photo-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?w=1600&q=85');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  animation: hero-zoom 18s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.10); }
}

/* Layered gradient: deep teal from left, fades right, dark at bottom */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,  rgba(7,50,44,0.97) 0%,  rgba(7,50,44,0.88) 40%, rgba(7,50,44,0.55) 70%, rgba(7,50,44,0.20) 100%),
    linear-gradient(0deg,   rgba(7,50,44,0.70) 0%,  transparent 50%);
}

/* Subtle dot-grid texture on top */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  animation: float-particle 9s infinite ease-in-out;
}
@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1);    opacity: 0.4; }
  50%       { transform: translateY(-50px) scale(1.3); opacity: 0.9; }
}

/* Large decorative cross — bottom-right, rotated */
.hero-cross-wrap {
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 360px;
  height: 360px;
  opacity: 0.04;
  transform: rotate(12deg);
  pointer-events: none;
}
.hero-cross-svg { width: 100%; height: 100%; }

/* Inner layout padding */
.hero-inner {
  padding-top: 9rem;
  padding-bottom: 5rem;
  position: relative;
}

/* ── Pill / top badge ─────────────────────────────────────── */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-200);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  animation: hero-fade-down 0.7s ease both;
}
.hero-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 0 rgba(45,212,191,0.6);
  animation: pill-ping 2s infinite;
}
@keyframes pill-ping {
  0%  { box-shadow: 0 0 0 0   rgba(45,212,191,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(45,212,191,0);   }
  100%{ box-shadow: 0 0 0 0   rgba(45,212,191,0);   }
}

/* ── Headline ─────────────────────────────────────────────── */
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  animation: hero-fade-up 0.8s 0.1s ease both;
}
.hero-headline-accent {
  color: var(--gold);
  display: inline-block;
  position: relative;
}
.hero-headline-accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}
.hero-cursor {
  color: var(--gold);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* ── Sub-headline ─────────────────────────────────────────── */
.hero-sub {
  font-size: 1.05rem;
  color: rgba(204,251,241,0.85);
  line-height: 1.75;
  max-width: 32rem;
  margin-bottom: 2.2rem;
  animation: hero-fade-up 0.8s 0.2s ease both;
}

/* ── CTA Row ──────────────────────────────────────────────── */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  animation: hero-fade-up 0.8s 0.3s ease both;
}
.hero-cta-primary {
  padding: 0.9rem 2rem;
  font-size: 0.97rem;
  gap: 0.6rem;
  box-shadow: 0 8px 32px rgba(212,168,67,0.35);
}
.hero-cta-call {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.4rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(12px);
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}
.hero-cta-call:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.hero-call-ring {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(20,184,166,0.5);
  animation: call-ring 2.5s infinite;
}
@keyframes call-ring {
  0%  { box-shadow: 0 0 0 0   rgba(20,184,166,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(20,184,166,0); }
  100%{ box-shadow: 0 0 0 0   rgba(20,184,166,0); }
}
.hero-call-label  { display: block; font-size: 0.7rem; opacity: 0.7; }
.hero-call-number { display: block; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; }

/* ── Trust badges ─────────────────────────────────────────── */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  animation: hero-fade-up 0.8s 0.4s ease both;
}
.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}
.hero-trust-badge:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}

/* ── Photo card (right side) ──────────────────────────────── */
.hero-photo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
  animation: hero-fade-up 0.9s 0.25s ease both;
}
.hero-photo-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}
.hero-photo-card:hover .hero-photo-card-img { transform: scale(1.05); }
.hero-photo-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
}

/* ── Stat cards (2×2 grid below photo) ───────────────────── */
.hero-stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 1.1rem 1rem;
  text-align: center;
  transition: all 0.3s;
  animation: hero-fade-up 0.9s 0.4s ease both;
}
.hero-stat-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.25);
}
.hero-stat-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.6rem;
}
.hero-stat-number {
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-200);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Stat pill badges (2×2 compact) ──────────────────────── */
.hero-stat-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.hero-stat-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  transition: all 0.25s;
  cursor: default;
}
.hero-stat-pill:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}
.hero-stat-pill-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hero-stat-pill-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal-200);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* ── Scroll hint ──────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: hero-fade-up 1s 0.8s ease both;
}
.hero-scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero-scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0%   { transform: translateY(0);    opacity: 1;   }
  100% { transform: translateY(14px); opacity: 0;   }
}

/* ── Entry animations ─────────────────────────────────────── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes hero-fade-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0);     }
}

/* ── Floating Badges (legacy compat) ─────────────────────── */
.floating-badge { animation: badge-float 3s ease-in-out infinite; }
.floating-badge:nth-child(2) { animation-delay: 0.5s; }
.floating-badge:nth-child(3) { animation-delay: 1s;   }
@keyframes badge-float {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-8px); }
}

/* ── Section Headings ──────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--teal-200);
  margin-bottom: 1rem;
}
.section-tag .dot {
  width: 6px; height: 6px;
  background: var(--teal-500);
  border-radius: 50%;
}

/* ── Service Cards ─────────────────────────────────────── */
.service-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--teal-100);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(13,148,136,0.15);
  border-color: var(--teal-200);
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}
.service-card:hover .service-icon svg {
  animation: icon-pulse 0.5s ease;
}

/* ── Stat Counter ──────────────────────────────────────── */
.counter {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.counter-suffix {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

/* ── Insurance Badge ───────────────────────────────────── */
.insurance-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--teal-100);
  transition: all 0.3s;
}
.insurance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,148,136,0.12);
}

/* ── News Cards ────────────────────────────────────────── */
.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--teal-100);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(13,148,136,0.15);
}
.news-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.08); }
.news-category {
  display: inline-block;
  background: var(--teal-600);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-600);
  color: white;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
}
.btn-primary:hover {
  background: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13,148,136,0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--teal-600);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--teal-600);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
}
.btn-outline:hover {
  background: var(--teal-600);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13,148,136,0.25);
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--teal-900);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,168,67,0.4);
}

/* ── Scroll Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Contact Form ──────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  color: var(--teal-800);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--teal-100);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--teal-50);
  transition: all 0.3s;
  outline: none;
  font-family: inherit;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal-500);
  background: white;
  box-shadow: 0 0 0 4px rgba(20,184,166,0.1);
}
.form-textarea { resize: vertical; min-height: 130px; }

.appointment-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.65fr);
  gap: 0.75rem;
}

.appointment-picker-field {
  position: relative;
}

.appointment-picker-field .form-input,
.appointment-picker-field .form-select {
  min-height: 52px;
  padding-left: 3rem;
  background-color: white;
  border-color: var(--teal-200);
}

.appointment-picker-field .form-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--teal-700) 50%),
    linear-gradient(135deg, var(--teal-700) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 22px,
    calc(100% - 16px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.8rem;
}

.appointment-picker-field .appointment-time {
  cursor: pointer;
}

.appointment-picker-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  z-index: 1;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--teal-700);
  transform: translateY(-50%);
  pointer-events: none;
}

.appointment-picker-icon svg {
  width: 100%;
  height: 100%;
}

.editor-shell {
  border: 2px solid var(--teal-100);
  border-radius: 16px;
  overflow: hidden;
  background: white;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.9rem;
  background: var(--teal-50);
  border-bottom: 1px solid var(--teal-100);
}

.editor-tool {
  border: 1px solid var(--teal-100);
  background: white;
  color: var(--teal-800);
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.editor-tool:hover {
  background: var(--teal-100);
  border-color: var(--teal-200);
}

.editor-surface {
  min-height: 320px;
  padding: 1rem 1.1rem;
  outline: none;
  line-height: 1.8;
  color: #374151;
}

.editor-surface:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
}

.editor-surface ul,
.editor-surface ol {
  padding-left: 1.5rem;
}

.editor-surface blockquote {
  border-left: 4px solid var(--teal-400);
  padding-left: 1rem;
  color: var(--teal-800);
  font-style: italic;
}

.editor-surface figure {
  margin: 1.25rem 0;
}

.editor-surface img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--teal-100);
}

.editor-surface figcaption {
  min-height: 1.4rem;
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.85rem;
  text-align: center;
}

/* ── Map Section ───────────────────────────────────────── */
.map-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 3px solid var(--teal-200);
}

/* ── Footer ────────────────────────────────────────────── */
footer a { transition: color 0.2s; }
footer a:hover { color: var(--teal-300); }
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.footer-brand .site-logo-badge {
  width: 4rem;
  height: 4rem;
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.98);
}
.footer-brand .brand-text-main {
  font-size: 1.15rem;
  color: white;
}
.footer-brand .brand-text-sub {
  color: var(--teal-300);
}

/* ── Pulse Ring ────────────────────────────────────────── */
.pulse-ring {
  position: relative;
  display: inline-flex;
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--teal-400);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Page Header ───────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 60%, var(--teal-500) 100%);
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: white;
  clip-path: ellipse(60% 100% at 50% 100%);
}

/* ── Article Content ───────────────────────────────────── */
.article-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--teal-800); margin: 2rem 0 1rem; }
.article-content h3 { font-size: 1.2rem; font-weight: 600; color: var(--teal-700); margin: 1.5rem 0 0.75rem; }
.article-content p  { line-height: 1.8; color: #374151; margin-bottom: 1.25rem; }
.article-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; color: #374151; line-height: 1.8; }
.article-content figure { margin: 2rem 0; }
.article-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}
.article-content figcaption {
  margin-top: 0.7rem;
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
}
.article-content blockquote {
  border-left: 4px solid var(--teal-500);
  padding: 1rem 1.5rem;
  background: var(--teal-50);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--teal-800);
  margin: 1.5rem 0;
 }

 /* ── Admin ─────────────────────────────────────────────── */
 .admin-app {
   background:
     radial-gradient(circle at top right, rgba(45,212,191,0.08), transparent 28%),
     linear-gradient(180deg, #f5f7f6 0%, #eef2f1 100%);
   color: #1f2937;
 }

 .admin-main {
   position: relative;
 }

 .admin-page {
   padding: 1.75rem;
 }

 .admin-page-header {
   display: flex;
   flex-direction: column;
   gap: 1rem;
   margin-bottom: 1.75rem;
 }

 .admin-page-eyebrow {
   font-size: 0.72rem;
   font-weight: 700;
   letter-spacing: 0.16em;
   text-transform: uppercase;
   color: #0f766e;
 }

 .admin-page-lead {
   color: #6b7280;
   font-size: 0.96rem;
 }

 .admin-page-actions {
   display: flex;
   flex-wrap: wrap;
   gap: 0.75rem;
   align-items: center;
 }

 .admin-panel {
   background: rgba(255,255,255,0.9);
   border: 1px solid rgba(148,163,184,0.18);
   border-radius: 20px;
   box-shadow: 0 10px 30px rgba(15,23,42,0.05);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
 }

 .admin-panel-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 1rem;
   padding: 1.15rem 1.5rem;
   border-bottom: 1px solid rgba(148,163,184,0.14);
 }

 .admin-sidebar-shell {
   background: linear-gradient(180deg, #163934 0%, #122f2b 100%);
   border-right: 1px solid rgba(255,255,255,0.08);
   box-shadow: 18px 0 42px rgba(15,23,42,0.16);
 }

 .admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.82rem 0.95rem;
  border-radius: 14px;
  color: rgba(226,232,240,0.84);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.22s ease;
 }
 .admin-sidebar-link:hover,
 .admin-sidebar-link.active {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border-color: rgba(255,255,255,0.1);
  transform: translateX(2px);
 }
 .admin-sidebar-section-label {
  color: rgba(226,232,240,0.42);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0 0.95rem;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
 }
 .admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245,247,246,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 8px 24px rgba(15,23,42,0.04);
 }
 .admin-topbar-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
 }
 .admin-topbar-title strong {
  font-size: 0.92rem;
  color: #0f172a;
 }
 .admin-topbar-title span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
 }
 .admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
 }
 .admin-kpi-card {
  padding: 1.4rem;
 }
 .admin-kpi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
 }
 .admin-kpi-icon {
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.7);
 }
 .admin-kpi-value {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 800;
  color: #111827;
 }
 .admin-kpi-label {
  font-size: 0.94rem;
  font-weight: 700;
  color: #374151;
  margin-top: 0.4rem;
 }
 .admin-kpi-sub {
  font-size: 0.79rem;
  color: #6b7280;
  margin-top: 0.25rem;
 }
 .admin-avatar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
 }
 .admin-avatar-circle {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #164e48;
  color: white;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
 }
  .admin-table th {
  background: rgba(248,250,252,0.9);
  color: #475569;
  font-weight: 700;
  padding: 0.95rem 1rem;
  text-align: left;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  }
  .admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(226,232,240,0.72);
  vertical-align: middle;
  }
  .admin-table tr:last-child td { border-bottom: none; }
 .admin-table tr:hover td { background: rgba(248,250,252,0.9); }
  .admin-brand .site-logo-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  }
  .admin-brand .brand-text-main {
  color: white;
  font-size: 0.95rem;
  }
  .admin-brand .brand-text-sub {
  color: rgba(191,219,254,0.7);
  letter-spacing: 0.14em;
  }
  .admin-brand-topbar .site-logo-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.95rem;
  border-color: rgba(148,163,184,0.2);
  box-shadow: 0 8px 18px rgba(15,23,42,0.06);
  }
  .admin-brand-topbar .brand-text-main {
  color: #0f172a;
  font-size: 0.9rem;
  }
  .admin-brand-topbar .brand-text-sub {
  color: #64748b;
  letter-spacing: 0.12em;
  }
  
  /* ── Tag Pill ──────────────────────────────────────────── */
  .tag-pill {
  display: inline-block;
  background: #ecf5f4;
  color: #0f5d56;
  border: 1px solid rgba(15,118,110,0.1);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  margin: 0.2rem;
  }

 .admin-link-arrow {
  color: #0f766e;
  font-size: 0.87rem;
  font-weight: 700;
 }

 .admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
 }

 .admin-status-badge.is-published,
 .admin-status-badge.is-active {
  background: #e7f8ef;
  color: #166534;
 }

 .admin-status-badge.is-draft {
  background: #fff4dd;
  color: #b45309;
 }

 .admin-pagination-link {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(255,255,255,0.88);
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
 }

 .admin-pagination-link:hover {
  background: #f8fafc;
  border-color: rgba(15,118,110,0.18);
  color: #0f766e;
 }

 .admin-pagination-link.active {
  background: #164e48;
  color: #ffffff;
  border-color: #164e48;
 }

 .admin-empty-state {
  padding: 2.8rem 1rem;
  text-align: center;
  color: #94a3b8;
 }

 @media (max-width: 1024px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
 }

 @media (max-width: 640px) {
  .admin-page {
    padding: 1rem;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel-header {
    padding: 1rem 1.1rem;
  }
 }

 /* ── Toast Notification ────────────────────────────────── */
 .toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--teal-700);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  font-weight: 500;
  display: flex; align-items: center; gap: 0.75rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #dc2626; }

/* ── Back to Top ───────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: var(--teal-600);
  color: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(13,148,136,0.4);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
  z-index: 900;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--teal-700); transform: translateY(-3px); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .counter { font-size: 2.2rem; }
  .site-logo-badge {
    width: 2.9rem;
    height: 2.9rem;
  }
  .brand-text-main {
    font-size: 1rem;
  }
  .brand-text-sub {
    font-size: 0.65rem;
  }
 }

/* ── Pillar Cards ──────────────────────────────────────────── */
.pillar-card {
  transition: all 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.12);
  border-color: var(--teal-300) !important;
}
.pillar-card:hover .pillar-icon {
  animation: icon-pulse 0.5s ease;
}
@keyframes icon-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25) rotate(-8deg); }
  70%  { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ── Loading Skeleton ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0fdfa 25%, #ccfbf1 50%, #f0fdfa 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Gallery */
.gallery-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--teal-200);
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.gallery-filter:hover,
.gallery-filter.active {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #ffffff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.gallery-card-button {
  position: relative;
  width: 100%;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  border: none;
  border-radius: 8px;
  background: #0f172a;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}
.gallery-card-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}
.gallery-card-button:hover img {
  transform: scale(1.06);
}
.gallery-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 25%, rgba(15,23,42,0.82) 100%);
}
.gallery-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem;
  color: #ffffff;
}
.gallery-card-copy strong {
  font-size: 1.05rem;
  line-height: 1.25;
}
.gallery-card-copy span:last-child {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  line-height: 1.4;
}
.gallery-card-category {
  width: fit-content;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(20,184,166,0.9);
  color: #ffffff !important;
  font-size: 0.7rem !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(2, 6, 23, 0.86);
}
.gallery-lightbox.open {
  display: flex;
}
.gallery-lightbox-inner {
  width: min(1040px, 100%);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.gallery-lightbox-inner img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #020617;
}
.gallery-lightbox-copy {
  padding: 1rem 1.25rem;
}
.gallery-lightbox-copy span {
  display: block;
  color: var(--teal-700);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.gallery-lightbox-copy strong {
  display: block;
  color: #0f172a;
  font-size: 1.2rem;
}
.gallery-lightbox-copy p {
  margin-top: 0.35rem;
  color: #64748b;
}
.gallery-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: #0f172a;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card-button {
    min-height: 250px;
  }
}

/* Mobile hardening */
img,
svg,
video,
canvas {
  max-width: 100%;
}

a,
button,
input,
textarea,
select,
.btn-primary,
.btn-outline,
.btn-gold,
.nav-link,
.mobile-link,
.admin-sidebar-link,
.gallery-card-copy strong,
.gallery-card-copy span,
.article-content,
.editor-surface {
  overflow-wrap: anywhere;
}

.btn-primary,
.btn-outline,
.btn-gold {
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.admin-mobile-nav {
  display: none;
  gap: 0.5rem;
  margin-top: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.admin-mobile-nav a {
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15,118,110,0.14);
  background: rgba(255,255,255,0.8);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-mobile-nav a.active,
.admin-mobile-nav a:hover {
  background: #164e48;
  border-color: #164e48;
  color: #ffffff;
}

@media (max-width: 1023px) {
  .admin-mobile-nav {
    display: flex;
  }
}

.admin-table {
  min-width: 760px;
}

.admin-panel.overflow-hidden {
  overflow-x: auto !important;
}

.admin-panel,
.service-card,
.news-card,
.insurance-card,
.gallery-card,
.article-content,
.editor-shell {
  min-width: 0;
}

@media (max-width: 1279px) {
  .hero-section {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  .hero-scroll-hint {
    display: none;
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 0.72rem 0;
  }

  .site-loader-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  .site-loader-logo-wrap {
    height: 160px;
    max-width: 160px;
    border-radius: 1.25rem;
  }

  .page-hero-section,
  .page-header {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }

  .page-hero-title,
  .hero-headline {
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.08;
  }

  .page-hero-sub,
  .hero-sub {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7,50,44,0.94) 0%, rgba(7,50,44,0.84) 54%, rgba(7,50,44,0.92) 100%);
  }

  .hero-photo-bg,
  .page-hero-bg {
    background-position: center center;
  }

  .hero-cta-row,
  .page-hero-section .flex.justify-center {
    align-items: stretch;
  }

  .hero-cta-row > *,
  .page-hero-section .btn-gold,
  .page-hero-section .btn-outline {
    width: 100%;
  }

  .hero-cta-call {
    justify-content: center;
  }

  .hero-trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-trust-badge {
    justify-content: center;
    text-align: center;
    padding: 0.55rem 0.65rem;
  }

  .hero-stat-pills {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.35rem;
  }

  .insurance-card {
    align-items: flex-start;
    padding: 1.15rem;
  }

  .news-card-img {
    height: 180px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
  }

  .appointment-picker {
    grid-template-columns: 1fr;
  }

  .editor-toolbar {
    gap: 0.4rem;
    padding: 0.65rem;
  }

  .editor-tool {
    flex: 1 1 auto;
    min-width: max-content;
    padding: 0.5rem 0.65rem;
  }

  .editor-surface {
    min-height: 240px;
  }

  .article-content figure,
  .article-content img {
    margin-left: 0;
    margin-right: 0;
  }

  .article-hero-image {
    height: 340px !important;
  }

  .article-body {
    font-size: 0.98rem !important;
    line-height: 1.75 !important;
  }

  .gallery-lightbox {
    padding: 0.8rem;
  }

  .gallery-lightbox-inner {
    max-height: 88vh;
  }

  .gallery-lightbox-close {
    top: 0.55rem;
    right: 0.55rem;
  }

  .admin-topbar {
    padding: 0.8rem 1rem !important;
  }

  .admin-topbar .btn-primary {
    padding: 0.62rem 0.82rem;
    font-size: 0.82rem;
  }

  .admin-page-header,
  .admin-panel-header {
    align-items: stretch;
  }

  .admin-page-actions {
    width: 100%;
  }

  .admin-page-actions > * {
    width: 100%;
  }

  .admin-table {
    min-width: 680px;
  }
}

@media (max-width: 480px) {
  .brand-text-main {
    max-width: 12rem;
    white-space: normal;
  }

  .hero-inner {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .hero-pill,
  .section-tag,
  .page-hero-tag {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .hero-trust-row {
    grid-template-columns: 1fr;
  }

  .article-hero-image {
    height: 280px !important;
  }

  .article-hero-image h1 {
    font-size: 1.75rem !important;
  }

  .counter {
    font-size: 2rem;
  }

  .counter-suffix {
    font-size: 1.15rem;
  }

  .admin-kpi-card {
    padding: 1rem;
  }

  .admin-kpi-value {
    font-size: 1.75rem;
  }

  #back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
  }
}

/* Mobile polish: prevent overflow, improve tap comfort, and keep long content fluid. */
html,
body {
  max-width: 100%;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

iframe {
  display: block;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  body {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }

  section {
    scroll-margin-top: 5.5rem;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand-copy {
    min-width: 0;
  }

  .brand-text-main,
  .brand-text-sub,
  .hero-headline,
  .page-hero-title,
  .section-title,
  .news-card h3,
  .service-card h3 {
    overflow-wrap: anywhere;
  }

  .mobile-menu-panel {
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-link,
  .mobile-call-link,
  .btn-primary,
  .btn-gold,
  .btn-outline,
  .hero-cta-call {
    min-height: 44px;
  }

  .sticky.top-0 {
    top: 4.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .py-24 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .py-20 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .gap-16 {
    gap: 2.5rem !important;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-particles,
  .hero-cross-wrap {
    display: none;
  }

  .hero-cta-row {
    width: 100%;
  }

  .hero-cta-row > a {
    text-align: center;
  }

  .hero-call-number,
  .mobile-call-link strong {
    word-break: keep-all;
  }

  .hero-photo-card,
  .news-card,
  .service-card,
  .insurance-card,
  .gallery-card,
  .admin-panel {
    border-radius: 1rem;
  }

  .relative[style*="height: 500px"] {
    height: 320px !important;
  }

  .absolute.-bottom-6,
  .absolute.-right-6,
  .absolute.-top-5,
  .absolute.-left-5 {
    transform: scale(0.9);
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  #mobile-menu {
    width: min(90vw, 340px);
  }

  .mobile-menu-head .site-brand {
    gap: 0.65rem;
    min-width: 0;
  }

  .mobile-menu-head .site-logo-badge {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.85rem;
  }

  .mobile-menu-head .brand-text-main {
    font-size: 1rem;
  }

  .mobile-menu-head .brand-text-sub {
    font-size: 0.66rem;
  }

  .page-hero-section,
  .page-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-headline,
  .page-hero-title {
    font-size: clamp(1.85rem, 11vw, 2.35rem);
  }

  .hero-sub,
  .page-hero-sub {
    font-size: 0.94rem;
  }

  .hero-cta-row,
  .mobile-menu-actions {
    gap: 0.65rem;
  }

  .relative[style*="height: 500px"] {
    height: 260px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
