/* ==========================================================================
   Hamsa — main stylesheet
   ========================================================================== */

:root {
	--ink: #24271f;
	--sage-900: #2c3027;
	--sage-800: #3a3f33;
	--sage-700: #4a4f42;
	--sage-600: #5f6556;
	--sage-500: #6b7062;
	--sage-400: #8a8f80;
	--sage-300: #b3b6a9;
	--sage-200: #d6d8ce;
	--sage-100: #e9eae2;
	--cream: #f4f2ea;
	--paper: #fbfaf6;
	--wheat: #c9a86a;
	--wheat-soft: #efe4cc;
	--white: #fff;

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-ar: "Tajawal", "Manrope", sans-serif;

	--radius: 22px;
	--radius-sm: 12px;
	--leaf: 0 120px 0 120px;
	--shadow: 0 1px 2px rgba(36, 39, 31, .05), 0 12px 32px -12px rgba(36, 39, 31, .18);
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(72px, 10vw, 128px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sage-900); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--sage-900); margin: 0 0 .5em; letter-spacing: -.01em; font-variation-settings: "opsz" 96; }
p { margin: 0 0 1em; }
[lang="ar"] { font-family: var(--font-ar); }
::selection { background: var(--sage-200); }
:focus-visible { outline: 2px solid var(--wheat); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 999; background: var(--sage-900); color: #fff; padding: 10px 16px; border-radius: 8px; transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: none; color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--sage-500); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.eyebrow--light { color: rgba(255, 255, 255, .82); }
.section__title { font-size: clamp(32px, 4.4vw, 54px); max-width: 18ch; }
.section__title--sm { font-size: clamp(26px, 3vw, 34px); max-width: none; margin-bottom: 28px; }
.lead { font-size: 19px; color: var(--sage-700); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
	font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
	white-space: nowrap;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--solid { background: var(--sage-600); color: #fff; }
.btn--solid:hover { background: var(--sage-800); color: #fff; }
.btn--outline { border-color: var(--sage-300); color: var(--sage-800); background: transparent; }
.btn--outline:hover { border-color: var(--sage-700); background: var(--sage-700); color: #fff; }
.btn--light { background: #fff; color: var(--sage-900); }
.btn--light:hover { background: var(--wheat-soft); color: var(--sage-900); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; color: var(--sage-800); border-bottom: 1px solid var(--sage-300); padding-bottom: 4px; white-space: nowrap; }
.link-arrow:hover { border-color: var(--sage-800); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .25s var(--ease); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 250, 246, .88);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--sage-100), 0 8px 24px -16px rgba(0, 0, 0, .2); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.brand img, .custom-logo { height: 58px; width: auto; }
.custom-logo-link { display: block; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: block; padding: 10px 14px; border-radius: 999px;
	font-size: 15px; font-weight: 500; color: var(--sage-800); text-decoration: none;
	transition: background .2s, color .2s;
}
.site-nav .menu a:hover { background: var(--sage-100); color: var(--sage-900); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { color: var(--sage-900); background: var(--sage-100); }
.site-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; padding: 8px; margin: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { border-radius: 8px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; color: var(--sage-900); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

.lang-switch {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; border-radius: 999px; border: 1px solid var(--sage-200);
	font-size: 14px; font-weight: 600; color: var(--sage-800); text-decoration: none; white-space: nowrap;
	transition: border-color .2s, background .2s;
}
.lang-switch:hover { border-color: var(--sage-500); background: var(--sage-100); color: var(--sage-900); }
.lang-switch[lang="ar"] { font-family: var(--font-ar); font-size: 15px; }
.lang-switch .icon { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 8px 0 0; }
.hero__panel {
	position: relative; overflow: hidden;
	min-height: min(82vh, 760px);
	border-radius: 32px;
	background: var(--sage-800) center 60% / cover no-repeat;
	display: flex; align-items: flex-end;
	isolation: isolate;
}
.hero__panel::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(36, 40, 31, .05) 0%, rgba(36, 40, 31, .25) 40%, rgba(36, 40, 31, .82) 100%),
		linear-gradient(90deg, rgba(36, 40, 31, .55) 0%, rgba(36, 40, 31, 0) 65%);
}
.hero__content { padding: clamp(28px, 5vw, 72px); max-width: 820px; color: #fff; }
.hero__title { color: #fff; font-size: clamp(38px, 6vw, 76px); font-weight: 300; line-height: 1.04; letter-spacing: -.02em; margin-bottom: 24px; font-variation-settings: "opsz" 144; }
.hero__text { font-size: clamp(16px, 1.5vw, 19px); max-width: 56ch; color: rgba(255, 255, 255, .88); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge {
	position: absolute; right: clamp(20px, 3vw, 40px); top: clamp(20px, 3vw, 40px);
	display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
	padding: 14px 20px; border-radius: 18px;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.hero__badge-ar { font-size: 20px; letter-spacing: 0; text-transform: none; font-weight: 500; }

/* ---------- Stats ---------- */
.stats { padding: clamp(40px, 6vw, 64px) 0 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 28px; border-left: 1px solid var(--sage-200); display: flex; flex-direction: column; gap: 6px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(38px, 4.5vw, 58px); line-height: 1; color: var(--sage-600); font-weight: 300; }
.stat__label { font-size: 14.5px; color: var(--sage-700); max-width: 22ch; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section__head { margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__head--row .section__title { margin-bottom: 0; }
.section__head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.section__head--split .section__title { margin-bottom: 0; }
.section__head--center { text-align: center; }
.section__head--center .section__title { margin: 0 auto; }
.section__intro { color: var(--sage-700); margin: 0; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__media { position: relative; margin: 0; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--leaf); }
.about__tag {
	position: absolute; left: -18px; bottom: 40px;
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--wheat-soft); color: var(--sage-900);
	padding: 14px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
}
.about__tag .icon { color: var(--sage-600); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.vm__card { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.vm__card h3 { font-size: 23px; margin-bottom: 10px; }
.vm__card p { font-size: 15.5px; color: var(--sage-700); margin: 0; }
.vm__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--sage-600); margin-bottom: 16px; }

/* ---------- Focus areas ---------- */
.focus { background: var(--sage-700); color: #fff; border-radius: 40px; margin: 0 clamp(0px, 1.2vw, 16px); position: relative; overflow: hidden; }
.focus::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
	border: 1px solid rgba(255, 255, 255, .12); border-radius: 0 50% 0 50%; transform: rotate(10deg); pointer-events: none;
}
.focus .section__title { color: #fff; }
.focus .section__intro { color: rgba(255, 255, 255, .78); }
.focus__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.focus__card {
	grid-column: span 2; position: relative;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--radius); padding: 32px 28px 30px;
	transition: background .3s var(--ease), transform .3s var(--ease);
}
.focus__card:nth-child(4), .focus__card:nth-child(5) { grid-column: span 3; }
.focus__card:hover { background: rgba(255, 255, 255, .11); transform: translateY(-3px); }
.focus__num { position: absolute; top: 26px; right: 28px; font-family: var(--font-display); font-size: 15px; color: rgba(255, 255, 255, .45); }
.focus__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--wheat-soft); color: var(--sage-800); margin-bottom: 26px; }
.focus__icon .icon { width: 26px; height: 26px; }
.focus__card h3 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.focus__card p { color: rgba(255, 255, 255, .75); font-size: 15.5px; margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 28px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--sage-100); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.card:hover { box-shadow: 0 0 0 1px var(--sage-200), var(--shadow); transform: translateY(-4px); }
.card__media { position: relative; display: block; aspect-ratio: 10 / 7; overflow: hidden; background: var(--sage-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sage-300); }
.card__placeholder .icon { width: 56px; height: 56px; }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-500); margin-bottom: 10px; }
.card__title { font-size: 24px; margin-bottom: 10px; }
.card__title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.card:hover .card__title a { background-size: 100% 1px; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__excerpt { font-size: 15.5px; color: var(--sage-700); }
.card__meta { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--sage-100); font-size: 14px; color: var(--sage-600); }
.card__meta strong { color: var(--sage-900); font-weight: 600; }

.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.card__media .badge { position: absolute; top: 16px; left: 16px; }
.badge--ongoing { background: var(--wheat-soft); color: #6b5524; }
.badge--completed { background: #fff; color: var(--sage-700); }

/* ---------- Values ---------- */
.values { background: var(--cream); }
.values__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.values__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.value { display: flex; gap: 20px; padding: 30px 26px 30px 0; border-top: 1px solid var(--sage-200); }
.value:nth-child(even) { padding-left: 26px; padding-right: 0; border-left: 1px solid var(--sage-200); }
.value h3 { font-size: 23px; margin-bottom: 6px; }
.value p { margin: 0; color: var(--sage-700); font-size: 15.5px; }
.value__icon { flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--sage-300); color: var(--sage-600); }

/* ---------- Studies ---------- */
.studies-home__grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.studies-home__head { position: sticky; top: 120px; }
.studies-home__head p:not(.eyebrow) { color: var(--sage-700); margin-bottom: 28px; }
.study-list { display: grid; gap: 14px; }
.study-row {
	display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
	background: #fff; border-radius: var(--radius); padding: 24px 26px;
	box-shadow: 0 0 0 1px var(--sage-100); transition: box-shadow .3s var(--ease);
}
.study-row:hover { box-shadow: 0 0 0 1px var(--sage-200), var(--shadow); }
.study-row__icon { display: grid; place-items: center; width: 54px; height: 64px; border-radius: 10px 22px 10px 10px; background: var(--sage-100); color: var(--sage-600); }
.study-row__icon .icon { width: 26px; height: 26px; }
.study-row__meta { font-size: 13px; color: var(--sage-500); font-weight: 600; margin-bottom: 4px; }
.study-row__title { font-size: 21px; margin-bottom: 6px; }
.study-row__title a { color: inherit; text-decoration: none; }
.study-row__title a:hover { text-decoration: underline; }
.study-row__excerpt { margin: 0; font-size: 15px; color: var(--sage-700); }
.study-row__actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- News ---------- */
.news-home { padding-top: 0; }
.values + .news-home, .projects + .news-home { padding-top: var(--section); }

/* ---------- Partners ---------- */
.partners { background: var(--paper); }
.partners__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partner { flex: 0 1 200px; }
.partner__inner {
	display: grid; place-items: center; height: 120px; padding: 22px;
	background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--sage-100);
	text-decoration: none; transition: box-shadow .3s var(--ease);
}
.partner__inner img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s; }
.partner__inner:hover { box-shadow: 0 0 0 1px var(--sage-200), var(--shadow); }
.partner__inner:hover img { filter: none; opacity: 1; }
.partner__name { font-family: var(--font-display); font-size: 18px; text-align: center; color: var(--sage-700); line-height: 1.3; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 var(--section); }
.cta__panel {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
	padding: clamp(40px, 6vw, 80px); border-radius: 32px;
	background: var(--sage-800) center / cover no-repeat; color: #fff;
}
.cta__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(44, 48, 39, .92), rgba(44, 48, 39, .55)); }
.cta__content { max-width: 620px; }
.cta h2 { color: #fff; font-size: clamp(30px, 4vw, 50px); font-weight: 300; }
.cta p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 18px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Admin empty note ---------- */
.admin-note {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 22px 26px; border: 1.5px dashed var(--sage-300); border-radius: var(--radius);
	color: var(--sage-700); background: rgba(233, 234, 226, .35); font-size: 15px;
}
.admin-note .icon { color: var(--sage-500); }
.admin-note a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-900); color: rgba(255, 255, 255, .72); padding: clamp(64px, 8vw, 96px) 0 32px; font-size: 15.5px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .brand img { height: 64px; margin-bottom: 22px; }
.site-footer__about p { max-width: 42ch; }
.site-footer__ar { font-size: 18px; color: rgba(255, 255, 255, .9); }
.footer__title { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-menu, .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { margin-top: 4px; color: var(--wheat); }
.social { list-style: none; margin: 24px 0 0; padding: 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); transition: background .2s, border-color .2s; }
.social a:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; }
.site-footer__bottom p { margin: 0; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--cream); padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); margin: 8px clamp(0px, 1.2vw, 16px) 0; border-radius: 32px; }
.page-hero__title { font-size: clamp(38px, 5.6vw, 68px); font-weight: 300; max-width: 16ch; margin-bottom: 18px; }
.page-hero__text { font-size: 19px; color: var(--sage-700); max-width: 58ch; margin: 0; }
.page-hero__leaf { position: absolute; right: 4%; bottom: -30px; width: clamp(160px, 22vw, 300px); color: var(--sage-300); opacity: .7; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--sage-200); text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--sage-700); }
.filter:hover { border-color: var(--sage-500); }
.filter.is-active { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }

