/* ==========================================================================
   Hafez – Incentive for Sustainable Development (ISD)
   Visual identity: ISD crimson + charcoal rounded blocks + logo grey band.
   Works in both directions: logical properties (inline-start / inline-end) everywhere.
   ========================================================================== */

:root {
	--red: #b0081a;
	--red-600: #9a0717;
	--red-800: #6f0410;
	--red-soft: #fbedee;
	--rose: #e8a0a7;

	--char-900: #232326;
	--char-800: #2e2e31;
	--char-700: #3b3b3f;
	--char-500: #5f5f64;
	--muted: #66666b;
	--line: #e4e4e7;
	--band: #e4e4e6;
	--soft: #f5f5f6;
	--ink: #1c1c1f;
	--white: #fff;

	--font-head: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--font-body: "IBM Plex Sans Arabic", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-serif: "Times New Roman", Georgia, serif;

	--r-xl: 40px;
	--r-lg: 28px;
	--r-md: 20px;
	--r-sm: 12px;
	--shadow: 0 1px 2px rgba(28, 28, 31, .05), 0 18px 40px -20px rgba(28, 28, 31, .28);
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 112px);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 100px; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.lang-ar body, body.lang-ar { font-size: 17.5px; line-height: 1.9; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-800); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.3; color: var(--ink); margin: 0 0 .5em; }
.lang-en h1, .lang-en h2, .lang-en h3 { line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.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(--char-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; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* ---------- Type helpers ---------- */
.kicker {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--font-head); font-size: 14px; font-weight: 700;
	color: var(--red); margin-bottom: 14px;
}
.lang-en .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.kicker::before { content: ""; width: 34px; height: 4px; border-radius: 4px; background: var(--rose); }
.kicker--light { color: #fff; }
.kicker--light::before { background: var(--rose); }
.kicker--center { justify-content: center; }
.section__title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; max-width: 22ch; }
.section__title--sm { font-size: clamp(24px, 2.6vw, 32px); max-width: none; margin-bottom: 26px; }
.lead { font-size: 18.5px; color: var(--char-700); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	padding: 14px 26px; border-radius: 14px; border: 2px solid transparent;
	font: 700 15.5px/1.2 var(--font-head); text-decoration: none; cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--small { padding: 10px 18px; font-size: 14.5px; border-radius: 12px; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px rgba(176, 8, 26, .8); }
.btn--red:hover { background: var(--red-600); color: #fff; }
.btn--outline { border-color: var(--char-700); color: var(--char-700); background: transparent; }
.btn--outline:hover { background: var(--char-700); color: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--char-900); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--red); white-space: nowrap; padding: 8px 0; }
.link-arrow .icon { transition: translate .25s var(--ease); }
.link-arrow:hover .icon { translate: 4px 0; }
[dir="rtl"] .link-arrow:hover .icon { translate: -4px 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--char-900); color: #cfcfd4; font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__contact { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar__contact li { display: inline-flex; align-items: center; gap: 8px; }
.topbar__contact .icon { color: var(--rose); width: 15px; height: 15px; }
.topbar a { color: #e8e8eb; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__end { display: flex; align-items: center; gap: 18px; }

.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: inherit; transition: background .2s, color .2s; }
.social a:hover { background: var(--red); color: #fff; }
.social .icon { width: 17px; height: 17px; }
.social--top a { width: 30px; height: 30px; }
.social--top .icon { width: 15px; height: 15px; }

.lang-switch {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 5px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
	font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: #fff !important; text-decoration: none;
	transition: background .2s, border-color .2s;
}
.lang-switch:hover { background: var(--red); border-color: var(--red); }
.lang-switch .icon { width: 15px; height: 15px; }
.lang-switch--nav { display: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .28); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: block; line-height: 0; }
.brand img { height: 62px; width: auto; }
.site-header.is-scrolled .brand img { height: 54px; }
.brand img { transition: height .3s var(--ease); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav .menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: block; padding: 10px 14px; border-radius: 10px;
	font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
	color: var(--char-700); text-decoration: none; position: relative;
}
.site-nav .menu a:hover { color: var(--red); background: var(--red-soft); }
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_item > a { color: var(--red); }
.site-nav .menu .current-menu-item > a::after,
.site-nav .menu .current_page_item > a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--red); }
.site-nav .sub-menu { position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); 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::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; } /* hover bridge */
.site-nav .sub-menu a { padding: 10px 14px; }
.site-nav__extra { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: var(--char-900); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--soft) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(48px, 6vw, 80px); }
.hero__title { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; margin-bottom: 20px; }
.hero__title::after { content: ""; display: block; width: 72px; height: 6px; border-radius: 6px; background: var(--red); margin-top: 22px; }
.hero__text { font-size: 18.5px; color: var(--char-700); max-width: 54ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; aspect-ratio: 1 / .92; }
.hero__block { position: absolute; border-radius: var(--r-xl); }
.hero__block--dark { top: 0; inset-inline-end: 0; width: 82%; height: 84%; background: var(--char-700); }
.hero__block--dark::after { content: ""; position: absolute; inset: 18px; border-radius: calc(var(--r-xl) - 12px); border: 1px dashed rgba(255, 255, 255, .18); }
.hero__block--red { bottom: 0; inset-inline-start: 0; width: 38%; height: 40%; background: var(--red); }
.hero__photo { position: absolute; top: 9%; inset-inline-start: 7%; width: 84%; height: 76%; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55); border: 6px solid #fff; z-index: 1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
	position: absolute; z-index: 2; bottom: 4%; inset-inline-end: 2%;
	display: flex; align-items: center; gap: 14px;
	background: #fff; border-radius: 18px; padding: 14px 20px 14px 14px; box-shadow: var(--shadow);
}
[dir="rtl"] .hero__badge { padding: 14px 14px 14px 20px; }
.hero__badge-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--red); color: #fff; }
.hero__badge-icon .icon { width: 24px; height: 24px; }
.hero__badge-num { display: block; font: 800 26px/1.1 var(--font-head); color: var(--ink); }
.hero__badge-label { font-size: 14px; color: var(--muted); }

