/*
Theme Name: EMG
Description: Custom theme for EuroMena Global (euromenaglobal.com) and EMG Automotive (emgautomotive.fr). Bilingual EN/FR, plus Arabic on the automotive site.
Version: 1.1.0
Author: EMG EuroMena Global
Requires PHP: 7.4
Text Domain: emg
*/

/* ---------------------------------------------------------------- tokens */
:root {
	--bg: #0a0e13;
	--bg-2: #0e141b;
	--surface: #121a23;
	--surface-2: #17212c;
	--line: #223040;
	--line-2: #2c3d50;
	--text: #e7eef5;
	--muted: #9aabbb;
	--accent: #0ab4dc;
	--accent-2: #5fd8f5;
	--accent-ink: #032029;
	--warn: #f4b740;
	--warn-bg: #2a2110;
	--danger: #f07167;
	--danger-bg: #2a1414;
	--ok: #4ad295;
	--ok-bg: #0f2a20;
	--radius: 14px;
	--radius-sm: 10px;
	--wrap: 1180px;
	--font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-ar: "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
	color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1rem/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.lang-ar { font-family: var(--font-ar); line-height: 1.8; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 700; }
.lang-ar h1, .lang-ar h2, .lang-ar h3 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 32px; }
.muted { color: var(--muted); }
.kicker { color: var(--accent-2); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.lang-ar .kicker { letter-spacing: 0; font-size: .95rem; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }

/* ---------------------------------------------------------------- buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: 12px 22px; border-radius: 999px;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: rgba(10,180,220,.08); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }

/* ---------------------------------------------------------------- fraud bar */
.fraud-bar { background: var(--warn-bg); border-bottom: 1px solid rgba(244,183,64,.35); color: #f8e3b5; font-size: .88rem; }
.fraud-inner { display: flex; gap: 10px; align-items: flex-start; padding-block: 9px; }
.fraud-inner .icon { color: var(--warn); margin-top: 2px; }
.fraud-inner p { margin: 0; }
.fraud-inner strong { color: var(--warn); }
.fraud-inner a { color: #fff; font-weight: 600; margin-inline-start: 6px; white-space: nowrap; }
.fraud-short { display: none; }
@media (max-width: 720px) { .fraud-long { display: none; } .fraud-short { display: inline; } }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,14,19,.86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #111; box-shadow: 0 0 0 1px var(--line-2); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.lang-ar .brand-text small { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav-list a:hover { color: #fff; background: var(--surface); }
.nav-list a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 2px 2px; }
.nav-sister a { color: var(--accent-2); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang-switch a { min-width: 36px; padding: 5px 9px; border-radius: 999px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }
/* Desktop relies on the floating WhatsApp button; the header one shows in the mobile menu. */
@media (min-width: 1261px) { .nav-actions .btn { display: none; } }
.nav-toggle { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 1260px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute; inset-inline: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px 20px 24px; background: var(--bg-2); border-bottom: 1px solid var(--line);
		display: none;
	}
	.site-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 13px 12px; font-size: 1.02rem; }
	.nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); border-radius: 4px; }
	[dir="rtl"] .nav-list a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--accent); }
	.nav-actions { justify-content: space-between; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background:
	radial-gradient(900px 480px at 85% 10%, rgba(10,180,220,.14), transparent 60%),
	radial-gradient(700px 400px at 0% 100%, rgba(10,180,220,.06), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 18ch; }
.lang-ar .hero h1 { max-width: 22ch; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; }
.brand-chips li { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .85rem; color: var(--muted); }
.brand-chips li:not(:last-child) { color: var(--text); }
.route { position: relative; color: var(--accent-2); direction: ltr; }
.route svg { display: block; width: 100%; }
.route-path { animation: emg-dash 2.2s linear infinite; }
@keyframes emg-dash { to { stroke-dashoffset: -48; } }
.route-label { position: absolute; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.route-from { left: 29%; top: 20%; }
.route-to { left: 62%; top: 80%; }
.lang-ar .route-label { font-family: var(--font-ar); }

@media (max-width: 900px) {
	.hero { padding: 48px 0; }
	.hero-grid { grid-template-columns: 1fr; gap: 24px; }
	.route { max-width: 420px; margin-inline: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.route-path { animation: none; }
	html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- page hero */
.page-hero { padding: 64px 0 36px; background: radial-gradient(800px 360px at 80% 0%, rgba(10,180,220,.12), transparent 60%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-hero .lead { margin: 0; }

/* ---------------------------------------------------------------- trust bar */
.trust-bar { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 12px; align-items: center; padding: 18px 16px; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-item .icon { color: var(--accent); width: 26px; height: 26px; }
.trust-item span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.trust-item small { color: var(--muted); font-size: .78rem; }
.trust-item strong { font-size: .92rem; font-weight: 600; }
@media (max-width: 900px) {
	.trust-inner { grid-template-columns: 1fr 1fr; }
	.trust-item:nth-child(3) { border-inline-start: 0; }
	.trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
	.trust-inner { grid-template-columns: 1fr; }
	.trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--line); }
	.trust-item { padding: 14px 4px; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 88px 0; }
.section-tight { padding: 48px 0 88px; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .lead { margin: 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head-row .section-head { margin: 0; }
@media (max-width: 720px) { .section { padding: 60px 0; } .section-tight { padding: 32px 0 60px; } }

/* features */
.features { display: grid; gap: 18px; }
.features-4 { grid-template-columns: repeat(4, 1fr); }
.features-3 { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(10,180,220,.1); color: var(--accent-2); margin-bottom: 18px; flex: none; }
.feature-icon .icon { width: 24px; height: 24px; }
.features-plain .feature { background: transparent; }
@media (max-width: 1000px) { .features-4, .features-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features-4, .features-3 { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::after { content: ""; position: absolute; top: 46px; inset-inline-end: -19px; width: 20px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
[dir="rtl"] .step::after { background: linear-gradient(-90deg, var(--accent), transparent); }
.step:last-child::after { display: none; }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-2); font-weight: 700; font-size: .92rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 1080px) { .steps-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .steps-4 { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 600px) { .steps-4, .steps-5 { grid-template-columns: 1fr; } }

/* division teaser */
.division { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 40px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(120deg, var(--surface) 0%, var(--bg-2) 70%); }
.division img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2), 0 20px 60px rgba(10,180,220,.15); }
.division p:not(.kicker) { color: var(--muted); max-width: 62ch; }
@media (max-width: 700px) { .division { grid-template-columns: 1fr; padding: 28px; } .division img { width: 96px; height: 96px; } }

/* CTA band */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 44px; border-radius: 20px; background:
	radial-gradient(600px 240px at 100% 0%, rgba(10,180,220,.22), transparent 70%), var(--surface); border: 1px solid var(--line-2); }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: var(--muted); margin: 0; max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .cta-band { padding: 28px; } .cta-actions, .cta-actions .btn { width: 100%; } }

/* ---------------------------------------------------------------- cars */
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .car-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .car-grid { grid-template-columns: 1fr; } }
.car-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.car-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.car-card[hidden] { display: none; }
.car-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #16212c, #0c1218); }
.car-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--line-2); padding: 24px; }
.car-svg { width: 70%; color: #3a4f63; }
.car-placeholder span { color: var(--muted); font-size: .82rem; }
.tag { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; background: rgba(10,14,19,.8); border: 1px solid var(--line-2); }
.tag-available { color: var(--ok); border-color: rgba(74,210,149,.45); }
.tag-on_request { color: var(--accent-2); border-color: rgba(10,180,220,.45); }
.tag-reserved { color: var(--warn); border-color: rgba(244,183,64,.45); }
.tag-exported { color: var(--muted); }
.car-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.car-make { margin: 0 0 4px; color: var(--accent-2); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.car-title { font-size: 1.12rem; margin-bottom: 6px; }
.car-specs { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.car-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.car-price { margin: 0; display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; font-size: 1.2rem; }
.car-price small { color: var(--muted); font-weight: 500; font-size: .74rem; }
.note { color: var(--muted); font-size: .86rem; margin-top: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 40px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.chip:hover { color: #fff; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.empty { padding: 40px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); text-align: center; }
.source-box { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-top: 48px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); }
.source-box .feature-icon { margin: 0; }
.source-box h2 { font-size: 1.3rem; margin-bottom: .25em; }
.source-box p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .source-box { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- panels, lists, faq */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.panel-ok { border-color: rgba(74,210,149,.35); }
.panel-ok h2 .icon { color: var(--ok); }
.panel-danger { border-color: rgba(240,113,103,.35); background: linear-gradient(var(--danger-bg), var(--surface)); }
.panel-danger h2 .icon { color: var(--danger); }
.panel-warn { border-color: rgba(244,183,64,.35); background: var(--warn-bg); color: #f8e3b5; }
.panel-warn .icon { color: var(--warn); }
.panel-warn p { margin: 0; }
.report { margin-top: 28px; }
.ticks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li, .crosses li { position: relative; padding-inline-start: 30px; }
.ticks li::before, .crosses li::before { position: absolute; inset-inline-start: 0; top: .1em; font-weight: 700; }
.ticks li::before { content: "✓"; color: var(--ok); }
.crosses li::before { content: "✕"; color: var(--danger); }
.official { display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; margin: 0; }
.official dt { color: var(--muted); font-size: .9rem; }
.official dd { margin: 0; font-weight: 600; }
.official dd a { font-weight: 500; font-size: .9rem; }
@media (max-width: 520px) { .official { grid-template-columns: 1fr; gap: 2px; } .official dd { margin-bottom: 12px; } }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea {
	width: 100%; padding: 12px 14px; min-height: 48px; border-radius: var(--radius-sm);
	border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
	font: inherit; font-weight: 400; font-size: 1rem;
}
.field input::placeholder, .field textarea::placeholder { color: #5f7183; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,180,220,.2); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; color: var(--muted); font-size: .9rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert-ok { background: var(--ok-bg); color: #c9f3df; border: 1px solid rgba(74,210,149,.4); }
.alert-ok .icon { color: var(--ok); }
.alert-err { background: var(--danger-bg); color: #ffd5d1; border: 1px solid rgba(240,113,103,.4); }
.alert-err .icon { color: var(--danger); }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
a.contact-card:hover { border-color: var(--accent); color: var(--text); }
.contact-card .feature-icon { margin: 0; }
.contact-card span:last-child { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); font-size: .8rem; }
.contact-card strong { font-weight: 600; }

/* ---------------------------------------------------------------- prose */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose p, .prose li { color: #c9d4de; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #070a0e; border-top: 1px solid var(--line); padding-top: 64px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin: 18px 0; max-width: 40ch; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.lang-ar .footer-title { letter-spacing: 0; font-size: .95rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: #c9d4de; }
.footer-list a { color: #c9d4de; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.footer-list a:hover { color: #fff; }
.footer-list .icon { color: var(--accent); width: 1.1em; height: 1.1em; }
.sister-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; font-size: .86rem; }
[dir="rtl"] .sister-link { padding: 8px 8px 8px 14px; }
.sister-link img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sister-link strong { color: var(--text); }
.sister-link:hover { border-color: var(--accent); color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* floating WhatsApp */
.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float .icon { width: 28px; height: 28px; }

/* small phones: keep the header on one line */
@media (max-width: 560px) {
	.header-inner { gap: 12px; min-height: 68px; }
	.brand, .brand-text { min-width: 0; }
	.brand img { width: 42px; height: 42px; }
	.brand-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .68rem; }
	.wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}
