/*
Theme Name: Ekhaa 2026
Theme URI: https://ekhaa.org/
Author: Ekhaa
Description: قالب عربي RTL لمؤسسة إخاء الأهلية. لغة بصرية مستمدة من العمارة النجدية — شريط المعيّنات الذهبي والمشربية والجصّ الرملي — بدل الشبكة المؤسسية المحايدة. حركة ذات معنى تحترم تفضيل تقليل الحركة، وبنية مهيأة لقارئات الشاشة ولوحة المفاتيح. يدعم مكتبة خطوط ووردبريس من المظهر ← الخطوط.
Version: 2.0.0
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ekhaa-2026
Tags: rtl-language-support, accessibility-ready, custom-colors, custom-menu, translation-ready
*/

/* ==========================================================================
   1. Tokens
   The warm half of this palette is not invented: cream, sand, gold, teal and
   clay are the exact colours used in Ekhaa's own 3D house (world-src/world.js).
   The site had been using only the cold blues, which is why it read as generic.
   ========================================================================== */

:root {
	--ink: #16284a;
	--ink-2: #22365c;
	--blue: #2e7aad;
	--blue-deep: #1f5578;
	--teal: #3d8d85;

	--gold: #c9922f;
	--gold-soft: #dca859;
	--sand: #d7bd94;
	--cream: #f2e6ce;
	--paper: #fbf7ef;
	--clay: #a8543f;

	--muted: #5b6477;
	--line: #e3d9c5;
	/* Clay at 13px on cream measured 4.24:1 — just under AA. This darker step
	   is for small text on light backgrounds; --clay stays for large display. */
	--clay-deep: #8a4030;

	--radius: 22px;
	--radius-sm: 13px;
	--shadow: 0 1px 2px rgba(22,40,74,.05), 0 14px 34px -14px rgba(22,40,74,.22);
	--shadow-lift: 0 2px 6px rgba(22,40,74,.07), 0 30px 60px -22px rgba(22,40,74,.32);
	--gutter: clamp(1.1rem, 4vw, 3rem);
	--measure: 64ch;

	--ease: cubic-bezier(.22,.8,.3,1);
}

/* ==========================================================================
   2. The Najdi motif
   A row of rotated squares — the frieze that runs along a Najdi facade, and the
   same shape used across the top of the wall in Ekhaa's 3D house. It appears
   here as a band between sections and as a texture, never as decoration for its
   own sake. All of it is aria-hidden by construction: it is drawn in CSS.
   ========================================================================== */

.najdi-band {
	height: 18px;
	background-image:
		linear-gradient(45deg, var(--gold) 25%, transparent 25%, transparent 75%, var(--gold) 75%),
		linear-gradient(45deg, var(--gold) 25%, transparent 25%, transparent 75%, var(--gold) 75%);
	background-size: 18px 18px;
	background-position: 0 0, 9px 9px;
	opacity: .85;
}

.najdi-band--sand {
	background-image:
		linear-gradient(45deg, var(--sand) 25%, transparent 25%, transparent 75%, var(--sand) 75%),
		linear-gradient(45deg, var(--sand) 25%, transparent 25%, transparent 75%, var(--sand) 75%);
}

/* Mashrabiya lattice: a quiet texture, never loud enough to fight the text. */
.mashrabiya {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .14;
	background-image:
		repeating-linear-gradient(60deg,  var(--sand) 0 1px, transparent 1px 22px),
		repeating-linear-gradient(-60deg, var(--sand) 0 1px, transparent 1px 22px),
		repeating-linear-gradient(0deg,   var(--sand) 0 1px, transparent 1px 38px);
}

/* ==========================================================================
   3. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--wp--preset--font-family--body, "Tajawal", "Segoe UI", Arial, sans-serif);
	font-size: clamp(1.02rem, .5vw + .92rem, 1.14rem);
	line-height: 1.9;
	overflow-x: hidden;
	/* Paper grain, so large flat areas are not dead. */
	background-image: radial-gradient(circle at 1px 1px, rgba(168,84,63,.055) 1px, transparent 0);
	background-size: 26px 26px;
}

h1, h2, h3, h4 {
	font-family: var(--wp--preset--font-family--heading, "El Messiri", "Tajawal", sans-serif);
	line-height: 1.22;
	margin: 0 0 .5em;
	text-wrap: balance;
	letter-spacing: -.01em;
}

