/* =============================================================
   Clear Path Bible Studies — Learning Pathways + new forms
   Append to assets/site.css, or load after it.
   Uses ONLY existing tokens from clearpath-tokens.css.
   Brand discipline: navy anchors the surface, ONE gold accent
   role per card (the step rail + CTA share the same gold).
   ============================================================= */

/* ----- Section shell: ivory editorial surface, sits well between
         the navy "studies/cream" block and the "why" block ------ */
.pathways { background: var(--ivory); position: relative; overflow: hidden; }
.pathways::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 82% -10%, rgba(212,165,66,0.07) 0%, transparent 42%);
}

/* The journey rail behind the three cards (desktop only) */
.pathways__rail {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5); position: relative; z-index: 2;
}
@media (max-width: 920px) { .pathways__rail { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ----- Pathway card ----- */
.pathway {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--stroke-on-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.pathway:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
}

/* Navy cap carries the step number + icon — keeps navy anchoring.
   Journey-of-light treatment: each path gets its own atmosphere —
   dawn (new believer) → midday gold (disciple) → summit light (leadership). */
.pathway__cap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  padding: var(--s-6) var(--s-6) var(--s-5);
  color: var(--white);
}
.pathway__cap > * { position: relative; z-index: 2; }

/* atmospheric glow layer */
.pathway__cap::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
/* gold horizon bar anchoring each cap */
.pathway__cap::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2;
}

/* Path 1 · Dawn — first light on the horizon */
.pathway--1 .pathway__cap {
  background: linear-gradient(165deg, #071129 0%, #12275a 62%, #274171 100%);
}
.pathway--1 .pathway__cap::before {
  background:
    radial-gradient(120% 85% at 12% 108%, rgba(255,212,140,0.38) 0%, rgba(255,212,140,0.10) 38%, rgba(255,212,140,0) 62%),
    radial-gradient(60% 45% at 85% -10%, rgba(48,82,140,0.55) 0%, rgba(48,82,140,0) 70%);
}
.pathway--1 .pathway__cap::after {
  background: linear-gradient(90deg, var(--sunrise) 0%, var(--gold) 45%, rgba(212,165,66,0) 100%);
}

/* Path 2 · Midday gold — the featured, sunlit path */
.pathway--2 .pathway__cap {
  background: linear-gradient(165deg, #0a1b40 0%, #1d3a74 60%, #2c4f92 100%);
}
.pathway--2 .pathway__cap::before {
  background:
    radial-gradient(95% 80% at 50% -25%, rgba(240,196,92,0.34) 0%, rgba(240,196,92,0.10) 42%, rgba(240,196,92,0) 68%),
    radial-gradient(70% 55% at 100% 110%, rgba(255,212,140,0.16) 0%, rgba(255,212,140,0) 65%);
}
.pathway--2 .pathway__cap::after {
  background: linear-gradient(90deg, rgba(240,196,92,0) 0%, var(--gold-bright) 50%, rgba(240,196,92,0) 100%);
}

/* Path 3 · Summit light — high, clear air for those who lead */
.pathway--3 .pathway__cap {
  background: linear-gradient(165deg, #081530 0%, #1e3a6e 55%, #30528c 100%);
}
.pathway--3 .pathway__cap::before {
  background:
    radial-gradient(110% 80% at 88% -15%, rgba(232,195,115,0.30) 0%, rgba(232,195,115,0.08) 40%, rgba(232,195,115,0) 64%),
    radial-gradient(80% 60% at 0% 115%, rgba(48,82,140,0.60) 0%, rgba(48,82,140,0) 70%);
}
.pathway--3 .pathway__cap::after {
  background: linear-gradient(90deg, rgba(212,165,66,0) 0%, var(--gold-soft) 55%, var(--gold) 100%);
}

.pathway__step {
  font-family: var(--font-serif); font-style: italic;
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--gold-bright); margin: 0 0 var(--s-4);
  display: inline-flex; align-items: center; gap: 8px;
}
.pathway__step::before {
  content: ""; width: 26px; height: 2px; background: var(--gold-bright);
}
.pathway__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: rgba(240,196,92,0.12);
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 var(--s-4);
}
.pathway__cap h3 {
  font-family: var(--font-serif); font-weight: 500; font-size: 24px;
  color: var(--white); margin: 0 0 6px; line-height: 1.2;
}
.pathway__who {
  font-family: var(--font-sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0;
}

/* Body */
.pathway__body { padding: var(--s-6); flex: 1; display: flex; flex-direction: column; }
.pathway__desc {
  font-family: var(--font-sans); font-size: 14.5px; line-height: 1.65;
  color: var(--fg-on-light-muted); margin: 0 0 var(--s-5);
}

/* Study sequence — the journey stepper inside each path */
.path-steps {
  list-style: none; margin: 0 0 var(--s-6); padding: 0;
  position: relative;
}
/* vertical connector line running through the step numbers */
.path-steps::before {
  content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px;
  width: 2px; background: linear-gradient(var(--gold) 0%, var(--stroke-on-light) 100%);
}
.path-step {
  position: relative; display: flex; align-items: flex-start; gap: var(--s-4);
  padding: 7px 0;
}
.path-step__num {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 13px;
  box-shadow: 0 0 0 4px var(--white); position: relative; z-index: 1;
}
.path-step > a, .path-step > div { display: block; padding-top: 2px; text-decoration: none; }
.path-step__name {
  display: block; font-family: var(--font-serif); font-weight: 500;
  font-size: 16.5px; color: var(--navy); line-height: 1.25;
  transition: color var(--dur-base) var(--ease-standard);
}
.path-step > a:hover .path-step__name { color: var(--gold); }
.path-step__note {
  display: block; font-family: var(--font-sans); font-size: 12.5px;
  color: var(--fg-on-light-muted); line-height: 1.4; margin-top: 1px;
}
/* In-development steps — visible, muted, not clickable */
.path-step--soon .path-step__num {
  background: var(--white); color: var(--fg-on-light-muted);
  border: 1.5px dashed color-mix(in srgb, var(--gold) 55%, transparent);
}
.path-step--soon .path-step__name { color: var(--fg-on-light-muted); font-style: italic; }
.path-step__pill {
  display: inline-block; font-family: var(--font-sans); font-style: normal;
  font-weight: 700; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); background: rgba(212,165,66,0.12);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  padding: 2px 7px; border-radius: var(--r-pill); margin-left: 6px;
  vertical-align: middle;
}

/* Featured path (Disciple) — gold badge + accent border */
.pathway--featured { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.pathway__badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-deep); background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 5px 14px; border-radius: var(--r-pill);
  box-shadow: 0 4px 14px rgba(212,165,66,0.4); white-space: nowrap;
}
.pathway { position: relative; }

