/* ==========================================================================
   Rawaa — design tokens
   Style: Accessible & institutional. Navy = authority, deep orange = identity.
   Contrast: #C2410C on #fff = 5.2:1, #475569 on #fff = 7.6:1, #fff on #0F1B2D = 17:1
   ========================================================================== */
:root {
	--c-navy: #0F1B2D;
	--c-navy-2: #1C2A42;
	--c-orange: #C2410C;
	--c-orange-hover: #9A3412;
	--c-orange-bright: #F97316;
	--c-orange-soft: #FFF1E6;
	--c-bg: #FBF8F3;
	--c-surface: #FFFFFF;
	--c-muted-bg: #F4EFE7;
	--c-text: #0F172A;
	--c-text-muted: #475569;
	--c-on-dark: #F8FAFC;
	--c-on-dark-muted: #CBD5E1;
	--c-border: #E7E1D7;
	--c-danger: #B91C1C;
	--c-success: #15803D;
	--c-focus: #F97316;

	--f-head: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, sans-serif;
	--f-body: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1.0625rem;
	--fs-lg: 1.25rem;
	--fs-xl: 1.5rem;
	--fs-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	--fs-hero: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);

	--sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
	--sp-6: 1.5rem; --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem; --sp-24: 6rem;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 24px;
	--shadow-sm: 0 1px 2px rgb(15 27 45 / 0.06);
	--shadow: 0 8px 24px -8px rgb(15 27 45 / 0.14);
	--shadow-lg: 0 24px 48px -16px rgb(15 27 45 / 0.22);

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--dur: 200ms;
	--header-h: 76px;
	--container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: 1.75;
	color: var(--c-text);
	background: var(--c-bg);
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-orange); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--c-orange-hover); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.35; margin: 0 0 var(--sp-4); color: var(--c-navy); }
p { margin: 0 0 var(--sp-4); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: var(--sp-4); top: -100px; z-index: 1000; background: var(--c-navy); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--sp-4); color: #fff; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 780px); }
.section { padding-block: var(--sp-16); }
.section--muted { background: var(--c-muted-bg); }
.empty { text-align: center; color: var(--c-text-muted); padding-block: var(--sp-8); }

/* ---------- Typography helpers ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: var(--sp-2);
	font-size: var(--fs-sm); font-weight: 600; color: var(--c-orange);
	margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--c-orange-bright); }
.eyebrow--light { color: #FDBA74; }
.section__head { margin-bottom: var(--sp-8); }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.section__head--center { text-align: center; max-width: 640px; margin-inline: auto; }
.section__head--center .eyebrow { justify-content: center; }
.section__title { font-size: var(--fs-2xl); margin-bottom: 0; }
.lead { font-size: var(--fs-lg); color: var(--c-text-muted); line-height: 1.9; }
.lead--light { color: var(--c-on-dark-muted); margin-top: var(--sp-4); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(-4px); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
	min-height: 48px; padding: 0 var(--sp-6);
	border-radius: 999px; border: 2px solid transparent;
	font-weight: 600; font-size: var(--fs-base); text-decoration: none; cursor: pointer;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
	touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--c-orange); color: #fff; }
.btn--primary:hover { background: var(--c-orange-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--ghost:hover { background: var(--c-navy); color: #fff; }
.btn--outline-light { color: #fff; border-color: rgb(255 255 255 / 0.6); }
.btn--outline-light:hover { background: #fff; color: var(--c-navy); }
.btn--lg { min-height: 56px; padding-inline: var(--sp-8); font-size: var(--fs-lg); }
.btn--sm { min-height: 44px; padding-inline: var(--sp-4); font-size: var(--fs-sm); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgb(251 248 243 / 0.92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-color: var(--c-border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--sp-4); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--c-navy); }
.brand__mark { width: 6px; height: 40px; border-radius: 3px; background: linear-gradient(var(--c-orange-bright), var(--c-orange)); }
.brand__text { display: grid; line-height: 1.3; }
.brand__name { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; }
.brand__sub { font-size: 0.8rem; color: var(--c-text-muted); }
.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav__list { list-style: none; display: flex; gap: var(--sp-2); margin: 0; padding: 0; }
.nav__list a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-3);
	color: var(--c-navy); text-decoration: none; font-weight: 500; border-radius: var(--radius-sm);
	position: relative;
}
.nav__list a::after {
	content: ""; position: absolute; inset-inline: var(--sp-3); bottom: 6px; height: 2px;
	background: var(--c-orange-bright); transform: scaleX(0); transition: transform var(--dur) var(--ease);
}
.nav__list a:hover::after,
.nav__list .current-menu-item > a::after,
.nav__list .current_page_item > a::after { transform: scaleX(1); }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { font-weight: 700; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--sp-12) var(--sp-16); }
.hero::before {
	content: ""; position: absolute; inset-inline-end: -12%; top: -30%;
	width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle at center, var(--c-orange-soft) 0%, rgb(255 241 230 / 0) 70%);
	pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: var(--sp-12); }
.hero__name { font-size: var(--fs-hero); font-weight: 800; margin-bottom: var(--sp-3); letter-spacing: -0.01em; }
.hero__title { font-size: var(--fs-lg); font-weight: 600; color: var(--c-orange); margin-bottom: var(--sp-6); }
.hero__quote {
	margin: 0 0 var(--sp-8); padding-inline-start: var(--sp-6);
	border-inline-start: 4px solid var(--c-orange-bright);
	font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 34ch;
}
.hero__quote p { margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); }
.hero__portrait::before {
	content: ""; position: absolute; inset: 18px -18px -18px 18px;
	border: 2px solid var(--c-orange-bright); border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
}
.hero__portrait img {
	position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%;
	border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
	background: var(--c-surface); box-shadow: var(--shadow-lg);
}

/* ---------- About band ---------- */
.about-band { background: var(--c-surface); border-block: 1px solid var(--c-border); }
.about-band__inner { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: var(--sp-8); }
.about-band .lead { margin: 0; max-width: 70ch; }

