/* ---------- Tokens ---------- */
:root {
	--ink: #14201d;
	--ink-soft: #4a5753;
	--muted: #6f7a76;
	--cream: #faf7f0;
	--sand: #f3ede1;
	--white: #ffffff;
	--line: #e7e1d4;
	--teal: #0f6b5c;
	--teal-dark: #0a4d42;
	--gold: #a8823d;
	--gold-soft: #f3ead6;
	--night: #0d1614;

	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 18px;
	--max: 1140px;
	--header-h: 68px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, figure, blockquote { margin: 0; }
a { color: var(--teal); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 860px; }
.center { text-align: center; }

.section { padding-block: 110px; }
.bg-sand { background: var(--sand); }
.bg-night { background: var(--night); color: #c5cec9; }

@media (max-width: 767px) {
	body { font-size: 16px; }
	.section { padding-block: 72px; }
}

/* ---------- Typography ---------- */
.eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 14px;
}

.title,
.hero__title {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.1;
	color: var(--ink);
}
.title { font-size: clamp(34px, 4.4vw, 54px); }
.hero__title { font-size: clamp(42px, 5.8vw, 78px); font-weight: 400; letter-spacing: -0.01em; }
.title em,
.hero__title em { color: var(--gold); font-style: italic; }

.lead { margin-top: 20px; font-size: 1.1em; color: var(--ink-soft); }

.bg-night .title { color: #fff; }
.bg-night .eyebrow { color: #d9b878; }

/* ---------- Header ---------- */
.skip-link {
	position: absolute;
	top: 16px;
	inset-inline-start: 16px;
	z-index: 1000;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	width: auto;
	height: auto;
	clip-path: none;
	background: var(--white);
	padding: 10px 16px;
	border-radius: 10px;
}

.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 1px 12px rgba(20, 32, 29, 0.04);
}
.header__inner {
	max-width: var(--max);
	height: var(--header-h);
	margin-inline: auto;
	padding-inline: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__logo { width: 42px; height: auto; }
.brand__name {
	font-family: var(--serif);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--ink);
}
.brand__name span {
	display: block;
	margin-top: 3px;
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.32em;
	color: var(--gold);
}

.nav { display: flex; gap: 28px; }
.nav a {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
	text-decoration: none;
}
.nav a:hover { color: var(--teal); }

.header__actions { display: flex; align-items: center; gap: 8px; }

.lang { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--cream); }
.lang button {
	border: 0;
	background: none;
	padding: 6px 9px;
	border-radius: 9px;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--muted);
	cursor: pointer;
}
.lang button[lang="ar"] { font-family: "Noto Sans Arabic", var(--sans); letter-spacing: 0; font-size: 12px; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.menu-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
	.menu-toggle { display: block; }
	.nav {
		display: none;
		position: absolute;
		top: 100%;
		inset-inline: 0;
		flex-direction: column;
		gap: 16px;
		padding: 18px 20px 22px;
		background: var(--white);
		border-bottom: 1px solid var(--line);
	}
	.nav.is-open { display: flex; }
}
@media (max-width: 420px) {
	.brand__name { display: none; }
}

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
	display: inline-block;
	padding: 16px 28px;
	border-radius: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--teal); color: #fff; border: 1.5px solid var(--teal); }
.btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Opening quote ---------- */
.opening {
	padding-block: 110px 90px;
	background:
		radial-gradient(1000px 420px at 50% -10%, rgba(184, 145, 74, 0.16), transparent 70%),
		var(--cream);
	border-bottom: 1px solid var(--line);
	text-align: center;
}
.opening__quote p {
	font-family: var(--serif);
	font-size: clamp(26px, 3.4vw, 42px);
	font-style: italic;
	line-height: 1.35;
	color: var(--ink);
}
.opening__quote footer { margin-top: 22px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }

/* ---------- Split layout (text + photo) ---------- */
.split {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 64px;
	align-items: center;
}
.split--reverse { grid-template-columns: 0.85fr 1.15fr; }
.split--top { align-items: start; }

