﻿/* ── HERO ── */
.phys-hero {
  background: linear-gradient(135deg, var(--teal) 0%, #002535 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.phys-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='0.8' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.phys-hero-inner { position: relative; z-index: 1; }
.phys-hero-inner .eyebrow { color: var(--peach); }
.phys-hero-layout { display: block; }
.phys-hero h1,
.phys-hero-title { color: white; margin-bottom: 20px; line-height: 1.15; }
.phys-hero-title span { display: block; white-space: nowrap; }
.phys-hero h1 em { font-style: italic; color: var(--teal-light); }
.phys-hero-sub { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 600px; margin-bottom: 36px; line-height: 1.7; }
.phys-hero-copy .phys-hero-sub { margin-bottom: 1rem; }
.phys-hero-copy .phys-hero-sub:last-child { margin-bottom: 36px; }
.phys-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-mid); }
.btn-outline-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.65); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: white; }
.btn-outline-teal { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: white; }
.phys-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 40px;
}
.phys-stat { padding-right: 32px; }
.phys-stat:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.10); margin-right: 32px; }
.phys-stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.phys-stat-num em { font-style: normal; font-size: 1.2rem; color: var(--teal-light); }
.phys-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.phys-stat-cite { color: inherit; text-decoration: none; }

/* ── SECTION ANCHOR NAV ── */
.phys-section-nav {
  background: var(--teal-xlight);
  border-bottom: 1px solid rgba(0,57,74,0.10);
  position: sticky;
  top: 64px;
  z-index: 50;
}
.phys-section-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.phys-section-link {
  padding: 12px 10px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.phys-section-link:not(:first-child)::before {
  content: '|';
  color: var(--text-soft);
  margin-right: 10px;
  font-weight: 400;
  pointer-events: none;
}
.phys-section-link:hover { color: var(--teal); border-bottom-color: var(--teal-light); }
.phys-section-link.active { color: var(--teal); border-bottom-color: var(--teal); }

.why-section,
.why-physicians-section,
.clinical-questions-section,
.refer-section,
.ordering-section {
  scroll-margin-top: calc(64px + 3.5rem);
}

/* ── CLINICAL RATIONALE (why section) ── */
.why-section { padding: 80px 0; background: white; }
.why-intro-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.why-intro-text h2 { color: var(--teal); margin-bottom: 16px; }
.why-intro-text p { color: var(--text-mid); font-size: 0.98rem; line-height: 1.75; margin-bottom: 16px; }
.why-intro-venn { display: flex; align-items: center; justify-content: center; }
.why-venn-svg { width: 100%; max-width: 380px; height: auto; }

.rationale-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
}
.rationale-card {
  min-width: 0;
  background: var(--teal-xlight);
  border-radius: var(--r-lg);
  padding: 28px;
  border-top: 3px solid var(--teal);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.rationale-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rationale-num { font-family: var(--font-serif); font-size: 2.2rem; color: var(--teal-light); margin-bottom: 8px; }
.rationale-title { font-family: var(--font-serif); font-size: 1.15rem; color: var(--teal); margin-bottom: 10px; }
.rationale-body { font-size: 0.87rem; color: var(--text-mid); line-height: 1.7; }
.rationale-body strong { color: var(--teal); font-weight: 600; }

/* ── WHY PHYSICIANS CHOOSE PREGMUNE ── */
.why-physicians-section { padding: 80px 0; background: var(--peach-light); }
.why-physicians-section .section-header { margin-bottom: 48px; }
.why-physicians-section .section-header h2 { color: var(--teal); }
.why-physicians-section .section-header p { color: var(--text-mid); max-width: 640px; margin-top: 12px; }
.why-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-point {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: white;
  border-radius: var(--r-lg);
  border-top: 3px solid var(--peach-deep);
  box-shadow: 0 2px 12px rgba(0,57,74,0.07);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.why-point:hover { border-top-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.why-point-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--teal);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-point-title { font-weight: 600; font-size: 0.92rem; color: var(--teal); }
.why-point-body { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }
.why-evidence-cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,57,74,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.why-evidence-cta p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  max-width: 620px;
}
.why-evidence-cta .btn { flex-shrink: 0; }

/* ── CLINICAL QUESTIONS (FAQ) ── */
.clinical-questions-section { padding: 80px 0; background: var(--teal); }
.clinical-questions-section h3 { font-family: var(--font-serif); font-size: 1.9rem; color: white; margin-bottom: 32px; }
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,57,74,0.15);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid rgba(0,57,74,0.12); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(255,255,255,0.04);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  text-align: left;
  line-height: 1.45;
  transition: background 0.15s;
}
.faq-question:hover { background: rgba(255,255,255,0.09); }
.faq-question[aria-expanded="true"] { background: rgba(255,255,255,0.1); color: white; }
.faq-chevron { font-size: 0.75rem; flex-shrink: 0; color: rgba(255,255,255,0.5); transition: transform 0.25s ease; }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--peach); }
.faq-answer {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.72;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.2s ease;
  padding: 0 24px;
  background: white;
}
.faq-answer.open { max-height: 500px; padding: 2px 24px 22px; background: white; }
.faq-group-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--peach);
  background: rgba(255,255,255,0.06);
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

