/* ============================================================
   Black Space Therapy - /coaching funnel
   Shared stylesheet for all coaching-route pages.
   Inherited verbatim from the /my-journey therapy funnel so the
   two routes stay visually identical (live CSS is authoritative).
   Tokens, typography, and reusable components only - page-
   specific layout lives in each page's <style> block.
   ============================================================ */

/* -------- 1. Design tokens (single source of truth) -------- */
:root {
  /* Color palette (Section 2 of build prompt) */
  --bs-cream:        #FAF7F2;
  --bs-charcoal:     #1a1a1a;
  --bs-sage:         #5C7A6B;
  --bs-brass:        #C9A96E;
  --bs-tan:          #8B7355;
  --bs-text-body:    #444;
  --bs-text-muted:   #666;
  --bs-text-light:   #888;
  --bs-border-light: rgba(0,0,0,0.08);
  --bs-border-medium:rgba(0,0,0,0.15);
  --bs-border-strong:rgba(0,0,0,0.2);
  --bs-white:        #ffffff;

  /* Type families */
  --bs-serif: Georgia, 'Times New Roman', serif;
  --bs-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* -------- 2. Reset (minimal, intentional) -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; }

/* -------- 3. Document defaults -------- */
body {
  font-family: var(--bs-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--bs-text-body);
  background: var(--bs-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip-to-content (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bs-charcoal); color: var(--bs-cream);
  padding: 8px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -------- 4. Typography -------- */
h1, h2, h3, h4 {
  font-family: var(--bs-serif);
  font-weight: 400;
  color: var(--bs-charcoal);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1.bs-h1-lg  { font-size: 52px; line-height: 1.05; letter-spacing: -1px; }
h1.bs-h1-md  { font-size: 38px; }
h1.bs-h1-sm  { font-size: 32px; line-height: 1.3; }
h2           { font-size: 32px; }
h3           { font-size: 24px; }

/* The signature italic emphasis treatment - sage serif italic
   on key emotional words inside an H1/H2. */
h1 em, h2 em, h3 em, .bs-em {
  font-style: italic;
  color: var(--bs-sage);
}

p { margin: 0 0 1em; }

/* Eyebrow label (above headlines) */
.bs-eyebrow {
  font-family: var(--bs-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bs-tan);
  margin-bottom: 16px;
  display: block;
}

/* Helper text (below CTAs / under inputs) */
.bs-helper {
  font-size: 12px;
  color: var(--bs-text-light);
  margin-top: 12px;
}

/* -------- 5. Layout primitives -------- */
.bs-page {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.bs-section {
  padding: 60px 0;
}
.bs-center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.bs-divider {
  width: 40px;
  height: 1px;
  background: var(--bs-brass);
  border: 0;
  margin: 80px auto;
}

/* -------- 6. Top nav (used on landing + quiz) -------- */
.bs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
}
.bs-nav__brand {
  font-family: var(--bs-serif);
  font-size: 18px;
  color: var(--bs-charcoal);
  text-decoration: none;
}
.bs-nav__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--bs-text-muted);
}
.bs-nav__links a {
  text-decoration: none;
  color: inherit;
}
.bs-nav__links a:hover { color: var(--bs-charcoal); }

/* -------- 7. Buttons -------- */
.bs-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--bs-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.bs-btn--primary {
  background: var(--bs-charcoal);
  color: var(--bs-cream);
}
.bs-btn--primary:hover { opacity: 0.9; }
.bs-btn--ghost {
  background: transparent;
  color: var(--bs-charcoal);
  border-color: var(--bs-border-medium);
}
.bs-btn--ghost:hover { border-color: var(--bs-charcoal); }
.bs-btn--full { width: 100%; display: block; }
/* Visible keyboard focus on all primary/ghost CTAs (WCAG 2.4.7). */
.bs-btn:focus-visible {
  outline: 2px solid var(--bs-sage);
  outline-offset: 2px;
}

/* -------- 8. Cards -------- */
.bs-card {
  background: var(--bs-white);
  border: 0.5px solid var(--bs-border-light);
  border-radius: 8px;
  padding: 32px;
}
.bs-card--featured {
  border: 1px solid var(--bs-brass);
}

/* "Most chosen" / "Recommended" / "Reserved" brass banner */
.bs-banner {
  background: var(--bs-brass);
  color: var(--bs-white);
  font-family: var(--bs-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 16px;
  text-align: center;
  border-radius: 8px 8px 0 0;
  margin: -32px -32px 24px;
}

/* -------- 9. Form fields -------- */
.bs-field {
  margin-bottom: 18px;
}
.bs-field__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--bs-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.bs-field__input,
.bs-field__select,
.bs-field__textarea {
  width: 100%;
  font-family: var(--bs-sans);
  font-size: 15px;
  color: var(--bs-charcoal);
  background: var(--bs-white);
  border: 0.5px solid var(--bs-border-medium);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}
.bs-field__input:focus,
.bs-field__select:focus,
.bs-field__textarea:focus {
  outline: 2px solid var(--bs-sage);
  outline-offset: 1px;
  border-color: var(--bs-sage);
}
.bs-field__textarea {
  min-height: 70px;
  resize: vertical;
}
.bs-field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bs-field__error {
  color: #B23A3A;
  font-size: 12px;
  margin-top: 6px;
  min-height: 14px;
}

/* Pill-style segmented buttons (for callback window, contact method, insurance) */
.bs-segmented {
  display: grid;
  gap: 8px;
}
.bs-segmented--4 { grid-template-columns: repeat(4, 1fr); }
.bs-segmented--3 { grid-template-columns: repeat(3, 1fr); }
.bs-segmented--2 { grid-template-columns: repeat(2, 1fr); }
.bs-segmented__btn {
  padding: 12px 14px;
  border: 0.5px solid var(--bs-border-medium);
  border-radius: 4px;
  background: var(--bs-white);
  font-size: 13px;
  color: var(--bs-charcoal);
  text-align: center;
  transition: all 0.15s ease;
}
.bs-segmented__btn:hover {
  border-color: var(--bs-sage);
  background: var(--bs-cream);
}
.bs-segmented__btn[aria-pressed="true"] {
  border: 1.5px solid var(--bs-charcoal);
  background: var(--bs-cream);
  font-weight: 500;
}

/* -------- 10. Quiz option cards -------- */
.bs-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border: 0.5px solid var(--bs-border-medium);
  border-radius: 6px;
  background: var(--bs-white);
  margin-bottom: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.bs-option:hover {
  border-color: var(--bs-sage);
  background: var(--bs-cream);
}
.bs-option:focus-visible {
  outline: 2px solid var(--bs-sage);
  outline-offset: 2px;
}
.bs-option[aria-checked="true"] {
  border: 1.5px solid var(--bs-charcoal);
  background: var(--bs-cream);
}
.bs-option__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--bs-charcoal);
  margin-bottom: 4px;
}
.bs-option__desc {
  font-size: 13px;
  color: var(--bs-text-muted);
}