/* Display type is the point, not an afterthought. */
h1 { font-size: clamp(2.6rem, 7.5vw, 6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); }

p { margin: 0 0 1.15em; max-width: var(--measure); }

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--blue-deep); text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--clay); }

:focus-visible {
	outline: 3px solid var(--clay);
	outline-offset: 3px;
	border-radius: 5px;
}

/* A soft tint, not a solid gold slab: at full strength it swallowed the
   headline whenever a visitor dragged across it. */
::selection { background: rgba(220, 168, 89, .32); color: inherit; }

/* ==========================================================================
   4. Accessibility helpers
   ========================================================================== */

.ekhaa-sr {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

.ekhaa-skip {
	position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 999;
	background: var(--ink); color: #fff; padding: .9rem 1.4rem;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	font-weight: 700; text-decoration: none; transition: top .18s var(--ease);
}
.ekhaa-skip:focus { top: 0; color: #fff; }

.ekhaa-btn, .ekhaa-nav a, button, summary { min-height: 44px; }

/* ==========================================================================
   5. Layout
   ========================================================================== */

.ekhaa-wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.ekhaa-section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.ekhaa-section--cream { background: var(--cream); }
.ekhaa-section--ink { background: var(--ink); color: #f3ead9; }
.ekhaa-section--ink h2, .ekhaa-section--ink h3 { color: #fff; }

/* The eyebrow carries a small gold diamond, tying every section to the motif. */
.ekhaa-eyebrow {
	display: inline-flex; align-items: center; gap: .55rem;
	font-size: .82rem; font-weight: 700; letter-spacing: .08em;
	color: var(--clay-deep); text-transform: none; margin-bottom: 1rem;
}
.ekhaa-eyebrow::before {
	content: ""; width: 9px; height: 9px;
	background: var(--gold); transform: rotate(45deg); flex: none;
}
/* On any dark panel the eyebrow and the big numbers switch to gold: clay on
   navy measures 2.79:1, which fails at every size. */
.ekhaa-section--ink .ekhaa-eyebrow,
.ekhaa-hero .ekhaa-eyebrow,
.ekhaa-footer .ekhaa-eyebrow { color: var(--gold-soft); }

.ekhaa-section--ink .stat__num { color: var(--gold-soft); }

.ekhaa-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 54ch; }
.ekhaa-head p { color: var(--muted); font-size: 1.12rem; margin-bottom: 0; }
.ekhaa-section--ink .ekhaa-head p { color: #cbb99a; }

/* ==========================================================================
   6. Header
   ========================================================================== */

.ekhaa-header {
	position: sticky; top: 0; z-index: 90;
	background: rgba(251,247,239,.9);
	backdrop-filter: saturate(170%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.ekhaa-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }

.ekhaa-logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.ekhaa-logo span { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.15rem; }
.ekhaa-logo::before {
	content: ""; width: 13px; height: 13px; background: var(--gold);
	transform: rotate(45deg); flex: none;
}

.ekhaa-nav { margin-inline-start: auto; }
.ekhaa-nav ul { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.ekhaa-nav a {
	display: flex; align-items: center; padding: .5rem .85rem;
	border-radius: var(--radius-sm); color: var(--ink);
	text-decoration: none; font-weight: 500; font-size: .97rem;
	position: relative;
}
.ekhaa-nav a::after {
	content: ""; position: absolute; inset-inline: .85rem; bottom: .35rem; height: 2px;
	background: var(--gold); transform: scaleX(0); transform-origin: inline-end;
	transition: transform .28s var(--ease);
}
.ekhaa-nav a:hover::after,
.ekhaa-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: inline-start; }

.ekhaa-burger {
	display: none; border: 1px solid var(--line); background: #fff;
	border-radius: var(--radius-sm); width: 46px; cursor: pointer;
	font-size: 1.2rem; color: var(--ink);
}

@media (max-width: 980px) {
	.ekhaa-burger { display: inline-flex; align-items: center; justify-content: center; margin-inline-start: auto; }
	.ekhaa-nav {
		position: fixed; inset: 76px 0 auto 0; background: var(--paper);
		border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.6rem;
		display: none; max-height: calc(100dvh - 76px); overflow-y: auto;
	}
	.ekhaa-nav[data-open="true"] { display: block; }
	.ekhaa-nav ul { flex-direction: column; }
	.ekhaa-nav a { padding: .85rem 1rem; }
	.ekhaa-nav a::after { display: none; }
}

/* --------------------------------------------------------------------------
   6b. Entrance
   The header and the hero settle into place once on arrival. It runs from a
   class the script adds, so a visitor with JavaScript off sees the finished
   state immediately rather than a blank page.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.is-entering .ekhaa-logo,
	.is-entering .ekhaa-nav li,
	.is-entering .ekhaa-social a,
	.is-entering .ekhaa-burger {
		opacity: 0;
		transform: translateY(-10px);
		animation: ekhaa-drop .55s var(--ease) forwards;
		animation-delay: calc(var(--i, 0) * 55ms);
	}

	.is-entering .ekhaa-hero__inner > * {
		opacity: 0;
		transform: translateY(20px);
		animation: ekhaa-rise .75s var(--ease) forwards;
		animation-delay: calc(260ms + var(--i, 0) * 110ms);
	}

	/* The gold rule under the highlighted word draws itself last. */
	.is-entering .ekhaa-hero h1 em::after {
		transform: scaleX(0);
		transform-origin: inline-start;
		animation: ekhaa-rule .7s var(--ease) 820ms forwards;
	}
}

@keyframes ekhaa-drop { to { opacity: 1; transform: none; } }
@keyframes ekhaa-rise { to { opacity: 1; transform: none; } }
@keyframes ekhaa-rule { to { transform: scaleX(1); } }

:root[data-ekhaa-motion="off"] .is-entering * { animation: none !important; opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------------------
   6c. Social channels
   -------------------------------------------------------------------------- */

.ekhaa-social { display: flex; gap: .3rem; align-items: center; }

.ekhaa-social a {
	display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 11px;
	color: var(--ink); text-decoration: none;
	transition: background-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.ekhaa-social a:hover { background: var(--cream); color: var(--clay-deep); }
@media (prefers-reduced-motion: no-preference) { .ekhaa-social a:hover { transform: translateY(-2px); } }
.ekhaa-social svg { width: 19px; height: 19px; fill: currentColor; }

.ekhaa-footer .ekhaa-social a { color: #c6b89c; }
.ekhaa-footer .ekhaa-social a:hover { background: rgba(215,189,148,.14); color: var(--gold-soft); }

@media (max-width: 980px) { .ekhaa-header .ekhaa-social { display: none; } }

/* ==========================================================================
   7. Hero — editorial, not a gradient box
   ========================================================================== */

.ekhaa-hero {
	position: relative; overflow: hidden;
	background: var(--ink);
	color: #f6eedd;
	padding-block: clamp(4.5rem, 12vw, 9rem);
	isolation: isolate;
}

/* Warm light pooling behind the headline. */
.ekhaa-hero::before {
	content: ""; position: absolute; z-index: -1;
	width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
	inset-inline-end: -16%; top: -34%;
	background: radial-gradient(circle, rgba(220,168,89,.42) 0%, rgba(220,168,89,0) 68%);
}
.ekhaa-hero::after {
	content: ""; position: absolute; z-index: -1;
	width: 55vw; height: 55vw; max-width: 720px; max-height: 720px;
	inset-inline-start: -14%; bottom: -36%;
	background: radial-gradient(circle, rgba(61,141,133,.34) 0%, rgba(61,141,133,0) 70%);
}

.ekhaa-hero .mashrabiya { z-index: -1; opacity: .09; }

.ekhaa-hero h1 { color: #fff; max-width: 13ch; margin-bottom: .35em; }

/* One word carries the gold. The line underneath is the Najdi frieze again. */
.ekhaa-hero h1 em {
	font-style: normal; color: var(--gold-soft);
	position: relative; white-space: nowrap;
}
.ekhaa-hero h1 em::after {
	content: ""; position: absolute; inset-inline: 0; bottom: -.12em; height: 6px;
	background-image:
		linear-gradient(45deg, var(--gold) 25%, transparent 25%, transparent 75%, var(--gold) 75%),
		linear-gradient(45deg, var(--gold) 25%, transparent 25%, transparent 75%, var(--gold) 75%);
	background-size: 10px 10px; background-position: 0 0, 5px 5px;
	opacity: .9;
}

.ekhaa-hero__lede { color: #d9cdb6; font-size: clamp(1.1rem, 1.5vw, 1.38rem); max-width: 46ch; }
.ekhaa-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* Two columns once there is room: words on one side, picture on the other.
   The picture slot is empty until a real photograph is supplied. */
.ekhaa-hero__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

@media (min-width: 1000px) {
	.ekhaa-hero__inner { grid-template-columns: 1.15fr .85fr; }
}

.ekhaa-figure {
	position: relative; border-radius: var(--radius); overflow: hidden;
	aspect-ratio: 4 / 5; background: rgba(251,247,239,.05);
	border: 1px solid rgba(215,189,148,.28);
}
.ekhaa-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* A gold corner bracket, so a photo reads as framed rather than pasted in. */
.ekhaa-figure::after {
	content: ""; position: absolute; inset-inline-end: 14px; bottom: 14px;
	width: 54px; height: 54px;
	border-inline-end: 3px solid var(--gold);
	border-bottom: 3px solid var(--gold);
	border-end-end-radius: 10px;
}

/* Shown only while no image has been placed. */
.ekhaa-figure__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center; gap: .5rem;
	align-content: center; text-align: center; padding: 1.5rem;
	color: #b9a888; font-size: .92rem; line-height: 1.7;
}
.ekhaa-figure__placeholder strong { color: var(--gold-soft); font-size: 1.05rem; }

/* ==========================================================================
   8. Buttons
   ========================================================================== */

.ekhaa-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	padding: .8rem 1.7rem; border: 2px solid transparent; border-radius: 999px;
	background: var(--gold); color: var(--ink);
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.ekhaa-btn:hover { background: var(--gold-soft); color: var(--ink); box-shadow: var(--shadow-lift); }
@media (prefers-reduced-motion: no-preference) { .ekhaa-btn:hover { transform: translateY(-2px); } }

.ekhaa-btn--ghost { background: transparent; border-color: rgba(246,238,221,.42); color: #f6eedd; }
.ekhaa-btn--ghost:hover { background: rgba(246,238,221,.1); color: #fff; }

.ekhaa-btn--ink { background: var(--ink); color: var(--cream); }
.ekhaa-btn--ink:hover { background: var(--ink-2); color: #fff; }

/* ==========================================================================
   9. The journey — the signature section
   Three stages on one continuous line instead of three equal boxes, because
   the point Ekhaa makes is that the stages are connected and the last one has
   no end date.
   ========================================================================== */

.journey { position: relative; }

.journey__line {
	position: absolute; inset-inline: 0; top: 30px; height: 2px;
	background: repeating-linear-gradient(to left, var(--sand) 0 10px, transparent 10px 18px);
	transform: scaleX(0); transform-origin: inline-start;
	transition: transform 1.3s var(--ease);
}
.journey.is-in .journey__line { transform: scaleX(1); }

.journey__steps {
	display: grid; gap: clamp(2rem, 4vw, 3rem);
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	position: relative;
}

.journey__step { position: relative; padding-top: 76px; }

.journey__node {
	position: absolute; top: 0; inset-inline-start: 0;
	width: 60px; height: 60px; display: grid; place-items: center;
	background: var(--paper); border: 2px solid var(--gold);
	transform: rotate(45deg);
	transition: background-color .3s var(--ease), transform .5s var(--ease);
}
.journey__node span {
	transform: rotate(-45deg);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700; font-size: 1.3rem; color: var(--ink);
}
.journey__step:hover .journey__node { background: var(--gold); }

/* The open-ended last stage is marked, not just described. */
.journey__step--open .journey__node { border-style: dashed; }

.journey__step h3 { margin-bottom: .4rem; }
.journey__step p { color: var(--muted); margin-bottom: 0; }

/* ==========================================================================
   10. Cards — warm, asymmetric, not a uniform grid
   ========================================================================== */

.ekhaa-grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.8rem); grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }

/* An editorial rhythm: the first card is wider on large screens. */
@media (min-width: 900px) {
	.ekhaa-grid--feature { grid-template-columns: 1.6fr 1fr 1fr; }
}

.ekhaa-card {
	position: relative; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius);
	padding: clamp(1.4rem, 2.3vw, 2.1rem);
	box-shadow: var(--shadow); overflow: hidden;
	transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}

/* A gold hairline that draws itself along the top edge on hover. */
.ekhaa-card::before {
	content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
	background: linear-gradient(to left, var(--gold), var(--clay));
	transform: scaleX(0); transform-origin: inline-end;
	transition: transform .34s var(--ease);
}
.ekhaa-card:hover::before,
.ekhaa-card:focus-within::before { transform: scaleX(1); transform-origin: inline-start; }

.ekhaa-card:hover { border-color: var(--sand); box-shadow: var(--shadow-lift); }
@media (prefers-reduced-motion: no-preference) { .ekhaa-card:hover { transform: translateY(-5px); } }

.ekhaa-card h3 { margin-bottom: .35rem; }
.ekhaa-card p { color: var(--muted); margin-bottom: 0; font-size: 1rem; }
.ekhaa-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.ekhaa-card--cream { background: var(--cream); border-color: var(--sand); }

/* Numbers set big, in the display face, with the diamond as the unit mark. */
.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat__num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 700;
	line-height: 1; color: var(--clay);
}
.stat__label { color: var(--muted); font-size: .98rem; }

/* ==========================================================================
   11. Partners
   ========================================================================== */

/* Sixteen logos, sixteen different shapes, backgrounds and aspect ratios —
   some wide, some square, some already on white. Left alone they read as
   scattered thumbnails. Each one therefore gets the SAME tile: same height,
   white ground, centred, scaled to fit. The eye then compares partners, not
   image dimensions.

   And they are shown in their own colours. The greyscale wall is a common
   trick, but these are King Saud University, Jood Eskan, the Princess Alanoud
   Foundation — institutions that lent this charity their name. Draining the
   colour out of them made the page look broken, which is what it did here:
   measured at 58px and 62% opacity, every logo read as disabled. */

.ekhaa-partners {
	display: grid;
	gap: clamp(.7rem, 1.6vw, 1.1rem);
	grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

.ekhaa-partners a {
	align-items: center;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	display: flex;
	justify-content: center;
	min-block-size: 118px;
	padding: 1.1rem;
	transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.ekhaa-partners a:hover,
.ekhaa-partners a:focus-visible {
	border-color: var(--sand);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.ekhaa-partners img {
	block-size: auto;
	inline-size: auto;
	max-block-size: 72px;
	max-inline-size: 100%;
	object-fit: contain;
}

:root[data-ekhaa-motion="off"] .ekhaa-partners a {
	transition: none;
}

:root[data-ekhaa-motion="off"] .ekhaa-partners a:hover,
:root[data-ekhaa-motion="off"] .ekhaa-partners a:focus-visible {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.ekhaa-partners a { transition: none; }
	.ekhaa-partners a:hover,
	.ekhaa-partners a:focus-visible { transform: none; }
}

/* ==========================================================================
   12. Branches — a list with presence, not another card grid
   ========================================================================== */

.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; }
.branch {
	display: flex; align-items: baseline; gap: .7rem;
	padding: 1.15rem .4rem;
	border-bottom: 1px solid rgba(215,189,148,.5);
	text-decoration: none; color: var(--ink);
	transition: padding-inline-start .25s var(--ease), color .25s var(--ease);
}
.branch::before { content: ""; width: 8px; height: 8px; background: var(--teal); transform: rotate(45deg); flex: none; }
.branch:hover { padding-inline-start: .9rem; color: var(--clay); }
.branch span { font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; font-weight: 600; }

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.faq { border-bottom: 1px solid var(--line); }
.faq summary {
	display: flex; align-items: center; gap: .8rem; cursor: pointer;
	padding: 1.15rem 0; font-weight: 700; font-size: 1.1rem;
	font-family: var(--wp--preset--font-family--heading);
	list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
	content: ""; width: 10px; height: 10px; background: var(--gold);
	transform: rotate(45deg); flex: none; transition: transform .3s var(--ease);
}
.faq[open] summary::before { transform: rotate(225deg); background: var(--clay); }
.faq p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* ==========================================================================
   13b. Motion set
   Everything below is inside a no-preference query or keyed off the toggle,
   so a visitor who asks for stillness gets a completely static page.
   ========================================================================== */

/* Scroll progress, drawn as the Najdi gold. */
.ekhaa-progress {
	position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 100;
	background: linear-gradient(to left, var(--gold), var(--clay));
	transform: scaleX(0); transform-origin: inline-start;
	will-change: transform;
}
:root[data-ekhaa-motion="off"] .ekhaa-progress { display: none; }

/* Gold diamonds drifting through the hero. Decorative, aria-hidden. */
.ekhaa-motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ekhaa-mote {
	position: absolute; width: 9px; height: 9px;
	background: var(--gold); opacity: .22; transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
	.ekhaa-mote { animation: ekhaa-float linear infinite; }
}
:root[data-ekhaa-motion="off"] .ekhaa-motes { display: none; }

@keyframes ekhaa-float {
	from { transform: translateY(110%) rotate(45deg); opacity: 0; }
	18%  { opacity: .26; }
	82%  { opacity: .26; }
	to   { transform: translateY(-130%) rotate(405deg); opacity: 0; }
}

/* Images arrive with a wipe rather than a fade.
   Keyed off data-ekhaa-anim, which the script sets only once it is actually
   going to run the observer. Without JavaScript the attribute is absent and
   the pictures simply show — they are never hidden by CSS alone. */
@media (prefers-reduced-motion: no-preference) {
	:root[data-ekhaa-anim="on"] .ekhaa-figure img,
	:root[data-ekhaa-anim="on"] .ekhaa-shot img {
		clip-path: inset(0 0 0 100%);
		transform: scale(1.08);
		transition: clip-path 1.05s var(--ease), transform 1.4s var(--ease);
	}
	:root[data-ekhaa-anim="on"] .ekhaa-figure.is-in img,
	:root[data-ekhaa-anim="on"] .ekhaa-shot.is-in img { clip-path: inset(0 0 0 0); transform: none; }
}

/* Slow drift on a background photograph as the page scrolls past it. */
.ekhaa-parallax { will-change: transform; }

/* Headings reveal word by word. The split itself only happens in script, so
   the hidden state can never outlive a failure to observe. */
@media (prefers-reduced-motion: no-preference) {
	:root[data-ekhaa-anim="on"] .ekhaa-words span {
		display: inline-block;
		opacity: 0; transform: translateY(.5em);
		transition: opacity .55s var(--ease), transform .55s var(--ease);
		transition-delay: calc(var(--w, 0) * 65ms);
	}
	:root[data-ekhaa-anim="on"] .ekhaa-words.is-in span { opacity: 1; transform: none; }
}

/* Cards lean very slightly toward the pointer. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
	.ekhaa-card.has-tilt {
		transform: perspective(900px)
			rotateX(calc(var(--ty, 0) * -2.4deg))
			rotateY(calc(var(--tx, 0) * 2.4deg));
		transition: transform .18s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
	}
	.ekhaa-card.has-tilt:hover { transform: perspective(900px) translateY(-5px)
			rotateX(calc(var(--ty, 0) * -2.4deg))
			rotateY(calc(var(--tx, 0) * 2.4deg)); }
}

/* Partners move past in a continuous band, pausing on hover and focus. */
.ekhaa-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to left, transparent, #000 8%, #000 92%, transparent); }
.ekhaa-marquee__track { display: flex; gap: .4rem; width: max-content; }
/* The marquee shows the same logos as the partners grid, so it follows the
   same rule: one tile shape for all of them, and their own colours. */
.ekhaa-marquee__track > * {
	align-items: center;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	display: flex;
	flex: none;
	justify-content: center;
	min-block-size: 110px;
	padding: 1rem;
	width: 180px;
}
.ekhaa-marquee__track img {
	block-size: auto;
	inline-size: auto;
	max-block-size: 68px;
	max-inline-size: 100%;
	object-fit: contain;
}

@media (prefers-reduced-motion: no-preference) {
	.ekhaa-marquee__track { animation: ekhaa-slide 48s linear infinite; }
	.ekhaa-marquee:hover .ekhaa-marquee__track,
	.ekhaa-marquee:focus-within .ekhaa-marquee__track { animation-play-state: paused; }
}
:root[data-ekhaa-motion="off"] .ekhaa-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }

@keyframes ekhaa-slide { to { transform: translateX(-50%); } }

/* The gold band breathes very slowly. */
@media (prefers-reduced-motion: no-preference) {
	.najdi-band { animation: ekhaa-band 14s linear infinite; }
}
:root[data-ekhaa-motion="off"] .najdi-band { animation: none; }
@keyframes ekhaa-band { to { background-position: 36px 0, 45px 9px; } }

/* The journey nodes pulse once as the line reaches them. */
@media (prefers-reduced-motion: no-preference) {
	.journey.is-in .journey__node { animation: ekhaa-pop .6s var(--ease) backwards; }
	.journey.is-in .journey__step:nth-child(2) .journey__node { animation-delay: .32s; }
	.journey.is-in .journey__step:nth-child(3) .journey__node { animation-delay: .64s; }
}
@keyframes ekhaa-pop {
	from { transform: rotate(45deg) scale(.4); opacity: 0; }
	60%  { transform: rotate(45deg) scale(1.12); }
	to   { transform: rotate(45deg) scale(1); opacity: 1; }
}

/* Branch rows arrive one after another. */
@media (prefers-reduced-motion: no-preference) {
	.branches.is-in .branch {
		animation: ekhaa-rise .5s var(--ease) backwards;
		animation-delay: calc(var(--i, 0) * 45ms);
	}
}

/* A picture panel used inside sections. */
.ekhaa-shot { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.ekhaa-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The scrim has to carry the caption on ANY photograph, including a pale one,
   so it is opaque where the text sits rather than a gentle fade. */
.ekhaa-shot::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top,
		rgba(10, 20, 40, .88) 0%,
		rgba(10, 20, 40, .72) 22%,
		rgba(10, 20, 40, .18) 52%,
		transparent 72%);
}
.ekhaa-shot figcaption {
	position: absolute; inset-inline: 1.2rem; bottom: 1rem; z-index: 2;
	color: #fff; font-family: var(--wp--preset--font-family--heading);
	font-weight: 700; font-size: 1.05rem; text-align: start;
	/* Belt and braces: a shadow keeps it legible if an image ever overlaps it. */
	text-shadow: 0 1px 3px rgba(0, 0, 0, .75);
}

/* ==========================================================================
   14. Reveal
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.ekhaa-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
	.ekhaa-reveal.is-in { opacity: 1; transform: none; }
}
:root[data-ekhaa-motion="off"] .ekhaa-reveal,
:root[data-ekhaa-motion="off"] .journey__line {
	opacity: 1 !important; transform: none !important; transition: none !important;
}

/* ==========================================================================
   15. Footer
   ========================================================================== */

.ekhaa-footer { background: var(--ink); color: #c6b89c; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; position: relative; }
.ekhaa-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.ekhaa-footer a { color: #c6b89c; text-decoration: none; }
.ekhaa-footer a:hover, .ekhaa-footer a:focus-visible { color: var(--gold-soft); }
.ekhaa-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ekhaa-footer__bottom {
	margin-top: 3rem; padding-top: 1.3rem;
	border-top: 1px solid rgba(215,189,148,.22);
	font-size: .88rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
}

/* ==========================================================================
   16. Motion toggle
   ========================================================================== */

.ekhaa-motion-toggle {
	position: fixed; inset-block-end: 1rem; inset-inline-start: 1rem; z-index: 95;
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .6rem 1.1rem; border: 1px solid var(--sand); border-radius: 999px;
	background: var(--paper); color: var(--ink); font: inherit; font-size: .85rem;
	box-shadow: var(--shadow); cursor: pointer;
}

/* ==========================================================================
   17. WordPress core classes
   ========================================================================== */

.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.alignwide { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--muted); text-align: center; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
}
.screen-reader-text:focus {
	width: auto; height: auto; clip: auto; clip-path: none;
	background: #fff; padding: .8rem 1.2rem; z-index: 100000;
}

@media print {
	.ekhaa-header, .ekhaa-footer, .ekhaa-motion-toggle, .ekhaa-skip, .najdi-band { display: none; }
	body { background: #fff; color: #000; background-image: none; }
	.ekhaa-reveal { opacity: 1 !important; transform: none !important; }
}
