/* ==========================================================
   CEPO-Galmudug NGO theme — based on the CEPO Terms of Reference
   ========================================================== */

:root {
	--green: #0d5e50;
	--green-700: #0a4f43;
	--deep: #08433a;
	--deeper: #06352e;
	--gold: #c8922e;
	--gold-600: #b07e22;
	--gold-soft: #e6c27a;
	--cream: #f3efe7;
	--cream-2: #ebe5d9;
	--ink: #1f2a27;
	--muted: #5c6763;
	--line: #ddd6c8;
	--white: #fff;

	--font: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
	--radius: 4px;
	--container: 1200px;
	--shadow: 0 1px 2px rgba(8, 67, 58, .06), 0 8px 24px rgba(8, 67, 58, .06);

	--text-xs: .75rem;
	--text-sm: .875rem;
	--text-base: 1rem;
	--text-lg: 1.125rem;
	--text-xl: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
	--text-2xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
	--text-hero: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--text-base);
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--green); font-weight: 700; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.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: 1000; background: var(--gold); color: var(--deep); padding: 8px 14px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border-radius: var(--radius);
	font: 600 var(--text-sm)/1 var(--font); letter-spacing: .02em;
	text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
	white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--deeper); }
.btn-gold:hover { background: var(--gold-soft); color: var(--deeper); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--deep); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--deeper); color: rgba(255, 255, 255, .82); font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar .icon { width: 14px; height: 14px; color: var(--gold); }
.topbar strong { color: var(--white); font-weight: 600; letter-spacing: .02em; }
.topbar-sep { color: var(--gold); margin: 0 8px; }
.topbar-contact { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .9); text-decoration: none; white-space: nowrap; }
.topbar-contact a:hover { color: var(--gold-soft); }

/* ---------- Header + compact single-line menu ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--green);
	border-bottom: 3px solid var(--gold);
	transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 56px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { color: var(--white); font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.brand-tag { color: var(--gold-soft); font-size: 11px; font-weight: 500; letter-spacing: .02em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 0; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: block;
	padding: 8px 10px;
	color: rgba(255, 255, 255, .92);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .015em;
	line-height: 1.2;
	white-space: nowrap; /* keeps every menu label on one line */
	text-decoration: none;
	border-radius: var(--radius);
	transition: color .2s, background .2s;
}
.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a { color: var(--gold-soft); background: rgba(255, 255, 255, .06); }
/* Dropdowns */
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 200px;
	background: var(--deep); border-top: 2px solid var(--gold); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-cta { margin-left: 6px; }

.nav-toggle {
	display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255, 255, 255, .35);
	color: var(--white); width: 42px; height: 42px; border-radius: var(--radius); cursor: pointer;
	align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }

/* ---------- Hero (PDF cover) ---------- */
.hero {
	position: relative;
	background:
		radial-gradient(1200px 500px at 85% 20%, rgba(200, 146, 46, .10), transparent 60%),
		var(--green);
	color: var(--white);
	overflow: hidden;
}
.hero.has-photo {
	background:
		linear-gradient(90deg, rgba(8, 67, 58, .96) 0%, rgba(13, 94, 80, .88) 55%, rgba(13, 94, 80, .55) 100%),
		var(--hero-photo) center/cover no-repeat;
}
.hero-grid {
	display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center;
	padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 88px);
}
.hero-badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(200, 146, 46, .16); border: 1px solid rgba(200, 146, 46, .55);
	color: var(--gold-soft); padding: 6px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px;
}
.hero-badge .icon { width: 15px; height: 15px; }
.hero-org { font-weight: 700; font-size: var(--text-lg); margin-bottom: 14px; color: var(--white); }
.hero-org span { font-weight: 400; color: rgba(255, 255, 255, .75); }
.hero-title {
	color: var(--white); font-size: var(--text-hero); font-weight: 800; letter-spacing: -.01em;
	max-width: 17ch; margin-bottom: 18px;
}
.hero-state {
	color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: var(--text-sm);
	padding-top: 16px; border-top: 2px solid var(--gold); display: inline-block;
}
.hero-lead { color: rgba(255, 255, 255, .85); font-size: var(--text-lg); max-width: 56ch; font-style: italic; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-seal { display: flex; flex-direction: column; align-items: center; }
.seal-ring {
	width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%;
	display: grid; place-items: center;
	background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%);
	border: 1px solid rgba(200, 146, 46, .35);
	box-shadow: 0 0 0 14px rgba(255, 255, 255, .025), 0 0 0 28px rgba(255, 255, 255, .02);
}
.seal-img { width: 82%; height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .3)); }
.seal-caption { margin: 18px 0 0; color: var(--gold); font-weight: 800; letter-spacing: .3em; font-size: var(--text-lg); }

