/* ===========================
   PERIMENOPAUSE.ORG
   Design System
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --sage:        #3D6B5A;
  --sage-dark:   #2B4F41;
  --sage-mid:    #8FB5A5;
  --sage-light:  #EDF4F0;
  --sage-border: #C5DAD2;
  --terra:       #B8734A;
  --terra-light: #FAF0E8;
  --terra-border:#E5C4A8;
  --cream:       #FAF8F4;
  --white:       #FFFFFF;
  --ink:         #1C1917;
  --ink-mid:     #4A4744;
  --ink-light:   #8A8683;
  --border:      #E8E4DF;
  --border-strong:#CDC9C2;
  --r:           5px;
  --rl:          10px;
  --rxl:         16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

a { color: inherit; text-decoration: none; }

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

/* ===========================
   LAYOUT
   =========================== */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===========================
   NAV
   =========================== */

nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.logo-text span {
  color: var(--sage);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
  transition: all 0.15s;
}

.nav-links a:hover { background: var(--cream); color: var(--ink); }
.nav-links a.active { color: var(--sage); }

.nav-cta {
  display: flex;
  gap: 8px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.btn-primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); }

.btn-secondary {
  background: transparent;
  color: var(--sage);
  border-color: var(--sage-border);
}

.btn-secondary:hover { background: var(--sage-light); }

.btn-ghost {
  background: transparent;
  color: var(--ink-mid);
  border-color: var(--border);
}

.btn-ghost:hover { background: var(--white); color: var(--ink); }

.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--rl); }

/* ===========================
   TAGS / CHIPS
   =========================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.tag:hover { border-color: var(--sage); color: var(--sage); background: var(--sage-light); }
.tag.active { background: var(--sage); border-color: var(--sage); color: #fff; }

/* Evidence badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-strong { background: #E8F5E9; color: #2E7D32; }
.badge-moderate { background: #E3F2FD; color: #1565C0; }
.badge-emerging { background: #FFF8E1; color: #E65100; }
.badge-limited { background: #F3E5F5; color: #6A1B9A; }

/* ===========================
   SECTIONS
   =========================== */

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}

.section-sub {
  font-size: 17px;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 580px;
}

/* ===========================
   CARDS
   =========================== */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* ===========================
   STAT CALLOUT
   =========================== */

.stat-callout {
  background: var(--sage-light);
  border: 1px solid var(--sage-border);
  border-radius: var(--rl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-callout .stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
  white-space: nowrap;
}

.stat-callout .stat-l {
  font-size: 14px;
  color: var(--sage-dark);
  line-height: 1.4;
}

/* ===========================
   QUOTE BLOCK
   =========================== */

.quote-block {
  background: var(--terra-light);
  border-left: 3px solid var(--terra);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 16px 20px;
  font-style: italic;
  color: var(--ink-mid);
  font-size: 15px;
  line-height: 1.65;
  margin: 16px 0;
}

.quote-block cite {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-light);
  margin-top: 8px;
}

/* ===========================
   PRACTITIONER CARD
   =========================== */

.practitioner-section {
  background: var(--white);
  border: 1px solid var(--sage-border);
  border-radius: var(--rxl);
  padding: 28px;
  margin-top: 40px;
}

.practitioner-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 6px;
}

.practitioner-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.practitioner-section-sub {
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 20px;
  line-height: 1.6;
}

.practitioner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.practitioner-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s;
  text-decoration: none;
  color: inherit;
}

.practitioner-card:hover {
  border-color: var(--sage-mid);
}

.practitioner-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--sage);
  font-weight: 600;
}

.practitioner-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.practitioner-cred {
  font-size: 12px;
  color: var(--sage);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.practitioner-spec {
  font-size: 12.5px;
  color: var(--ink-mid);
}

.practitioner-loc {
  font-size: 12px;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.practitioner-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  padding: 7px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}

.practitioner-card:hover .practitioner-cta { gap: 8px; }

.practitioner-disclosure {
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo .logo-text { color: #fff; }
.footer-tagline {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  margin-top: 8px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 14px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 680px;
}

/* ===========================
   UTILITIES
   =========================== */

.text-sage { color: var(--sage); }
.text-muted { color: var(--ink-light); }
.text-sm { font-size: 13px; }
.text-center { text-align: center; }
.font-serif { font-family: 'Playfair Display', serif; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.divider { width: 100%; height: 1px; background: var(--border); margin: 40px 0; }

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
