/* === Eterna Femme — Consultation Guide === */
/* Walks women 40+ through the four-group intake, the protocol-mapping logic, */
/* and what "physician-guided" actually means in this practice. */
/* Token-aligned with female-physiology.css / clinical-evidence.css / how-it-works.css. */
/* Scoped under .cguide- to avoid class collision with other pages. */

:root {
  --cg-bg: #140F0A;
  --cg-surface: #1E1814;
  --cg-surface-alt: #1A1410;
  --cg-copper: #B87333;
  --cg-copper-light: #C9A96E;
  --cg-copper-muted: rgba(184, 115, 51, 0.12);
  --cg-text: #FAF7F4;
  --cg-text-secondary: rgba(250, 247, 244, 0.78);
  --cg-text-tertiary: rgba(250, 247, 244, 0.62);
  --cg-text-quaternary: rgba(250, 247, 244, 0.45);
  --cg-border: rgba(184, 115, 51, 0.18);
  --cg-border-hover: rgba(184, 115, 51, 0.38);
  --cg-section-pad: clamp(60px, 8vw, 100px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Base ─── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cg-bg);
  color: var(--cg-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav (override main.css) ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(20, 15, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 115, 51, 0.15);
  padding: 0 clamp(20px, 5vw, 60px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; color: #FAF7F4; letter-spacing: 0.03em;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; list-style: none; gap: 2rem; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; color: rgba(250, 247, 244, 0.65);
  text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s;
}
.nav-links a:hover { color: #D4A574; }
.nav-cta {
  background: var(--cg-copper) !important; color: #fff !important;
  padding: 9px 18px; border-radius: 4px; font-size: 0.82rem !important;
  font-weight: 600 !important; transition: background 0.2s;
}
.nav-cta:hover { background: #9A6028 !important; color: #fff !important; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); background: rgba(20, 15, 10, 0.97);
  border: 1px solid var(--cg-border); border-radius: 8px;
  padding: 12px 0; min-width: 200px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block; padding: 8px 20px; font-size: 0.82rem; font-weight: 400;
  color: rgba(250, 247, 244, 0.72); white-space: nowrap;
}
.nav-dropdown-menu li a:hover { color: var(--cg-copper-light); background: rgba(184,115,51,0.08); }

/* ─── Hero ─── */
.cguide-hero {
  min-height: 62vh; display: flex; align-items: center;
  padding: 120px clamp(20px, 5vw, 80px) var(--cg-section-pad);
  position: relative; overflow: hidden;
}
.cguide-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1E1814 0%, #140F0A 60%, #221913 100%);
  z-index: 0;
}
.cguide-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(184,115,51,0.10) 0%, transparent 55%),
    radial-gradient(circle at 82% 75%, rgba(201,169,110,0.06) 0%, transparent 60%);
  z-index: 1; pointer-events: none;
}
.cguide-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.cguide-hero-eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cg-copper); margin-bottom: 1.2rem;
}
.cguide-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 500; line-height: 1.18;
  color: var(--cg-text); margin-bottom: 1.4rem;
}
.cguide-hero-sub {
  font-size: 1.05rem; color: rgba(250, 247, 244, 0.72);
  max-width: 600px; line-height: 1.7;
}

/* ─── Section dividers ─── */
.cguide-section-divider {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 clamp(20px, 5vw, 80px);
  margin: var(--cg-section-pad) 0 0;
}
.cguide-section-divider-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cg-copper); white-space: nowrap;
}
.cguide-section-divider-line {
  flex: 1; height: 1px; background: var(--cg-border);
}

/* ─── Sections — alternating surface ─── */
.cguide-section {
  padding: var(--cg-section-pad) clamp(20px, 5vw, 80px);
  background: var(--cg-bg);
  border-bottom: 1px solid rgba(184,115,51,0.10);
}
.cguide-section--alt { background: var(--cg-surface); }
.cguide-section:last-of-type { border-bottom: none; }