.hero-pillars { background: var(--deep); border-top: 2px solid var(--gold); }
.pillars {
	list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
	text-align: center; color: var(--white); font-size: 13px; font-weight: 700;
}
.pillars li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pillars li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

/* ---------- Facts strip ---------- */
.facts { background: var(--cream); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 20px; display: flex; align-items: center; gap: 14px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num { font-size: 28px; font-weight: 800; color: var(--gold); line-height: 1; min-width: 2.2ch; }
.fact-label { font-size: var(--text-sm); font-weight: 600; color: var(--green); line-height: 1.35; }

/* ---------- Sections (PDF numbered headings) ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green); color: rgba(255, 255, 255, .88); }
.section-title {
	display: flex; align-items: baseline; gap: 14px;
	font-size: var(--text-2xl); font-weight: 700; color: var(--green);
	padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line);
}
.section-title .num { display: none; }
.section-title.on-dark { color: var(--white); border-color: rgba(255, 255, 255, .2); }
.section-intro { color: var(--muted); max-width: 72ch; font-size: var(--text-lg); margin-bottom: 32px; }
.sub-title { font-size: var(--text-xl); color: var(--deep); margin-top: 8px; }
.prose p { max-width: 70ch; }
.lead-italic { font-style: italic; color: var(--green); font-size: var(--text-lg); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.ngo-card { background: var(--cream); border-left: 5px solid var(--gold); padding: 28px; }
.ngo-card h3 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-600); margin-bottom: 16px; }
.ngo-card dl { margin: 0; }
.ngo-card dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ngo-card dl > div:last-child { border-bottom: 0; }
.ngo-card dt { font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: .1em; text-transform: uppercase; }
.ngo-card dd { margin: 2px 0 0; font-size: var(--text-sm); }

/* Vision / mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.vm-card { background: var(--white); padding: 32px; border-top: 4px solid var(--green); box-shadow: var(--shadow); }
.vm-card h3 { font-size: var(--text-xl); }
.vm-card p { margin: 0; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.values li { background: var(--white); padding: 20px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: var(--text-sm); color: var(--muted); }
.values strong { color: var(--green); font-size: var(--text-base); }
.values strong::before { content: ''; display: block; width: 24px; height: 3px; background: var(--gold); margin-bottom: 12px; }

/* Programmes (PDF programme tables) */
.programmes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.programme { border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; }
.programme:last-child:nth-child(odd) { grid-column: 1 / -1; }
.programme-head { background: var(--green); color: var(--white); display: grid; grid-template-columns: 112px 1fr; align-items: center; }
.programme-no { padding: 18px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-right: 1px solid rgba(255, 255, 255, .2); line-height: 1.3; }
.programme-no b { display: block; font-size: 24px; color: var(--gold-soft); letter-spacing: 0; }
.programme-head h3 { color: var(--white); margin: 0; padding: 16px 18px; font-size: var(--text-lg); }
.programme-target { background: var(--cream); display: grid; grid-template-columns: 112px 1fr; font-size: var(--text-sm); }
.programme-target span { padding: 14px; font-weight: 700; color: var(--green); }
.programme-target p { margin: 0; padding: 14px 18px; }
.programme-body { padding: 18px 20px 20px; font-size: var(--text-sm); flex: 1; }
.programme-body details summary {
	cursor: pointer; font-weight: 700; color: var(--green); list-style: none; display: inline-flex; align-items: center; gap: 8px;
}
.programme-body details summary::-webkit-details-marker { display: none; }
.programme-body details summary::after { content: '+'; color: var(--gold); font-size: 18px; line-height: 1; }
.programme-body details[open] summary::after { content: '–'; }
.dot-list { list-style: none; margin: 12px 0 0; padding: 0; }
.dot-list li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.dot-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.objectives { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.objectives-head p { color: var(--muted); }
.so-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.so-list li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px 16px; background: var(--cream); font-size: var(--text-sm); }
.so-list b { color: var(--white); background: var(--green); text-align: center; padding: 6px 0; border-radius: var(--radius); font-size: 13px; }

/* Districts table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.cepo-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 560px; }
.cepo-table thead th { background: var(--green); color: var(--white); text-align: left; padding: 14px 16px; font-weight: 700; }
.cepo-table tbody th { text-align: left; color: var(--green); font-weight: 700; white-space: nowrap; }
.cepo-table tbody th, .cepo-table td { padding: 12px 16px; border-top: 1px solid var(--line); }
.cepo-table tbody tr:nth-child(odd) { background: var(--cream); }
.beneficiaries { margin-top: 40px; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list li { background: var(--white); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: var(--text-sm); color: var(--green); font-weight: 600; }

/* Approach */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.approach-item { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approach-item h3 { font-size: var(--text-lg); position: relative; padding-top: 16px; }
.approach-item h3::before { content: ''; position: absolute; top: 0; left: 0; width: 28px; height: 3px; background: var(--gold); }
.approach-item p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.partners { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.partners p { color: var(--muted); }

/* Safeguarding */
.sg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sg-item { border-top: 2px solid var(--gold); padding-top: 18px; }
.sg-item h3 { color: var(--white); font-size: var(--text-lg); }
.sg-item p { margin: 0; font-size: var(--text-sm); }

/* Team (PDF member cards) */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { display: flex; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--line); border-left: 5px solid var(--gold); background: var(--white); }
.member:nth-child(odd) { background: var(--cream); }
.member-avatar { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; background: var(--green); border: 3px solid var(--gold); display: grid; place-items: center; color: var(--white); }
.member-avatar .icon { width: 34px; height: 34px; }
.member-info { flex: 1; min-width: 0; }
.member-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.member-name, .member-title { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.member-name { font-weight: 700; }
.member-title { margin-bottom: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); margin-bottom: 12px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
a.contact-card:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-1px); }
.contact-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--gold-soft); display: grid; place-items: center; flex-shrink: 0; }
.contact-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.contact-value { display: block; font-weight: 700; color: var(--green); font-size: var(--text-lg); overflow-wrap: anywhere; }
.contact-form { background: var(--white); padding: 32px; border-top: 4px solid var(--green); box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--green); }
.contact-form input, .contact-form select, .contact-form textarea, .search-form input {
	width: 100%; font: 400 var(--text-base)/1.4 var(--font); color: var(--ink);
	padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: #fcfbf8;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--green); outline: 2px solid rgba(13, 94, 80, .15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .btn { justify-self: start; }
.form-notice { margin: 0; padding: 12px 14px; font-size: var(--text-sm); border-left: 4px solid; }
.form-notice.is-ok { background: #e8f3ef; border-color: var(--green); color: var(--deep); }
.form-notice.is-error { background: #fbf0e6; border-color: #b4532a; color: #7a3416; }

/* ==========================================================
   Homepage v2 — photo-led NGO layout
   ========================================================== */
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn .icon-phone, .btn .icon-mail { width: 17px; height: 17px; }
.btn:hover .icon-phone, .btn:hover .icon-mail { transform: none; }

.h-section { padding: clamp(64px, 9vw, 112px) 0; }
.h-cream { background: var(--cream); }
.h-green { background: var(--deep); color: rgba(255, 255, 255, .82); }
.h-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--gold-600); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.h-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
.h-eyebrow.on-dark { color: var(--gold-soft); }
.h-title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); font-weight: 800; letter-spacing: -.015em; color: var(--deep); max-width: 20ch; }
.h-title.on-dark { color: var(--white); }
.h-lead { font-size: var(--text-lg); color: var(--green); font-weight: 500; }
.h-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.h-head > p { color: var(--muted); font-size: var(--text-lg); margin: 0; }
.h-green .h-head > p { color: rgba(255, 255, 255, .75); }