.brand-strip { background: var(--band); }
.brand-strip__inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 52px; font-family: var(--font-serif); color: var(--red); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.brand-strip__inner span[lang="ar"] { font-family: var(--font-head); color: var(--ink); letter-spacing: .4em; font-weight: 700; text-transform: none; }

/* ---------- Impact (automatic counters) ---------- */
.impact { position: relative; background: var(--red); color: #fff; padding: clamp(56px, 7vw, 88px) 0; overflow: hidden; }
.impact::before { content: "ISD"; position: absolute; inset-inline-end: -2%; bottom: -18%; font: 700 clamp(160px, 26vw, 380px)/1 var(--font-serif); color: rgba(255, 255, 255, .06); pointer-events: none; }
.impact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.35fr; gap: 28px clamp(28px, 5vw, 64px); align-items: start; }
.impact__head { grid-column: 1; }
.impact__title { color: #fff; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; max-width: 16ch; }
.impact__note { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .14); padding: 6px 14px; border-radius: 999px; }
.impact__note .icon { width: 16px; height: 16px; }
.counters { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; margin: 0; padding: 0; }
.counter { display: flex; flex-direction: column; gap: 4px; padding: 26px 26px 22px; border-radius: var(--r-md); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.counter:first-child { background: #fff; color: var(--ink); }
.counter__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .14); margin-bottom: 10px; }
.counter:first-child .counter__icon { background: var(--red); color: #fff; }
.counter__icon .icon { width: 22px; height: 22px; }
.counter__num { font: 800 clamp(36px, 4.4vw, 54px)/1.05 var(--font-head); font-variant-numeric: tabular-nums; }
[dir="rtl"] .counter__num { text-align: right; }
.counter:first-child .counter__num { color: var(--red); }
.counter__label { font-family: var(--font-head); font-weight: 600; font-size: 16px; opacity: .92; }

.year-chart { grid-column: 1; margin: 0; background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 22px 24px 18px; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6); }
.year-chart__title { display: flex; align-items: center; gap: 8px; font: 700 15.5px/1.3 var(--font-head); margin-bottom: 18px; }
.year-chart__title .icon { color: var(--red); }
.year-chart__bars { display: flex; align-items: flex-end; gap: 14px; height: 170px; list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--line); }
.year-chart__bars li { flex: 1; max-width: 80px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; position: relative; }
.year-chart__bar { width: 100%; height: calc(var(--h) - 26px); min-height: 8px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--red) 0%, var(--red-600) 100%); transform-origin: bottom; transition: transform 1s var(--ease); }
.js .year-chart:not(.is-visible) .year-chart__bar { transform: scaleY(0); }
.year-chart__bars li:nth-child(even) .year-chart__bar { background: var(--char-700); }
.year-chart__val { font: 700 14px/1 var(--font-head); color: var(--char-700); }
.year-chart__year { position: absolute; bottom: -28px; font: 700 13.5px/1 var(--font-head); color: var(--muted); }
.year-chart { padding-bottom: 40px; }

