:root {
  --navy: #0f1c2b;
  --navy-dark: #0b1826;
  --navy-light: #13293d;
  --gold: #f8c537;
  --gold-dark: #d4a520;
  --cream: #fffaf1;
  --cream-2: #fff8e6;
  --cream-3: #fffef9;
  --ink-muted: #2f3a44;
  --gray: #9ca3af;
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  background: var(--cream);
}

a { text-decoration: none; }

/* ---------- Public site header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.site-header .navbar-brand img { height: 38px; }
.site-header .nav-link {
  color: #e7f0f9 !important;
  font-weight: 600;
  padding: .5rem 1rem !important;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--gold) !important; }
.site-header .btn-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  padding: .5rem 1.3rem;
}
.site-header .btn-cta:hover { background: var(--gold-dark); color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, #081019 100%);
  color: #fff;
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(248,197,55,.18), transparent 55%);
}
.hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); }
.hero .lead { color: #cbd9e6; font-size: 1.2rem; max-width: 620px; }
.hero .badge-gold {
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: .4rem .9rem; border-radius: 999px; letter-spacing: .03em;
}

/* ---------- Sections ---------- */
section.page-section { padding: 4.5rem 0; }
.section-cream { background: var(--cream-2); }
.section-title {
  font-weight: 800; color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.section-kicker {
  color: var(--gold-dark); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: .85rem;
}
.underline-gold {
  display: inline-block; width: 64px; height: 4px; background: var(--gold);
  border-radius: 3px; margin: .75rem 0 1.25rem;
}

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 8px 28px rgba(15,28,43,.08);
  height: 100%;
}
.stat-card .stat-num { font-weight: 800; font-size: 2.4rem; color: var(--navy); }
.stat-card .stat-num span { color: var(--gold-dark); }
.stat-card .stat-label { color: var(--ink-muted); font-weight: 600; }

.feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.8rem;
  height: 100%;
  border: 1px solid #f1e6c8;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,28,43,.1); }
.feature-card .icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem; color: var(--gold-dark);
}

.testimonial-card {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 1.8rem;
  height: 100%;
}
.testimonial-card .quote { color: var(--gold); font-size: 1.8rem; line-height: 1; }

.temp-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--navy); color: var(--gold);
  font-weight: 700; border-radius: 999px; padding: .5rem 1.1rem;
}

.img-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15,28,43,.14);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 320px;
  height: 300px;
  margin: 0 auto;
  padding: 1.25rem;
}
.img-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.img-frame.img-frame-wide { max-width: 100%; height: auto; padding: 0; }
.img-frame.img-frame-wide img { object-fit: cover; }

.cta-band {
  background: linear-gradient(120deg, var(--gold) 0%, #ffe08a 100%);
  color: var(--navy);
  border-radius: 24px;
  padding: 3rem;
}

.site-footer { background: var(--navy-dark); color: #cbd9e6; padding: 3.5rem 0 2rem; }
.site-footer a { color: #cbd9e6; }
.site-footer a:hover { color: var(--gold); }
.site-footer hr { border-color: rgba(255,255,255,.1); }

.disclaimer-box {
  background: #fff8e3;
  border: 1px solid #f1e0a8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: .92rem;
  color: var(--ink-muted);
}

/* ---------- App shells (admin/patient) ---------- */
.app-shell { min-height: 100vh; background: #f4f6f8; }
.app-topbar { background: var(--navy); color: #fff; padding: .85rem 1.5rem; }
.app-topbar a.brand { color: var(--gold); font-weight: 800; }
.app-card { background: #fff; border-radius: 14px; box-shadow: 0 6px 20px rgba(15,28,43,.06); padding: 1.5rem; }
.stat-mini { background: #fff; border-radius: 14px; padding: 1.25rem; border-left: 5px solid var(--gold); }

.article-prose h2 { font-weight: 800; color: var(--navy); margin-top: 2.2rem; font-size: 1.4rem; }
.article-prose p, .article-prose li { color: var(--ink-muted); line-height: 1.75; }
.article-prose ul, .article-prose ol { padding-left: 1.3rem; }
.article-prose table { background: #fff; }
.article-prose a { color: var(--gold-dark); font-weight: 600; text-decoration: underline; }

/* ---------- Modern article/blog cards ---------- */
.article-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15,28,43,.06), 0 12px 32px rgba(15,28,43,.07);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(15,28,43,.05);
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 10px rgba(15,28,43,.08), 0 24px 48px rgba(15,28,43,.14);
}
.article-card .article-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.article-card .article-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.article-card:hover .article-card-media img { transform: scale(1.06); }
.article-card .article-card-tag {
  position: absolute; top: .9rem; left: .9rem;
  background: rgba(15,28,43,.85);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px;
}
.article-card .article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.article-card .article-card-title {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.4;
  margin-bottom: .6rem;
  transition: color .2s ease;
}
.article-card:hover .article-card-title { color: var(--gold-dark); }
.article-card .article-card-summary {
  color: var(--ink-muted);
  font-size: .92rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}
.article-card .article-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--gray);
  padding-top: 1rem;
  border-top: 1px solid #f0ede4;
}
.article-card .article-card-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream-2); color: var(--navy);
  font-weight: 700; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.article-card:hover .article-card-arrow { background: var(--gold); transform: translateX(3px); }

/* ---------- Modern contact tiles & form ---------- */
.contact-tile {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15,28,43,.05), 0 10px 26px rgba(15,28,43,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-tile:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(15,28,43,.07), 0 20px 40px rgba(15,28,43,.1); }
.contact-tile .contact-tile-icon {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, var(--gold) 0%, #ffe08a 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 1.1rem;
  box-shadow: 0 8px 18px rgba(248,197,55,.35);
}
.contact-tile h3 { font-size: .95rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; }
.contact-tile a, .contact-tile p { color: var(--ink-muted); font-weight: 600; }
.contact-tile a:hover { color: var(--gold-dark); }

.form-modern {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(15,28,43,.05), 0 20px 50px rgba(15,28,43,.08);
}
.form-modern .form-label { font-weight: 700; color: var(--navy); font-size: .88rem; }
.form-modern .form-control, .form-modern .form-select {
  border: 1.5px solid #eae4d4;
  border-radius: 12px;
  padding: .75rem 1rem;
  background: var(--cream-3);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-modern .form-control:focus, .form-modern .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(248,197,55,.18);
  background: #fff;
}

.map-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,28,43,.05), 0 12px 32px rgba(15,28,43,.08);
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #cbd9e6; text-align: center; padding: 2rem;
}

/* ---------- Modern FAQ accordion ---------- */
.faq-accordion .accordion-item {
  border: none;
  border-radius: 16px !important;
  overflow: hidden;
  margin-bottom: .9rem;
  box-shadow: 0 1px 3px rgba(15,28,43,.05), 0 6px 18px rgba(15,28,43,.05);
}
.faq-accordion .accordion-button {
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  padding: 1.1rem 1.4rem;
  box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--cream-2);
  color: var(--navy);
}
.faq-accordion .accordion-button::after {
  filter: sepia(1) saturate(4) hue-rotate(0deg);
}
.faq-accordion .accordion-body {
  color: var(--ink-muted);
  line-height: 1.7;
  padding: 0 1.4rem 1.3rem;
  background: #fff;
}

@media (max-width: 768px) {
  section.page-section { padding: 3rem 0; }
  .cta-band { padding: 2rem 1.25rem; }
  .form-modern { padding: 1.5rem; }
}