/* -------- 11. Quiz progress bar -------- */
.bs-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--bs-text-muted);
}
.bs-progress__dots {
  display: flex;
  gap: 8px;
}
.bs-progress__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bs-border-medium);
  transition: background 0.2s ease;
}
.bs-progress__dot--active {
  background: var(--bs-charcoal);
}
.bs-progress__dot--complete {
  background: var(--bs-sage);
}

/* -------- 12. Pathway recap card (used on /reserve + /confirmed) -------- */
.bs-pathway-card {
  background: var(--bs-white);
  border: 1px solid var(--bs-brass);
  border-radius: 8px;
  overflow: hidden;
}
.bs-pathway-card__body { padding: 28px; }
.bs-pathway-card__name {
  font-family: var(--bs-serif);
  font-size: 22px;
  color: var(--bs-charcoal);
  margin-bottom: 4px;
}
.bs-pathway-card__tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bs-sage);
  margin-bottom: 18px;
}
.bs-pathway-card__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 0.5px solid var(--bs-border-light);
  font-size: 13px;
}
.bs-pathway-card__row span:first-child { color: var(--bs-text-muted); }
.bs-pathway-card__row span:last-child  { color: var(--bs-charcoal); font-weight: 500; }

/* Sage left-border quote block (reasoning quote on /your-pathway) */
.bs-quote {
  border-left: 3px solid var(--bs-sage);
  background: var(--bs-cream);
  padding: 18px 22px;
  font-style: italic;
  color: var(--bs-text-body);
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}

/* -------- 13. Trust strip (landing) -------- */
.bs-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--bs-white);
  padding: 40px;
  border-radius: 8px;
}
.bs-trust__item { text-align: center; }
.bs-trust__num {
  font-family: var(--bs-serif);
  font-size: 32px;
  color: var(--bs-charcoal);
  display: block;
  margin-bottom: 6px;
}
.bs-trust__label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bs-text-muted);
}

/* -------- 14. Footer -------- */
.bs-footer {
  text-align: center;
  padding: 60px 0 40px;
  font-size: 13px;
  color: var(--bs-text-muted);
}
.bs-footer a { color: var(--bs-sage); text-decoration: none; }
.bs-footer a:hover { text-decoration: underline; }

/* -------- 15. Mobile (768px and below) -------- */
@media (max-width: 768px) {
  .bs-page { padding: 24px; }
  .bs-section { padding: 48px 0; }

  h1.bs-h1-lg { font-size: 36px; letter-spacing: -0.5px; }
  h1.bs-h1-md { font-size: 30px; }
  h1.bs-h1-sm { font-size: 26px; }
  h2 { font-size: 26px; }

  .bs-divider { margin: 48px auto; }

  /* Stack any 2-col rows */
  .bs-field__row { grid-template-columns: 1fr; }

  /* Trust strip → 2x2 */
  .bs-trust { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }

  /* Segmented buttons wrap better at 2 cols on tight screens */
  .bs-segmented--4 { grid-template-columns: repeat(2, 1fr); }

  /* Buttons full width on mobile by default */
  .bs-btn { padding: 14px 24px; }

  /* Nav links can wrap or hide on mobile (page-specific override allowed) */
  .bs-nav__links { display: none; }
}

/* -------- 16. Print / motion-reduce -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