.impact .admin-note { margin-top: 28px; background: rgba(255, 255, 255, .95); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section__head { margin-bottom: clamp(32px, 4vw, 52px); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row .section__title { margin-bottom: 0; }
.section__head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; }
.section__head--split .section__title { margin-bottom: 0; }
.section__intro { color: var(--muted); font-size: 17.5px; margin: 0; }
.section__head--center { text-align: center; }
.section__head--center .section__title { margin-inline: auto; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about__media { position: relative; margin: 0; padding-inline-start: 7%; padding-bottom: 7%; }
.about__shape { position: absolute; inset-inline-start: 0; bottom: 0; width: 70%; height: 70%; border-radius: var(--r-xl); background: var(--char-700); }
.about__media img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.about__tag { position: absolute; top: 24px; inset-inline-end: -14px; background: var(--red); color: #fff; font: 700 15px/1 var(--font-head); padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow); }
.about__body .lead { margin-bottom: 0; }

.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.vm__card { position: relative; padding: clamp(28px, 3.4vw, 40px); border-radius: var(--r-lg); background: var(--soft); border: 1px solid var(--line); }
.vm__card h3 { font-size: 24px; margin-bottom: 10px; }
.vm__card p { margin: 0; color: var(--char-700); font-size: 17px; }
.vm__card--dark { background: var(--char-700); border-color: var(--char-700); }
.vm__card--dark h3, .vm__card--dark p { color: #fff; }
.vm__card--dark p { opacity: .9; }
.vm__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--red); color: #fff; margin-bottom: 18px; }
.vm__icon .icon { width: 26px; height: 26px; }

/* ---------- Ethical principle ---------- */
.principle { position: relative; background: var(--char-900); color: #fff; padding: clamp(64px, 8vw, 104px) 0; overflow: hidden; text-align: center; }
.principle__inner { position: relative; z-index: 1; max-width: 920px; }
.principle__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--red); margin-bottom: 18px; }
.principle__icon .icon { width: 30px; height: 30px; }
.principle .kicker { display: flex; justify-content: center; }
.principle__quote { margin: 0 auto 18px; font: 800 clamp(28px, 4.2vw, 50px)/1.35 var(--font-head); color: #fff; }
.principle__quote::before { content: "“"; color: var(--rose); }
.principle__quote::after { content: "”"; color: var(--rose); }
[dir="rtl"] .principle__quote::before { content: "”"; }
[dir="rtl"] .principle__quote::after { content: "“"; }
.principle__text { color: rgba(255, 255, 255, .78); font-size: 18px; max-width: 62ch; margin: 0 auto; }
.principle__mark { position: absolute; inset-inline-start: -3%; top: 50%; transform: translateY(-50%); font: 700 clamp(200px, 32vw, 460px)/1 var(--font-serif); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07); pointer-events: none; }

/* ---------- Goals ---------- */
.goals { background: var(--soft); }
.goals__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.goal { position: relative; padding: 26px 24px 24px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.goal:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.goal__num { position: absolute; top: 18px; inset-inline-end: 22px; font: 800 34px/1 var(--font-head); color: var(--band); }
.goal:hover .goal__num { color: var(--rose); }
.goal__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--red-soft); color: var(--red); margin-bottom: 18px; }
.goal__icon .icon { width: 25px; height: 25px; }
.goal p { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.goal:nth-child(4) { background: var(--red); border-color: var(--red); }
.goal:nth-child(4) p { color: #fff; }
.goal:nth-child(4) .goal__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.goal:nth-child(4) .goal__num { color: rgba(255, 255, 255, .25); }

/* ---------- Areas of work ---------- */
.areas__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 64px; align-items: center; }
.areas .section__title { margin-bottom: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-family: var(--font-head); font-weight: 600; font-size: 15.5px; transition: background .2s, border-color .2s; }
.pill .icon { color: var(--red); width: 20px; height: 20px; }
.pill:hover { background: var(--red-soft); border-color: var(--rose); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--char-700); color: rgba(255, 255, 255, .18); font: 700 64px/1 var(--font-serif); letter-spacing: .04em; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card__kicker { display: inline-block; align-self: flex-start; font: 700 13px/1 var(--font-head); color: var(--red); background: var(--red-soft); padding: 7px 12px; border-radius: 8px; margin-bottom: 12px; }
.card__title { font-size: 20px; line-height: 1.45; margin-bottom: 8px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--red); }
.card__excerpt { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.card__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--char-500); }
.card__stat { display: inline-flex; align-items: center; gap: 6px; }
.card__stat .icon { color: var(--red); width: 17px; height: 17px; }
.card__stat strong { color: var(--ink); font-family: var(--font-head); }
.card__date { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.card__date .icon { width: 16px; height: 16px; color: var(--red); }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font: 700 14.5px/1 var(--font-head); color: var(--red); text-decoration: none; }