/* ---------- Priorities ---------- */
.priorities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.priority {
	background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
	padding: var(--sp-8) var(--sp-6); transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.priority:hover { box-shadow: var(--shadow); border-color: #F3D9C4; }
.priority__icon {
	display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
	background: var(--c-orange-soft); color: var(--c-orange); margin-bottom: var(--sp-4);
}
.priority__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.priority__text { color: var(--c-text-muted); margin: 0; font-size: 1rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.card { background: var(--c-surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__media { aspect-ratio: 3 / 2; background: var(--c-muted-bg); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.card__placeholder {
	height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3);
	background:
		radial-gradient(circle at 85% 15%, rgb(249 115 22 / 0.22) 0, rgb(249 115 22 / 0) 45%),
		linear-gradient(135deg, var(--c-navy), var(--c-navy-2));
}
.card__placeholder-mark { width: 6px; height: 44px; border-radius: 3px; background: linear-gradient(var(--c-orange-bright), var(--c-orange)); }
.card__placeholder-text { font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; color: var(--c-on-dark); letter-spacing: 0.02em; }
.card__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__title { font-size: 1.15rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__excerpt { color: var(--c-text-muted); font-size: 0.975rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__more { margin-top: auto; padding-top: var(--sp-2); display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--c-orange); font-weight: 600; font-size: var(--fs-sm); }
.meta { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--c-text-muted); font-size: var(--fs-sm); }

/* ---------- Requests band ---------- */
.requests-band { background: var(--c-navy); color: var(--c-on-dark); position: relative; overflow: hidden; }
.requests-band::after {
	content: ""; position: absolute; inset-inline-start: -120px; bottom: -160px; width: 420px; aspect-ratio: 1; border-radius: 50%;
	border: 60px solid rgb(249 115 22 / 0.08); pointer-events: none;
}
.requests-band .section__title { color: #fff; }
.steps { list-style: none; margin: 0 0 var(--sp-8); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); position: relative; z-index: 1; }
.step { background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--radius); padding: var(--sp-6); }
.step__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-orange); color: #fff; font-family: var(--f-head); font-weight: 700; margin-bottom: var(--sp-3); }
.step__title { color: #fff; font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step__text { color: var(--c-on-dark-muted); margin: 0; }
.requests-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-3); position: relative; z-index: 1; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--c-navy); color: #fff; padding-block: var(--sp-12); }
.page-head__title { color: #fff; font-size: var(--fs-2xl); margin: 0; }
.page-head__title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--c-orange-bright); margin-top: var(--sp-4); }
.page-head__sub { color: var(--c-on-dark-muted); margin: var(--sp-3) 0 0; max-width: 60ch; }
.article__head { padding-block: var(--sp-12) var(--sp-6); }
.article__title { font-size: var(--fs-2xl); margin-block: var(--sp-4); }
.article__media { margin-block: 0 var(--sp-8); }
.article__media img { width: 100%; border-radius: var(--radius); }
.link-back { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; text-decoration: none; font-weight: 600; }
.link-back .icon { transform: scaleX(-1); }
.prose { font-size: 1.125rem; line-height: 1.95; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-8); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin-inline: 0; padding: var(--sp-4) var(--sp-6); border-inline-start: 4px solid var(--c-orange-bright); background: var(--c-orange-soft); border-radius: var(--radius-sm); }
.share { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-12); padding-top: var(--sp-6); border-top: 1px solid var(--c-border); color: var(--c-text-muted); }
.share a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-navy); }
.share a:hover { background: var(--c-navy); color: #fff; }
.pagination { margin-top: var(--sp-12); }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-2); }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: var(--sp-3); border-radius: var(--radius-sm); background: var(--c-surface); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-navy); }
.pagination .page-numbers.current { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* ---------- Footer ---------- */
.site-footer { background: #0B1422; color: var(--c-on-dark-muted); padding-top: var(--sp-16); }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { color: #FDBA74; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--sp-12); padding-bottom: var(--sp-12); }
.site-footer__name { font-family: var(--f-head); font-size: var(--fs-lg); font-weight: 700; color: #fff; margin-bottom: var(--sp-1); }
.site-footer__title { margin-bottom: var(--sp-6); }
.site-footer__heading { font-family: var(--f-head); color: #fff; font-weight: 700; margin-bottom: var(--sp-4); }
.site-footer .nav__list, .footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-1); }
.site-footer .nav__list a, .footer-menu a { display: inline-flex; min-height: 36px; align-items: center; color: var(--c-on-dark-muted); }
.site-footer .nav__list a::after { display: none; }
.contact-list { list-style: none; margin: 0 0 var(--sp-6); padding: 0; display: grid; gap: var(--sp-3); }
.contact-list li { display: flex; align-items: center; gap: var(--sp-3); }
.contact-list .icon { color: var(--c-orange-bright); flex: none; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-2); }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.16); }
.social a:hover { background: var(--c-orange); border-color: var(--c-orange); color: #fff; }
.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / 0.08); padding-block: var(--sp-6); font-size: var(--fs-sm); }
.site-footer__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.priorities { grid-template-columns: repeat(2, 1fr); }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.about-band__inner { grid-template-columns: 1fr; gap: var(--sp-4); }
}

