/* ==========================================================================
   My Womb Journey — Free Guides
   Guide cards, category filter and the Labor Prep Quiz banner.
   Loaded on free-guides.html and index.html (home teaser section).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Category filter (free-guides.html)
   -------------------------------------------------------------------------- */
.guide-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: var(--space-7);
}
.guide-filter__btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-700);
  background: var(--lavender-100);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.guide-filter__btn:hover { border-color: var(--lavender-300); }
.guide-filter__btn.is-active {
  color: var(--white);
  background: var(--purple-700);
}
.guide-filter__count {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Guide cards
   -------------------------------------------------------------------------- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--space-6);
}
.guides-grid--three { grid-template-columns: repeat(3, 1fr); }

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.6rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.guide-card::before { /* soft corner glow */
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--guide-tint, var(--lavender-100));
  opacity: 0.7;
  transition: transform var(--t);
}
.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--lavender-300);
}
.guide-card:hover::before { transform: scale(1.25); }
.guide-card[hidden] { display: none; }

.guide-card--mind    { --guide-tint: var(--green-100); --guide-ink: var(--green-700); }
.guide-card--prep    { --guide-tint: var(--lavender-100); --guide-ink: var(--purple-700); }
.guide-card--partner { --guide-tint: var(--mauve-100); --guide-ink: var(--mauve-500); }
.guide-card--after   { --guide-tint: #f6ecdf; --guide-ink: #a0703f; }

.guide-card__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.guide-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--guide-ink, var(--purple-700));
  background: var(--guide-tint, var(--lavender-100));
  border-radius: 16px;
}
.guide-card__icon svg { width: 26px; height: 26px; }
.guide-card__num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--guide-ink, var(--purple-700));
  opacity: 0.35;
}
.guide-card__tag {
  position: relative;
  align-self: flex-start;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.7rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--guide-ink, var(--purple-700));
  background: var(--guide-tint, var(--lavender-100));
  border-radius: var(--radius-pill);
}
.guide-card h3 {
  position: relative;
  margin-bottom: 0.5rem;
  font-size: var(--fs-h4);
}
.guide-card p {
  position: relative;
  flex-grow: 1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.guide-card__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green-500);
  border-radius: var(--radius-pill);
  transition: background-color var(--t), gap var(--t);
}
.guide-card__link svg { width: 16px; height: 16px; }
.guide-card__link:hover { color: var(--white); background: var(--green-700); gap: 0.7rem; }

/* --------------------------------------------------------------------------
   Labor Prep Quiz banner (shared)
   -------------------------------------------------------------------------- */
.quiz-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-6);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem) clamp(1.5rem, 1rem + 3vw, 3.25rem);
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(120deg, var(--purple-700) 0%, var(--wine) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quiz-banner::before,
.quiz-banner::after { /* decorative rings */
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.quiz-banner::before { width: 340px; height: 340px; right: -90px; top: -150px; }
.quiz-banner::after  { width: 220px; height: 220px; left: 30%; bottom: -150px; }

.quiz-banner__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  color: var(--purple-900);
  background: var(--green-300);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(190, 210, 166, 0.18);
}
.quiz-banner__badge svg { width: 38px; height: 38px; }
.quiz-banner__content { position: relative; }
.quiz-banner__eyebrow {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-300);
}
.quiz-banner h2,
.quiz-banner h3 {
  margin-bottom: 0.5rem;
  font-size: var(--fs-h3);
  color: var(--white);
}
.quiz-banner h2 em,
.quiz-banner h3 em { color: var(--green-300); }
.quiz-banner p { margin: 0; max-width: 560px; }
.quiz-banner__note {
  margin-top: 0.75rem !important;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}
.quiz-banner .btn { position: relative; white-space: nowrap; }

@media (max-width: 900px) {
  .quiz-banner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .quiz-banner p { margin-inline: auto; }
  .guides-grid--three { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

/* --------------------------------------------------------------------------
   Home teaser section
   -------------------------------------------------------------------------- */
.free-guides { background: var(--grad-soft); }
.free-guides__quiz { margin-top: var(--space-7); }
.free-guides__more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-7);
}

/* --------------------------------------------------------------------------
   Guides page extras
   -------------------------------------------------------------------------- */
.guides-page__quiz { padding-top: 0; }
.guides-disclaimer {
  max-width: 760px;
  margin: var(--space-7) auto 0;
  font-size: var(--fs-small);
  text-align: center;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .guide-card, .guide-card::before, .guide-card__link { transition: none; }
}