.badge { position: absolute; top: 14px; inset-inline-start: 14px; padding: 7px 12px; border-radius: 10px; font: 700 12.5px/1 var(--font-head); background: rgba(255, 255, 255, .95); color: var(--ink); }
.badge--ongoing { background: var(--red); color: #fff; }

/* News on the homepage: one big + two compact */
.news-list { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.news-list .card:first-child { grid-row: span 2; }
.news-list .card:first-child .card__media { aspect-ratio: 16 / 10; }
.news-list .card:first-child .card__title { font-size: 24px; }
.news-list .card:not(:first-child) { flex-direction: row; }
.news-list .card:not(:first-child) .card__media { width: 40%; aspect-ratio: auto; flex-shrink: 0; }
.news-list .card:not(:first-child) .card__excerpt { display: none; }
.news-home { background: var(--soft); }

/* ---------- Partners ---------- */
.partners__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.partner__inner { display: grid; place-items: center; min-height: 130px; height: 100%; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
a.partner__inner:hover, .partner__inner:hover { border-color: var(--rose); box-shadow: var(--shadow); transform: translateY(-3px); }
.partner__inner img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partner__inner:hover img { filter: none; opacity: 1; }
.partner--text .partner__inner { display: flex; flex-direction: column; justify-content: center; gap: 10px; text-align: center; }
.partner__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.partner__icon .icon { width: 21px; height: 21px; }
.partner__name { font: 700 14.5px/1.5 var(--font-head); color: var(--char-700); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 var(--section); }
.cta__panel { position: relative; display: grid; grid-template-columns: 1.4fr auto; gap: 28px 48px; align-items: center; padding: clamp(36px, 5vw, 64px); border-radius: var(--r-xl); background: var(--red); color: #fff; overflow: hidden; }
.cta__panel::before { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 260px; height: 260px; border-radius: 60px; background: rgba(0, 0, 0, .14); transform: rotate(18deg); }
.cta__panel::after { content: ""; position: absolute; inset-inline-end: 120px; bottom: -90px; width: 180px; height: 180px; border-radius: 44px; background: rgba(255, 255, 255, .08); transform: rotate(-12deg); }
.cta__content { position: relative; z-index: 1; }
.cta__content h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cta__content p { margin: 0; font-size: 18px; opacity: .92; }
.cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--char-800); color: #c9c9ce; padding-top: clamp(56px, 7vw, 84px); font-size: 15.5px; }
.site-footer a { color: #ececef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer__logo { display: inline-block; background: #fff; border-radius: 18px; padding: 12px 16px; margin-bottom: 18px; }
.brand--footer img { height: 70px; width: auto; }
.site-footer__about p { max-width: 42ch; }
.footer__title { font-size: 17px; color: #fff; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer__title::before { content: ""; width: 18px; height: 4px; border-radius: 4px; background: var(--red); }
.footer-menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--rose); margin-top: 5px; }
.contact-list__phones { display: flex; flex-direction: column; }
[dir="rtl"] .contact-list__phones { align-items: flex-start; }
.social--footer { margin-top: 20px; }
.social--footer a { background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.site-footer__bottom p { margin: 0; }
.site-footer__motto { color: var(--rose); font-family: var(--font-head); font-weight: 600; }

/* ---------- Inner page header ---------- */
.page-hero { position: relative; background: var(--char-800); color: #fff; padding: clamp(52px, 7vw, 92px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 40%, var(--band) 40% 100%); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { color: #fff; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin-bottom: 10px; }
.page-hero__text { max-width: 62ch; color: rgba(255, 255, 255, .8); font-size: 18px; margin: 0; }
.page-hero__mark { position: absolute; inset-inline-end: 2%; top: 50%; transform: translateY(-50%); font: 700 clamp(140px, 20vw, 280px)/1 var(--font-serif); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .1); pointer-events: none; }

.archive-summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: var(--r-md); background: var(--red-soft); color: var(--ink); margin-bottom: 26px; }
.archive-summary .icon { color: var(--red); width: 24px; height: 24px; }
.archive-summary strong { font-family: var(--font-head); color: var(--red); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); font: 700 14.5px/1.2 var(--font-head); color: var(--char-700); text-decoration: none; background: #fff; }
.filter:hover { border-color: var(--red); color: var(--red); }
.filter.is-active { background: var(--char-700); border-color: var(--char-700); color: #fff; }

.empty { color: var(--muted); font-size: 18px; }

/* ---------- Single ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; font: 700 14.5px/1 var(--font-head); color: var(--red); text-decoration: none; margin-bottom: 20px; }
.back-link .icon-arrow { transform: scaleX(-1); }
[dir="rtl"] .back-link .icon-arrow { transform: none; }
.back-link--light { color: #fff; opacity: .85; }
.back-link--light:hover { color: #fff; opacity: 1; }
.single__head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 28px; }
.single__title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; }
.single__cover { margin: 0 auto 40px; }
.single__cover img { width: 100%; border-radius: var(--r-xl); aspect-ratio: 16 / 8; object-fit: cover; }

.project-hero { background: var(--char-800); color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(110px, 12vw, 150px); position: relative; overflow: hidden; }
.project-hero::before { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 320px; height: 320px; border-radius: 70px; background: var(--red); opacity: .9; transform: rotate(16deg); }
.project-hero__grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px 56px; align-items: end; }
.project-hero__title { color: #fff; font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; margin-bottom: 14px; }
.project-hero__lead { color: rgba(255, 255, 255, .82); font-size: 18.5px; margin: 0; max-width: 60ch; }
.project-hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.project-hero__stats li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-md); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(6px); }
.project-hero__stats li:first-child { background: #fff; color: var(--ink); }
.project-hero__stats strong { font: 800 30px/1.1 var(--font-head); }
.project-hero__stats li:first-child strong { color: var(--red); }
.project-hero__stats span { font-size: 14px; opacity: .85; }
.project-hero__status { font-size: 20px !important; }
.single__cover--overlap { margin-top: clamp(-120px, -10vw, -80px); position: relative; z-index: 2; }
.single--project .project-hero + .project-layout { margin-top: -40px; }

.project-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; padding-top: 24px; padding-bottom: 32px; }
.facts { position: sticky; top: 120px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.facts__title { font-size: 19px; margin-bottom: 14px; }
.facts dl { margin: 0; }
.facts dt { font: 700 13px/1.3 var(--font-head); color: var(--red); margin-top: 16px; }
.lang-en .facts dt { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 4px 0 0; font-size: 16px; color: var(--ink); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts dd:last-child { border-bottom: 0; padding-bottom: 0; }

.results { margin-top: 36px; padding: 28px 30px; border-radius: var(--r-lg); background: var(--red-soft); }
.results__title { font-size: 22px; margin-bottom: 14px; }
.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: 10px; align-items: flex-start; font-weight: 500; }
.results__list .icon { flex-shrink: 0; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--red); color: #fff; margin-top: 3px; }

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

/* Entry content */
.entry-content { font-size: 18px; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--r-md); }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0; padding-inline-start: 24px; border-inline-start: 4px solid var(--red); font: 600 21px/1.6 var(--font-head); color: var(--char-700); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }

.post-nav { padding-top: 32px; padding-bottom: 72px; }
.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; }
.post-nav a:hover { border-color: var(--red); }
.post-nav a span { display: block; font-size: 13px; color: var(--red); margin-bottom: 4px; }
.post-nav .nav-next { text-align: end; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* Search */
.search-form { display: flex; gap: 10px; }
.search-form__input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; }
.search-form__input:focus { outline: none; border-color: var(--red); }

/* Admin hint */
.admin-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border: 2px dashed var(--rose); border-radius: var(--r-md); background: var(--red-soft); color: var(--ink); font-size: 15px; }
.admin-note .icon { color: var(--red); }
.admin-note a { font-weight: 700; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; gap: 12px; background: rgba(20, 20, 22, .94); padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 86vw); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #ddd; margin-top: 10px; font-size: 15px; }
.lightbox button { background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.lightbox button:hover { background: var(--red); }
.lightbox__close { position: absolute; top: 18px; inset-inline-end: 18px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.goals__grid { grid-template-columns: repeat(2, 1fr); }
	.goal:nth-child(4) { background: #fff; border-color: var(--line); }
	.goal:nth-child(4) p { color: var(--ink); }
	.goal:nth-child(4) .goal__icon { background: var(--red-soft); color: var(--red); }
	.goal:nth-child(4) .goal__num { color: var(--band); }
	.goal:first-child { background: var(--red); border-color: var(--red); }
	.goal:first-child p { color: #fff; }
	.goal:first-child .goal__icon { background: rgba(255, 255, 255, .16); color: #fff; }
	.goal:first-child .goal__num { color: rgba(255, 255, 255, .25); }
}

@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.brand img { height: 50px; }
	.site-header.is-scrolled .brand img { height: 46px; }
	.topbar { display: none; }
	/* No backdrop-filter here: it would trap the fixed menu panel inside the header. */
	.site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.nav-toggle { display: grid; }
	.site-nav {
		position: fixed; inset-inline: 0; top: var(--nav-top, var(--header-h)); bottom: 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 18px;
		padding: 20px var(--gutter) 32px; background: #fff; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease);
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { padding: 14px 6px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .menu .current-menu-item > a::after { display: none; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 16px; }
	.site-nav__extra { flex-direction: column; align-items: stretch; }
	.lang-switch--nav { display: inline-flex; justify-content: center; color: var(--char-700) !important; border-color: var(--line); padding: 12px; font-size: 16px; }
	.lang-switch--nav:hover { color: #fff !important; }
	.site-nav__extra .btn { padding: 14px; }

	.hero__grid { grid-template-columns: 1fr; }
	.hero__visual { max-width: 620px; width: 100%; margin-inline: auto; }
	.impact__grid { grid-template-columns: 1fr; }
	.impact__head, .counters, .year-chart { grid-column: 1; grid-row: auto; }
	.about__grid { grid-template-columns: 1fr; }
	.about__media { max-width: 560px; }
	.section__head--split { grid-template-columns: 1fr; }
	.areas__grid { grid-template-columns: 1fr; }
	.cards--3 { grid-template-columns: repeat(2, 1fr); }
	.news-list { grid-template-columns: 1fr; }
	.news-list .card:first-child { grid-row: auto; }
	.project-hero__grid { grid-template-columns: 1fr; }
	.project-layout { grid-template-columns: 1fr; }
	.facts { position: static; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
	.cta__panel { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 680px) {
	body { font-size: 16.5px; }
	.counters { grid-template-columns: 1fr 1fr; gap: 10px; }
	.counter { padding: 18px 16px; }
	.counter__label { font-size: 14.5px; }
	.vm { grid-template-columns: 1fr; }
	.goals__grid { grid-template-columns: 1fr; }
	.cards--3 { grid-template-columns: 1fr; }
	.news-list .card:not(:first-child) { flex-direction: column; }
	.news-list .card:not(:first-child) .card__media { width: 100%; aspect-ratio: 16 / 10; }
	.results__list { grid-template-columns: 1fr; }
	.partners__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.partner__inner { min-height: 112px; padding: 14px; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.brand-strip__inner span:nth-child(-n+3) { display: none; }
	.brand-strip__inner { justify-content: center; }
	.hero__badge { padding: 10px 14px 10px 10px; }
	.hero__badge-num { font-size: 21px; }
	.hero__badge-icon { width: 40px; height: 40px; }
	.post-nav .nav-links { grid-template-columns: 1fr; }
	.about__tag { inset-inline-end: 0; }
	.search-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
