/* ─── Design tokens ─────────────────────────────────────── */
:root {
  --ink: #16233b;        /* deep navy — text & header */
  --ink-soft: #46536b;
  --paper: #ffffff;
  --mist: #f3f6f9;       /* section alt background */
  --line: #dde4ec;
  --brand: #A40B7C;      /* logo magenta — primary action */
  --brand-dark: #7E085F;
  --amber: #c47b1f;      /* small accents only */
  --radius: 10px;
  --maxw: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.alt { background: var(--mist); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ─── Top bar ───────────────────────────────────────────── */
.topbar {
  background: var(--ink);
  color: #cfd8e6;
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; }

/* ─── Header / nav ──────────────────────────────────────── */
.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-logo { max-height: 56px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.brand-sub { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-soft); font-weight: 500; padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { color: var(--brand); text-decoration: none; background: var(--mist); }
.nav a.active { color: var(--brand); font-weight: 600; }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; font-size: 1.2rem; cursor: pointer;
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 230px; padding: 6px; display: none;
  box-shadow: 0 12px 30px rgba(22, 35, 59, 0.12);
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 9px 12px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
  }
  .nav.open { display: flex; }
  .dropdown-menu { position: static; display: block; box-shadow: none; border: none; padding-left: 16px; }
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(160deg, rgba(22, 35, 59, 0.92) 0%, rgba(31, 58, 95, 0.85) 70%, rgba(36, 80, 122, 0.8) 100%),
    url("../images/hero.jpg") center / cover no-repeat,
    linear-gradient(160deg, #16233b 0%, #1f3a5f 70%, #24507a 100%);
  color: #fff;
  padding: 84px 0;
}
.hero p.lede { color: #c8d5e6; max-width: 640px; margin: 18px 0 28px; font-size: 1.1rem; }
.hero .eyebrow {
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem;
  color: #F2A9D8; font-weight: 600;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { border-color: #F2A9D8; color: #F2A9D8; }
.hero .btn-outline:hover { background: #F2A9D8; color: var(--ink); }

/* ─── Cards / grids ─────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card .card-link { display: inline-block; margin-top: 12px; font-weight: 600; }

.check-list { list-style: none; }
.check-list li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700;
}

/* ─── Page header ───────────────────────────────────────── */
.page-header { background: var(--mist); border-bottom: 1px solid var(--line); padding: 44px 0; }
.page-header .crumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; }

/* ─── Testimonials ──────────────────────────────────────── */
.testimonial { border-left: 4px solid var(--brand); padding-left: 20px; }
.testimonial blockquote { font-family: var(--font-display); font-size: 1.05rem; }
.testimonial figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 0.9rem; }
.testimonial figcaption strong { color: var(--ink); }

/* ─── Tables (doctor profile) ───────────────────────────── */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--mist); font-weight: 600; }

/* ─── Tabs ──────────────────────────────────────────────── */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0; }
.tabs button {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 8px 18px; font-size: 0.92rem; font-weight: 500; cursor: pointer; color: var(--ink-soft);
}
.tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ─── Blog ──────────────────────────────────────────────── */
.post-meta { color: var(--ink-soft); font-size: 0.85rem; margin: 6px 0 12px; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.notice {
  background: #fdf6ec; border: 1px solid #ecd9b8; border-radius: var(--radius);
  padding: 16px 20px; font-size: 0.92rem; color: #6b5424;
}

/* ─── CTA band ──────────────────────────────────────────── */
.cta-band { background: var(--brand); color: #fff; }
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px;
}
.cta-band .btn { background: #fff; color: var(--brand-dark); }

/* ─── Footer ────────────────────────────────────────────── */
.footer { background: var(--ink); color: #b9c5d8; padding: 56px 0 28px; font-size: 0.93rem; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; }
.footer a { color: #dbe4f0; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #2b3b58; margin-top: 40px; padding-top: 20px; font-size: 0.82rem; color: #8a99b3; }

/* ─── Embeds ────────────────────────────────────────────── */
.embed-frame { width: 100%; min-height: 640px; border: 1px solid var(--line); border-radius: var(--radius); }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
