/* TGen Africa — production stylesheet.
   Rebuilt to match the Claude Design redesign (centered leadership-quote hero,
   About / Objectives / Programmes / Get involved), in clean static CSS with the
   site's own production infrastructure (accessibility, scroll reveal). */

:root {
  --bg: #F2F1EF;
  --text: #20303A;
  --deep: #0B3C5D;
  --aqua: #0E8FB0;
  --green: #12A594;
  --surface: #E7E5E2;
  --muted: #4C5A63;
  --font: "Montserrat", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--deep); text-decoration: none; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
::selection { background: var(--green); color: #fff; }

/* screen-reader-only text */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* keyboard users land here first; hidden until focused */
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 100; transform: translateY(-120%);
  background: var(--deep); color: #fff; padding: 14px 22px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.skip-link:focus-visible { transform: translateY(0); color: #fff; }

.page { max-width: 100%; overflow-x: hidden; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--aqua); }

/* ── Header ─────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid rgba(11,60,93,0.15); }
.hdr-in { display: flex; align-items: center; gap: 32px; padding: 14px 40px; max-width: 1240px; margin: 0 auto; }
.logo-link { display: inline-flex; }
.hdr-logo { height: 52px; width: auto; }
.hdr-nav { display: flex; justify-content: center; gap: 28px; flex: 1; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hdr-nav a { color: var(--text); }
.hdr-nav a:hover { color: var(--aqua); }

/* ── Buttons ────────────────────────────────────────────── */
.btn { display: inline-block; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 24px; cursor: pointer; border: 0; text-align: left; }
.btn-solid { background: var(--aqua); color: #fff; }
.btn-solid:hover { background: var(--deep); color: #fff; }
.btn-deep { background: var(--deep); color: #fff; }
.btn-deep:hover { background: var(--aqua); color: #fff; }
.btn-line { border: 2px solid var(--deep); color: var(--deep); background: transparent; padding: 12px 24px; }
.btn-line:hover { background: var(--deep); color: #fff; }
.btn-green { background: var(--green); color: #fff; align-self: flex-start; }
.btn-green:hover { background: var(--bg); color: var(--deep); }

/* ── Hero: centred leadership quote over drifting Africa map ─ */
.band-quote { position: relative; overflow: hidden; background: var(--surface); border-top: 2px solid var(--deep); border-bottom: 2px solid var(--deep); }
.qmap { position: absolute; inset: 0; z-index: 0; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.qmap-float { display: contents; }
.qmap svg { height: 130%; width: auto; opacity: 0.5; transform-origin: center; animation: qFloat 9s ease-in-out infinite alternate; }
.africa-geo path { fill: color-mix(in srgb, var(--deep) 8%, transparent); stroke: color-mix(in srgb, var(--deep) 40%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.qmap-in { position: relative; z-index: 1; padding: 88px 0 96px; }
.band-quote.is-centered .qmap-in { text-align: center; }
.band-quote.is-centered .marquee,
.band-quote.is-centered .quote { margin-left: auto; margin-right: auto; }
.marquee { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); max-width: 920px; line-height: 1.9; animation: qUp 0.8s cubic-bezier(0.22,0.61,0.36,1) both; }
.quote { margin-top: 40px; font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: var(--deep); max-width: 1000px; animation: qUp 0.9s cubic-bezier(0.22,0.61,0.36,1) 0.12s both; }
.quote-by { margin-top: 24px; font-size: 20px; font-weight: 700; color: var(--green); animation: qUp 0.9s cubic-bezier(0.22,0.61,0.36,1) 0.26s both; }
@keyframes qFloat {
  0%   { transform: translateY(-14px) scale(1.01); }
  100% { transform: translateY(14px) scale(1.01); }
}
@keyframes qUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: none; }
}

/* ── About ──────────────────────────────────────────────── */
.about { padding: 96px 0; }
.about-top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about h2 { font-size: 60px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--deep); margin-top: 24px; }
.about-body { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 72px; }
.vm h3 { font-size: 22px; line-height: 1.5; font-weight: 600; color: var(--text); margin-top: 16px; max-width: 640px; }

/* ── Objectives ─────────────────────────────────────────── */
.obj { padding: 0 0 96px; }
.obj-head { text-align: center; margin-bottom: 40px; }
.obj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--bg); }
.obj-card { background: var(--deep); color: #fff; padding: 48px 44px 56px; min-height: 240px; display: flex; flex-direction: column; }
.obj-top { display: flex; align-items: center; gap: 20px; }
.obj-n { font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; }
.obj-rule { flex: 1; height: 1px; background: rgba(255,255,255,0.35); }
.obj-t { margin-top: auto; font-size: 34px; line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }

/* ── Programmes ─────────────────────────────────────────── */
.prog { padding: 96px 0; border-top: 2px solid var(--deep); }
.prog-grid { display: grid; grid-template-columns: minmax(0,260px) minmax(0,1fr); gap: 56px; align-items: start; margin-top: 8px; }
.prog-eyebrow { padding-top: 10px; }
.prog h2 { font-size: 44px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--deep); }
.prog-lead { margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 720px; }
.prog-list { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-top: 2px solid var(--deep); }
.prog-item { padding: 26px 24px 26px 0; border-bottom: 1px solid rgba(11,60,93,0.15); }
.prog-item .pn { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; }
.prog-item .pt { margin-top: 8px; font-size: 19px; font-weight: 700; color: var(--deep); }

/* ── Get involved ───────────────────────────────────────── */
.involved { background: var(--aqua); color: #fff; }
.involved-in { padding: 88px 0; }
.involved h2 { font-size: 56px; line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; max-width: 860px; }
.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 56px; }
.inv-card { background: var(--deep); padding: 36px 32px 40px; display: flex; flex-direction: column; gap: 14px; }
.inv-kick { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.inv-t { font-size: 26px; line-height: 1.1; font-weight: 700; }
.inv-b { font-size: 15px; line-height: 1.6; opacity: 0.9; flex: 1; }
.sub-form { display: flex; flex-direction: column; gap: 2px; }
.sub-input { border: 2px solid rgba(255,255,255,0.4); background: transparent; color: #fff; padding: 15px 16px; font-family: inherit; font-size: 14px; width: 100%; }
.sub-input::placeholder { color: rgba(255,255,255,0.7); }
.sub-input:focus-visible { border-color: var(--green); outline: none; }

/* ── Footer ─────────────────────────────────────────────── */
.foot { background: #122A38; color: var(--bg); }
.foot-in { padding: 64px 40px 40px; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.foot-logo { height: 56px; width: auto; margin-left: -4px; }
.foot-about { margin-top: 20px; font-size: 14px; line-height: 1.6; opacity: 0.72; max-width: 360px; }
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col-l { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.55; margin-bottom: 16px; }
.foot-col a { color: var(--bg); font-size: 15px; }
.foot-col a:hover { color: var(--green); }
.foot-col .plain { font-size: 15px; opacity: 0.72; }
.foot-bottom { border-top: 1px solid rgba(242,241,239,0.18); }
.foot-bottom-in { max-width: 1240px; margin: 0 auto; padding: 20px 40px; font-size: 12px; opacity: 0.55; }

/* ── Scroll reveal (progressive enhancement) ────────────── */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.95s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.95s cubic-bezier(0.22,0.61,0.36,1);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .qmap svg, .marquee, .quote, .quote-by { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive (below 900px) ───────────────────────────── */
@media (max-width: 900px) {
  .wrap, .hdr-in, .foot-in, .foot-bottom-in { padding-left: 20px !important; padding-right: 20px !important; }
  .hdr-nav { display: none !important; }
  .about-top, .vm, .prog-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .about h2 { font-size: 34px !important; }
  .quote { font-size: 26px !important; }
  .involved h2 { font-size: 32px !important; }
  .obj-grid, .inv-grid, .prog-list { grid-template-columns: 1fr !important; }
  .obj-t { font-size: 26px !important; }
  .foot-in { grid-template-columns: 1fr 1fr !important; }
}
