/* ============================================================
   The Menopause Navigator — Design System
   Palette: warm cream base · light lilac wash · orchid headlines
            vivid violet CTAs · soft charcoal body
   Type: Fraunces (display) · Inter (body)
   ============================================================ */

:root {
  --cream: #FFFFFF;
  --lilac: #FDF2F8;
  --lilac-deep: #F6D6E7;
  --orchid: #1F1A2E;
  --orchid-dark: #14101F;
  --violet: #D6247E;
  --violet-dark: #B31B6A;
  --violet-tint: #FDECF4;
  --plum-box: #472C71;
  --charcoal: #3A3A3C;
  --ink-soft: #5C5650;
  --ink-faint: #7A7268;
  --line: #EFE9EC;
  --white: #FFFFFF;
  --gold: #B98A1F;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1080px;
  --max-text: 700px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orchid);
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

a { color: var(--violet-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orchid); }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--orchid); color: #fff; padding: 0.7rem 1.2rem;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.site-header .wrap { max-width: 1180px; }
.wrap-text { max-width: var(--max-text); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) {
  .site-header { background: #ffffff; }
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand .brand-name {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--violet); font-weight: 700;
}
.brand .brand-sub { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }

.nav-links { display: flex; align-items: center; gap: 1.15rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.95rem; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--orchid); }
.nav-links a[aria-current="page"] { font-weight: 600; }

.has-sub { position: relative; }
.sub-toggle {
  background: none; border: 0; font: inherit; font-size: 0.95rem; color: var(--ink-soft);
  cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
}
.sub-toggle::after { content: "▾"; font-size: 0.7em; }
.sub-menu {
  position: absolute; top: calc(100% + 0.6rem); left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(59, 42, 86, 0.12);
  list-style: none; margin: 0; padding: 0.5rem; min-width: 250px; display: none;
}
.sub-menu.open { display: block; }
.sub-menu a { display: block; padding: 0.55rem 0.9rem; border-radius: 8px; text-decoration: none; }
.sub-menu a:hover { background: var(--lilac); }
.sub-menu .sub-note { font-size: 0.78rem; color: var(--ink-faint); padding: 0 0.9rem 0.4rem; }