.cguide-section-inner { max-width: 1100px; margin: 0 auto; }

.cguide-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.cguide-section-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cg-copper); margin-bottom: 0.75rem;
}
.cguide-section-eyebrow--center { text-align: center; }
.cguide-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 500;
  color: var(--cg-text); line-height: 1.25; margin-bottom: 1.4rem;
}
.cguide-section-title--center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.cguide-section-desc {
  font-size: 0.98rem; color: var(--cg-text-tertiary); line-height: 1.78;
  margin-bottom: 1.1rem;
}
.cguide-section-desc--lead {
  font-size: 1.02rem; color: var(--cg-text-secondary);
  max-width: 640px; margin-bottom: 2.5rem;
}
.cguide-section-desc--center {
  margin-left: auto; margin-right: auto; text-align: center;
}

/* Anchor card — inline pointer to a supporting science page */
.cguide-anchor-card {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.85rem 1.2rem;
  background: rgba(184,115,51,0.07);
  border-left: 3px solid var(--cg-copper);
  border-radius: 4px;
  color: var(--cg-copper-light);
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
}
.cguide-anchor-card:hover {
  background: rgba(184,115,51,0.16);
  color: var(--cg-copper);
}

/* Aside (right-column "what this means" callout) */
.cguide-section-aside {
  background: rgba(184,115,51,0.06);
  border: 1px solid var(--cg-border);
  border-radius: 8px;
  padding: 1.5rem 1.7rem;
  position: sticky; top: 96px;
}
.cguide-aside-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cg-copper); margin-bottom: 0.7rem;
}
.cguide-aside-text {
  font-size: 0.92rem; color: var(--cg-text-secondary);
  line-height: 1.7;
}

/* ─── Intake group cards (Section 2 — "the four-group intake") ─── */
.cguide-intake-group {
  background: var(--cg-bg);
  border: 1px solid var(--cg-border);
  border-radius: 10px;
  padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1.4rem;
  transition: border-color 0.25s;
}
.cguide-section--alt .cguide-intake-group { background: var(--cg-bg); }
.cguide-intake-group:hover { border-color: var(--cg-border-hover); }

.cguide-intake-group-header {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cg-border);
}
.cguide-intake-group-letter {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cg-copper); margin-bottom: 0.4rem;
}
.cguide-optional {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cg-text-quaternary); margin-left: 0.4rem;
}
.cguide-intake-group-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; font-weight: 500; line-height: 1.3;
  color: var(--cg-text);
}

.cguide-intake-group-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
}

.cguide-intake-fields-label,
.cguide-intake-why-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cg-copper); margin-bottom: 0.7rem;
}

.cguide-intake-fields-list {
  list-style: none;
  padding-left: 0;
}
.cguide-intake-fields-list li {
  font-size: 0.95rem; color: var(--cg-text-secondary);
  line-height: 1.7;
  padding: 0.25rem 0 0.25rem 1.1rem;
  position: relative;
}
.cguide-intake-fields-list li::before {
  content: ''; position: absolute; left: 0; top: 0.95rem;
  width: 6px; height: 1px; background: var(--cg-copper);
}

.cguide-intake-why p {
  font-size: 0.92rem; color: var(--cg-text-tertiary);
  line-height: 1.7;
}

/* ─── Mapping grid (Section 3 — protocol mapping) ─── */
.cguide-mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.cguide-mapping-card {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: 10px;
  padding: 1.65rem 1.8rem;
  display: flex; flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.cguide-section--alt .cguide-mapping-card { background: var(--cg-bg); }
.cguide-mapping-card--featured {
  border-color: var(--cg-border-hover);
  background: var(--cg-bg);
}
.cguide-mapping-card:hover {
  border-color: var(--cg-border-hover);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.cguide-mapping-eyebrow {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cg-copper); margin-bottom: 0.5rem;
}
.cguide-mapping-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem; font-weight: 500;
  color: var(--cg-text); margin-bottom: 0.85rem; line-height: 1.3;
}
.cguide-mapping-trigger {
  font-size: 0.9rem; color: var(--cg-text-tertiary);
  line-height: 1.7; flex: 1; margin-bottom: 1.1rem;
}
.cguide-mapping-link {
  font-size: 0.88rem;
  color: var(--cg-copper-light);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(201,169,110,0.4);
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}
.cguide-mapping-link:hover {
  color: var(--cg-copper);
  border-bottom-color: var(--cg-copper);
}

