/* ============================================================
   Ana Zaldivar, M.D. — Perinatal & Reproductive Psychiatry
   Design system: "Tide line" — a continuum of care from
   preconception through postpartum and beyond.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #EDF1EE;
  --surface: #FFFFFF;
  --surface-soft: #F5F7F4;
  --ink: #1F332C;
  --ink-soft: #4B5D56;
  --ink-faint: #7C8B85;
  --gold: #C99A3E;
  --gold-soft: #E9D8AE;
  --rose: #C97D82;
  --line: #D8DED9;
  --radius: 4px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow.gold { color: var(--gold); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.lede { font-size: 1.15em; color: var(--ink); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 241, 238, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}

.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
}

.nav-links a:hover { color: var(--gold); }

.nav-links a.current { color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 4px; }

@media (max-width: 640px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}

/* ---------- Tide line (signature element) ---------- */
.tideline-wrap { margin: 8px 0 0; }

.tideline svg { width: 100%; height: auto; display: block; }

.tideline .stage-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}

.tideline .stage-dot { fill: var(--gold); }
.tideline .tide-path { fill: none; stroke: var(--rose); stroke-width: 2; }

.tideline.divider { opacity: 0.55; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 40px; }

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 15ch;
  margin-top: 18px;
}

.hero .lede {
  max-width: 52ch;
  margin-top: 22px;
  font-size: 1.18em;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--gold); }

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 10px; }

/* ---------- Focus areas (tide stages) ---------- */
.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .stages { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stages { grid-template-columns: 1fr; }
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.stage-card .num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

.stage-card h3 {
  font-size: 1.15rem;
  margin: 10px 0 8px;
}

.stage-card p { font-size: 0.96em; margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-photo img { width: 100%; }

.about-copy blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--gold);
  background: var(--surface-soft);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2em;
  color: var(--ink);
}

.credentials {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.credentials li {
  font-size: 0.92em;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}

.credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Blog cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}

.post-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.post-card .eyebrow { margin-bottom: 12px; }

.post-card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.post-card p { font-size: 0.94em; margin-bottom: 0; }

.post-card .read-more {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- Article ---------- */
.article-hero { padding: 52px 0 20px; }
.article-hero .eyebrow { margin-bottom: 14px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 20ch; }
.article-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.article-body {
  max-width: 68ch;
  padding: 12px 0 60px;
}

.article-body p { font-size: 1.03em; color: var(--ink); }
.article-body h2 { font-size: 1.5rem; margin: 42px 0 16px; }
.article-body h3 { font-size: 1.2rem; margin: 30px 0 12px; }
.article-body ul, .article-body ol { color: var(--ink); padding-left: 22px; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 8px; }

.pullquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.35em;
  line-height: 1.4;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin: 38px 0;
}

.article-footer-note {
  margin-top: 40px;
  padding: 20px 22px;
  background: var(--surface-soft);
  border-left: 3px solid var(--rose);
  font-size: 0.9em;
  color: var(--ink-soft);
  border-radius: var(--radius);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 52px 40px;
  text-align: center;
}

.cta-band h2 { color: var(--bg); font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: #B9C6C0; max-width: 48ch; margin: 14px auto 26px; }
.cta-band .btn-primary { background: var(--gold); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--rose); color: var(--ink); }

@media (max-width: 640px) {
  .cta-band { padding: 40px 24px; }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand { font-family: 'Fraunces', serif; font-size: 18px; }

.footer-note {
  max-width: 60ch;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 18px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a { text-decoration: none; font-size: 13.5px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--gold); }

/* References & review date on articles */
.references { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.08); }
.references h3 { font-size: 1rem; margin: 0 0 12px; letter-spacing: 0.02em; }
.references ol { font-size: 0.85em; color: var(--ink-soft); padding-left: 20px; }
.references li { margin-bottom: 6px; line-height: 1.5; }
.references a { color: inherit; text-decoration: underline; }
.references .reviewed { font-size: 0.85em; color: var(--ink-soft); margin-top: 14px; font-style: italic; }

.memberships-label { margin: 26px 0 0; font-size: 0.78em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.memberships-label + .credentials { margin-top: 12px; }
.credentials a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
