/* =============================================================================
   program-page.css · one page per custom program (v0.78.0)
   -----------------------------------------------------------------------------
   Used by the six program-*.html pages, and by the "Custom program" section
   near the top of medical-weight-management.html, medical-restorative-care.html
   and hair-restoration.html.

   Everything is prefixed .pp- so nothing here can leak into other pages.
   This file does not depend on october-updates.css: the three older pages do
   not load it, and the program section has to look the same there.

   Colour comes from tokens only (design-system.css, overridden by the Plum
   theme). No hex literals.
   ============================================================================= */

.pp-wrap { box-sizing: border-box; max-width: 1180px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) 28px; }
.pp-kicker { display: block; margin: 0 0 16px; font: 600 12px/1.6 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.pp-kicker a { color: inherit; text-decoration: none; }
.pp-kicker a:hover, .pp-kicker a:focus-visible { text-decoration: underline; }
.pp h1, .pp h2, .pp h3 { font-family: var(--font-display); color: var(--espresso); text-wrap: balance; }
.pp h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; margin: 0 0 20px; }
.pp p { font-size: 18px; line-height: 1.7; color: var(--taupe); max-width: 46em; margin: 0 0 20px; }
.pp p:last-child { margin-bottom: 0; }
.pp a:not(.pp-btn):not(.pp-chip) { color: var(--gold-deep); }

/* ---- Buttons ---- */
.pp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border-radius: var(--radius-pill); background-image: var(--gold-sheen), var(--gold-metal); background-color: var(--gold-antique); color: var(--text-on-gold); font: 600 12px var(--font-ui); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 1.5px solid transparent; }
.pp-btn--ghost { background: transparent; border-color: var(--gold-antique); color: var(--espresso); }
.pp-btn:hover { box-shadow: var(--shadow-sm); }
.pp-btn:focus-visible, .pp-chip:focus-visible, .pp-faq summary:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 4px; }

/* ---- Hero: title and actions beside the program photo ---- */
.pp-hero { background: var(--cream); border-bottom: 1px solid var(--champagne); }
.pp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.pp-hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.08; margin: 0 0 20px; }
.pp-hero__tag { font-size: 21px !important; line-height: 1.55 !important; color: var(--espresso) !important; }
.pp-hero__photo { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-lg); }
.pp-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Who it's for ---- */
.pp-for { background: var(--porcelain); }
.pp-for h2 { max-width: 30em; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; }
.pp-zones { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pp-zones li { background: var(--marble); border: var(--hairline); border-radius: var(--radius-sm); padding: 22px 22px 24px; border-top: 3px solid var(--gold-antique); }
.pp-zones b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--espresso); margin-bottom: 6px; }
.pp-zones span { font-size: 16px; line-height: 1.6; color: var(--taupe); }

/* Who it's for and the steps share the page background, so close the double gap. */
.pp-for + .pp-wrap { padding-top: 8px; }