/* Hero */
.h-hero {
	position: relative; color: var(--white);
	min-height: min(88vh, 820px);
	display: flex; flex-direction: column; justify-content: flex-end;
	background:
		linear-gradient(90deg, rgba(6, 53, 46, .94) 0%, rgba(8, 67, 58, .78) 38%, rgba(8, 67, 58, .15) 75%),
		linear-gradient(0deg, rgba(6, 53, 46, .7) 0%, transparent 35%),
		var(--hero) center 40%/cover no-repeat;
}
.h-hero-inner { padding-top: clamp(72px, 10vw, 140px); padding-bottom: 56px; }
.h-badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--gold); color: var(--deeper);
	padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 26px;
}
.h-badge .icon { width: 15px; height: 15px; }
.h-hero-title {
	color: var(--white); font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em;
	max-width: 14ch; margin-bottom: 24px;
}
.h-hero-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 54ch; margin-bottom: 34px; }
.h-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.h-infobar {
	display: grid; grid-template-columns: repeat(3, 1fr);
	background: var(--white); color: var(--ink);
	border-top: 4px solid var(--gold); box-shadow: 0 20px 40px rgba(6, 53, 46, .25);
	transform: translateY(50%); position: relative; z-index: 2;
}
.h-info { display: flex; align-items: center; gap: 14px; padding: 22px 26px; text-decoration: none; color: inherit; border-left: 1px solid var(--line); min-width: 0; }
.h-info:first-child { border-left: 0; }
a.h-info:hover { background: var(--cream); color: inherit; }
.h-info-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--gold-soft); display: grid; place-items: center; flex-shrink: 0; }
.h-info small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.h-info b { display: block; color: var(--deep); font-size: 17px; overflow-wrap: anywhere; }

