/* ============================================================
   BEX UNFILTERED ACADEMY — Brand Stylesheet
   The Science of Perimenopause
   Brand: Navy #1D0F6B | Pink #E8386D | Purple #9747FF | White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── BRAND TOKENS ─────────────────────────────────────────── */
:root {
  --primary:        #1D0F6B;   /* Deep Navy — headings, nav, buttons */
  --primary-dark:   #150A4E;   /* Hover state */
  --primary-light:  #F0EEFF;   /* Light navy tint — info boxes */
  --rose:           #E8386D;   /* Brand Pink — accent, highlights */
  --rose-light:     #FEEAF0;   /* Light pink — disclaimers, warnings */
  --rose-dark:      #C02050;   /* Deep Pink — disclaimer bar */
  --gold:           #9747FF;   /* Brand Purple — premium, spotlight */
  --gold-light:     #F3EEFF;   /* Light purple — expert spotlight */

  --bg:             #FFFFFF;   /* White — page background */
  --card-bg:        #FFFFFF;   /* White card */
  --card-alt:       #F8F6FF;   /* Pale lavender card */
  --border:         #E0DAEA;   /* Soft border */
  --border-light:   #EDEAF5;

  --text:           #1D0F6B;   /* Navy body */
  --text-light:     #6B6B6B;   /* Mid-grey secondary */
  --text-muted:     #9B9590;   /* Muted / placeholder */

  --locked:         #C0BAC8;   /* Locked module muted */
  --locked-bg:      #F4F2F8;

  --success:        #4A8E5C;
  --success-light:  #E8F5ED;
  --fail:           #C0392B;
  --fail-light:     #FDECEC;

  --font-heading:   'Barlow Condensed', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;

  --gradient:       linear-gradient(90deg, #E8386D 0%, #9747FF 100%);
  --gradient-hero:  linear-gradient(135deg, #1D0F6B 0%, #3D1A8F 60%, #9747FF 100%);

  --radius:         8px;
  --radius-lg:      14px;
  --shadow:         0 2px 12px rgba(29,15,107,0.10);
  --shadow-hover:   0 6px 24px rgba(29,15,107,0.18);
  --transition:     0.2s ease;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 700; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
main { flex: 1; }

/* ── DISCLAIMER BAR ───────────────────────────────────────── */
.disclaimer-bar {
  background: var(--rose-dark);
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.site-nav {
  background: var(--card-bg);
  border-bottom: none;
  padding: 0 24px;
  position: sticky;
  top: 38px;
  z-index: 900;
  box-shadow: var(--shadow);
}

/* Signature pink→purple gradient stripe — matches DOCX header brand element */
.site-nav::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--gradient);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.nav-logo span { display: block; font-size: 0.7rem; font-family: var(--font-body); font-weight: 400; color: var(--text-light); letter-spacing: 0.04em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a { font-size: 0.88rem; font-weight: 600; color: var(--text-light); text-decoration: none; transition: color var(--transition); }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links .btn-sm { padding: 7px 18px; }

/* Module nav progress */
.module-nav-bar {
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
}
.module-nav-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.breadcrumb { font-size: 0.8rem; color: var(--text-light); }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb span { margin: 0 6px; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; text-decoration: none; }

.btn-ghost-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.75);
  color: #fff;
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.btn-rose {
  background: var(--rose);
  color: #fff;
}
.btn-rose:hover { background: var(--rose-dark); color: #fff; text-decoration: none; }

.btn-gold {
  background: var(--gradient);
  color: #fff;
  border: none;
}
.btn-gold:hover { background: linear-gradient(90deg, #C02050 0%, #7B2FD4 100%); color: #fff; text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-1px); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

.btn-full { display: block; width: 100%; text-align: center; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-alt {
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ── INFO BOXES ───────────────────────────────────────────── */
.info-box {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.info-box .info-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--rose);  /* brand: pink label matches DOCX callout box labels */
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.warning-box {
  border-left: 4px solid var(--rose-dark);
  background: var(--rose-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.warning-box .warning-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--rose-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.expert-box {
  border: 1px solid var(--gold);
  background: var(--gold-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
}
.expert-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.expert-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.expert-quote {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

.watch-box {
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}
.watch-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.watch-box ul { margin-bottom: 0; }
.watch-box li { margin-bottom: 6px; font-size: 0.92rem; }

.ref-box {
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}
.ref-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ref-box ol { margin-bottom: 0; padding-left: 1.4rem; }
.ref-box li { font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px; line-height: 1.5; }
.ref-box a { color: var(--primary); }

/* ── PROGRESS BAR ─────────────────────────────────────────── */
.progress-wrap {
  background: var(--border-light);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-fill {
  background: var(--gradient);  /* brand: pink→purple gradient progress */
  height: 100%;
  border-radius: 100px;
  transition: width 0.4s ease;
}
.progress-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Module header progress */
.module-header {
  background: var(--gradient-hero);
  color: #fff;
  padding: 36px 0 28px;
}
.module-header h1 { color: #fff; font-size: 1.9rem; margin-bottom: 10px; }
.module-header .subtitle { color: rgba(255,255,255,0.82); font-size: 0.95rem; margin-bottom: 16px; }
.module-header .progress-wrap { background: rgba(255,255,255,0.25); }
.module-header .progress-fill { background: #fff; }
.module-header .progress-label { color: rgba(255,255,255,0.75); }

/* ── MODULE CONTENT ───────────────────────────────────────── */
.module-content { padding: 40px 0 60px; }

.section-heading {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--rose);  /* brand: pink underline matches DOCX section headings */
}

/* About this course box */
.course-info-box {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 28px 0;
}
.course-info-box h4 { color: var(--primary-dark); margin-bottom: 12px; }
.course-info-box ul { margin: 0; }

/* ── QUIZ ENGINE ──────────────────────────────────────────── */
.quiz-section {
  background: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 48px 0 32px;
}

.quiz-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.quiz-subtitle {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.quiz-question {
  margin-bottom: 28px;
}
.quiz-question p {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  font-size: 0.97rem;
}
.quiz-q-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

.quiz-options { list-style: none; padding: 0; margin: 0; }
.quiz-options li {
  margin-bottom: 8px;
}
.quiz-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.92rem;
  line-height: 1.5;
  background: var(--bg);
}
.quiz-options label:hover { border-color: var(--primary); background: var(--primary-light); }
.quiz-options input[type="radio"] { margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }

.quiz-options label.correct { border-color: var(--success); background: var(--success-light); font-weight: 600; }
.quiz-options label.incorrect { border-color: var(--fail); background: var(--fail-light); }

.quiz-submit-row { text-align: center; margin-top: 28px; }

.quiz-result {
  display: none;
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
}
.quiz-result.pass {
  display: block;
  background: var(--success-light);
  border: 2px solid var(--success);
  color: var(--success);
}
.quiz-result.fail {
  display: block;
  background: var(--fail-light);
  border: 2px solid var(--fail);
  color: var(--fail);
}
.quiz-result h3 { font-size: 1.2rem; margin-bottom: 8px; color: inherit; }
.quiz-result p { margin-bottom: 0; font-size: 0.92rem; }

.quiz-pass-actions { margin-top: 20px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── MODULE COMPLETION BANNER ─────────────────────────────── */
.completion-banner {
  display: none;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}
.completion-banner.visible { display: block; }
.completion-banner h2 { color: #fff; margin-bottom: 10px; }
.completion-banner p { color: rgba(255,255,255,0.85); margin-bottom: 20px; }

/* ── MODULE CARD (dashboard) ──────────────────────────────── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.module-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}
.module-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); text-decoration: none; border-color: var(--primary); }

.module-card.locked {
  background: var(--locked-bg);
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
}
.module-card.locked:hover { transform: none; box-shadow: var(--shadow); }

.module-card.completed { border-color: var(--success); }
.module-card.completed .module-num { background: var(--success); }

.module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.module-card.locked .module-num { background: var(--locked); }

.module-card-title { font-family: var(--font-heading); font-size: 0.97rem; font-weight: 600; color: var(--primary); line-height: 1.35; }
.module-card.locked .module-card-title { color: var(--text-muted); }

.module-card-status {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.module-card.completed .module-card-status { color: var(--success); }
.module-card-status .lock-icon { font-size: 0.85rem; }

/* ── LANDING PAGE ─────────────────────────────────────────── */
.hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 80px 24px 70px;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 2.8rem; margin-bottom: 16px; line-height: 1.2; }
.hero p { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; }
.hero .tagline { font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 18px; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat .num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: #fff; }
.hero-stat .label { font-size: 0.8rem; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; text-transform: uppercase; }

/* Landing sections */
.section { padding: 60px 24px; }
.section-alt { background: var(--card-alt); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 10px; }
.section-title p { color: var(--text-light); max-width: 540px; margin: 0 auto; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-item { text-align: center; padding: 20px; }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-item h4 { margin-bottom: 8px; color: var(--primary); }
.feature-item p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* Module list on landing */
.module-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.module-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.93rem;
}
.module-list .m-num {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.module-list .m-title { font-weight: 600; color: var(--primary); display: block; margin-bottom: 2px; }
.module-list .m-desc { color: var(--text-light); font-size: 0.85rem; }

/* Trust section */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.trust-item {
  text-align: center;
  padding: 18px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-light);
}
.trust-icon { font-size: 1.6rem; margin-bottom: 8px; }

/* Disclaimer section */
.disclaimer-section {
  background: var(--rose-light);
  border-top: 3px solid var(--rose-dark);
  padding: 32px 24px;
  text-align: center;
}
.disclaimer-section p { font-size: 0.85rem; color: var(--text-light); max-width: 700px; margin: 0 auto; line-height: 1.7; }
.disclaimer-section strong { color: var(--rose-dark); }

/* ── FORMS ────────────────────────────────────────────────── */
.form-wrap {
  max-width: 420px;
  margin: 60px auto;
  padding: 0 24px;
}
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-card h2 { text-align: center; margin-bottom: 4px; }
.form-card .form-sub { text-align: center; color: var(--text-light); font-size: 0.88rem; margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus { outline: none; border-color: var(--primary); }
.form-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 14px; }

/* ── DASHBOARD ────────────────────────────────────────────── */
.dashboard-header {
  background: var(--gradient-hero);
  color: #fff;
  padding: 40px 24px 36px;
}
.dashboard-header h1 { color: #fff; font-size: 1.8rem; margin-bottom: 6px; }
.dashboard-header p { color: rgba(255,255,255,0.8); font-size: 0.93rem; margin-bottom: 0; }
.dashboard-header .progress-wrap { background: rgba(255,255,255,0.25); margin-top: 20px; }
.dashboard-header .progress-fill { background: #fff; }

.dashboard-body { padding: 40px 0 60px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  padding: 36px 24px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.8;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer .footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 18px;
  padding-top: 16px;
  font-size: 0.78rem;
}

/* ── SECTION DIVIDER ──────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 2px solid var(--border-light);
  margin: 36px 0;
}

/* ── VIDEO EMBED ──────────────────────────────────────────── */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 12px 0;
  background: #000;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 680px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: 2rem; }
  .module-grid { grid-template-columns: 1fr; }
  .quiz-section { padding: 22px 18px; }
  .card { padding: 20px; }
  .hero { padding: 50px 20px 44px; }
  .hero-stats { gap: 24px; }
  .nav-links { display: none; }
}