@media (max-width: 860px) {
	.nav-toggle {
		display: inline-grid; place-items: center; width: 48px; height: 48px;
		border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); color: var(--c-navy); cursor: pointer;
	}
	.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
	.nav {
		position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
		flex-direction: column; align-items: stretch; gap: var(--sp-4);
		background: var(--c-bg); padding: var(--sp-6) 1.25rem var(--sp-8);
		border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { min-height: 52px; font-size: var(--fs-lg); border-bottom: 1px solid var(--c-border); border-radius: 0; }
	.nav__list a::after { display: none; }
	.nav__cta { width: 100%; }

	.hero { padding-block: var(--sp-8) var(--sp-12); }
	.hero__inner { grid-template-columns: 1fr; gap: var(--sp-8); }
	.hero__portrait { order: -1; width: min(78%, 340px); }
	.hero__text { text-align: center; }
	.hero__quote { margin-inline: auto; text-align: start; }
	.hero__actions { justify-content: center; }
	.hero .eyebrow { justify-content: center; }

	.steps { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}

@media (max-width: 600px) {
	.section { padding-block: var(--sp-12); }
	.priorities, .cards { grid-template-columns: 1fr; }
	.hero__actions .btn { width: 100%; }
	.brand__sub { display: none; }
}

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

@media print {
	.site-header, .site-footer, .share, .hero__actions { display: none; }
}
