/* === Eterna Femme — FAQ for Women 40+ (Science-content page) === */
/* Dark copper/charcoal treatment matching female-physiology.css,        */
/* clinical-evidence.css, klow-science.css, and quiz.css. Scoped under   */
/* .fw40- so it does not collide with /faq (.faq-*) or /female-physiology */
/* (.fphys-*) when those pages are also rendered. Self-sufficient: does  */
/* NOT import or extend public/css/faq.css.                              */

:root {
  --fw40-bg: #140F0A;
  --fw40-surface: #1E1814;
  --fw40-surface-alt: #1A1410;
  --fw40-copper: #B87333;
  --fw40-copper-light: #C9A96E;
  --fw40-copper-muted: rgba(184, 115, 51, 0.12);
  --fw40-text: #FAF7F4;
  --fw40-text-secondary: rgba(250, 247, 244, 0.78);
  --fw40-text-tertiary: rgba(250, 247, 244, 0.62);
  --fw40-text-quaternary: rgba(250, 247, 244, 0.45);
  --fw40-border: rgba(184, 115, 51, 0.18);
  --fw40-border-hover: rgba(184, 115, 51, 0.38);
  --fw40-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(--fw40-bg);
  color: var(--fw40-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(--fw40-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(--fw40-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(--fw40-copper-light); background: rgba(184,115,51,0.08); }

/* ─── Hero ─── */
.fw40-hero {
  min-height: 56vh; display: flex; align-items: center;
  padding: 120px clamp(20px, 5vw, 80px) var(--fw40-section-pad);
  position: relative; overflow: hidden;
}
.fw40-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.fw40-hero-eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fw40-copper); margin-bottom: 1.2rem;
}
.fw40-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 500; line-height: 1.18;
  color: var(--fw40-text); margin-bottom: 1.4rem;
}
.fw40-subhead {
  font-size: 1.05rem; color: rgba(250, 247, 244, 0.72);
  max-width: 620px; line-height: 1.7; margin-bottom: 2.6rem;
}

/* Cluster anchor nav */
.fw40-cluster-nav {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.fw40-cluster-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--fw40-border);
  border-radius: 4px;
  background: var(--fw40-surface);
  color: var(--fw40-text);
  font-size: 0.85rem; font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.fw40-cluster-link:hover {
  border-color: var(--fw40-border-hover);
  background: rgba(184,115,51,0.08);
  color: var(--fw40-copper-light);
}
.fw40-cluster-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem; color: var(--fw40-copper-light);
  line-height: 1;
}

@media (max-width: 640px) {
  .fw40-cluster-nav { flex-direction: column; }
  .fw40-cluster-link { width: 100%; }
  .fw40-hero { padding-top: 110px; min-height: 48vh; }
}

/* ─── Cluster sections ─── */
.fw40-cluster {
  background: var(--fw40-bg);
  padding: var(--fw40-section-pad) 0;
}
.fw40-cluster--alt {
  background: var(--fw40-surface);
}

.fw40-cluster-header {
  margin-bottom: 48px;
  max-width: 1100px;
  margin-left: auto; margin-right: auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.fw40-cluster-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--fw40-text); margin-bottom: 1rem;
}
.fw40-cluster-header .section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fw40-copper); margin-bottom: 0.6rem;
}
.fw40-cluster-lead {
  font-size: 1rem; line-height: 1.75;
  color: var(--fw40-text-tertiary);
  max-width: 560px;
}

/* ─── Accordion List ─── */
.fw40-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  border: 1px solid var(--fw40-border);
  border-radius: 6px;
  background: var(--fw40-surface);
  overflow: hidden;
}
.fw40-cluster--alt .fw40-list {
  background: var(--fw40-bg);
}

/* ─── Item ─── */
.fw40-item {
  border-bottom: 1px solid var(--fw40-border);
}
.fw40-item:last-child {
  border-bottom: none;
}

/* ─── Question button ─── */
.fw40-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  background: none; border: none; cursor: pointer;
  text-align: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  font-weight: 500;
  color: var(--fw40-text);
  line-height: 1.45;
  transition: color 0.2s;
}
.fw40-question:hover { color: var(--fw40-copper-light); }
.fw40-question[aria-expanded="true"] { color: var(--fw40-copper); }

/* Chevron */
.fw40-chevron {
  display: inline-block;
  width: 20px; height: 20px;
  flex-shrink: 0;
  position: relative;
}
.fw40-chevron::before, .fw40-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 9px; height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.fw40-chevron::before {
  left: 1px;
  transform: translateY(-50%) rotate(45deg);
}
.fw40-chevron::after {
  right: 1px;
  transform: translateY(-50%) rotate(-45deg);
}
.fw40-question[aria-expanded="true"] .fw40-chevron::before {
  transform: translateY(-50%) rotate(-45deg);
}
.fw40-question[aria-expanded="true"] .fw40-chevron::after {
  transform: translateY(-50%) rotate(45deg);
}

/* ─── Answer panel ─── */
.fw40-answer {
  padding: 0 0 28px;
  max-width: 720px;
}
.fw40-answer[hidden] { display: none; }

.fw40-answer p {
  font-size: 0.94rem; line-height: 1.8;
  color: var(--fw40-text-secondary);
  margin-bottom: 1rem;
}
.fw40-answer p:last-child { margin-bottom: 0; }

.fw40-answer strong {
  color: var(--fw40-text); font-weight: 600;
}

.fw40-answer a {
  color: var(--fw40-copper-light);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.4);
  transition: color 0.2s, border-color 0.2s;
}
.fw40-answer a:hover {
  color: var(--fw40-copper);
  border-bottom-color: var(--fw40-copper);
}

/* ─── Closing CTA ─── */
.fw40-cta {
  padding: var(--fw40-section-pad) clamp(20px, 5vw, 80px);
  text-align: center;
  background: var(--fw40-copper);
  color: #fff;
  border-top: 1px solid rgba(184,115,51,0.30);
}
.fw40-cta-eyebrow {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 0.8rem;
}
.fw40-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500;
  color: #fff; margin-bottom: 1rem; line-height: 1.3;
}
.fw40-cta-lead {
  font-size: 1rem; color: rgba(255,255,255,0.82);
  max-width: 540px; margin: 0 auto 2rem; line-height: 1.72;
}

.fw40-btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--fw40-copper);
  text-decoration: none;
  padding: 13px 30px; border-radius: 5px;
  font-size: 0.92rem; font-weight: 600;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #fff;
}
.fw40-btn-primary:hover {
  background: rgba(255,255,255,0.92);
  color: var(--fw40-bg);
}

.fw40-cta-note {
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  margin-top: 1.2rem; margin-bottom: 0;
}

/* ─── Footer (override main.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(--fw40-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(--fw40-copper-light); }
.footer-vendor { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(184,115,51,0.12); }
.footer-vendor-eyebrow { font-size: 0.72rem; font-weight: 600; color: var(--fw40-copper); letter-spacing: 0.12em; text-transform: uppercase; margin-right: 12px; }

@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .nav-links li:not(.nav-dropdown) { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-tagline { max-width: none; }
}

@media (max-width: 640px) {
  .fw40-question {
    padding: 22px 0;
    font-size: 0.97rem;
  }
  .fw40-answer { padding-bottom: 22px; }
  .fw40-chevron { width: 18px; height: 18px; }
}
