/* Program sales pages (tools/build-program-pages.mjs). Loads AFTER ff.css + reset.css:
   the Generational Release page's own inline rules, plus the switcher, photo strips and phase cards. */

/* ---- from the Generational Release page ---- */
.hero-copy-col .hero-body + .hero-body { margin-top: 1.1rem; }
.hero-copy-col .dec-cta { margin: 2rem 0 0; text-align: left; }
.hero-copy-col .cta-note { text-align: left; }
.nav-cta { text-decoration: none; }
.section-white h3, .section-cream h3 { font-family: var(--serif); font-size: var(--t-title); font-weight: var(--w-regular); color: var(--cosmic-night); line-height: 1.2; margin: 2.75rem 0 0.75rem; }
.dec-cta { margin: 2.25rem 0 1.5rem; text-align: center; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-copy-col .dec-cta { justify-content: flex-start; }
.dec-cta .btn-gold, .dec-cta .btn-ghost { font-size: 1rem; padding: 1.2rem 2.25rem; text-decoration: none; }
.dec-sign { font-family: var(--serif); font-size: var(--t-lead); margin-top: 2rem; }

/* ---- program switcher (under the nav, part of the sticky header) ---- */
.prog-switch {
  display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.7rem 1.5rem; background: var(--warm-cream);
  border-bottom: 1px solid var(--gold-border);
}
.prog-switch a {
  font-family: var(--sans); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: var(--w-bold); color: var(--gold-deep); text-decoration: none;
  padding: 0.6rem 1.35rem; border: 1px solid var(--gold-border); background: var(--divine-white);
  transition: background 0.2s, color 0.2s, border-color 0.2s; text-align: center; line-height: 1.3;
}
.prog-switch a:hover { border-color: var(--gold); }
.prog-switch a.on { background: var(--gold-gradient); color: #fff; border-color: transparent; }

/* ---- opening section after the hero ---- */
.section-white p.lead, .section-cream p.lead { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.5; color: var(--gold-deep); }

/* ---- lists ---- */
.gold-list { list-style: none; margin: 1.75rem 0; padding: 0; }
.gold-list li { position: relative; padding: 0 0 1.1rem 1.75rem; font-size: var(--t-body); line-height: 1.7; color: var(--cosmic-night); }
.gold-list li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---- phases (content tables) as cards ---- */
.phase-cards { display: grid; gap: 1.25rem; margin: 2rem 0; }
.phase-card { background: #fff; border: 1px solid var(--gold-border); border-top: 2px solid var(--gold); padding: 1.75rem 2rem; }
.section-white .phase-card { background: var(--warm-cream); }
.section-white p.phase-name, .section-cream p.phase-name { font-family: var(--serif); font-size: var(--t-title); color: var(--cosmic-night); line-height: 1.2; margin: 0 0 0.75rem; }
.section-white p.phase-label, .section-cream p.phase-label { font-family: var(--sans); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); font-weight: var(--w-bold); margin: 1rem 0 0.35rem; }
.phase-card .phase-part:first-of-type p.phase-label { margin-top: 0; }
.phase-card p { margin-bottom: 0.5rem; }
.phase-name strong { font-weight: var(--w-medium); }

/* ---- price tables ---- */
.value-table td:first-child { font-weight: var(--w-regular); }
.value-table .final-row td, .value-table .final-row td:first-child, .value-table .final-row td:last-child { color: var(--gold-deep); border-top: none; padding-top: 0.75rem; }
.value-table .final-row td strong { color: var(--gold-deep); font-size: inherit; }
.value-table .total-row td strong { font-size: inherit; font-weight: var(--w-medium); }
.section-white p.fine, .section-cream p.fine { color: var(--smoke); }

/* ---- photo strips ---- */
.photo-strip { background: var(--divine-white); padding: 0 4rem; }
.photo-strip + section, section + .photo-strip { margin-top: 0; }
.photo-strip-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: 0; transform: translateY(0); }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; border: 1px solid var(--gold-border); box-shadow: 10px 10px 0 rgba(179,138,50,0.12); }
/* the strip sits between two sections: give it the colour of the one above + breathing room */
.section-cream + .photo-strip { background: linear-gradient(var(--warm-cream) 50%, var(--divine-white) 50%); }
.section-white + .photo-strip { background: linear-gradient(var(--divine-white) 50%, var(--warm-cream) 50%); }

/* ---- confirmation page ---- */
.ty-page .section-cream { min-height: 70vh; padding-top: 7rem; }
.ty-page .hero-eyebrow { justify-content: center; }
.ty-page footer { background: var(--warm-cream); }

