:root {
  --forest-900: #0f2d2f;
  --forest-700: #1a4b4e;
  --teal-500: #2a9aa1;
  --sage-300: #c6e6dd;
  --lime-400: #9ad34c;
  --sun-200: #fdecc8;
  --sand-100: #f7f3ea;
  --ink-900: #0b1114;
  --ink-600: #3e4b52;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(15, 45, 47, 0.18);
  --ring: 0 0 0 4px rgba(42, 154, 161, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: linear-gradient(140deg, #f7f3ea 0%, #e9f6f2 45%, #f8f0ff 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
iframe { width: 100%; border: 0; border-radius: 18px; min-height: 320px; }

/* Accessibility helpers */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
  z-index: 1000;
}
.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--shadow), var(--ring);
}
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-in { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-panel .badge,
  .pulse-once::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .search-panel,
  .testimonial-card,
  .section-header h3::after {
    transition: none !important;
  }
}

/* Layout chrome */
.page { position: relative; overflow: hidden; }
.glow {
  position: absolute;
  inset: -200px auto auto -240px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(42, 154, 161, 0.3), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.ribbon {
  position: absolute;
  top: 220px;
  right: -240px;
  width: 520px;
  height: 320px;
  background: linear-gradient(120deg, rgba(154, 211, 76, 0.4), transparent 70%);
  transform: rotate(-12deg);
  border-radius: 120px;
  z-index: 0;
}
.container { width: min(1180px, 92vw); margin: 0 auto; position: relative; z-index: 1; }

header { position: sticky; top: 0; z-index: 50; padding: 14px 0 12px; }

.top-alert {
  background: rgba(15, 45, 47, 0.92);
  color: var(--white);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  margin-bottom: 12px;
}
.top-alert strong { font-weight: 700; }
.top-alert a { text-decoration: underline; font-weight: 600; }

.masthead {
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(15, 45, 47, 0.2);
  flex: 0 0 auto;
}
.brand h1 {
  font-family: "Cinzel", serif;
  font-size: 1.55rem;
  margin: 0;
  letter-spacing: 0.8px;
}
.brand span {
  display: block;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 4px;
  color: var(--ink-600);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}

.search {
  position: relative;
  min-width: 240px;
  max-width: 420px;
  flex: 1 1 280px;
  transition: max-width 0.25s ease;
}
.search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(26, 75, 78, 0.18);
  padding: 12px 16px;
  padding-left: 42px;
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.95rem;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.search:focus-within { max-width: 480px; }
.search:focus-within input {
  background: var(--white);
  box-shadow: var(--ring);
}
.search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-600);
  font-size: 1rem;
  pointer-events: none;
}
.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: var(--white);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.search-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink-600);
}
.search-panel a:hover { background: rgba(198, 230, 221, 0.5); color: var(--forest-900); }
.search:focus-within .search-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s ease;
}
.nav a:hover { background: var(--sage-300); }
.nav a.active { background: rgba(198, 230, 221, 0.7); }

/* Content */
.hero {
  padding: 42px 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  align-items: center;
}
.hero h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  margin: 0 0 16px;
  color: var(--forest-900);
}
.hero p {
  margin: 0 0 20px;
  line-height: 1.7;
  color: var(--ink-600);
  font-size: 1.08rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--forest-700);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(15, 45, 47, 0.25);
}
.btn-primary:hover { background: var(--forest-900); }
.btn-outline {
  border-color: var(--forest-700);
  color: var(--forest-700);
  background: transparent;
}
.btn-outline:hover { background: rgba(198, 230, 221, 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 75, 78, 0.14);
  color: var(--forest-900);
}

.hero-panel {
  background: var(--white);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.hero-panel .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--sand-100);
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  animation: float-in 0.8s ease forwards;
}
.hero-panel .badge:nth-of-type(2) { animation-delay: 0.12s; }
.hero-panel .badge:nth-of-type(3) { animation-delay: 0.22s; }
.hero-panel .badge:nth-of-type(4) { animation-delay: 0.32s; }

.quick-actions {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 18px;
}
.quick-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(15, 45, 47, 0.12);
  border: 1px solid rgba(26, 75, 78, 0.12);
  display: grid;
  gap: 8px;
}
.quick-card strong { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(198, 230, 221, 0.6);
  color: var(--forest-900);
  transition: transform 0.2s ease;
}
.pill:hover { transform: translateY(-2px); }

section { padding: 58px 0; }
.section-header { display: grid; gap: 12px; margin-bottom: 22px; }
.section-header .kicker { text-transform: uppercase; letter-spacing: 4px; color: var(--forest-700); font-weight: 700; font-size: 0.8rem; }
.section-header h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  color: var(--forest-900);
  position: relative;
}
.section-header h3::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  margin-top: 12px;
  background: currentColor;
  opacity: 0.35;
  border-radius: 999px;
  transition: width 0.6s ease;
}
.section-header.is-visible h3::after { width: 64px; }
.section-header p { margin: 0; color: var(--ink-600); max-width: 620px; line-height: 1.65; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  transition: transform 0.25s ease;
  position: relative;
}
.card:hover { transform: translateY(-6px); }
.card::after {
  content: "+";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--forest-700);
  background: rgba(198, 230, 221, 0.6);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.card:hover::after { opacity: 1; transform: translateY(0); }