.single__head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 32px; }
.single__title { font-size: clamp(36px, 5vw, 62px); font-weight: 300; max-width: 22ch; }
.single__byline { color: var(--sage-600); }
.single__cover { margin: 0 auto 56px; }
.single__cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 28px; }
.back-link { display: table; margin-bottom: 28px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--sage-600); }

.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: start; padding-bottom: 56px; }
.facts { position: sticky; top: 120px; background: var(--cream); border-radius: var(--radius); padding: 30px; }
.facts__title { font-size: 22px; margin-bottom: 18px; }
.facts dl { margin: 0; }
.facts dt { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-500); }
.facts dd { margin: 4px 0 18px; color: var(--sage-900); font-weight: 500; }
.facts dd:last-child { margin-bottom: 0; }

.gallery-section { padding-bottom: 40px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.more { background: var(--cream); margin-top: 40px; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 22, 18, .94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 12px; }
.lightbox figure { margin: 0; text-align: center; color: #fff; }
.lightbox figcaption { margin-top: 12px; font-size: 14px; opacity: .8; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; }
.lightbox__next { right: 16px; top: 50%; }

.download-box { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--sage-700); color: #fff; padding: 22px 26px; border-radius: var(--radius); margin-bottom: 48px; }
.download-box__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
.download-box__text { flex: 1; display: flex; flex-direction: column; min-width: 180px; }
.download-box__text span { font-size: 14px; opacity: .75; word-break: break-all; }
.download-box .btn--solid { background: #fff; color: var(--sage-900); }
.download-box .btn--solid:hover { background: var(--wheat-soft); }
.pdf-viewer { margin: 48px 0 0; border: 1px solid var(--sage-200); border-radius: var(--radius); overflow: hidden; }
.pdf-viewer summary { padding: 18px 24px; cursor: pointer; font-weight: 600; color: var(--sage-800); background: var(--cream); }
.pdf-viewer object { display: block; border: 0; }

.entry-content { font-size: 18px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 32px; margin-top: 1.6em; }
.entry-content h3 { font-size: 25px; margin-top: 1.4em; }
.entry-content img { border-radius: 16px; }
.entry-content blockquote { margin: 1.6em 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--wheat); font-family: var(--font-display); font-size: 24px; line-height: 1.4; color: var(--sage-800); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content .alignwide { margin-left: -80px; margin-right: -80px; }

.post-nav { padding: 56px var(--gutter) 80px; }
.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--sage-200); padding-top: 28px; }
.post-nav a { text-decoration: none; font-family: var(--font-display); font-size: 19px; color: var(--sage-900); }
.post-nav span { display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-500); }
.post-nav .nav-next { text-align: right; }