.btn {
  display: inline-block; background: var(--violet); color: #fff;
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  padding: 0.9rem 1.8rem; border-radius: 12px; border: 0; cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(214,36,126,0.20);
}
.btn:hover { background: var(--violet-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(214,36,126,0.26); }
.btn.btn-small { padding: 0.6rem 1.2rem; font-size: 0.92rem; border-radius: 10px; box-shadow: 0 4px 12px rgba(214,36,126,0.18); }
.btn, .btn:link, .btn:visited { color: #fff !important; -webkit-text-fill-color: #fff; }
.nav-cta-mobile .btn, .nav-cta-mobile a { color: #fff !important; -webkit-text-fill-color:#fff; }
.btn.btn-ghost {
  background: #fff; color: var(--violet-dark);
  border: 1.5px solid var(--lilac-deep); box-shadow: 0 2px 8px rgba(71,44,113,0.05);
}
.btn.btn-ghost:hover { background: var(--violet-tint); border-color: var(--violet); transform: translateY(-2px); }
.btn.btn-light { background: var(--violet); color: #fff; }
.btn.btn-light:hover { background: var(--violet-dark); }

.menu-btn {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem;
  flex-direction: column; gap: 5px;
}
.menu-btn span { width: 24px; height: 2px; background: var(--violet); display: block; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-btn { position: relative; z-index: 320; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-lilac { background: var(--lilac); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { padding: 3rem 0; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--violet-dark); font-weight: 600; margin-bottom: 0.9rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 4.5rem; text-align: center;
  background: radial-gradient(1100px 520px at 50% -10%, #FDF2F8 0%, rgba(253,242,248,0) 62%), var(--cream);
}
.hero .lead { max-width: 620px; margin: 0 auto 1.4rem; }
.hero .cred-line { font-size: 0.9rem; color: var(--ink-faint); margin-bottom: 2rem; }
.hero .secondary-link { display: block; margin-top: 1.1rem; font-size: 0.98rem; }

/* ---------- Hero trust-bar ---------- */
.trust-bar {
  list-style: none; margin: 0 auto 2rem; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  max-width: 720px;
}
.trust-bar li {
  background: var(--violet-tint); color: var(--orchid);
  border: 1px solid var(--lilac-deep);
  border-radius: 999px; padding: 0.42rem 0.9rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
}
@media (max-width: 560px) {
  .trust-bar li { font-size: 0.78rem; padding: 0.36rem 0.75rem; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); margin-top: 2.2rem; }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.8rem 1.7rem; border: 1px solid #F1EEF6;
  text-align: left;
  box-shadow: 0 1px 3px rgba(71, 44, 113, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(214,36,126,0.10);
  border-color: var(--lilac-deep);
}
.card-icon {
  width: 34px; height: 34px; color: var(--violet);
  margin-bottom: 0.9rem; display: block;
}
.section-lilac .card { border-color: transparent; }
.section:not(.section-lilac) .card { border-color: #F1EEF6; }
.card h3 { font-size: 1.22rem; margin-bottom: 0.55rem; font-weight: 700; }
.card p { font-size: 0.97rem; color: var(--ink-soft); }
.card.card-accent { border: 1.5px solid var(--lilac-deep); box-shadow: 0 8px 24px rgba(214,36,126,0.12); }
.card.card-hint {
  background: var(--violet-tint); border: 1px solid var(--lilac-deep);
  display: flex; align-items: center; box-shadow: none;
}
.card.card-hint:hover { transform: none; box-shadow: none; }
.card.card-hint p { font-size: 1.02rem; color: var(--charcoal); font-weight: 600; margin: 0; }
.card .card-quote { font-style: italic; color: var(--orchid); }

/* Offer cards */
.offer-card { display: flex; flex-direction: column; }
.offer-card .price-line { font-weight: 600; color: var(--orchid); margin: 0.8rem 0; }
.offer-card .price-line s { color: var(--ink-faint); font-weight: 400; margin-right: 0.35rem; }
.offer-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Path (signature element) ---------- */
.path-steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.path-step {
  position: relative; padding: 0 0 2.4rem 3.4rem;
}
.path-step::before {
  content: ""; position: absolute; left: 17px; top: 2.4rem; bottom: 0;
  border-left: 2px dashed var(--lilac-deep);
}
.path-step:last-child::before { display: none; }
.path-step .step-dot {
  position: absolute; left: 0; top: 0.1rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--violet); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display); font-size: 1.05rem;
}
.path-step h3 { margin-bottom: 0.35rem; }
.path-step .step-meta { font-size: 0.85rem; color: var(--violet-dark); font-weight: 600; margin-bottom: 0.5rem; }
.path-step p { color: var(--ink-soft); }

/* ---------- Plum boxes ---------- */
.plum-box {
  background: var(--violet-tint); color: var(--charcoal);
  border: 1px solid var(--lilac-deep);
  border-radius: var(--radius); padding: 2.2rem 2rem;
  margin: 2.2rem auto 0;
}
.plum-box h2, .plum-box h3 { color: var(--orchid); }
.plum-box a:not(.btn) { color: var(--violet-dark); }
.plum-box .spots { font-weight: 700; color: var(--orchid); letter-spacing: 0.02em; }
.plum-box .price-big { font-size: 1.6rem; font-family: var(--font-display); color: var(--orchid); font-weight: 700; }
.plum-box .price-big s { font-size: 1rem; color: var(--ink-faint); margin-right: 0.4rem; }

/* ---------- Quote / validation beat ---------- */
.beat { text-align: center; max-width: 640px; margin: 0 auto; }
.beat .final-line { color: var(--violet-dark); font-weight: 700; }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 1.4rem 0; }
.check-list li { position: relative; padding: 0 0 0.9rem 2rem; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--violet-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D6247E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.check-list li { padding-left: 2.3rem; }
.check-list li strong { color: var(--charcoal); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0;
  font-weight: 600; color: var(--orchid); font-size: 1.05rem; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--violet); font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 0 1.3rem; color: var(--ink-soft); }
.faq-group-title { margin-top: 2.6rem; }

/* ---------- Forms ---------- */
form.stack { display: grid; gap: 1rem; max-width: 520px; }
label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; font: inherit; color: var(--charcoal);
  background: var(--white); border: 1px solid #D8D0C2; border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--violet); outline: 3px solid var(--violet-tint); }
textarea { min-height: 140px; resize: vertical; }
.inline-form { display: flex; gap: 0.7rem; flex-wrap: wrap; max-width: 520px; }
.inline-form input[type="email"] { flex: 1; min-width: 220px; }
.form-note { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Quiz ---------- */
.quiz-shell { max-width: 640px; margin: 0 auto; }
.quiz-progress { height: 6px; background: var(--lilac-deep); border-radius: 999px; overflow: hidden; margin-bottom: 2rem; }
.quiz-progress span { display: block; height: 100%; background: var(--violet); width: 0%; transition: width 0.25s ease; }
.quiz-q { background: var(--white); border-radius: var(--radius); padding: 2rem 1.8rem; border: 1px solid var(--line); }
.quiz-q h2 { font-size: 1.3rem; }
.quiz-q .q-note { font-size: 0.9rem; color: var(--ink-faint); font-style: italic; margin-bottom: 1.2rem; }
.quiz-options { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.quiz-options button {
  font: inherit; text-align: left; background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0.9rem 1.1rem; cursor: pointer; color: var(--charcoal);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.quiz-options button:hover { border-color: var(--violet); background: var(--violet-tint); }
.quiz-count { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 0.7rem; }
.quiz-encourage { font-size: 0.9rem; color: var(--violet-dark); margin-top: 1rem; min-height: 1.4em; }
.result-band { border-radius: var(--radius); padding: 1.8rem 1.6rem; background: var(--lilac); margin: 1.6rem 0; }
.result-band h3 { margin-bottom: 0.4rem; }
.result-score { font-family: var(--font-display); font-size: 2.4rem; color: var(--orchid); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 4rem; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3 { font-size: 1.05rem; margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--orchid); text-decoration: underline; }
.footer-scope-box { margin-top: 2.5rem; background: var(--lilac); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.6; }
.footer-copy { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.83rem; color: var(--ink-faint); }

/* ---------- Utility ---------- */
.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: center; }
.spacer { height: 1.6rem; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 3rem auto; max-width: var(--max-text); }
.badge {
  display: inline-block; background: var(--violet-tint); color: var(--orchid);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.32rem 0.85rem; border-radius: 999px; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.eyebrow-pill {
  display: inline-block; background: var(--violet-tint); color: var(--orchid);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.32rem 0.85rem; border-radius: 999px; text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.embed-placeholder {
  border: 2px dashed var(--lilac-deep); border-radius: var(--radius);
  background: var(--white); padding: 2.4rem 1.6rem; text-align: center; color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: fixed; left: 0; right: 0; top: var(--header-h, 68px);
    height: calc(100vh - var(--header-h, 68px));
    height: calc(100dvh - var(--header-h, 68px));
    background: #ffffff; flex-direction: column; align-items: stretch;
    padding: 1.2rem 1.4rem 2rem; gap: 0.3rem; overflow-y: auto;
    z-index: 250; box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links > li:last-child { border-bottom: 0; }
  .nav-links a, .sub-toggle { font-size: 1.1rem; min-height: 52px; display: flex; align-items: center; width: 100%; }
  .sub-menu { position: static; transform: none; box-shadow: none; border: 0; background: var(--lilac); border-radius: 10px; padding: 0.3rem 0.6rem; min-width: 0; margin: 0 0 0.6rem; }
  .sub-menu a { font-size: 1rem; min-height: 46px; }
  .menu-btn { display: flex; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { margin-top: 0.8rem; border-bottom: 0 !important; }
  .nav-cta-mobile .btn { width: 100%; text-align: center; justify-content: center; }
  .two-col { grid-template-columns: 1fr; }
  .section { padding: 3.2rem 0; }
  .hero { padding: 3.6rem 0 3rem; }
}
@media (min-width: 861px) {
  .nav-cta-mobile { display: none; }
}


/* Work With Me — centered square cards */
.wwm-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 2.4rem auto 0; }
.wwm-grid .card { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 2rem 1.7rem; }
.wwm-grid .card .eyebrow-pill { align-self: center; }
.wwm-grid .card h3 { font-size: 1.5rem; }
.wwm-grid .card .price-line { margin: 0.9rem 0 1.2rem; }
.wwm-grid .card .btn { margin-top: auto; align-self: center; }
@media (max-width: 720px) { .wwm-grid { grid-template-columns: 1fr; } }

/* Small heart accent */
.heart-mark { display:inline-flex; align-items:center; justify-content:center; color:var(--violet); vertical-align:middle; }
.section-heart { display:block; margin:0 auto 0.6rem; width:30px; height:30px; color:var(--violet); }


/* audit mobile fixes */
.wrap-text img { max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .wrap-text img { width: 100%; }
  .two-col img { width: 100%; }
}
/* belt-and-suspenders: stop UA turning nav CTA into a fake phone link */
.nav-links a, .btn { -webkit-text-size-adjust: 100%; }
a.btn, .nav-links a { color: inherit; }
.nav-cta-mobile a.btn, .nav-links .btn { color: #fff !important; }

/* Fix: ghost buttons must keep their pink text (line 137 was forcing them white
   on a white background, making them invisible until hover). */
.btn.btn-ghost,
.btn.btn-ghost:link,
.btn.btn-ghost:visited {
  color: var(--violet-dark) !important;
  -webkit-text-fill-color: var(--violet-dark);
}
.btn.btn-ghost:hover {
  color: var(--violet-dark) !important;
  -webkit-text-fill-color: var(--violet-dark);
}

/* ---------- Brand logo (header) ---------- */
.site-header .brand { display: flex; flex-direction: row; align-items: center; text-decoration: none; }
.brand-logo { height: 64px; width: auto; display: block; }
@media (max-width: 900px) { .brand-logo { height: 54px; } }
@media (max-width: 560px) { .brand-logo { height: 46px; } }

/* ---------- Method (Symptoms/Patterns/Priorities/Plan) 4-across ---------- */
.card-grid.method-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .card-grid.method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .card-grid.method-grid { grid-template-columns: 1fr; } }