@media (max-width: 900px) {
	.split,
	.split--reverse { grid-template-columns: 1fr; gap: 40px; }
	.split--reverse .photo { order: 2; }
}

/* ---------- Photos ---------- */
.photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 28px;
	box-shadow: 0 30px 60px -35px rgba(20, 32, 29, 0.45);
}
.photo--square img { aspect-ratio: 1 / 1; box-shadow: none; }
@media (min-width: 901px) {
	.photo--sticky { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (max-width: 900px) {
	.photo img { aspect-ratio: 16 / 10; }
}

/* ---------- Stats ---------- */
.stats { padding-block: 64px; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat__number {
	display: block;
	font-family: var(--serif);
	font-size: 64px;
	font-weight: 500;
	line-height: 1;
	color: var(--teal);
}
.stat__label {
	display: block;
	margin-top: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------- Section heads & cards ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 34px 30px;
	text-align: center;
	transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(20, 32, 29, 0.35); }
.card__icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--gold-soft);
	color: var(--gold);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 18px; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.2; color: var(--ink); }
.card p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }

.card--dark { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.card--dark h3 { color: #fff; }
.card--dark p { color: #a9b5b1; }
.card--dark .card__icon { background: rgba(184, 145, 74, 0.15); color: #d9b878; }

/* ---------- Steps (ladder) ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step__number { font-family: var(--serif); font-size: 52px; font-style: italic; line-height: 1; color: var(--gold); }
.steps h3,
.manifest h3 { margin-top: 10px; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); }
.steps p,
.manifest p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }

/* ---------- Manifesto list ---------- */
.manifest { list-style: none; padding: 0; margin-top: 36px; counter-reset: m; }
.manifest li { counter-increment: m; padding-block: 22px; border-top: 1px solid var(--line); }
.manifest h3::before { content: "0" counter(m) "  "; color: var(--gold); font-style: italic; }

/* ---------- Text on photo ---------- */
.on-photo {
	padding-block: 150px;
	background:
		linear-gradient(rgba(13, 22, 20, 0.62), rgba(13, 22, 20, 0.62)),
		var(--bg) center / cover no-repeat;
	color: #e8e2d6;
}
.on-photo .eyebrow { color: #e2c48a; }
.quote { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); font-style: italic; line-height: 1.3; color: #fff; }
.on-photo .lead { color: #e8e2d6; }

/* ---------- Badge ---------- */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Closing ---------- */
.closing-wrap { padding: 0 20px 90px; }
.closing {
	max-width: var(--max);
	margin-inline: auto;
	padding: 56px;
	border-radius: 36px;
	grid-template-columns: 0.7fr 1.3fr;
	background:
		radial-gradient(800px 400px at 85% 110%, rgba(15, 107, 92, 0.35), transparent 70%),
		var(--night);
}
.closing .title { color: #fff; }
.closing .lead { color: #a9b5b1; }
@media (max-width: 900px) { .closing { padding: 28px; } }

/* ---------- Footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.footer__logo img { width: 200px; height: auto; }

/* ---------- Arabic / RTL ---------- */
/* Letter-spacing, uppercase and italics break or distort Arabic script. */
[lang="ar"] body { font-family: "Noto Sans Arabic", var(--sans); font-size: 18px; line-height: 1.9; }
[lang="ar"] .title,
[lang="ar"] .hero__title,
[lang="ar"] .card h3,
[lang="ar"] .steps h3,
[lang="ar"] .manifest h3,
[lang="ar"] .opening__quote p,
[lang="ar"] .quote,
[lang="ar"] .stat__number { font-family: "Noto Naskh Arabic", var(--serif); font-style: normal; }
[lang="ar"] .title,
[lang="ar"] .hero__title { line-height: 1.4; }
[lang="ar"] .opening__quote p,
[lang="ar"] .quote { line-height: 1.8; }
[lang="ar"] em { font-style: normal; }
[lang="ar"] .eyebrow,
[lang="ar"] .badge,
[lang="ar"] .stat__label,
[lang="ar"] .btn,
[lang="ar"] .nav a { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