/* Intro */
.h-intro { padding-top: calc(clamp(64px, 9vw, 112px) + 60px); }
.h-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.h-intro-grid p { color: var(--muted); max-width: 60ch; }
.h-intro-grid .h-lead { color: var(--green); }
.h-checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.h-checks li { position: relative; padding-left: 30px; font-weight: 600; color: var(--deep); font-size: var(--text-sm); line-height: 1.45; }
.h-checks li::before {
	content: ''; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--green);
	box-shadow: inset 0 0 0 5px var(--green), inset 0 0 0 10px var(--gold);
}
.h-intro-media { position: relative; }
.h-intro-media img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.h-intro-media::before { content: ''; position: absolute; inset: -18px 18px 18px -18px; border: 2px solid var(--gold); z-index: -1; }
.h-stats {
	position: absolute; left: -32px; bottom: 32px; display: flex; background: var(--green); color: var(--white);
	box-shadow: 0 16px 32px rgba(6, 53, 46, .3);
}
.h-stats div { padding: 18px 22px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .15); }
.h-stats div:first-child { border-left: 0; }
.h-stats b { display: block; font-size: 30px; line-height: 1; color: var(--gold-soft); font-weight: 800; }
.h-stats span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* Focus strip */
.h-focus { background: var(--green); border-top: 3px solid var(--gold); }
.h-focus ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.h-focus li { padding: 26px 18px; color: var(--white); font-weight: 700; font-size: 14.5px; border-left: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 6px; line-height: 1.3; }
.h-focus li:first-child { border-left: 0; padding-left: 0; }
.h-focus li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

/* Programmes */
.h-progs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.h-prog { grid-column: span 2; background: var(--white); display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.h-prog:nth-child(4), .h-prog:nth-child(5) { grid-column: span 3; }
.h-prog:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(8, 67, 58, .06), 0 18px 36px rgba(8, 67, 58, .12); }
.h-prog-media { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.h-prog-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.h-prog:hover .h-prog-media img { transform: scale(1.04); }
.h-prog-no {
	position: absolute; left: 0; bottom: 0; background: var(--gold); color: var(--deeper);
	font-weight: 800; font-size: 15px; padding: 8px 14px; letter-spacing: .04em;
}
.h-prog-body { padding: 24px 26px 26px; border-top: 4px solid var(--green); flex: 1; display: flex; flex-direction: column; }
.h-prog-body h3 { font-size: 1.2rem; color: var(--deep); }
.h-prog-body > p { color: var(--muted); font-size: var(--text-sm); }
.h-prog-body details { margin-top: auto; padding-top: 8px; font-size: var(--text-sm); }
.h-prog-body summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 8px; }
.h-prog-body summary::-webkit-details-marker { display: none; }
.h-prog-body summary::after { content: '+'; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); color: var(--gold-600); font-size: 16px; line-height: 1; }
.h-prog-body details[open] summary::after { content: '–'; }
.h-prog-target { margin: 14px 0 4px; color: var(--ink); }