.tag { text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; font-weight: 800; color: var(--forest-700); }

.metrics { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.metric {
  background: linear-gradient(130deg, #ffffff 0%, #e6f6f1 100%);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(26, 75, 78, 0.12);
}
.metric strong { display: block; font-size: 2rem; color: var(--forest-700); }

.strip {
  background: var(--forest-900);
  color: var(--white);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 16px;
}
.strip-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.strip span { font-weight: 700; }

.pathway { display: grid; gap: 16px; position: relative; }
.pathway::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(26, 75, 78, 0.18);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.8s ease;
}
.pathway.in-view::before { transform: scaleY(1); }
.pathway-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(15, 45, 47, 0.12);
}
.pathway-step {
  background: var(--sage-300);
  color: var(--forest-900);
  font-weight: 800;
  text-align: center;
  border-radius: 14px;
  padding: 10px 6px;
}

.highlight {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}
.highlight-card {
  background: var(--sun-200);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 32px rgba(15, 45, 47, 0.15);
}
.highlight-card ul { margin: 0; padding-left: 18px; color: var(--ink-600); display: grid; gap: 8px; }
.hint { color: var(--ink-600); font-size: 0.9rem; line-height: 1.5; }

/* Doctors directory */
.filters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
}
.filters label { font-weight: 700; color: var(--ink-600); font-size: 0.9rem; }
.filters select, .filters input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(26, 75, 78, 0.2);
  font-family: inherit;
  background: rgba(255, 255, 255, 0.92);
}
.directory { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.profile {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 36px rgba(15, 45, 47, 0.12);
  border: 1px solid rgba(26, 75, 78, 0.12);
  display: grid;
  gap: 10px;
}
.profile strong { display: block; font-size: 1.05rem; }
.profile .meta { color: var(--ink-600); font-size: 0.95rem; line-height: 1.5; }
.profile .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(198, 230, 221, 0.65);
  color: var(--forest-900);
  font-weight: 700;
  font-size: 0.85rem;
}
.empty-state {
  display: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(26, 75, 78, 0.25);
  border-radius: 18px;
  padding: 18px;
  color: var(--ink-600);
}

/* Locations */
.map-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

/* Contact */
.contact {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.contact label { font-weight: 700; color: var(--ink-600); font-size: 0.9rem; }
.field { display: grid; gap: 8px; }
.contact input, .contact textarea, .contact select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(26, 75, 78, 0.2);
  font-family: inherit;
  background: rgba(255, 255, 255, 0.92);
}
.contact textarea { min-height: 120px; resize: vertical; }
.error-text { display: none; color: #8b1f2a; font-weight: 700; font-size: 0.9rem; }
.field-error input, .field-error select, .field-error textarea {
  border-color: rgba(139, 31, 42, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 31, 42, 0.12);
}
.field-error .error-text { display: block; }
.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(198, 230, 221, 0.65);
  border: 1px solid rgba(26, 75, 78, 0.12);
  color: var(--forest-900);
  font-weight: 700;
}
.form-status.show { display: block; }

/* Footer */
footer { background: var(--forest-900); color: var(--white); padding: 48px 0 36px; }
.footer-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 48px; height: 48px; border-radius: 12px; }

/* Animations */
.animate-in {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes float-in { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-ring {
  0% { opacity: 0; transform: scale(0.9); }
  40% { opacity: 0.5; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.12); }
}
.pulse-once { position: relative; display: inline-block; }
.pulse-once::after {
  content: "";
  position: absolute;
  inset: -6px -10px;
  border-radius: 999px;
  border: 2px solid rgba(154, 211, 76, 0.6);
  opacity: 0;
  animation: pulse-ring 2.4s ease 1;
}

.testimonial-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.carousel-track { overflow: hidden; position: relative; min-height: 160px; }
.testimonial-card {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: absolute;
  inset: 0;
}
.testimonial-card.is-active { opacity: 1; transform: translateX(0); }
.carousel-btn {
  border: 0;
  background: rgba(198, 230, 221, 0.6);
  color: var(--forest-900);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.carousel-btn:hover { background: rgba(198, 230, 221, 0.85); }

/* Mobile */
@media (max-width: 900px) {
  header { padding: 12px 0 10px; }
  .masthead { grid-template-columns: 1fr; align-items: flex-start; }
  .header-actions { justify-content: flex-start; }
  .nav { justify-content: flex-start; }
  .search { min-width: 100%; }
  body { padding-bottom: 78px; }
  .testimonial-carousel { grid-template-columns: 1fr; }
  .carousel-btn { width: 100%; }
}

@media (max-width: 1100px) {
  .masthead { grid-template-columns: 1fr; }
  .header-actions { justify-content: flex-start; }
  .search { max-width: 100%; }
}

.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: none;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.mobile-bar .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mobile-bar a {
  text-align: center;
  padding: 10px 10px;
  border-radius: 14px;
  font-weight: 800;
  background: rgba(198, 230, 221, 0.55);
}
.mobile-bar a.primary { background: var(--forest-700); color: var(--white); }
@media (max-width: 900px) { .mobile-bar { display: block; } }
