/* HIANA — Hope In A New Age */
:root {
  --bg: #fbf8fc;
  --paper: #ffffff;
  --ink: #22102b;
  --muted: #6b5a72;
  --line: #eadfee;
  --purple: #6f2472;
  --purple-600: #8a3591;
  --purple-900: #2a0f33;
  --lilac: #f2e8f5;
  --sun: #ffc23c;
  --sun-100: #fff3d1;
  --ok: #1f7a4d;
  --err: #b42318;
  --r-lg: 28px;
  --r: 16px;
  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --shadow: 0 2px 6px rgba(42, 15, 51, .06), 0 14px 40px rgba(42, 15, 51, .1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--purple); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--purple-900); }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h3 { font-size: 1.45rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hp { position: absolute; left: -9999px; }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding: 0 .08em; }
section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--sun); color: var(--purple-900); }
.btn-sun:hover { background: #ffcf63; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-600); }
.btn-ghost { border-color: currentColor; color: var(--purple); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.arrow::after { content: '→'; transition: transform .15s; }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(3px); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 252, .92); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 30px; overflow: hidden; position: relative; }
.brand-mark img { position: absolute; bottom: 0; left: 0; width: 40px; height: 40px; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--purple); line-height: 1; }
.brand-text small { display: block; font-family: var(--body); font-weight: 500; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--purple); }
.nav .btn { color: var(--purple-900); padding: .6em 1.2em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--purple-900); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
}

/* Home hero */
.hero { background: radial-gradient(120% 90% at 85% 10%, var(--purple-600) 0%, var(--purple) 35%, var(--purple-900) 100%); color: #fff; padding: 80px 0 0; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--purple-900); }
.hero .lead { color: rgba(255,255,255,.85); max-width: 34ch; }
.hero .eyebrow { color: var(--sun); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mosaic { position: relative; height: 520px; }
.mosaic img { position: absolute; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.mosaic .m1 { width: 62%; height: 64%; right: 0; top: 0; border-radius: 200px 200px 28px 28px; }
.mosaic .m2 { width: 48%; height: 46%; left: 0; top: 22%; border-radius: 28px; }
.mosaic .m3 { width: 44%; height: 40%; right: 8%; bottom: 0; border-radius: 28px 28px 200px 28px; }
.mosaic .sun { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--sun); left: 18%; bottom: 6%; box-shadow: 0 0 80px rgba(255, 194, 60, .55); }
@media (max-width: 900px) { .mosaic { height: 380px; } }
.hero-strip { margin-top: 64px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.hero-strip strong { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--sun); line-height: 1.1; }
.hero-strip span { font-size: .9rem; color: rgba(255,255,255,.8); }
@media (max-width: 760px) { .hero-strip .wrap { grid-template-columns: repeat(2, 1fr); } }

/* Page hero (inner pages) */
.page-hero { background: var(--purple-900); color: #fff; position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.page-hero.solo .wrap { grid-template-columns: 1fr; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.page-hero .lead { color: rgba(255,255,255,.82); }
.page-hero .eyebrow { color: var(--sun); }
.page-hero img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); }
.page-hero::after { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, rgba(255,194,60,.35), transparent 70%); pointer-events: none; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse > :first-child { order: 0; } }
.photo { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.photo-arch { border-radius: 260px 260px var(--r-lg) var(--r-lg); aspect-ratio: 4/5; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head > div { max-width: 640px; }
.bg-lilac { background: var(--lilac); }
.bg-sun { background: var(--sun); }
.bg-purple { background: var(--purple-900); color: #fff; }
.bg-purple h2, .bg-purple h3 { color: #fff; }
.bg-purple .lead, .bg-purple .muted { color: rgba(255,255,255,.78); }

/* Programme cards */
.prog { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.prog:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prog img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.prog .body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prog .num { font-family: var(--display); font-weight: 800; color: var(--sun); font-size: 1rem; -webkit-text-stroke: .5px var(--purple); }
.prog h3 { margin: 0; }
.prog p { margin: 0; color: var(--muted); }
.prog .go { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--purple); }

/* Impact numbers */
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.impact strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; color: var(--purple-900); letter-spacing: -.03em; }
.impact span { display: block; margin-top: 8px; font-weight: 500; }
@media (max-width: 760px) { .impact { grid-template-columns: repeat(2, 1fr); } }

/* News cards */
.story { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.story:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.story img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.story .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.story .tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }
.story h3 { font-size: 1.25rem; margin: 0; }
.story p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
.partners img { width: 100%; max-height: 70px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners img:hover { filter: none; opacity: 1; }
@media (max-width: 860px) { .partners { grid-template-columns: repeat(3, 1fr); } }

/* Get involved tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }
.tile { border-radius: var(--r-lg); padding: 34px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; min-height: 260px; }
.tile h3 { font-size: 1.8rem; margin: 0; }
.tile p { margin: 0; }
.tile .btn { margin-top: auto; align-self: flex-start; }
.tile-1 { background: var(--sun); color: var(--purple-900); }
.tile-2 { background: #fff; color: var(--ink); }
.tile-3 { background: var(--purple-600); color: #fff; }
.tile-3 h3 { color: #fff; }

/* Programme detail pages */
.facts { display: grid; gap: 0; }
.fact { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.fact h2 { font-size: 1.8rem; }
@media (max-width: 760px) { .fact { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; } }
.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.strip img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--r); }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr; } .strip img { height: 220px; } }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article h3 { font-size: 1.25rem; margin-top: 1.4em; }
.article blockquote { margin: 1.5em 0; padding: 20px 26px; background: var(--lilac); border-radius: var(--r); font-size: 1.1rem; font-style: italic; }
.article figure { margin: 2em 0; }
.article figure img { width: 100%; border-radius: var(--r); }
.article-meta { color: rgba(255,255,255,.75); font-size: .95rem; }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: .92rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
input:not([type]), input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75em .95em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(111, 36, 114, .2); border-color: var(--purple); }
textarea { min-height: 140px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: .5em 1em; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .92rem; background: #fff; }
.chips input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--sun); }
.alert { padding: 14px 16px; border-radius: 12px; }
.alert-ok { background: #e2f3ea; color: var(--ok); }
.alert-err { background: #fde8e6; color: var(--err); }
.panel { background: var(--paper); border-radius: var(--r-lg); padding: 36px; border: 1px solid var(--line); }
@media (max-width: 560px) { .panel { padding: 24px; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Footer */
.site-footer { background: var(--purple-900); color: rgba(255,255,255,.78); padding: 72px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand .brand-text { color: #fff; font-size: 2rem; }
.footer-brand .brand-text small { color: rgba(255,255,255,.6); }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Fixes after visual review */
.hero h1 .hl { background: none; color: var(--sun); padding: 0; }
.hero-strip .wrap { align-items: start; }
.bg-purple .eyebrow { color: var(--sun); }
.tile-1 h3, .tile-2 h3 { color: var(--purple-900); }
.partners { gap: 28px; }
.partners img { max-height: none; height: 96px; mix-blend-mode: multiply; }
@media (max-width: 600px) { .partners img { height: 72px; } }