/* Vision & mission */
.h-vm { display: grid; grid-template-columns: 1fr 1fr; background: var(--green); }
.h-vm-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.h-vm-panel { padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px); color: rgba(255, 255, 255, .85); }
.h-vm-panel blockquote {
	margin: 0 0 40px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.35; font-weight: 600; color: var(--white);
	padding-left: 22px; border-left: 3px solid var(--gold);
}
.h-values { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h-values li { border: 1px solid rgba(230, 194, 122, .5); color: var(--gold-soft); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* Where we work */
.h-where { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.h-where > div:first-child p { color: var(--muted); }
.h-where > div:first-child .btn { margin-top: 12px; }
.h-regions { display: grid; gap: 20px; }
.h-region ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.h-region li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.h-region { background: var(--cream); padding: 24px; }
.h-region h3 { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-lg); color: var(--deep); padding-bottom: 12px; border-bottom: 2px solid var(--gold); margin-bottom: 4px; }
.h-region h3 span { background: var(--green); color: var(--white); font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.h-region ul { list-style: none; margin: 0; padding: 0; }
.h-region li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 1px; }
.h-region li:last-child { border-bottom: 0; }
.h-region li b { color: var(--green); font-size: 15px; }
.h-region li span { color: var(--muted); font-size: 13px; }
.h-region li.is-hq b::after { content: 'Headquarters'; margin-left: 8px; background: var(--gold); color: var(--deeper); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; vertical-align: middle; }

/* How we work */
.h-approach { list-style: none; counter-reset: ap; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); }
.h-approach li { counter-increment: ap; background: var(--deep); padding: 30px 28px; }
.h-approach li::before { content: ''; display: block; width: 28px; height: 3px; background: var(--gold); margin-bottom: 18px; }
.h-approach h3 { color: var(--white); font-size: 1.1rem; }
.h-approach p { margin: 0; font-size: var(--text-sm); color: rgba(255, 255, 255, .72); }
.h-safe { margin-top: 32px; display: flex; gap: 16px; align-items: flex-start; background: rgba(200, 146, 46, .12); border-left: 4px solid var(--gold); padding: 20px 24px; }
.h-safe .icon { width: 26px; height: 26px; color: var(--gold-soft); margin-top: 2px; }
.h-safe p { margin: 0; color: rgba(255, 255, 255, .88); }
.h-safe b { color: var(--white); }

/* Team */
.h-team { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.h-member { text-align: center; padding: 28px 12px 24px; border: 1px solid var(--line); border-top: 4px solid var(--gold); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.h-avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: var(--gold-soft); display: grid; place-items: center; font-weight: 800; font-size: 22px; letter-spacing: .04em; margin-bottom: 12px; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gold); }
.h-member b { color: var(--deep); font-size: 14.5px; line-height: 1.3; }
.h-member > span:last-child { color: var(--muted); font-size: 13px; }

/* CTA */
.h-cta {
	color: var(--white); text-align: center;
	background: linear-gradient(rgba(6, 53, 46, .86), rgba(6, 53, 46, .9)), var(--cta) center/cover no-repeat;
	padding: clamp(72px, 10vw, 120px) 0;
}
.h-cta-inner { display: flex; flex-direction: column; align-items: center; }
.h-cta h2 { color: var(--white); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 800; max-width: 22ch; letter-spacing: -.015em; }
.h-cta p { color: rgba(255, 255, 255, .82); font-size: var(--text-lg); max-width: 56ch; margin-bottom: 30px; }
.h-cta .h-hero-actions { justify-content: center; }

.home ~ .site-footer .footer-pillars { display: none; }
.home .contact-grid { align-items: center; }

@media (max-width: 1024px) {
	.h-head, .h-intro-grid, .h-where, .h-vm { grid-template-columns: 1fr; }
	.h-head { gap: 16px; }
	.h-intro-media { max-width: 560px; margin-left: 18px; }
	.h-stats { left: -18px; }
	.h-progs { grid-template-columns: 1fr 1fr; }
	.h-prog, .h-prog:nth-child(4), .h-prog:nth-child(5) { grid-column: auto; }
	.h-prog.is-featured { grid-column: 1 / -1; }
	.h-approach { grid-template-columns: 1fr 1fr; }
	.h-team { grid-template-columns: repeat(3, 1fr); }
	.h-focus ul { grid-template-columns: repeat(3, 1fr); }
	.h-focus li:nth-child(4) { border-left: 0; padding-left: 0; }
	.h-focus li:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .14); }
	.h-vm-media img { min-height: 300px; max-height: 420px; }
}
@media (max-width: 720px) {
	.h-hero { min-height: 0; background:
		linear-gradient(0deg, rgba(6, 53, 46, .96) 0%, rgba(8, 67, 58, .82) 55%, rgba(8, 67, 58, .45) 100%),
		var(--hero) 60% center/cover no-repeat; }
	.h-hero-inner { padding-top: 80px; padding-bottom: 32px; }
	.h-hero-actions .btn { flex: 1 1 auto; justify-content: center; }
	.h-infobar { grid-template-columns: 1fr; transform: none; margin-bottom: 24px; }
	.h-info { border-left: 0; border-top: 1px solid var(--line); padding: 16px 18px; }
	.h-info:first-child { border-top: 0; }
	.h-intro { padding-top: clamp(64px, 9vw, 112px); }
	.h-checks { grid-template-columns: 1fr; }
	.h-stats { position: static; margin-top: 0; }
	.h-stats div { flex: 1; padding: 14px 8px; }
	.h-intro-media { margin-left: 0; }
	.h-intro-media::before { display: none; }
	.h-progs, .h-approach, .h-region ul { grid-template-columns: 1fr; }
	.h-region li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
	.h-team { grid-template-columns: 1fr 1fr; }
	.h-focus ul { grid-template-columns: 1fr 1fr; }
	.h-focus li { padding: 18px 12px; font-size: 13.5px; }
	.h-focus li:nth-child(4) { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 12px; }
	.h-focus li:nth-child(odd) { border-left: 0; padding-left: 0; }
	.h-focus li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
	.h-focus li:last-child { grid-column: 1 / -1; }
	.h-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Inner pages ---------- */
.page-banner { background: var(--green); color: var(--white); padding: 48px 0 44px; }
.page-kicker { color: var(--gold-soft); font-weight: 700; font-size: var(--text-sm); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.page-title { color: var(--white); font-size: var(--text-2xl); margin: 0; }
.entry-hero { margin: 0 0 32px; }
.entry-hero img { display: block; width: 100%; }
.entry-content h2 { font-size: var(--text-xl); margin-top: 1.6em; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.entry-content h3 { font-size: var(--text-lg); color: var(--deep); margin-top: 1.4em; }
.entry-content ul li::marker { color: var(--gold); }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); font-style: italic; color: var(--green); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th { background: var(--green); color: #fff; text-align: left; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--line); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; }
.post-card-media img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-body { padding: 22px; border-top: 4px solid var(--green); flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--gold-600); font-weight: 700; margin-bottom: 6px; }
.post-card-title { font-size: var(--text-lg); }
.post-card-title a { text-decoration: none; }
.post-card-excerpt { color: var(--muted); font-size: var(--text-sm); flex: 1; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--text-sm); text-decoration: none; }
.read-more .icon { width: 15px; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; }
.empty-state { text-align: center; max-width: 560px; margin: 0 auto; }
.search-form { display: flex; gap: 8px; margin: 20px 0; }
.comments-area { margin-top: 56px; }
.widget { margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, .78); font-size: var(--text-sm); }
.footer-pillars { border-bottom: 1px solid rgba(255, 255, 255, .1); background: var(--deeper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 48px; }
.footer-logo { width: 96px; height: auto; display: block; margin-bottom: 16px; }
.footer-name { color: var(--white); font-weight: 700; font-size: var(--text-base); max-width: 34ch; }
.footer-name span { font-weight: 400; color: var(--gold-soft); }
.footer-ngo-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-weight: 600; }
.footer-ngo-badge .icon { width: 16px; }
.footer-title { color: var(--gold); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list a, .footer-list span { color: rgba(255, 255, 255, .85); text-decoration: none; display: inline-flex; align-items: flex-start; gap: 10px; }
.footer-list .icon { width: 16px; color: var(--gold); margin-top: 3px; }
.footer-list a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: var(--deeper); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; font-size: var(--text-xs); }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
	.brand-tag { display: none; }
	.site-nav .menu a { padding: 8px 8px; font-size: 12.5px; }
}
@media (max-width: 1024px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); z-index: 60;
		flex-direction: column; align-items: stretch; gap: 16px; padding: 88px 20px 24px;
		background: var(--deep); border-left: 3px solid var(--gold);
		transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
	}
	.nav-open .site-nav { transform: none; box-shadow: -20px 0 40px rgba(0, 0, 0, .3); }
	.nav-open .nav-toggle { position: relative; z-index: 70; }
	.nav-open .nav-toggle-open { display: none; }
	.nav-open .nav-toggle-close { display: inline; }
	.site-nav .menu { flex-direction: column; align-items: stretch; }
	.site-nav .menu a { padding: 12px 10px; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding-left: 12px; }
	.nav-cta { margin: 8px 0 0; justify-content: center; }
	.brand-tag { display: block; }

	.hero-grid { grid-template-columns: 1fr; }
	.hero-seal { order: -1; }
	.seal-ring { width: 200px; }
	.seal-caption { display: none; }
	.about-grid, .contact-grid, .objectives, .partners { grid-template-columns: 1fr; gap: 32px; }
	.values { grid-template-columns: repeat(2, 1fr); }
	.sg-grid { grid-template-columns: repeat(2, 1fr); }
	.team-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.approach-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.topbar-extra, .topbar-sep { display: none; }
}
@media (max-width: 720px) {
	.topbar-inner { flex-direction: column; gap: 4px; padding-top: 8px; padding-bottom: 8px; }
	.topbar-contact { gap: 16px; }
	.programmes, .vm-grid, .team-grid, .post-grid, .approach-grid, .sg-grid, .form-row { grid-template-columns: 1fr; }
	.pillars { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
	.pillars li:last-child { grid-column: 1 / -1; }
	.facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fact { flex-direction: column; align-items: flex-start; gap: 6px; }
	.fact-num { font-size: 22px; }
	.cepo-table { min-width: 0; }
	.cepo-table tbody th { white-space: normal; }
	.cepo-table thead th, .cepo-table tbody th, .cepo-table td { padding: 10px; }
	.fact { padding: 18px 12px; }
	.fact:nth-child(odd) { border-left: 0; padding-left: 0; }
	.fact:nth-child(n+3) { border-top: 1px solid var(--line); }
	.programme-head, .programme-target { grid-template-columns: 92px 1fr; }
	.values { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.footer-bottom-inner { flex-direction: column; }
	.contact-form { padding: 22px; }
}
@media (max-width: 380px) {
	.brand-tag { display: none; }
	.brand-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

/* ---------- Inner pages that reuse homepage sections ---------- */
.page-sections .h-intro { padding-top: clamp(64px, 9vw, 112px); }
.page-sections .h-section:first-child, .page-sections .h-vm:first-child { margin-top: 0; }
.page-sections.has-sections + .site-footer .footer-pillars { display: none; }
.h-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h-gallery figure { margin: 0; background: var(--white); box-shadow: var(--shadow); }
.h-gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.h-gallery figure:nth-child(3n+2):last-child { grid-column: span 2; }
.h-gallery a { display: block; overflow: hidden; height: calc(100% - 46px); }
.h-gallery img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; transition: transform .5s; }
.h-gallery a:hover img { transform: scale(1.04); }
.h-gallery figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); border-top: 3px solid var(--gold); height: 46px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pagination ul.page-numbers { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination ul.page-numbers li .page-numbers { display: block; }
@media (max-width: 720px) {
	.h-gallery { grid-template-columns: minmax(0, 1fr); }
	.h-gallery figure:first-child { grid-column: auto; grid-row: auto; }
}