/* ==========================================================================
   Single guide page (guide.html)
   ========================================================================== */
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  color: var(--text);
}
.guide-meta__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.guide-meta__item svg { width: 16px; height: 16px; color: var(--green-700); }
.guide-meta .guide-card__tag { margin: 0; }

.guide-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}
.guide-aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  display: grid;
  gap: var(--space-5);
}
.guide-aside__box {
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.guide-aside__title {
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
}
.guide-toc { list-style: none; display: grid; gap: 0.15rem; counter-reset: toc; }
.guide-toc a {
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.guide-toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-weight: 700;
  color: var(--lavender-500);
}
.guide-toc a:hover { color: var(--purple-700); background: var(--lavender-100); }

.guide-actions { display: grid; gap: 0.6rem; }
.guide-actions .btn { width: 100%; justify-content: center; }
.guide-actions__link {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  text-decoration: underline;
}
.guide-actions__link:hover { color: var(--purple-700); }

.guide-progress__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}
.guide-progress__track {
  height: 8px;
  background: var(--green-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.guide-progress__track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--grad-green);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.guide-article { max-width: 760px; }
.guide-intro {
  margin-bottom: var(--space-7);
  padding-left: 1.2rem;
  font-size: var(--fs-lead);
  color: var(--ink);
  border-left: 3px solid var(--green-500);
}
.guide-section {
  margin-bottom: var(--space-7);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.guide-section h2 { margin-bottom: var(--space-4); font-size: var(--fs-h3); }

/* checklist */
.g-checklist { list-style: none; display: grid; gap: 0.6rem; }
.g-check {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t);
}
.g-check:hover { border-color: var(--green-300); }
.g-check input { position: absolute; opacity: 0; pointer-events: none; }
.g-check__box {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: transparent;
  border: 2px solid var(--green-300);
  border-radius: 7px;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.g-check__box svg { width: 15px; height: 15px; }
.g-check__text { line-height: 1.55; color: var(--ink); }
.g-check input:checked + .g-check__box { color: var(--white); background: var(--green-500); border-color: var(--green-500); }
.g-check input:checked ~ .g-check__text { color: var(--muted); text-decoration: line-through; }
.g-check input:checked ~ .g-check__text,
.g-check:has(input:checked) { background: var(--grey-50); }
.g-check input:focus-visible + .g-check__box { outline: 2px solid var(--purple-700); outline-offset: 2px; }

/* numbered steps */
.g-steps { list-style: none; display: grid; gap: 0.9rem; counter-reset: step; }
.g-steps li {
  position: relative;
  padding: 0.2rem 0 0 3.2rem;
  min-height: 2.3rem;
  color: var(--ink);
  line-height: 1.65;
  counter-increment: step;
}
.g-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-700);
  background: var(--lavender-100);
  border-radius: 50%;
}

/* tips */
.g-tips { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.g-tips li {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  background: var(--grey-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.g-tips strong { font-size: 0.95rem; color: var(--purple-700); }
.g-tips span { font-size: 0.95rem; line-height: 1.6; }

.g-note {
  display: flex;
  gap: 0.8rem;
  margin-bottom: var(--space-6);
  padding: 1.1rem 1.3rem;
  background: var(--mauve-100);
  border-radius: var(--radius);
}
.g-note svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--mauve-500); }
.g-note p { margin: 0; font-size: var(--fs-small); color: var(--ink); }

.g-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--grad-soft);
  border-radius: var(--radius-lg);
}
.g-cta p { flex: 1 1 280px; margin: 0; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; line-height: 1.3; color: var(--ink); }

.guide-related { background: var(--grey-50); }

@media (max-width: 1024px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .guide-aside__box--toc { display: none; }
}
@media (max-width: 640px) {
  .guide-aside { grid-template-columns: 1fr; }
  .g-tips { grid-template-columns: 1fr; }
}