.pagination { margin-top: 56px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sage-200); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.pagination .current { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.empty { font-size: 18px; color: var(--sage-600); }

.search-form { display: flex; gap: 8px; margin-bottom: 28px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 14px 18px; border: 1px solid var(--sage-200); border-radius: 999px; font: inherit; background: #fff; }
.search-submit { padding: 0 24px; border: 0; border-radius: 999px; background: var(--sage-700); color: #fff; font: 600 15px var(--font-body); cursor: pointer; }

/* Automatic numbers */
.stats__grid--3 { grid-template-columns: repeat(3, 1fr); }
.stats__grid--2 { grid-template-columns: repeat(2, 1fr); }
.stats__grid--1 { grid-template-columns: 1fr; }
.stat__num { font-variant-numeric: tabular-nums; }
.stat--beneficiaries .stat__num { color: var(--sage-700); }
.card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; }
.card__people { display: inline-flex; align-items: center; gap: 6px; }
.card__people .icon { width: 16px; height: 16px; color: var(--sage-500); }
.facts__people { display: flex; flex-direction: column; padding: 18px 20px; margin-bottom: 22px; border-radius: 16px; background: var(--sage-700); color: rgba(255,255,255,.85); font-size: 14px; }
.facts__people-num { font-family: var(--font-display); font-size: 42px; line-height: 1.1; color: #fff; font-weight: 300; }
.rtl .facts__people-num { font-family: var(--font-body); }

/* Project key results */
.project-lead { font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.45; color: var(--sage-800); margin-bottom: 28px; }
.results { margin-top: 44px; padding: 30px; border-radius: var(--radius); background: var(--cream); }
.results__title { font-size: 24px; margin-bottom: 18px; }
.results__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.results__list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--sage-900); }
.results__list .icon { margin-top: 4px; color: var(--sage-600); }
@media (max-width: 680px) { .results__list { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	* { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.cards--3 { grid-template-columns: repeat(2, 1fr); }
	.focus__grid { grid-template-columns: repeat(2, 1fr); }
	.focus__card, .focus__card:nth-child(4), .focus__card:nth-child(5) { grid-column: span 1; }
	.focus__card:nth-child(5) { grid-column: span 2; }
	.values__grid, .studies-home__grid { grid-template-columns: 1fr; }
	.studies-home__head { position: static; }
	.project-layout { grid-template-columns: 1fr; }
	.facts { position: static; }
}

@media (max-width: 960px) {
	/* backdrop-filter would trap the fixed menu inside the header bar — disable it on mobile */
	.site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
	.nav-toggle { display: block; position: relative; z-index: 2; }
	.site-nav {
		position: fixed; left: 0; right: 0; top: 86px; bottom: 0; z-index: 60;
		height: calc(100vh - 86px); height: calc(100dvh - 86px);
		flex-direction: column; align-items: stretch; gap: 20px;
		background: var(--paper); padding: 16px var(--gutter) 40px;
		overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
	}
	.admin-bar .site-nav { top: 118px; height: calc(100dvh - 118px); }
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	body.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { font-size: 21px; font-family: var(--font-display); padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--sage-100); background: none !important; }
	.rtl .site-nav .menu a { font-family: var(--font-ar); }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
	.site-nav .sub-menu a { font-size: 17px; }
	.site-nav__cta { align-self: stretch; padding: 15px 26px; font-size: 15px; }
	.lang-switch { align-self: flex-start; }

	.about__grid { grid-template-columns: 1fr; }
	.about__media { max-width: 520px; }
	.section__head--split { grid-template-columns: 1fr; gap: 20px; }
	.stats__grid, .stats__grid--3 { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
	.stat:nth-child(3) { border-left: 0; padding-left: 0; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .site-nav { top: 132px; height: calc(100dvh - 132px); }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.site-header__inner { min-height: 72px; }
	.site-nav { top: 72px; height: calc(100vh - 72px); height: calc(100dvh - 72px); }
	.admin-bar .site-nav { top: 118px; height: calc(100dvh - 118px); }
	.brand img, .custom-logo { height: 46px; }
	.hero__panel { min-height: 620px; border-radius: 24px; }
	.hero__badge { display: none; }
	.hero__actions .btn { flex: 1 1 100%; }
	.cards--3, .focus__grid, .vm, .values__list { grid-template-columns: 1fr; }
	.focus__card:nth-child(5) { grid-column: span 1; }
	.focus { border-radius: 28px; }
	.value, .value:nth-child(even) { padding: 24px 0; border-left: 0; }
	.about__tag { left: 12px; bottom: 16px; }
	.study-row { grid-template-columns: auto 1fr; }
	.study-row__actions { grid-column: 1 / -1; flex-direction: row; }
	.cta__panel { border-radius: 24px; }
	.cta__actions .btn { flex: 1 1 100%; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.partner { flex-basis: calc(50% - 8px); }
	.partner__inner { height: 100px; padding: 16px; }
	.post-nav .nav-links { grid-template-columns: 1fr; }
	.post-nav .nav-next { text-align: left; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
	.page-hero { border-radius: 24px; }
}

/* ---------- RTL (Arabic via Polylang/WPML) ---------- */
.rtl body, body.rtl { font-family: var(--font-ar), var(--font-body); }
.rtl h1, .rtl h2, .rtl h3, .rtl h4 { font-family: var(--font-ar); font-weight: 500; letter-spacing: 0; }
.rtl .stat { border-left: 0; border-right: 1px solid var(--sage-200); }
.rtl .stat:first-child { border-right: 0; padding-right: 0; }
.rtl .btn .icon-arrow, .rtl .link-arrow .icon-arrow { transform: scaleX(-1); }
.rtl .hero__panel::before { background: linear-gradient(180deg, rgba(36, 40, 31, .05) 0%, rgba(36, 40, 31, .25) 40%, rgba(36, 40, 31, .82) 100%), linear-gradient(-90deg, rgba(36, 40, 31, .55) 0%, rgba(36, 40, 31, 0) 65%); }
.rtl .hero__badge { right: auto; left: clamp(20px, 3vw, 40px); }
.rtl .focus__num { right: auto; left: 28px; }
.rtl .about__tag { left: auto; right: -18px; }
.rtl .card__media .badge { left: auto; right: 16px; }
.rtl .value:nth-child(even) { padding-left: 0; padding-right: 26px; border-left: 0; border-right: 1px solid var(--sage-200); }
.rtl .value { padding-right: 0; padding-left: 26px; }
.rtl .eyebrow, .rtl .card__kicker, .rtl .footer__title { letter-spacing: 0; }
.rtl .page-hero__leaf { right: auto; left: 4%; transform: scaleX(-1); }

.rtl .site-nav .sub-menu { left: auto; right: 0; }
.rtl .lang-switch[lang="en"] { font-family: var(--font-body); }
.rtl .hero__title, .rtl .page-hero__title, .rtl .single__title, .rtl .cta h2 { font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.rtl .stat__num { font-family: var(--font-body); font-weight: 300; }
.rtl .link-arrow .icon, .rtl .btn .icon-arrow { transform: scaleX(-1); }
.rtl .link-arrow:hover .icon { transform: scaleX(-1) translateX(3px); }
.rtl .btn:hover .icon-arrow { transform: scaleX(-1) translateX(3px); }
.rtl .entry-content blockquote { border-left: 0; border-right: 3px solid var(--wheat); padding: 6px 26px 6px 0; font-family: var(--font-ar); }
.rtl .entry-content ul, .rtl .entry-content ol { padding-left: 0; padding-right: 1.3em; }
.rtl .post-nav .nav-next { text-align: left; }
.rtl .lightbox__close { right: auto; left: 16px; }
@media (max-width: 960px) {
	.rtl .stat:nth-child(3) { border-right: 0; padding-right: 0; }
	.rtl .site-nav .sub-menu { padding: 0 16px 0 0; }
}
.rtl .hero__title { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.35; }
.rtl .section__title { line-height: 1.35; }