/* ---- How the program works: Begin / Build / Keep (or a countdown) ---- */
.pp-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--pp-cols, 3), minmax(0, 1fr)); gap: 18px; counter-reset: pp-step; }
.pp-step { position: relative; background: var(--marble); border: var(--hairline); border-radius: var(--radius-sm); padding: 26px 24px 28px; counter-increment: pp-step; }
/* v0.87.0: step numbers removed (no decorative numbers on the site, Benay, 26 Nov). */
.pp-step::before { content: none; position: absolute; top: 22px; right: 22px; font: 600 13px var(--font-ui); letter-spacing: .08em; color: var(--champagne); }
.pp-step__label { display: block; font: 600 11px var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.pp-step h3 { font-size: 24px; line-height: 1.25; margin: 0 0 10px; padding-right: 28px; }
.pp-step p { font-size: 16px !important; line-height: 1.65 !important; margin: 0 !important; }
.pp-step__when { display: block; margin-top: 12px; font: 500 12px var(--font-ui); letter-spacing: .06em; color: var(--taupe); }

/* Technologies in this program, each linking to its page. */
.pp-chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-chips__label { font: 600 11px var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin-right: 6px; }
.pp-chip { display: inline-block; padding: 8px 14px; border: 1px solid var(--champagne); border-radius: var(--radius-pill); background: var(--marble); font: 500 13px var(--font-ui); color: var(--espresso); text-decoration: none; }
.pp-chip:hover { border-color: var(--gold-antique); color: var(--gold-deep); }

/* ---- Keep it going: the membership card, plus the combine line ---- */
.pp-keep { background: var(--cream); border-top: var(--hairline); border-bottom: var(--hairline); }
.pp-keep__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.pp-member { background: var(--bg-band-dark); color: var(--text-band-body); border-radius: var(--radius-sm); padding: clamp(26px, 3vw, 36px); }
.pp-member__tag { display: block; font: 600 11px var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-band); margin-bottom: 10px; }
.pp .pp-member h3 { font-size: 34px; line-height: 1.1; margin: 0 0 14px; color: var(--text-band-title); }
.pp .pp-member p { color: var(--text-band-body); font-size: 17px; }
.pp .pp-member a { color: var(--accent-band); font: 600 12px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.pp .pp-member a:hover, .pp .pp-member a:focus-visible { text-decoration: underline; }
.pp-combine { border-left: 3px solid var(--gold-antique); padding: 4px 0 4px 24px; }
.pp-combine h3 { font-size: 26px; line-height: 1.25; margin: 0 0 12px; }

/* ---- FAQ ---- */
.pp-faq { max-width: 860px; margin-top: 12px; }
.pp-faq details { border-bottom: var(--hairline); padding: 20px 0; }
.pp-faq summary { font: 600 17px/1.5 var(--font-ui); color: var(--espresso); cursor: pointer; }
.pp-faq details p { margin: 14px 0 0 !important; }
.pp-small { font-size: 14px !important; line-height: 1.6 !important; }
.pp-actions + .pp-small { margin-top: 28px !important; }

/* ---- Closing call to action ---- */
.pp-cta { background: var(--bg-band-dark); }
.pp .pp-cta h2 { color: var(--text-band-title); }
.pp .pp-cta p { color: var(--text-band-body); }
.pp .pp-cta a:not(.pp-btn) { color: var(--accent-band); }
.pp-cta .pp-btn--ghost { color: var(--text-band-hi); border-color: var(--gold-antique); }

/* ---- The program section on an existing treatment page ----
   Same parts as a program page, compressed into one band so the page's own
   content still starts close to the top. */
.pp-section { background: var(--porcelain); border-bottom: var(--hairline); scroll-margin-top: 78px; }
.pp-section .pp-wrap { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.pp-section__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 28px; }
.pp-section__foot p { margin: 0 !important; font-size: 16px !important; }
.pp-section__foot .pp-actions { margin-top: 0; }

@media (max-width: 900px) {
  .pp-hero__grid, .pp-keep__grid { grid-template-columns: 1fr; }
  .pp-hero__photo { order: -1; }
  .pp-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pp-steps, .pp-zones { grid-template-columns: 1fr; }
  .pp p { font-size: 17px; }
  .pp-hero__tag { font-size: 19px !important; }
  .pp-actions .pp-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .pp-btn { transition: none; } }

/* v0.89.0: "Read more about ..." link under the steps, pointing to the treatment detail page. */
.pp-more { margin: 22px 0 0; }
.pp-more a { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; }
.pp-more a:hover { text-decoration: underline; }

/* ---- v0.89.2: the program's treatment series as pictures of the technology behind them ----
   Laid out in series order with the program's own joins (+ / or / then). Each tile links to its
   Treatment Menu card and, where a gallery exists, to that technology's results. Device photos
   are cut-outs on white (contain); treatment photos fill the frame (cover); a series with no
   device photo shows its medallion. */
.prog-tech { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 8px 0 14px; }
.prog-tech__item { flex: 1 1 170px; max-width: 230px; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; background: var(--porcelain); border: 1px solid var(--champagne); border-radius: var(--radius-sm); }
.prog-tech__pic { display: block; position: relative; aspect-ratio: 1 / 1; margin: 0 0 8px; border-radius: var(--radius-sm); overflow: hidden; background: var(--marble); }
.prog-tech__pic img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.prog-tech__pic--contain img { object-fit: contain; padding: 10%; box-sizing: border-box; }
.prog-tech__pic--cover img { object-fit: cover; }
.prog-tech__pic--mark { background: var(--cream); display: flex; align-items: center; justify-content: center; }
.prog-tech__mark { width: 46%; aspect-ratio: 1 / 1; border-radius: 50%; background-color: var(--espresso); background-repeat: no-repeat; background-position: center; background-size: contain; }
.pp .prog-tech a.prog-tech__name { font-family: var(--font-display); font-size: 20px; line-height: 1.2; color: var(--espresso); text-decoration: none; }
.pp .prog-tech a.prog-tech__name:hover { text-decoration: underline; }
.prog-tech__tech { font: 500 13px/1.4 var(--font-ui); color: var(--taupe); }
.pp .prog-tech a.prog-tech__results { margin-top: auto; padding-top: 8px; font: 600 11px/1.4 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); text-decoration: none; }
.pp .prog-tech a.prog-tech__results:hover { text-decoration: underline; }
.prog-tech a:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.prog-tech__join { align-self: center; font: 600 13px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.pp p.prog-tech__note { font-size: 13px !important; line-height: 1.5 !important; margin: 0 0 22px !important; }
/* Phones: one tile per row, picture on the left, the join word centred between rows. */
@media (max-width: 560px) {
  .prog-tech { flex-direction: column; gap: 6px; }
  .prog-tech__item { max-width: none; flex: 0 0 auto; display: grid; grid-template-columns: 84px 1fr; column-gap: 14px; align-items: center; }
  .prog-tech__pic { grid-row: 1 / span 3; margin: 0; }
  .pp .prog-tech a.prog-tech__results { padding-top: 2px; }
  .prog-tech__join { align-self: center; }
}

/* v0.91.0 draft: Age-Defy: Complete. Three program photos side by side in the hero,
   and a small heading above each path's treatment series. */
.pp-hero__trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--porcelain); }
.pp-hero__trio img { height: 100%; }
.pp-path { margin: 28px 0 10px; font-family: var(--font-display); font-size: 22px; color: var(--espresso); }
.pp-path a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gold-antique); }

/* v0.91.0: Good / Better / Best ladder on Age-Defy: Complete, and the "Go Complete" block
   on the three Age-Defy pages. Colours come from tokens. */
.pp-ladder { list-style: none; margin: 24px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pp-ladder li { background: var(--marble); border: var(--hairline); border-radius: var(--radius-sm); padding: 22px; }
.pp-ladder h3 { margin: 6px 0 6px; font-family: var(--font-display); font-size: 22px; color: var(--espresso); }
.pp-ladder p { margin: 0; color: var(--taupe); line-height: 1.6; }
.pp-ladder__tag { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-antique); }
.pp-ladder .pp-ladder__best { border: 2px solid var(--gold-antique); background: var(--champagne); }
.pp-upgrade { margin: 32px 0 0; background: var(--champagne); border-radius: var(--radius-sm); padding: clamp(18px, 3vw, 28px); border-left: 3px solid var(--gold-antique); }
.pp-upgrade h3 { margin: 6px 0 8px; font-family: var(--font-display); font-size: 24px; color: var(--espresso); }
.pp-upgrade p { margin: 0 0 16px; color: var(--taupe); max-width: 44em; }
@media (max-width: 760px) { .pp-ladder { grid-template-columns: 1fr; } }