.cguide-mapping-foot {
  font-size: 0.92rem; color: var(--cg-text-tertiary);
  line-height: 1.72; max-width: 720px;
  margin: 2rem auto 0;
  text-align: center;
  font-style: italic;
}

/* ─── "Physician-guided" list (Section 4) ─── */
.cguide-pg-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.4rem;
}
.cguide-pg-list li {
  font-size: 0.96rem; color: var(--cg-text-secondary);
  line-height: 1.75;
  padding: 0.55rem 0 0.55rem 1.75rem;
  position: relative;
}
.cguide-pg-list li::before {
  content: ''; position: absolute; left: 0; top: 1.05rem;
  width: 10px; height: 1px; background: var(--cg-copper);
}
.cguide-pg-list li strong { color: var(--cg-text); }

/* ─── Page CTA ─── */
.cguide-page-cta {
  padding: var(--cg-section-pad) clamp(20px, 5vw, 80px);
  text-align: center;
  border-top: 1px solid rgba(184,115,51,0.10);
  background: var(--cg-bg);
}
.cguide-page-cta-eyebrow {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cg-copper); margin-bottom: 0.8rem;
}
.cguide-page-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500;
  color: var(--cg-text); margin-bottom: 1rem;
  line-height: 1.3; max-width: 720px; margin-left: auto; margin-right: auto;
}
.cguide-page-cta-lead {
  font-size: 1rem; color: var(--cg-text-tertiary);
  max-width: 540px; margin: 0 auto 2rem;
  line-height: 1.72;
}
.cguide-page-cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}

.cguide-btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--cg-copper); color: #fff; text-decoration: none;
  padding: 13px 30px; border-radius: 5px; font-size: 0.92rem;
  font-weight: 600; transition: background 0.2s;
}
.cguide-btn-primary:hover { background: #9A6028; }
.cguide-btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: rgba(250,247,244,0.74);
  text-decoration: none; padding: 13px 24px; border-radius: 5px;
  font-size: 0.92rem; font-weight: 500; border: 1px solid var(--cg-border);
  transition: border-color 0.2s, color 0.2s;
}
.cguide-btn-secondary:hover {
  border-color: var(--cg-copper);
  color: var(--cg-copper-light);
}

/* ─── Footer (matches female-physiology.css) ─── */
footer {
  background: #0E0A07;
  border-top: 1px solid rgba(184,115,51,0.12);
  padding: 48px clamp(20px, 5vw, 60px);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; color: #FAF7F4; margin-bottom: 0.6rem; }
.footer-tagline { font-size: 0.85rem; color: rgba(250,247,244,0.45); line-height: 1.55; max-width: 280px; }
footer h4 { font-size: 0.78rem; font-weight: 600; color: var(--cg-copper); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.55rem; }
footer ul li a { font-size: 0.85rem; color: rgba(250,247,244,0.55); text-decoration: none; transition: color 0.2s; }
footer ul li a:hover { color: var(--cg-copper-light); }

/* ─── Mobile ─── */
@media (max-width: 900px) {
  .cguide-section-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cguide-section-aside { position: static; order: 2; }
  .cguide-intake-group-body { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .nav-links li:not(.nav-dropdown) { display: none; }
  .cguide-hero { min-height: 56vh; }
  .cguide-mapping-grid { grid-template-columns: 1fr; }
  .cguide-page-cta-actions { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-tagline { max-width: none; }
}
