/* ==========================================================================
   Help The Poor Initiative — Programmes page
   Page-specific only. Tokens, header, footer, page banner and shared section
   furniture all come from css/style.css.
   ========================================================================== */

/* The sticky jump bar now lives in style.css as a shared component —
   the programmes page and the get-involved hub both use it. */

/* --------------------------------------------------------------------------
   2. Intro
   -------------------------------------------------------------------------- */
.intro { padding: 76px 0 20px; }

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 54px;
  align-items: start;
}

.intro-lede {
  font-size: clamp(1.125rem, 2vw, 1.4rem);
  line-height: 1.6;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.intro-body p { margin-top: 16px; line-height: 1.8; }

.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.intro-stat {
  padding: 22px 20px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* These carry short commitments rather than figures now, so they are set at a
   phrase size instead of a numeral size. */
.intro-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--green);
}

.intro-stat span {
  display: block;
  margin-top: 6px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   3. Programme blocks — alternating photo / copy
   -------------------------------------------------------------------------- */
.programme {
  padding: 62px 0;
  scroll-margin-top: calc(var(--header-h) + 70px);
}

/* Alternation is driven by an explicit class, NOT :nth-child — the .programme
   sections are not the only children of <main>, so nth-child counts the banner,
   jump nav and intro too and offsets the whole rhythm. A class also survives
   inserting a new section anywhere on the page. */
.programme--alt { background: var(--surface-alt); }

.programme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

/* Alternate blocks put the photo on the right instead */
.programme--alt .programme-media { order: 2; }

.programme-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-md);
}

.programme-media .media { height: 100%; border-radius: var(--radius-lg); }

/* Accent wash keeps each programme visually tied to its colour */
.programme-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(160deg, transparent 55%,
              color-mix(in srgb, var(--accent) 42%, transparent) 100%);
  pointer-events: none;
}

.programme-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.programme-eyebrow svg { flex: none; }

.programme-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: var(--ink);
}

.programme-copy {
  margin-top: 14px;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--muted);
}

.programme-points {
  margin-top: 22px;
  display: grid;
  gap: 11px;
}

.programme-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.programme-points svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* Carries the hairline the removed .programme-figures block used to provide. */
.programme-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.programme--alt .programme-actions { border-top-color: #DFE3DE; }

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: color-mix(in srgb, var(--accent) 82%, #000);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.6px color-mix(in srgb, var(--accent) 42%, transparent);
}

.btn--outline:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1.6px var(--accent);
}

/* --------------------------------------------------------------------------
   4. How we work
   -------------------------------------------------------------------------- */
/* Reached from the nav as "Our Approach" (programs.html#how-we-work), so it
   must clear the fixed header AND the sticky jump bar above it. */
.method {
  padding: 84px 0;
  scroll-margin-top: calc(var(--header-h) + 70px);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.method-card {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}

.method-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--green) 34%, var(--line));
  box-shadow: var(--shadow-md);
}

.method-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--green) 26%, #fff);
}

.method-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.method-card p {
  margin-top: 9px;
  font-size: .9375rem;
  line-height: 1.68;
  color: var(--muted);
}

/* Connecting rule between the steps */
.method-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -13px;
  width: 26px;
  height: 1.5px;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   5. Closing band
   -------------------------------------------------------------------------- */
/* The closing band now lives in style.css as .cta-band — it is shared by
   every inner page. */

/* --------------------------------------------------------------------------
   6. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-card:nth-child(2)::after { display: none; }
}

@media (max-width: 992px) {
  .intro-grid { grid-template-columns: 1fr; gap: 34px; }
  .programme-grid { grid-template-columns: 1fr; gap: 32px; }
  /* Photo always leads on a single column, whatever the desktop order was */
  .programme--alt .programme-media { order: 0; }
  .programme-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 768px) {
  .intro { padding: 54px 0 12px; }
  .programme { padding: 46px 0; }
  .method { padding: 58px 0; }
  .method-card::after { display: none; }
  .jump-list a { padding: 15px 12px; font-size: .75rem; }
}

@media (max-width: 560px) {
  .intro-stats { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .programme-actions .btn { width: 100%; }
}
