@charset "UTF-8";


:root {
  --navy: #0d2240;
  --navy-mid: #163461;
  --blue: #1a5fa8;
  --blue-light: #2b7fd4;
  --accent: #e8472a;
  --teal: #0e8a7a;
  --cream: #f7f4ef;
  --warm-white: #fdfcfa;
  --text: #1a1a2e;
  --text-muted: #5a6072;
  --border: #ddd8d0;
  --shadow: 0 2px 20px rgba(13,34,64,0.1);
  --shadow-lg: 0 8px 48px rgba(13,34,64,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--cream);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── WRAPPER ── */
#wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--warm-white);
  box-shadow: var(--shadow-lg);
}

/* ── HEADER ── */
header#top {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 1.5rem;
  gap: 1rem;
  border-bottom: 3px solid var(--blue);
}

#hero {
  padding: 0.75rem 0;
  flex-shrink: 0;
}

#hero img {
  height: 72px;
  width: auto;
  display: block;
}

/* ── NAV ── */
nav#mainnav {
  min-width: 0;
}

nav#mainnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}

nav#mainnav a {
  display: block;
  padding: 1.05rem 0.7rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

nav#mainnav a:hover,
nav#mainnav a:focus {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

nav#mainnav a.thispage {
  color: #fff;
  border-bottom-color: var(--blue-light);
}

/* ── HERO BANNER ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--blue) 100%);
  padding: 4rem 2.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 40%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(26,95,168,0.15);
  pointer-events: none;
}

.page-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  font-weight: 400;
  line-height: 1.2;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.page-hero .subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

/* ── MAIN CONTENT ── */
article#main {
  padding: 3rem 2.5rem 4rem;
  max-width: 820px;
}

article#main p {
  margin-bottom: 1.1rem;
  color: var(--text);
  font-weight: 300;
  font-size: 1rem;
}

article#main p:empty { display: none; }

article#main a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(26,95,168,0.3);
  transition: border-color 0.2s, color 0.2s;
}

article#main a:hover {
  color: var(--blue-light);
  border-bottom-color: var(--blue-light);
}

/* ── DOCTOR CARDS ── */
.doctor-card {
  margin-bottom: 2.5rem;
  padding: 2rem 2rem 1.75rem;
  border-left: 4px solid var(--blue);
  background: var(--cream);
  border-radius: 0 8px 8px 0;
  transition: box-shadow 0.2s, transform 0.2s;
}

.doctor-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(2px);
}

.doctor-card h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.doctor-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 0 !important;
  font-weight: 300;
}

/* ── HOME PAGE ── */
.home-intro {
  padding: 3.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.home-intro p {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 300;
  max-width: 720px;
  margin-bottom: 1rem;
}

.home-intro p:last-child { margin-bottom: 0; }

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
  background: var(--border);
}

.home-card {
  background: var(--warm-white);
  padding: 2.5rem 2rem;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.home-card:hover { background: var(--cream); }

.home-card .card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.home-card .card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
  display: block;
}

.home-card h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.home-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

.home-card .card-arrow {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── LINKS PAGE ── */
.links-list {
  list-style: none;
  padding: 0;
}

.links-list li {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.links-list li:first-child { padding-top: 0; }

.links-list a {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none !important;
  border-bottom: none !important;
}

.links-list a:hover .link-title { color: var(--blue-light) !important; }

.link-badge {
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 0.15em;
}

.link-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue);
  transition: color 0.2s;
  line-height: 1.4;
}

.link-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ── FEATURED LINK (links page) ── */
.link-featured {
  background: #edf4fc;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.link-featured .featured-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.link-featured a {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none !important;
  border-bottom: none !important;
}

.link-featured a:hover .link-title { color: var(--blue-light) !important; }

.link-featured .link-title {
  font-size: 1.1rem;
}

.link-featured .link-desc {
  color: var(--text);
}

/* ── CONTACT ── */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 560px;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  color: var(--blue);
}

.contact-item h2 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.contact-item p, .contact-item a {
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  border-bottom: none !important;
}

.contact-item a {
  color: var(--blue) !important;
}

