/*
Theme Name: Yield Africa Foundation
Theme URI: https://yieldafrica.org
Author: Yield Africa Foundation
Description: A modern, donor-ready theme for Yield Africa Foundation. Every page (Home, About, Programmes, Impact, Get Involved, Donate, Contact) is built from normal WordPress blocks, so all text, buttons and images can be edited in the page editor. Includes a built-in contact form, SDG section, awards, donation tiers and custom button styles. Pages and menus are created automatically on activation.
Version: 2.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yield-africa
Tags: charity, non-profit, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--green: #74b545;
	--green-600: #5a9a32;
	--green-50: #eef6e7;
	--forest: #1f4d2b;
	--forest-900: #143620;
	--orange: #e07a2e;
	--orange-btn: #d2671b;
	--orange-50: #fdf0e5;
	--yellow: #f2e21b;
	--ink: #14261b;
	--text: #3c4a41;
	--muted: #66736b;
	--cream: #f7f4ec;
	--line: #e6e2d6;
	--white: #fff;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 18px 50px -20px rgba(20, 38, 27, .25);
	--shadow-sm: 0 6px 20px -10px rgba(20, 38, 27, .2);
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-head: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17.5px;
	line-height: 1.7;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; font-weight: 600; font-variation-settings: "SOFT" 50; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; }
h1, h2, h3 { text-wrap: balance; }
em, i, cite, address, blockquote, dfn, var { font-style: normal; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; }

/* ---------- 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-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.1; letter-spacing: .01em;
	text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn.btn-lg { padding: 1.05em 1.9em; font-size: 1.05rem; }
.btn.btn-block { width: 100%; }
.btn-orange { background: var(--orange-btn); color: #fff; box-shadow: 0 10px 24px -10px rgba(210, 103, 27, .7); }
.btn-orange:hover { background: #b9570f; color: #fff; }
.btn-green { background: var(--forest); color: #fff; }
.btn-green:hover { background: var(--forest-900); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--forest); }

/* ---------- Eyebrow & headings ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--green-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); }
.eyebrow--light { color: var(--yellow); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(116,181,69,0); } 100% { box-shadow: 0 0 0 0 rgba(116,181,69,0); } }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest); color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--forest::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
	background-image: radial-gradient(circle, #fff 1.2px, transparent 1.3px); background-size: 22px 22px;
	mask-image: linear-gradient(120deg, #000, transparent 60%);
}
.section--forest > .container { position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.1rem; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end; }
.section-head--split h2 { margin: 0; }
.section-head--split p { margin: 0; }
.section-head--split .link-arrow { justify-self: end; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--forest-900); color: rgba(255,255,255,.8); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--yellow); }
.topbar__contact, .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__tag { color: var(--yellow); font-weight: 600; letter-spacing: .02em; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--orange-btn); color: #fff; }
.socials--sm a { width: 28px; height: 28px; background: transparent; }
.socials--sm .icon { width: 16px; height: 16px; }
.socials--dark a { background: var(--green-50); color: var(--forest); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(20,38,27,.35); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 62px; width: auto; transition: height .25s; }
.site-header.is-scrolled .brand img { height: 52px; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; padding: 10px 14px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; border-radius: 999px; transition: background .2s, color .2s; }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav .current_page_parent > a { color: var(--forest); background: var(--green-50); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--forest); padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 30px; height: 30px; }
.nav-toggle__close { display: none; }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .3s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__media .media { border-radius: 0; height: 100%; min-height: 0; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__body p { font-size: .96rem; flex: 1; }
.post-card__meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: 1.2rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--green-600); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--forest); border-color: var(--forest); color: #fff; }
.empty { text-align: center; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; background: var(--forest); color: rgba(255,255,255,.85); padding-block: clamp(64px, 9vw, 110px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(116,181,69,.45), transparent 70%); }
.page-hero__pattern { position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(circle, #fff 1.2px, transparent 1.3px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 30%, #000); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.page-hero__text { font-size: 1.15rem; max-width: 62ch; margin: 0; }
.page-hero--post h1 { max-width: none; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--orange) 66%); }

/* ---------- Single post / entry content ---------- */
.single-post__thumb { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; }
.entry-content { font-size: 1.08rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.9rem; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { margin: 1.5em 0; padding: 20px 26px; border-left: 4px solid var(--orange); background: var(--cream); border-radius: 0 12px 12px 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.entry-content .wp-block-button__link { background: var(--forest); border-radius: 999px; padding: .85em 1.6em; font-family: var(--font-head); font-weight: 600; }
.alignwide { margin-inline: calc(-1 * min(10vw, 120px)); max-width: none; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.share span { font-weight: 600; color: var(--ink); margin-right: 6px; }
.share a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--green-50); color: var(--forest); }
.share a:hover { background: var(--forest); color: #fff; }
.post-donate { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 36px 0; padding: 28px; border-radius: var(--radius); background: var(--orange-50); }
.post-donate h3 { margin-bottom: .2em; }
.post-donate p { margin: 0; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; font-family: var(--font-head); font-weight: 600; }
.post-nav a { color: var(--forest); text-decoration: none; }
.comments { margin-top: 48px; }
.comment-list { padding-left: 0; list-style: none; }

/* ---------- Newsletter / pre-footer CTA ---------- */
.newsletter { background: linear-gradient(110deg, var(--forest) 0%, #2c6a36 60%, var(--green-600) 100%); color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.newsletter::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(242,226,27,.12); }
.newsletter__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 80px); }
.newsletter h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.newsletter p { margin: 0; max-width: 60ch; }
.newsletter__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: .95rem; padding-top: clamp(56px, 7vw, 80px); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand img { width: 210px; margin-bottom: 18px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { color: var(--green); margin-top: 3px; }
.sdg-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.sdg-mini span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: #fff; font: 700 .85rem var(--font-head); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }

/* ---------- Widgets ---------- */
.widget { margin-bottom: 32px; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* Comment form */
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfaf6; font: inherit; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* ---------- Block editor basics ---------- */
.wp-block-group__inner-container { display: contents; }
.site-main > *:first-child { margin-top: 0; }
:where(.site-main .wp-block-group, .site-main .wp-block-cover, .site-main .wp-block-buttons) { margin-top: 0; margin-bottom: 0; }
.site-main :where(.wp-block-group) > p:last-child { margin-bottom: 0; }
.wp-block-image { margin: 0; }

/* Block buttons (pick a style in the editor: Orange, Green, Yellow, Outline, Light) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.1; letter-spacing: .01em;
	background: var(--forest); color: #fff; text-decoration: none; white-space: nowrap;
	transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); color: #fff; background: var(--forest-900); }
.wp-block-button.is-style-orange .wp-block-button__link { background: var(--orange-btn); color: #fff; box-shadow: 0 10px 24px -10px rgba(210,103,27,.7); }
.wp-block-button.is-style-orange .wp-block-button__link:hover { background: #b9570f; }
.wp-block-button.is-style-green .wp-block-button__link { background: var(--forest); color: #fff; }
.wp-block-button.is-style-yellow .wp-block-button__link { background: var(--yellow); color: var(--ink); }
.wp-block-button.is-style-yellow .wp-block-button__link:hover { background: #fff; color: var(--ink); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--forest); color: var(--forest); padding: .85em 1.6em; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--forest); color: #fff; }
.wp-block-button.is-style-light .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.wp-block-button.is-style-light .wp-block-button__link:hover { background: #fff; color: var(--forest); }
.wp-block-button.btn-lg .wp-block-button__link { padding: 1.05em 1.9em; font-size: 1.05rem; }
.wp-block-button.btn-block { width: 100%; }
.wp-block-button.btn-block .wp-block-button__link { width: 100%; }
.wp-block-button.has-arrow .wp-block-button__link::after,
.wp-block-button.has-heart .wp-block-button__link::before { content: ""; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.wp-block-button.has-arrow { --i: var(--i-arrow); }
.wp-block-button.has-heart { --i: var(--i-heart); }

/* Arrow links: a paragraph with class "link-arrow" containing a link */
.link-arrow a, a.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-head); font-weight: 700; color: var(--forest); text-decoration: none; }
.link-arrow a::after, a.link-arrow::after { content: ""; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; transition: transform .2s; }
.link-arrow a:hover::after, a.link-arrow:hover::after { transform: translateX(4px); }
.section--forest .link-arrow a { color: var(--yellow); }

/* ---------- Icon tiles: add "ico ico-NAME" to any group ---------- */
.ico { position: relative; --tile: 52px; --icon: 26px; --tile-bg: var(--green-50); --tile-fg: var(--forest); --tile-r: 14px; --pt: 0px; --pl: 0px; }
.ico::before { content: ""; display: block; width: var(--tile); height: var(--tile); border-radius: var(--tile-r); background: var(--tile-bg); margin-bottom: 18px; }
.ico::after { content: ""; position: absolute; top: calc(var(--pt) + (var(--tile) - var(--icon)) / 2); left: calc(var(--pl) + (var(--tile) - var(--icon)) / 2); width: var(--icon); height: var(--icon); background: var(--tile-fg); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; pointer-events: none; }
/* Row layout: tile on the left */
.ico-row { padding-left: calc(var(--pl) + var(--tile) + 16px); }
.ico-row::before { position: absolute; left: var(--pl); top: var(--pt); margin: 0; }

/* ---------- Eyebrow pulse ---------- */
.eyebrow--pulse::before { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 400px at 85% 30%, rgba(116,181,69,.22), transparent 70%), radial-gradient(500px 360px at 70% 90%, rgba(224,122,46,.16), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(circle, rgba(31,77,43,.16) 1.2px, transparent 1.3px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent 35%, #000); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { color: var(--forest); max-width: 16ch; }
.hero__text { font-size: 1.2rem; max-width: 56ch; }
.hero__actions { margin-top: 28px; }
.hero__trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: .5em; }
.hero__trust li::before { content: ""; width: 1.2em; height: 1.2em; background: var(--green-600); -webkit-mask: var(--i-shield) center / contain no-repeat; mask: var(--i-shield) center / contain no-repeat; }
.hero__trust li:nth-child(2)::before { -webkit-mask-image: var(--i-award); mask-image: var(--i-award); }
.hero__trust li:nth-child(3)::before { -webkit-mask-image: var(--i-globe); mask-image: var(--i-globe); }
.hero__visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.hero-art { position: relative; width: min(440px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #f1f7ea 60%, #e2efd6); box-shadow: var(--shadow), inset 0 0 0 10px rgba(255,255,255,.6); display: grid; place-items: center; }
.hero-art::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 2px dashed rgba(224,122,46,.45); animation: spin 60s linear infinite; pointer-events: none; }
.hero-art .wp-block-image, .hero-art figure { width: 74%; margin: 0; }
.hero-art img { width: 100%; filter: drop-shadow(0 18px 24px rgba(31,77,43,.22)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card { position: absolute; z-index: 2; background: #fff; border-radius: 16px; box-shadow: var(--shadow); --pt: 14px; --pl: 14px; --tile: 48px; --icon: 24px; --tile-r: 12px; padding: 14px 20px 14px calc(14px + 48px + 14px); min-height: 76px; display: flex; flex-direction: column; justify-content: center; }
.float-card::before { position: absolute; left: 14px; top: 14px; margin: 0; }
.float-card--b { --tile-bg: var(--orange-50); --tile-fg: var(--orange-btn); }
.float-card p { margin: 0; text-align: left; }
.float-card__num { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.float-card__label { font-size: .85rem; color: var(--muted); }
.float-card--a { left: -4%; bottom: 14%; animation: float 6s ease-in-out infinite; }
.float-card--b { right: -2%; top: 10%; animation: float 8s ease-in-out infinite .5s; }
/* Hero with a photo (Customizer > Homepage hero photo) */
.has-hero-photo .hero { background-color: var(--forest-900); background-size: cover; background-position: center; }
.has-hero-photo .hero::before { background: linear-gradient(90deg, rgba(20,54,32,.92) 0%, rgba(20,54,32,.7) 45%, rgba(20,54,32,.15) 100%); }
.has-hero-photo .hero::after, .has-hero-photo .hero-art { display: none; }
.has-hero-photo .hero h1 { color: #fff; }
.has-hero-photo .hero__text, .has-hero-photo .hero__trust { color: rgba(255,255,255,.88); }
.has-hero-photo .hero__trust li::before { background: var(--yellow); }
.has-hero-photo .hero .eyebrow { color: var(--yellow); }
.has-hero-photo .hero .is-style-outline .wp-block-button__link { border-color: #fff; color: #fff; }
.has-hero-photo .hero__inner { min-height: 620px; }
.has-hero-photo .hero__visual { min-height: 0; align-self: end; justify-items: end; gap: 12px; }
.has-hero-photo .float-card { position: relative; inset: auto; }

/* ---------- Stats ---------- */
.stats { background: var(--forest); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 24px; text-align: center; color: rgba(255,255,255,.8); --tile: 46px; --icon: 22px; --tile-r: 50%; --tile-bg: rgba(242,226,27,.14); --tile-fg: var(--yellow); --pt: 40px; }
.stat::before { margin: 0 auto 12px; }
.stat::after { left: calc(50% - var(--icon) / 2); }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.15); }
.site-main .stat p { text-align: center; margin: 0; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 4vw, 3.3rem); color: #fff; line-height: 1; margin-bottom: 10px !important; }
.stat__label { font-size: .95rem; }

/* ---------- Artwork placeholders (Cover blocks: click and choose "Add media" to use a photo) ---------- */
.site-main .wp-block-cover.ico-art { min-height: 0 !important; padding: 0; border-radius: var(--radius); overflow: hidden; }
.wp-block-cover.ico-art::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .22; background-image: radial-gradient(circle, #fff 1.4px, transparent 1.5px); background-size: 18px 18px; pointer-events: none; }
.wp-block-cover.ico-art::after { content: ""; position: absolute; z-index: 2; left: 50%; top: 50%; width: min(34%, 120px); aspect-ratio: 1; transform: translate(-50%, -50%); background: #fff; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; pointer-events: none; }
.wp-block-cover.ico-art:has(img, video)::before, .wp-block-cover.ico-art:has(img, video)::after { display: none; }
.wp-block-cover.ico-art .wp-block-cover__inner-container { display: none; }
.wp-block-cover.media--tall { aspect-ratio: 4 / 5 !important; }
.wp-block-cover.media--wide { aspect-ratio: 4 / 3 !important; }
.program-card--yellow .ico-art::after, .program-detail--yellow .ico-art::after { background: var(--forest); }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.intro__media { position: relative; }
.intro__media .wp-block-cover { box-shadow: var(--shadow); }
.intro__badge { position: absolute; right: -18px; bottom: 32px; z-index: 3; background: var(--orange-btn); color: #fff; padding: 18px 24px; border-radius: 16px; box-shadow: var(--shadow); max-width: 230px; }
.site-main .intro__badge p { margin: 0; text-align: left; }
.intro__badge-label { font-size: .9rem; opacity: .92; }
.intro__badge-num { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; line-height: 1.1; }
.intro__copy > p { font-size: 1.05rem; }
.vm { display: grid; gap: 16px; margin: 28px 0; }
.vm__item { padding: 20px; border-radius: var(--radius-sm); background: var(--cream); border-left: 4px solid var(--green); --tile: 46px; --icon: 22px; --tile-r: 12px; --pt: 20px; --pl: 20px; padding-left: calc(20px + 46px + 16px); }
.vm__item::before { position: absolute; left: 20px; top: 20px; margin: 0; }
.vm__item--orange { border-left-color: var(--orange); --tile-bg: var(--orange-50); --tile-fg: var(--orange-btn); }
.vm__item h3 { font-size: 1.15rem; margin-bottom: .25em; }
.vm__item p { margin: 0; font-size: .98rem; }

/* ---------- Programmes (home) ---------- */
.section--forest .section-head--split > p, .section--forest .section-head p { color: rgba(255,255,255,.8); }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.program-card { color: var(--text); background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.program-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.site-main .program-card__media.wp-block-cover { border-radius: 0; aspect-ratio: 4 / 3 !important; }
.program-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.program-card__body > p:not(.program-card__tag):not(.link-arrow) { font-size: .96rem; flex: 1; }
.section--forest .program-card h3 { color: var(--ink); }
.section--forest .program-card .link-arrow a { color: var(--forest); }
.program-card__tag { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); margin-bottom: 6px !important; }
.program-card--orange .program-card__tag { color: var(--orange-btn); }
.program-card--yellow .program-card__tag { color: #7d7100; }
.program-card--forest .program-card__tag { color: var(--forest); }

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 32px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; --tile: 56px; --icon: 26px; --tile-r: 16px; --tile-bg: var(--forest); --tile-fg: var(--yellow); --pt: 32px; --pl: 26px; transition: border-color .3s, box-shadow .3s; }
.step:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.step .step__num { position: absolute; top: 22px; right: 24px; margin: 0 !important; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--green-50); line-height: 1; }
.step p { font-size: .97rem; }

/* ---------- SDGs ---------- */
.sdg-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.sdg { --sdg: #19486a; background: var(--sdg); color: #fff; border-radius: 14px; padding: 18px; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s; }
.sdg:hover { transform: translateY(-4px) rotate(-1deg); }
.sdg-1 { --sdg: #e5243b; } .sdg-2 { --sdg: #dda63a; } .sdg-3 { --sdg: #4c9f38; } .sdg-4 { --sdg: #c5192d; } .sdg-5 { --sdg: #ff3a21; } .sdg-6 { --sdg: #26bde2; } .sdg-7 { --sdg: #fcc30b; } .sdg-8 { --sdg: #a21942; } .sdg-9 { --sdg: #fd6925; } .sdg-10 { --sdg: #dd1367; } .sdg-11 { --sdg: #fd9d24; } .sdg-12 { --sdg: #bf8b2e; } .sdg-13 { --sdg: #3f7e44; } .sdg-14 { --sdg: #0a97d9; } .sdg-15 { --sdg: #56c02b; } .sdg-16 { --sdg: #00689d; } .sdg-17 { --sdg: #19486a; }
.site-main .sdg p { margin: 0; text-align: left; hyphens: manual; }
.sdg__num { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.sdg__name { font-weight: 800; font-size: .9rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
.goal-line { font-size: .92rem; font-weight: 700; color: var(--forest); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: inline-block; }

/* ---------- Giving ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tier { display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; --tile: 50px; --icon: 24px; --pt: 30px; --pl: 26px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.tier::before { margin-bottom: 14px; }
.tier:hover { transform: translateY(-6px); border-color: var(--green); box-shadow: var(--shadow); }
.tier--featured { border-color: var(--orange); background: linear-gradient(180deg, var(--orange-50), #fff 55%); --tile-bg: #fff; --tile-fg: var(--orange-btn); }
.tier__badge { position: absolute; top: -13px; left: 26px; margin: 0 !important; background: var(--orange-btn); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; }
.tier__amount { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--ink); margin-bottom: 8px !important; line-height: 1.1; }
.tier__text { font-size: .96rem; flex: 1; }

/* ---------- CTA band (Cover block: add a photo if you like) ---------- */
.site-main .wp-block-cover.cta-band { min-height: 0; padding: clamp(64px, 10vw, 120px) 0; align-items: center; }
.cta-band .wp-block-cover__inner-container { width: 100%; color: var(--text); }
.wp-block-cover.cta-band:not(:has(img))::after { content: ""; position: absolute; right: 6%; top: 50%; width: min(420px, 40vw); aspect-ratio: 1; transform: translateY(-50%); background: url(assets/img/site-icon.png) center / contain no-repeat; filter: drop-shadow(0 20px 40px rgba(0,0,0,.2)); z-index: 1; }
.cta-band__card { position: relative; z-index: 2; max-width: 640px; background: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow); color: var(--text); }
.cta-band__card::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 12px; background: var(--orange); -webkit-mask: var(--i-quote) center / contain no-repeat; mask: var(--i-quote) center / contain no-repeat; }
.cta-band__lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; color: var(--ink); }
.cta-band .wp-block-buttons { margin-top: 24px; }

/* ---------- Awards ---------- */
.awards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.award { padding: 26px 24px; border-radius: var(--radius); background: var(--cream); border: 1px solid transparent; --tile: 44px; --icon: 30px; --tile-bg: transparent; --tile-fg: var(--green-600); --pt: 26px; --pl: 24px; transition: .25s; }
.award::before { margin-bottom: 10px; }
.award:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.award__year { position: absolute; top: 22px; right: 22px; margin: 0 !important; font-weight: 800; font-size: .85rem; color: var(--orange-btn); background: var(--orange-50); padding: 3px 10px; border-radius: 999px; }
.award h3 { font-size: 1.08rem; margin-bottom: .35em; padding-right: 40px; }
.award p:last-child { font-size: .92rem; color: var(--muted); text-align: left; }

/* ---------- Partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner-grid--3 { grid-template-columns: repeat(3, 1fr); }
.partner { padding: 30px 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); --tile: 54px; --tile-r: 50%; --pt: 30px; --pl: 26px; }
.partner p { font-size: .96rem; }
.center-cta { justify-content: center; margin-top: 48px !important; }

/* ---------- News shortcode ---------- */
.news-home .section-head--split a.link-arrow { justify-self: end; }

/* ---------- About ---------- */
.vm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); border-top: 6px solid var(--green); box-shadow: var(--shadow-sm); --tile: 50px; --icon: 24px; --pt: clamp(28px, 4vw, 48px); --pl: clamp(28px, 4vw, 48px); }
.vm-card--orange { border-top-color: var(--orange); --tile-bg: var(--orange-50); --tile-fg: var(--orange-btn); }
.site-main .vm-card p { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; color: var(--ink); margin: 0; text-align: left; }
.objectives { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: obj; }
.objectives li { counter-increment: obj; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--cream); font-size: .98rem; }
.objectives li::before { content: counter(obj, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--green); margin-bottom: 8px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); --tile-bg: var(--yellow); --tile-fg: var(--forest); --pt: 28px; --pl: 24px; }
.value p { font-size: .96rem; }

/* ---------- Programmes page ---------- */
.subnav { position: sticky; top: 84px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-main .subnav__links { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; margin: 0; scrollbar-width: none; text-align: left; }
.subnav__links a { display: inline-block; padding: 10px 18px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap; }
.subnav__links a:hover { background: var(--green-50); color: var(--forest); }
.program-detail { scroll-margin-top: 150px; }
.program-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.program-detail--flip .program-detail__media { order: 2; }
.program-detail__media .wp-block-cover { box-shadow: var(--shadow); }
.program-detail .wp-block-buttons { margin-top: 24px; }
.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.site-main .checklist li { position: relative; padding-left: 36px; text-align: left; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); }
.checklist li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 14px; height: 14px; background: #fff; -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.checklist--sm { font-size: .95rem; }

/* ---------- Impact page ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.impact-card { padding: 30px 26px; border-radius: var(--radius); background: var(--cream); border-bottom: 5px solid var(--green); --tile: 56px; --icon: 28px; --tile-r: 16px; --tile-bg: #fff; --pt: 30px; --pl: 26px; }
.impact-card::before { box-shadow: var(--shadow-sm); }
.impact-card--orange { border-color: var(--orange); }
.impact-card--yellow { border-color: var(--yellow); }
.impact-card--forest { border-color: var(--forest); }
.impact-card p { font-size: .96rem; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 47px; top: 10px; bottom: 10px; width: 2px; background: rgba(255,255,255,.18); }
.timeline__item { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 18px 0; position: relative; }
.site-main .timeline__year { justify-self: center; position: relative; z-index: 1; font-weight: 800; background: var(--yellow); color: var(--forest); padding: 6px 14px; border-radius: 999px; height: fit-content; margin: 0; text-align: center; }
.timeline__body h3 { margin-bottom: .3em; }
.accountability { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.report-card { padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--forest); color: rgba(255,255,255,.85); box-shadow: var(--shadow); --tile: 60px; --icon: 30px; --tile-r: 16px; --tile-bg: var(--yellow); --pt: clamp(28px, 4vw, 44px); --pl: clamp(28px, 4vw, 44px); }
.report-card h3 { color: #fff; font-size: 1.5rem; }
.report-card .checklist li::before { background: var(--yellow); }
.report-card .checklist li::after { background: var(--forest); }
.numbered { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: n; display: grid; gap: 16px; }
.site-main .numbered li { counter-increment: n; position: relative; padding-left: 64px; min-height: 48px; text-align: left; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--yellow); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.numbered strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.1rem; }

/* ---------- Get involved ---------- */
.involve-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.involve { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--cream); border-left: 6px solid var(--green); scroll-margin-top: 120px; --tile: 60px; --icon: 28px; --tile-r: 16px; --tile-bg: #fff; --pt: clamp(28px, 4vw, 44px); --pl: clamp(28px, 4vw, 44px); }
.involve::before { box-shadow: var(--shadow-sm); }
.involve--orange { border-color: var(--orange); }
.involve--yellow { border-color: var(--yellow); }
.involve--forest { border-color: var(--forest); }
.involve h2 { font-size: 1.6rem; }

/* ---------- Donate ---------- */
.donate-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.donate-box { padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.amount { padding: 18px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: .2s; text-align: center; }
.amount:hover { border-color: var(--green); }
.amount.is-active { border-color: var(--orange); background: var(--orange-50); }
.site-main .amount__value { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--ink); margin: 0; text-align: center; }
.amount.is-active .amount__value { color: var(--orange-btn); }
.js .site-main .amount__text { display: none; }
.amount-impact { padding: 18px 18px 18px 50px; border-radius: 14px; background: var(--green-50); color: var(--forest); font-weight: 600; position: relative; }
.amount-impact::before { content: ""; position: absolute; left: 18px; top: 21px; width: 20px; height: 20px; background: var(--green-600); -webkit-mask: var(--i-heart) center / contain no-repeat; mask: var(--i-heart) center / contain no-repeat; }
.donate-box .wp-block-buttons { margin: 8px 0 12px; }
.donate-side { display: grid; gap: 24px; }
.bank-card { padding: 30px; border-radius: 24px; background: var(--forest); color: rgba(255,255,255,.85); scroll-margin-top: 120px; --tile: 44px; --icon: 22px; --tile-r: 12px; --tile-bg: rgba(242,226,27,.15); --tile-fg: var(--yellow); --pt: 30px; --pl: 30px; }
.bank-card h3 { color: #fff; }
.bank-card a { color: var(--yellow); }
.bank-rows { margin: 16px 0; }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-main .bank-row p { margin: 0; text-align: left; }
.bank-row__label { opacity: .75; }
.site-main .bank-row__value { font-weight: 700; color: #fff; text-align: right; }
.copy-btn { margin-left: 8px; border: 1px solid rgba(255,255,255,.4); background: none; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .78rem; cursor: pointer; font-family: inherit; }
.copy-btn:hover { background: #fff; color: var(--forest); }
.trust-list { display: grid; gap: 14px; }
.trust { padding: 18px 18px 18px calc(18px + 40px + 14px); border-radius: 14px; background: var(--cream); --tile: 40px; --icon: 26px; --tile-bg: transparent; --tile-fg: var(--green-600); --pt: 18px; --pl: 18px; }
.trust::before { position: absolute; left: 18px; top: 18px; margin: 0; }
.site-main .trust p { margin: 0; font-size: .93rem; }
.trust__title { font-weight: 800; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.contact-info { padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--cream); }
.contact-rows { display: grid; gap: 18px; margin-top: 24px; }
.contact-row { --tile: 48px; --icon: 22px; --tile-r: 12px; --tile-bg: #fff; padding-left: calc(48px + 14px); min-height: 48px; }
.contact-row::before { position: absolute; left: 0; top: 0; margin: 0; }
.site-main .contact-row p { margin: 0; text-align: left; }
.contact-row__label { font-weight: 800; color: var(--ink); }
.contact-row__value a { color: var(--text); text-decoration: none; word-break: break-word; }
.contact-form { padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 120px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label span { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form input, .form select, .form textarea, .search-form input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfaf6; font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus, .search-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(116,181,69,.18); background: #fff; }
.form .btn { justify-self: start; }
.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.notice--ok { background: var(--green-50); color: var(--forest); }
.notice--err { background: #fdecea; color: #a12a1a; }
.search-form { display: flex; gap: 10px; max-width: 520px; margin: 24px auto 0; }

/* ---------- Plain pages (privacy etc.) ---------- */
.entry-content > .wp-block-group.section { margin-inline: calc(50% - 50vw); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.program-grid, .steps, .awards__grid, .partner-grid, .tiers, .impact-grid, .values { grid-template-columns: repeat(2, 1fr); }
	.sdg-grid { grid-template-columns: repeat(3, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.primary-nav { gap: 12px; }
	.primary-nav .menu a { padding: 10px 10px; }
}
@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.primary-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; flex-direction: column; align-items: stretch; padding: 96px 24px 32px; box-shadow: -20px 0 60px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .3s ease; z-index: 60; overflow-y: auto; visibility: hidden; }
	.site-header { backdrop-filter: none; background: #fff; }
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(20,38,27,.45); z-index: 55; }
	.nav-open .site-header { z-index: 100; }
	.nav-open .nav-toggle { position: relative; z-index: 70; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.primary-nav .menu { flex-direction: column; gap: 2px; }
	.primary-nav .menu a { font-size: 1.15rem; padding: 14px 16px; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
	.header-donate { margin-top: 16px; }
	.hero__inner, .intro__grid, .program-detail__grid, .accountability, .donate-grid, .contact-grid, .newsletter__inner, .section-head--split { grid-template-columns: 1fr; }
	.program-detail--flip .program-detail__media { order: 0; }
	.hero__visual { min-height: 380px; }
	.has-hero-photo .hero__inner { min-height: 0; }
	.has-hero-photo .hero__visual { justify-items: start; }
	.newsletter__actions { justify-content: flex-start; }
	.objectives { grid-template-columns: 1fr 1fr; }
	.topbar__tag { display: none; }
	.subnav { top: 72px; }
	.site-header__inner { min-height: 72px; }
	.brand img { height: 52px; }
	.wp-block-cover.cta-band::after { display: none; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.stats__grid { grid-template-columns: 1fr 1fr; }
	.stat { padding: 28px 12px; --pt: 28px; }
	.stat + .stat { border-left: 0; }
	.stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.15); }
	.program-grid, .steps, .awards__grid, .partner-grid, .partner-grid--3, .tiers, .impact-grid, .values, .post-grid, .vm-cards, .objectives, .involve-grid, .form__row, .site-footer__grid { grid-template-columns: 1fr; }
	.sdg-grid { grid-template-columns: repeat(2, 1fr); }
	.topbar__contact a:nth-child(2) { display: none; }
	.topbar .socials { display: none; }
	.intro__badge { right: 12px; bottom: 12px; }
	.float-card--a { left: 0; bottom: 4%; }
	.float-card--b { right: 0; top: 2%; }
	.hero__visual { min-height: 340px; }
	.hero-art { width: 80%; }
	.post-donate { flex-direction: column; align-items: flex-start; }
	.timeline::before { left: 35px; }
	.timeline__item { grid-template-columns: 72px 1fr; gap: 14px; }
	.hero__actions .wp-block-button, .btn-lg { width: 100%; }
	.hero__actions .wp-block-button__link { width: 100%; }
}

/* ---------- Justified text ---------- */
.site-main p, .site-main li, .newsletter p, .site-footer__brand p {
	text-align: justify;
	text-justify: inter-word;
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 6 3 2;
	word-spacing: -.01em;
}
.section-head--center p, .empty p { text-align-last: center; }
.site-main .eyebrow, .site-main .post-card__meta, .site-main .small, .site-main .notice, .site-main .link-arrow, .site-main .tier__badge,
.site-main .award__year, .site-main .step__num, .site-main .program-card__tag, .site-main .goal-line, .site-main .hero__trust li, .site-main .stat p { text-align: left; hyphens: manual; }
.site-main .stat p { text-align: center; }
.site-main .cta-band__lead { hyphens: manual; }

/* ---------- Post card placeholder art ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--green-50); display: block; }
.media--art { display: grid; place-items: center; background: linear-gradient(135deg, var(--green) 0%, var(--forest) 100%); color: #fff; min-height: 220px; height: 100%; }
.media__dots { position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(circle, #fff 1.4px, transparent 1.5px); background-size: 18px 18px; }
.media__icon { position: relative; z-index: 1; width: 34%; max-width: 110px; height: auto; aspect-ratio: 1; stroke-width: 1.3; }
.site-main .cta-band__lead { text-align: left; }