/* ── WHEN TO REFER ── */
.refer-section { padding: 80px 0; background: white; }
.refer-section .section-header { margin-bottom: 48px; }
.refer-section .section-header h2 { color: var(--teal); }
.refer-section .section-header p { color: var(--text-mid); max-width: 600px; margin-top: 12px; }
.phenotypes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.phenotype-card {
  border: 1.5px solid rgba(0,57,74,0.12);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: all 0.2s;
  cursor: default;
}
.phenotype-card:hover {
  border-color: var(--teal-mid);
  background: var(--teal-xlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.phenotype-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--teal-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.phenotype-card:hover .phenotype-icon { background: var(--teal); }
.phenotype-card:hover .phenotype-icon svg { stroke: white; }
.phenotype-title { font-weight: 600; font-size: 0.9rem; color: var(--teal); margin-bottom: 6px; }
.phenotype-desc { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; }

.refer-note {
  background: var(--teal);
  color: white;
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.refer-note--ordering { margin-top: 32px; }
.refer-note-icon { flex-shrink: 0; margin-top: 2px; }
.refer-note h4 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 8px; color: white; }
.refer-note p { font-size: 0.88rem; color: rgba(255,255,255,0.78); line-height: 1.65; }

/* ── HOW ORDERING WORKS ── */
.ordering-section { padding: 80px 0; background: var(--teal-xlight); }
.ordering-section .section-header { margin-bottom: 48px; }
.ordering-section .section-header h2 { color: var(--teal); }
.ordering-section .section-header p { color: var(--text-mid); max-width: 600px; margin-top: 12px; }
.ordering-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.ordering-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 14px);
  right: calc(12.5% + 14px);
  height: 1px;
  background: rgba(0,57,74,0.2);
}
.ordering-step { text-align: center; padding: 0 12px; position: relative; }
.ordering-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}
.ordering-step h3 { font-size: 0.95rem; color: var(--teal); margin-bottom: 8px; }
.ordering-step p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; }
.ordering-step .btn,
.ordering-step-btn {
  display: inline-flex;
  margin-top: 14px;
  font-size: 0.82rem;
  padding: 9px 18px;
}
.ordering-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.ordering-detail-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: 0 2px 12px rgba(0,57,74,0.07);
}
.ordering-detail-card h4 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--teal); margin-bottom: 14px; }
.ordering-detail-card ul { list-style: none; }
.ordering-detail-card ul li {
  font-size: 0.86rem;
  color: var(--text-mid);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,57,74,0.08);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ordering-detail-card ul li:last-child { border-bottom: none; }
.ordering-detail-card ul li::before { content: '✓'; color: var(--teal-mid); font-weight: 700; flex-shrink: 0; }
.ordering-detail-card ul li strong { color: var(--teal); font-weight: 600; }
.benefit-item { padding: 12px 0; border-bottom: 1px solid rgba(0,57,74,0.08); }
.benefit-item:last-child { border-bottom: none; }
.benefit-title { font-weight: 600; font-size: 0.88rem; color: var(--teal); margin-bottom: 4px; }
.benefit-body { font-size: 0.84rem; color: var(--text-mid); line-height: 1.6; }

/* ── PHYSICIAN CTA ── */
.phys-cta {
  background: linear-gradient(135deg, var(--teal) 0%, #002535 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.phys-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='0.8' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
}
.phys-cta-content { position: relative; z-index: 1; }
.phys-cta h2 { color: white; margin-bottom: 14px; }
.phys-cta p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 32px; font-size: 1rem; }
.phys-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.phys-cta .eyebrow { color: var(--peach); }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .phys-section-nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 0;
    padding: 7px 0;
  }
  .phys-section-link {
    padding: 6px 6px;
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
  }
  .phys-hero-title span { white-space: normal; }
}

@media (max-width: 900px) {
  .phys-stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .phys-stat:not(:last-child) { border-right: none; margin-right: 0; }
  .why-points { grid-template-columns: 1fr; }
  .why-intro-layout { grid-template-columns: 1fr; }
  .why-intro-venn { display: none; }
  .phenotypes-grid { grid-template-columns: 1fr 1fr; }
  .ordering-steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ordering-steps::before { display: none; }
  .ordering-details { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .phenotypes-grid { grid-template-columns: 1fr; }
}