/* Print / Save as PDF — only the guide content */
@media print {
  .topbar, .site-header, .drawer, .drawer-overlay, .site-footer, .footer, footer,
  .guide-aside, .guide-related, .g-cta, .page-hero__bg, .page-hero__dot, .breadcrumb,
  .whatsapp-float, .back-to-top, .skip-link, [class*="float"], .calc-modal { display: none !important; }
  body { background: #fff; }
  .page-hero { padding: 0 0 1rem; min-height: 0; background: none; }
  .page-hero__title { font-size: 28pt; }
  .section { padding-block: 0; }
  .guide-layout { display: block; }
  .guide-article { max-width: none; }
  .g-check, .g-tips li { break-inside: avoid; }
  .guide-section { break-inside: auto; }
  .guide-section h2 { break-after: avoid; }
}

/* ==========================================================================
   Birth Readiness Quiz (birth-readiness-quiz.html)
   ========================================================================== */
.quiz-app {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.quiz-screen[hidden] { display: none; }

.quiz-intro { text-align: center; }
.quiz-intro .quiz-banner__badge { margin: 0 auto 1.5rem; }
.quiz-intro h2 { margin-bottom: 0.75rem; }
.quiz-intro p { max-width: 560px; margin: 0 auto 1.5rem; }
.quiz-intro__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  list-style: none;
}
.quiz-intro__facts li {
  padding: 0.45rem 1rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--purple-700);
  background: var(--lavender-100);
  border-radius: var(--radius-pill);
}
.quiz-disclaimer { margin: 1.5rem auto 0 !important; font-size: var(--fs-xs); color: var(--muted); }

.quiz-progress { margin-bottom: 2rem; }
.quiz-progress__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-size: var(--fs-small);
  font-weight: 600;
}
.quiz-progress__head span:last-child { color: var(--green-700); }
.quiz-progress__track { height: 8px; background: var(--lavender-100); border-radius: var(--radius-pill); overflow: hidden; }
.quiz-progress__track span { display: block; height: 100%; width: 0; background: var(--lavender-500); border-radius: inherit; transition: width 0.4s ease; }

.quiz-question {
  margin-bottom: 1.75rem;
  font-size: var(--fs-h3);
  line-height: 1.3;
}
.quiz-question small {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--muted);
}
.quiz-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.quiz-option {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.2rem 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--grey-50);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t), background-color var(--t), transform var(--t);
}
.quiz-option:hover { border-color: var(--green-300); transform: translateY(-2px); }
.quiz-option.is-selected { color: var(--green-900); background: var(--green-100); border-color: var(--green-500); }
.quiz-option__dots { display: flex; gap: 4px; }
.quiz-option__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.quiz-option__dots i.on { background: var(--green-500); }
.quiz-nav { display: flex; justify-content: flex-start; margin-top: 1.5rem; min-height: 2.5rem; }
.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
}
.quiz-back svg { width: 16px; height: 16px; }
.quiz-back:hover { color: var(--purple-700); }
.quiz-back[hidden], .guide-actions__link[hidden], .guide-progress[hidden] { display: none; }

/* result */
.quiz-result__top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.quiz-ring {
  --pct: 0;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--green-500) calc(var(--pct) * 1%), var(--green-100) 0);
}
.quiz-ring__inner {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  background: var(--white);
  border-radius: 50%;
}
.quiz-ring strong { font-family: var(--font-heading); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.quiz-result__top h2 { margin-bottom: 0.4rem; font-size: var(--fs-h3); }
.quiz-result__top p { margin: 0; }

.quiz-areas { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; margin-bottom: 2.25rem; }
.area-score__head { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.area-score__track { height: 8px; background: var(--grey-100); border-radius: var(--radius-pill); overflow: hidden; }
.area-score__track span { display: block; height: 100%; border-radius: inherit; }
.area-score--high .area-score__track span { background: var(--green-500); }
.area-score--mid .area-score__track span { background: var(--lavender-500); }
.area-score--low .area-score__track span { background: var(--mauve-500); }

.quiz-recs__title { margin-bottom: 1rem; font-size: var(--fs-h4); }
.quiz-recs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.quiz-rec { padding: 1.3rem; background: var(--grey-50); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.quiz-rec h4 { margin-bottom: 0.8rem; font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--purple-700); }
.quiz-rec__guide {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.6rem;
  padding: 0.8rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  transition: box-shadow var(--t);
}
.quiz-rec__guide strong { font-size: 0.95rem; color: var(--ink); }
.quiz-rec__guide span { font-size: var(--fs-small); line-height: 1.5; color: var(--text); }
.quiz-rec__guide:hover { box-shadow: var(--shadow-sm); }
.quiz-rec__service {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--green-700);
}
.quiz-rec__service svg { width: 16px; height: 16px; }
.quiz-recs__empty { grid-column: 1 / -1; }
.quiz-result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

@media (max-width: 700px) {
  .quiz-options { grid-template-columns: repeat(2, 1fr); }
  .quiz-result__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .quiz-areas, .quiz-recs { grid-template-columns: 1fr; }
}