@media (max-width: 900px) {
  .hero-copy-col .dec-cta, .hero-copy-col .cta-note { text-align: center; justify-content: center; }
  .photo-strip { padding: 0 1.5rem; }
  .photo-strip-inner { gap: 0.75rem; }
}
@media (max-width: 760px) {
  .dec-cta .btn-gold, .dec-cta .btn-ghost { display: block; width: 100%; text-align: center; letter-spacing: 0.08em; padding-left: 1rem; padding-right: 1rem; }
  .prog-switch { gap: 0.4rem; padding: 0.55rem 0.6rem; flex-wrap: nowrap; }
  .prog-switch a { flex: 1 1 0; font-size: 1rem; letter-spacing: 0.04em; padding: 0.5rem 0.35rem; }
  .phase-card { padding: 1.4rem 1.25rem; }
  .value-table th, .value-table td { padding-left: 0.4rem; padding-right: 0.4rem; }
  .value-table td:last-child { white-space: normal; }
  /* three photos become a swipeable row */
  .photo-strip-inner { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .photo-strip figure { flex: 0 0 78%; scroll-snap-align: center; }
}

/* reset.css sizes the event page's #join form; here #join is a full section */
section#join { max-width: none; margin: 0; }
/* phones: the two-row header scrolls away instead of covering a fifth of the screen */
@media (max-width: 760px) { .site-header { position: relative; } }

/* ---- individual offers: cards, interest toggles, one deposit ---- */
.offers-lead { max-width: 760px; margin: 0 auto 2.5rem; font-size: var(--t-body); line-height: 1.6; }
.offer-list { display: grid; gap: 1.75rem; max-width: 1040px; margin: 0 auto; }
.offer-card { background: var(--divine-white); border: 1px solid var(--gold-border-card); border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(26,26,26,0.06); transition: border-color .2s, box-shadow .2s; }
.offer-card.is-marked { border-color: var(--gold-deep); box-shadow: 0 0 0 2px var(--gold-deep), 0 12px 34px rgba(159,120,56,0.18); }
.offer-top { display: grid; grid-template-columns: 300px 1fr; }
.offer-thumb { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.offer-sum { padding: 2rem 2.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.offer-name { font-family: var(--serif); font-size: var(--t-title); font-weight: var(--w-regular); color: var(--cosmic-night); margin: 0; line-height: 1.15; }
.offer-start { font-family: var(--sans); font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin: 0; font-weight: var(--w-medium); }
.offer-short { font-size: var(--t-body); line-height: 1.55; color: var(--text-soft); margin: 0.25rem 0 0; }
.offer-price { font-family: var(--serif); font-size: var(--t-lead); color: var(--gold-deep); margin: 0.25rem 0 0; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.75rem; align-items: center; }
.offer-actions .btn-ghost { cursor: pointer; }
.interest { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--sans); font-size: 1.05rem; font-weight: var(--w-medium); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cosmic-night); background: transparent; border: 1px solid var(--gold-border-card); border-radius: 999px; padding: 0.8rem 1.3rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.interest:hover { border-color: var(--gold-deep); }
.interest .tick { width: 1.15rem; height: 1.15rem; border: 1.5px solid var(--gold-deep); border-radius: 3px; display: inline-block; position: relative; flex: none; }
.interest[aria-pressed="true"] { background: var(--gold-gradient); color: #fff; border-color: var(--gold-deep); }
.interest[aria-pressed="true"] .tick { border-color: #fff; background: #fff; }
.interest[aria-pressed="true"] .tick::after { content: ''; position: absolute; left: 0.33rem; top: 0.08rem; width: 0.35rem; height: 0.65rem; border: solid var(--gold-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.offer-toggle:focus-visible, .interest:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.offer-details { padding: 0.5rem 2.25rem 2.25rem; border-top: 1px solid var(--gold-border); }
.offer-details p, .offer-details li { font-size: var(--t-body); line-height: 1.6; }
.offer-h { font-family: var(--serif); font-size: var(--t-title); font-weight: var(--w-regular); margin: 1.75rem 0 0.75rem; color: var(--cosmic-night); }
.marked-line { font-size: var(--t-body); color: var(--gold-deep); min-height: 1.6em; }
@media (max-width: 760px) {
  .offer-top { grid-template-columns: 1fr; }
  .offer-thumb { min-height: 0; height: 240px; }
  .offer-sum { padding: 1.5rem 1.25rem; }
  .offer-details { padding: 0.25rem 1.25rem 1.75rem; }
  .offer-actions { flex-direction: column; align-items: stretch; }
  .offer-actions > * { width: 100%; justify-content: center; text-align: center; }
}
.offer-card p.offer-price, .offer-card p.offer-price strong { font-family: var(--serif); font-size: 2.25rem; font-weight: var(--w-regular); color: var(--gold-deep); line-height: 1.1; }
.offer-card p.offer-start { font-size: 1.1rem; letter-spacing: 0.1em; }
.interest { font-size: 1.1rem; }
/* four program tabs: a 2×2 grid on phones so none runs off the screen */
@media (max-width: 760px) {
  .prog-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .prog-switch a { min-width: 0; white-space: normal; letter-spacing: 0.02em; padding: 0.5rem 0.25rem; text-align: center; line-height: 1.2; }
}
@media (max-width: 760px) {
  .value-table { width: 100%; max-width: 100%; }
  .value-table { table-layout: fixed; }
  .value-table th, .value-table td { white-space: normal; overflow-wrap: break-word; }
  .value-table th:last-child, .value-table td:last-child { width: 8.5rem; text-align: right; }
}