.pathway__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 13px 20px; border-radius: var(--r-pill);
  background: var(--navy); color: var(--white);
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard);
}
.pathway__cta:hover { background: var(--gold-bright); color: var(--navy-deep); }
/* Featured path leads with the gold CTA */
.pathway--featured .pathway__cta { background: var(--gold-bright); color: var(--navy-deep); }
.pathway--featured .pathway__cta:hover { background: var(--gold); color: var(--navy-deep); }

/* =============================================================
   New forms — Feedback/Testimony + Ministry Partnership
   Reuses .signup-card styling. These two helpers add the
   radio/checkbox-style choice rows the new forms need.
   ============================================================= */

/* Two forms side by side on wide screens, stacked on narrow */
.dual-forms { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
@media (max-width: 920px) { .dual-forms { grid-template-columns: 1fr; } }

/* Inline choice chips (Yes / No, contact method) */
.choice-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: 0 0 var(--s-4); }
.choice-row .choice {
  position: relative; flex: 1 1 auto; min-width: 96px;
}
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label {
  display: block; text-align: center; cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em; text-transform: none;
  color: var(--navy); background: var(--ivory);
  border: 1px solid var(--stroke-on-light); border-radius: var(--r-md);
  padding: 11px 14px; margin: 0;
  transition: border-color var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard);
}
.choice-row input:checked + label {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.choice-row input:focus-visible + label { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* A small label that sits above a choice-row */
.field-label {
  display: block; font-family: var(--font-sans); font-weight: 500;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 8px;
}

/* =============================================================
   Persistent mobile header CTA
   Visible only at mobile widths, where the desktop nav + CTAs
   collapse into the hamburger. Sits before the toggle.
   ============================================================= */
.site-header__cta-mobile {
  display: none;
  margin-left: auto;
  padding: 9px 18px; font-size: 11px;
  white-space: nowrap; flex: 0 0 auto;
}
@media (max-width: 960px) {
  .site-header__inner { gap: var(--s-3); }
  .site-header__cta-mobile { display: inline-flex; }
  /* push the hamburger to sit just right of the CTA, not far-right */
  .site-header .nav-toggle { margin-left: var(--s-3); flex: 0 0 auto; }
}
@media (max-width: 380px) {
  .site-header__cta-mobile { padding: 8px 13px; font-size: 10px; letter-spacing: 0.1em; }
}

/* =============================================================
   Scroll reveal — subtle entrance for tagged blocks.
   Elements start slightly lowered + transparent, settle on view.
   No-JS / reduced-motion: everything stays visible (the JS simply
   never removes the base state, so we default to visible here and
   let JS add the pre-state only when it runs).
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur-slow) var(--ease-entrance),
                transform var(--dur-slow) var(--ease-entrance);
    will-change: opacity, transform;
  }
  .js-reveal [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* =============================================================
   Header refinement — less crowded, more breathing room.
   Four nav links + one CTA now sit with air around them.
   ============================================================= */
@media (min-width: 961px) {
  .site-header__inner { padding-top: 18px; padding-bottom: 18px; }
  /* generous space between the wordmark and the nav */
  .site-header .nav { margin-left: var(--s-8); gap: var(--s-7); }
  /* lighter, calmer link treatment */
  .site-header .nav a { font-size: 13.5px; letter-spacing: 0.04em; }
  /* a little more presence on the single gold CTA */
  .site-header__cta .btn { padding: 11px 26px; }
}