/* ── FOOTER ── */
footer#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer#footer span {
  color: rgba(255,255,255,0.25);
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  header#top {
    flex-direction: column;
    padding: 0 1rem;
    gap: 0;
  }

  #hero { padding: 0.75rem 0 0; }

  #hero img { height: 58px; }

  nav#mainnav ul {
    width: 100%;
    justify-content: center;
  }

  nav#mainnav a {
    padding: 0.85rem 0.9rem;
    font-size: 0.72rem;
  }

  .page-hero { padding: 2.5rem 1.25rem 2rem; }

  article#main { padding: 2rem 1.25rem 3rem; }

  .home-intro { padding: 2rem 1.25rem; }

  .home-cards { grid-template-columns: 1fr; }

  footer#footer { padding: 1.25rem; }
}

/* ── INFO SECTIONS (used across families, referrers, FAQ pages) ── */
.info-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.info-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.info-section h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.info-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.02em;
}
.info-section p {
  color: var(--text);
  font-weight: 300;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}
.info-section p:last-child { margin-bottom: 0; }
.info-section ul, .info-section ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.info-section li {
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* ── CALLOUT BOXES ── */
.callout {
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.callout-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1em; }
.callout-icon svg { width: 22px; height: 22px; display: block; color: var(--blue); }
.callout.teal .callout-icon svg { color: var(--teal); }
.callout.warm .callout-icon svg { color: var(--accent); }
.callout-body { flex: 1; }
.callout-body strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.callout-body p {
  margin-bottom: 0 !important;
  font-size: 0.93rem;
}
.callout.blue { background: #edf4fc; border-left: 4px solid var(--blue); }
.callout.teal { background: #e8f6f4; border-left: 4px solid var(--teal); }
.callout.warm { background: #fdf3ee; border-left: 4px solid var(--accent); }

/* ── FAQ ACCORDION ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  line-height: 1.4;
}
.faq-question:hover { color: var(--blue); }
.faq-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  font-weight: 300;
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 680px;
}
.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-item.open .faq-answer { display: block; }

/* ── FAQ CATEGORY LABEL ── */
.faq-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 2.5rem 0 0.25rem;
  padding-top: 0.5rem;
}
.faq-category:first-child { margin-top: 0; }

/* ── REFERRAL STEP LIST ── */
.steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
.steps li {
  counter-increment: steps;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.steps li::before {
  content: counter(steps);
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15em;
}

/* ── CAPABILITY GRID ── */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.capability-item {
  background: var(--warm-white);
  padding: 1.1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.capability-item::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── "Last reviewed" note ── */
.reviewed-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* ── Homepage intro credibility line ── */
.home-intro .intro-lead {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 400;
  font-family: 'DM Serif Display', Georgia, serif;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* ── SKIP LINK (keyboard accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 6px 6px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── PRINT STYLES ── */
@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  #wrapper {
    max-width: none;
    box-shadow: none;
  }
  header#top,
  nav#mainnav,
  footer#footer,
  .skip-link,
  .home-cards,
  .card-arrow {
    display: none !important;
  }
  .page-hero {
    background: none;
    padding: 0 0 1rem;
  }
  .page-hero::before,
  .page-hero::after {
    display: none;
  }
  .page-hero h1 {
    color: #000;
    font-size: 22pt;
  }
  .page-hero .subtitle {
    color: #333;
  }
  article#main {
    padding: 0;
    max-width: none;
  }
  .callout {
    border: 1px solid #999;
    background: #fff !important;
    page-break-inside: avoid;
  }
  .doctor-card {
    background: #fff;
    border-left: 2px solid #000;
    page-break-inside: avoid;
    box-shadow: none;
  }
  .info-section {
    page-break-inside: avoid;
    border-bottom-color: #ccc;
  }
  /* Expand all FAQ answers when printing */
  .faq-answer {
    display: block !important;
  }
  .faq-chevron {
    display: none;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  /* Show link URLs for external references */
  article#main a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
    word-break: break-all;
  }
  .link-featured {
    border: 1px solid #999;
    background: #fff;
    page-break-inside: avoid;
  }
}
