/* ==========================================================================
   Program pages (/programs/<slug>/, generated by tools/build-program.mjs).
   Loaded after style.css, only on these pages: same tokens, same components.
   ========================================================================== */

/* White on --forest is 3.1:1 (DEPLOY.md §7); text on these pages sits on --forest-dark. */
.btn--book { background: var(--forest-dark); color: var(--white); }
.btn--book:hover { background: var(--ink); color: var(--white); }
.program-page .faq__q { background: var(--forest-dark); }
.program-page .faq__q:hover,
.program-page .faq[open] .faq__q { background: var(--ink); }
.program-page .faq { background: var(--forest-dark); }

.program-page .section-title { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem); }
.program-page .btn--outline { color: var(--forest-dark); border-color: var(--forest-dark); }
.program-page .btn--outline:hover { background: var(--forest-dark); color: var(--white); }

/* ---------- hero ---------- */
.program-hero { min-height: min(82svh, 720px); }
.program-hero::after { background: linear-gradient(180deg, rgba(31, 30, 24, .68) 0%, rgba(31, 30, 24, .5) 55%, rgba(31, 30, 24, .68) 100%); }
.program-hero__title { font-size: clamp(2rem, 1.2rem + 3.3vw, 3.7rem); line-height: 1.08; max-width: 22ch; margin-inline: auto; }
.program-hero__excerpt { max-width: 52ch; margin-bottom: clamp(1.2rem, 2.5vw, 1.6rem); }

.program-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  padding: 0;
}
.program-chips li {
  background: rgba(31, 30, 24, .62);
  color: var(--white);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .9rem;
  line-height: 1.35;
}

.program-buy {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
  background: rgba(255, 255, 255, .95);
  color: var(--ink-soft);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem 1rem 1.75rem;
  box-shadow: var(--shadow-lg);
}
.program-buy__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 .4rem; }
.program-buy__price strong { font-size: 1.6rem; color: var(--ink); }
.program-buy__from, .program-buy__per { font-size: .95rem; }
.program-buy__child { flex-basis: 100%; text-align: center; font-size: .85rem; }

/* ---------- at a glance ---------- */
.program-glance {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .program-glance { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
}

/* ---------- lists ---------- */
.program-ticks, .program-list { list-style: none; margin: 0; padding: 0; }
.program-ticks li, .program-list li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; }
.program-ticks li:last-child, .program-list li:last-child { margin-bottom: 0; }
.program-ticks li::before {
  content: '';
  position: absolute;
  left: .15rem;
  top: .42em;
  width: .9rem;
  height: .5rem;
  border-left: 2px solid var(--forest-dark);
  border-bottom: 2px solid var(--forest-dark);
  transform: rotate(-45deg) scale(.85);
}
.program-list li::before {
  content: '';
  position: absolute;
  left: .35rem;
  top: .68em;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--bark);
}
.program-list--roomy li { margin-bottom: .85rem; }
.program-list--roomy strong { color: var(--ink); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__step {
  position: relative;
  padding: 0 0 clamp(1.5rem, 3vw, 2rem) 2rem;
  border-left: 2px solid var(--sand);
  margin-left: .45rem;
}
.timeline__step::before {
  content: '';
  position: absolute;
  left: -.5rem;
  top: .3rem;
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  background: var(--forest-dark);
  box-shadow: 0 0 0 4px var(--snow);
}
.timeline__step--end { border-left-color: transparent; padding-bottom: 0; }
.timeline__step--end::before { background: var(--bark); }
.timeline__time {
  font-family: var(--hand);
  font-size: 1.2rem;
  letter-spacing: .03em;
  color: var(--bark);
  margin: 0 0 .1rem;
  line-height: 1.3;
}
.timeline__time span { font-size: 1rem; color: #5f5a4c; }
.timeline__title { font-size: 1.15rem; margin: 0 0 .35rem; }
.timeline__step--end .timeline__title { margin-bottom: 0; }
.timeline__body { margin: 0; }

/* ---------- three columns ---------- */
.program-columns {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.program-column {
  background: var(--snow);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.program-column__title { font-size: 1.2rem; color: var(--forest-dark); margin-bottom: .9rem; }

/* ---------- next dates ---------- */
.program-dates__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.program-dates__list li { padding: .55rem 0; border-bottom: 1px solid var(--birch); }
.program-dates__list li[hidden] { display: none; }
.program-dates__note { font-size: .92rem; margin-bottom: 1.4rem; }

/* ---------- other programs ---------- */
.others { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.other {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem 1.2rem;
  border: 2px solid var(--forest-dark);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.other:hover { background: var(--forest-dark); color: var(--white); }
.other span { font-size: .9rem; }

/* ---------- sticky booking bar: phones only ---------- */
.program-bar { display: none; }
@media (max-width: 743px) {
  .program-page { padding-bottom: 72px; }
  .program-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 65;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem var(--gutter) max(.6rem, env(safe-area-inset-bottom));
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 -6px 20px rgba(31, 30, 24, .18);
  }
  .program-bar:hover { color: var(--ink); }
  .program-bar__price { font-weight: 700; font-size: 1.15rem; }
  .program-bar__cta {
    background: var(--forest-dark);
    color: var(--white);
    border-radius: 999px;
    padding: .6rem 1.5rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .95rem;
  }
  .modal-open .program-bar, .lightbox-open .program-bar { display: none; }
  /* the WhatsApp badge sits above the bar */
  .program-page .wa { bottom: calc(72px + .75rem); }
}
