/* =====================================================================
   Interest Chains — سلاسل الاهتمام
   وضعان: نهاري، وليلي بنفس الألوان بدرجات للخلفية الداكنة. لون واحد للتأكيد (أزرق الشعار). بلا تدرجات ولا ظلال ولا توهج.
   ===================================================================== */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg2: #f3f4f6;
  --fg: #0b1633;
  --muted: #5b6478;
  --line: rgba(11, 22, 51, .12);
  --accent: #0a5fd6;
  --accent-fill: #0a5fd6;       /* خلفية الأزرار: في الليل أغمق من --accent ليبقى النص الأبيض واضحاً */
  --accent-ink: #ffffff;
  --navy: #0b2463;
  --cyan: #00c2cc;
  --err: #c62828;
  --wa: #25d366;
  --frame: #0b1633;             /* إطار لقطات الجوال */
  --font: 'Alexandria', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* الوضع الليلي: data-theme على <html> يضعه سكربت <head> قبل أول رسم (index.html)، والزر في main.js.
   كل الألوان متغيرات، فلا يحتاج أي مكوّن قاعدة ليلية خاصة به */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1120;                /* يطابق theme-color في سكربت <head> */
  --bg2: #111a2e;
  --fg: #e6ebf5;
  --muted: #93a0b8;
  --line: rgba(214, 226, 255, .12);
  --accent: #5b9bff;
  --accent-fill: #2f6fe4;
  --navy: #dbe5ff;              /* الحلقة الكحلية في رسم السلسلة تصير فاتحة */
  --err: #ff7070;
  --frame: #35425c;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px;
  font-family: var(--font); font-size: 17px; line-height: 1.8;
  background: var(--bg); color: var(--fg); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
::selection { background: var(--accent-fill); color: var(--accent-ink); }
section { scroll-margin-top: calc(var(--nav-h) + 8px); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: fixed; z-index: 1000; top: 12px; inset-inline-start: 12px; padding: 10px 16px; background: var(--fg); color: var(--bg); border-radius: 3px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- type ---------- */
.h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.25; font-weight: 700; max-width: 26ch; text-wrap: balance; }
html[lang="en"] .h2 { letter-spacing: -.01em; }
.section-sub { margin-top: 16px; font-size: 17px; line-height: 1.85; color: var(--muted); max-width: 40rem; text-wrap: pretty; }
.section-head { margin-bottom: 44px; }

/* ---------- buttons ---------- */
.btn {
  height: 52px; padding: 0 24px; border: 0; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 15px; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent-fill); color: var(--accent-ink); }
.btn-primary:hover { background: var(--fg); color: var(--bg); }
.btn-primary:disabled { opacity: .7; cursor: default; }
.btn-ghost { border: 1px solid var(--line); background: transparent; color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.text-btn { background: none; border: 0; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--fg); }
.text-btn:hover { text-decoration: underline; text-underline-offset: 6px; }
.btn:focus-visible, .text-btn:focus-visible, .menu-btn:focus-visible, .theme-btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-row { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 34px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-ar { font-weight: 700; font-size: 17px; }
.brand-en { font-size: 10.5px; color: var(--muted); direction: ltr; letter-spacing: .06em; }
.nav-links { display: flex; gap: 24px; font-size: 14.5px; font-weight: 500; }
.nav-links a { position: relative; color: var(--muted); padding: 6px 0; white-space: nowrap; transition: color .15s; }
.nav-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 6px; }
.nav-links a[aria-current="page"] { color: var(--fg); font-weight: 600; }
/* خط الصفحة الحالية: عنصر يضيفه build.js، فينزلق بين الروابط عند الانتقال بين الصفحات */
.nav-mark { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--accent); }
.nav-links a[aria-current="page"]:hover { text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.theme-btn { width: 38px; height: 38px; padding: 0; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--fg); transition: border-color .15s; }
.theme-btn:hover { border-color: var(--fg); }
/* القمر في النهار والشمس في الليل، ويدوران عند التبديل */
.theme-ico { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform .5s var(--ease), opacity .25s; }
.theme-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .theme-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="dark"] .theme-sun { opacity: 1; transform: none; }
/* الشعار الأصلي في النهار، ونسخة أفتح في الليل (tools/logo_dark.py) لأن حلقته الكحلية تختفي على الخلفية الداكنة */
.logo-night { display: none; }
:root[data-theme="dark"] .logo-day { display: none; }
:root[data-theme="dark"] .logo-night { display: block; }

.menu-btn { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; flex-direction: column; gap: 7px; padding: 0; border: 0; background: transparent; }
.menu-btn span { width: 24px; height: 1.5px; background: var(--fg); transition: transform .25s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.mobile-menu { display: none; }
.mobile-menu nav a[aria-current="page"] { color: var(--accent); }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.hero-kicker { font-size: 14px; color: var(--muted); }
.hero-title { margin-top: 14px; font-size: clamp(38px, 5vw, 72px); line-height: 1.18; font-weight: 800; text-wrap: balance; }
html[lang="en"] .hero-title { font-size: clamp(32px, 4vw, 56px); letter-spacing: -.015em; }
.hero-sub { margin-top: 22px; max-width: 38rem; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.8; color: var(--muted); text-wrap: pretty; }
.hero-sub-next { margin-top: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-facts { grid-column: 1 / -1; display: flex; gap: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.fact { flex: 1 1 0; }
.fact b { display: block; font-size: 20px; font-weight: 700; }
.fact span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.hero-visual { display: grid; place-items: center; }
.chain { width: min(100%, 500px); height: auto; overflow: visible; }
/* السلسلة ظاهرة من أول لحظة: بلا رسم تدريجي حتى لا تبدو الواجهة ناقصة */
.hex { fill: none; stroke-width: 26; stroke-linejoin: round; }
.hex-a { stroke: var(--cyan); }
.hex-b { stroke: var(--navy); }
.hex-c { stroke: var(--accent); }
.hex-gap { fill: none; stroke: var(--bg); stroke-width: 8; stroke-linejoin: round; stroke-dasharray: 120 372; stroke-dashoffset: -40; animation: gapFade 6.5s 2.2s ease-in-out infinite; }
.link-a { transform: translate(-92px, -78px); animation: linkA 6.5s 2.2s cubic-bezier(.76, 0, .24, 1) infinite; }
.link-c { transform: translate(92px, 78px); animation: linkC 6.5s 2.2s cubic-bezier(.76, 0, .24, 1) infinite; }
.link-b { animation: linkB 6.5s 2.2s cubic-bezier(.76, 0, .24, 1) infinite; }

/* ---------- services ---------- */
.services .wrap { padding-block: clamp(56px, 8vw, 110px); }
.service-list { border-top: 1px solid var(--line); }
/* صف مضغوط: الرقم، العنوان، الشرح، ثم النتيجة في عمود واحد بنفس الارتفاع والمحاذاة في كل الصفوف */
.service { display: grid; grid-template-columns: 40px minmax(0, .85fr) minmax(0, 1.5fr) minmax(0, .95fr); gap: 28px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.service-num { padding-top: 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; width: fit-content; }
.service h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; line-height: 1.4; }
.service:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.service p { font-size: 15px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
/* سطر النتيجة: شريط بلون المفتاح، منطقي الاتجاه فيصح في العربي والإنجليزي */
.service-out { min-height: 4.8em; padding-inline-start: 14px; border-inline-start: 2px solid var(--accent); font-size: 14.5px; line-height: 1.6; font-weight: 500; text-wrap: pretty; }
.service-cta { margin-top: clamp(28px, 3.5vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(24px, 3vw, 36px); background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; }
.service-cta h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.3; }
.service-cta p { margin-top: 8px; font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 40rem; text-wrap: pretty; }

/* ---------- process + execution chain ---------- */
.process { background: var(--bg2); border-block: 1px solid var(--line); }
.process .wrap { padding-block: clamp(56px, 8vw, 110px); }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step-num { width: 28px; height: 28px; margin-top: 4px; border: 1.5px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
.step.is-active .step-num { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.step.is-done .step-num { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); font-size: 0; }
.step.is-done .step-num::after { content: "✓"; font-size: 12px; }
.step h3 { font-size: 20px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.step h3 small { font-size: 13px; font-weight: 500; color: var(--accent); }
.step p { margin-top: 8px; font-size: 15px; line-height: 1.8; color: var(--muted); transition: color .15s; }
.step.is-active p { color: var(--fg); }

.console { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
.console-head, .console-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 22px; min-height: 64px; }
.console-head { border-bottom: 1px solid var(--line); }
.console-kicker { display: block; font-size: 11px; letter-spacing: .12em; color: var(--muted); direction: ltr; width: fit-content; }
.console-title { font-size: 15px; font-weight: 600; }
.console-live { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.console-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.stage { position: relative; aspect-ratio: 560 / 500; }
.stage-paths { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path { fill: none; stroke: var(--line); stroke-width: 1.2; transition: stroke .2s; }
.path.on { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 8; animation: flow 1.1s linear infinite; }
.packet { fill: var(--accent); opacity: 0; }
.packet.on { opacity: 1; }
.node { position: absolute; width: 26%; min-width: 110px; padding: 10px 14px 12px; border: 1px solid var(--line); background: var(--bg); border-radius: 3px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.node.is-active { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.node.is-done { border-color: var(--accent); }
.node-num { display: block; width: fit-content; font-size: 11px; color: var(--muted); direction: ltr; font-variant-numeric: tabular-nums; }
.node-ok { display: none; font-size: 12px; font-weight: 700; color: var(--accent); }
.node.is-done .node-num { display: none; }
.node.is-done .node-ok { display: block; }
.node-title { display: block; font-weight: 700; font-size: 15px; margin-top: 2px; }
.node-sub { display: block; font-size: 12.5px; color: var(--muted); }
.node-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; }
html[dir="ltr"] .node-bar { transform-origin: left; }
.node.is-active .node-bar { transform: scaleX(1); transition: transform 1.3s linear; }
.node.is-done .node-bar { transform: scaleX(1); }
.node-1 { inset-inline-start: 4%; top: 7%; }
.node-2 { inset-inline-end: 4%; top: 7%; }
.node-3 { inset-inline-start: 4%; bottom: 6%; }
.node-4 { inset-inline-end: 4%; bottom: 6%; }
.core { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; transition: border-color .2s; }
.core.is-processing { border-color: var(--fg); }
.core::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; pointer-events: none; }
.core.is-hit::after { animation: ring .75s cubic-bezier(.2, .7, .2, 1) 1; }
.core-chain { width: 64%; height: 64%; overflow: visible; }
.core .hex { stroke-width: 30; }
.core .link { animation: none; }
.core .hex-gap { animation: none; }
.core.is-processing .link-a { animation: linkA 2.4s cubic-bezier(.76, 0, .24, 1) 1; }
.core.is-processing .link-c { animation: linkC 2.4s cubic-bezier(.76, 0, .24, 1) 1; }
.core.is-processing .link-b { animation: linkB 2.4s cubic-bezier(.76, 0, .24, 1) 1; }
.core.is-processing .hex-gap { animation: gapFade 2.4s ease-in-out 1; }
.core small { position: absolute; bottom: -26px; font-size: 10.5px; letter-spacing: .14em; color: var(--muted); }
.console-log { min-height: 112px; padding: 10px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.console-log div { display: flex; gap: 12px; align-items: baseline; animation: logIn .25s var(--ease) 1; }
.console-log time { font-size: 11px; direction: ltr; font-variant-numeric: tabular-nums; color: var(--muted); flex-shrink: 0; }
.console-log span::before { content: "✓"; color: var(--accent); font-weight: 700; margin-inline-end: 6px; }
.console-log div.strong { color: var(--fg); font-weight: 600; }
.console-log div.busy span::before { content: "›"; }
.console-foot { border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .1em; color: var(--muted); direction: ltr; }
.console-foot b { color: var(--fg); letter-spacing: 0; font-weight: 600; }
.console-arrow { position: relative; flex: 1; height: 1px; margin: 0 16px; background: var(--line); overflow: hidden; }
.console-arrow i { position: absolute; inset-block: -1px; width: 28%; left: -30%; background: var(--accent); }
.console.is-done .console-arrow i { animation: sweep .9s cubic-bezier(.4, 0, .2, 1) 1; }

/* ---------- strengths ---------- */
.strengths .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-block: clamp(56px, 7vw, 96px); }
.stat { border-top: 2px solid var(--fg); padding-top: 20px; }
.stat b { display: block; font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; line-height: 1.35; }
.stat span { display: block; margin-top: 10px; font-size: 15.5px; line-height: 1.8; color: var(--muted); text-wrap: pretty; }

/* ---------- partners ---------- */
.partners { border-top: 1px solid var(--line); }
.partners .wrap { padding-block: clamp(56px, 8vw, 110px); }
.partner-list { border-top: 1px solid var(--line); }
.partner {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line);
}
.partner.no-img { grid-template-columns: 1fr; }
.partner-text h3 { font-size: clamp(21px, 2vw, 27px); font-weight: 700; line-height: 1.3; }
.partner-sector { display: block; margin-top: 4px; font-size: 14px; color: var(--accent); }
.partner-text p { margin-top: 12px; font-size: 15.5px; line-height: 1.8; color: var(--muted); max-width: 40rem; text-wrap: pretty; }
.partner-text p.partner-result { margin-top: 14px; padding-inline-start: 12px; border-inline-start: 2px solid var(--accent); color: var(--fg); font-weight: 500; }
.partner-more { display: inline-block; margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.partner-more:hover { text-decoration: underline; text-underline-offset: 5px; }
.partner-shot { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--bg2); }
.partner-shot img { width: 100%; height: auto; display: block; }

/* ---------- request form page ---------- */
.request-page { padding-block: clamp(40px, 6vw, 80px); }
.request-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.request-head h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.25; font-weight: 700; text-wrap: balance; }
.request-head p { margin-top: 16px; font-size: 17px; line-height: 1.85; color: var(--muted); max-width: 34rem; }
.request-head > p:last-child { margin-top: 26px; }
.request-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.request-back:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }
.request-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 36px); }
.form-done { padding: 22px 0; font-size: 17px; line-height: 1.85; font-weight: 600; }

/* ---------- inner pages: case studies + legal ---------- */
.page { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 110px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }
.case-head { margin-top: 28px; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.case-kicker { font-size: 14.5px; color: var(--accent); font-weight: 600; }
.case-head h1 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.25; font-weight: 700; text-wrap: balance; }
.case-lead { margin-top: 18px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.85; color: var(--muted); max-width: 44rem; text-wrap: pretty; }
.case-meta { border-top: 1px solid var(--line); }
.case-meta div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.case-meta dt { font-size: 14px; color: var(--muted); flex-shrink: 0; }
.case-meta dd { font-size: 15px; font-weight: 600; text-align: end; }
.case-shot { margin: clamp(32px, 4vw, 56px) 0 0; }
.case-body { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.case-block { border-top: 2px solid var(--fg); padding-top: 20px; }
.case-block h2 { font-size: 15px; font-weight: 600; color: var(--accent); }
.case-block p { margin-top: 12px; font-size: 16.5px; line-height: 1.9; text-wrap: pretty; }
.case-block p.case-metric { margin-top: 16px; padding-inline-start: 12px; border-inline-start: 2px solid var(--accent); font-weight: 600; }
/* لقطات قابلة للتكبير */
.shot-link { display: block; position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--bg2); cursor: zoom-in; }
.shot-link img { width: 100%; height: auto; display: block; }
.shot-link::after { content: ""; position: absolute; inset-block-end: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(11, 22, 51, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m20 20-4.35-4.35M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0; transition: opacity .15s; }
.shot-link:hover::after, .shot-link:focus-visible::after { opacity: 1; }
@media (hover: none) { .shot-link::after { opacity: .9; } }

/* جولة الشاشات */
.tour { margin-top: clamp(56px, 7vw, 104px); }
.tour-head h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; font-weight: 700; }
.tour-head p { margin-top: 10px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.tour-chapter { margin-top: clamp(36px, 4.5vw, 60px); }
.tour-chapter-title { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--fg); font-size: 17px; font-weight: 700; }
.tour-chapter-title span { font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; direction: ltr; }
.tour-shot { margin: 0; display: grid; grid-template-columns: 4fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.tour-shot figcaption strong { display: block; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.4; }
.tour-shot figcaption span { display: block; margin-top: 10px; font-size: 16px; line-height: 1.9; color: var(--muted); text-wrap: pretty; }
.tour-phones { display: grid; grid-template-columns: repeat(auto-fit, 240px); justify-content: center; gap: clamp(20px, 4vw, 56px); padding-block: clamp(28px, 3.5vw, 44px); }
.tour-phone { margin: 0; }
.tour-phone .shot-link { border: 4px solid var(--frame); border-radius: 20px; }
.tour-phone figcaption { margin-top: 14px; text-align: center; font-size: 15px; font-weight: 600; }

/* نافذة التكبير */
.zoom { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: transparent; color: #fff; }
.zoom[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.zoom::backdrop { background: rgba(8, 14, 32, .94); }
.zoom [hidden] { display: none !important; }
.zoom-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 0; max-width: min(1600px, 100%); }
.zoom-fig img { display: block; max-width: 100%; max-height: calc(100dvh - 190px); width: auto; height: auto; border-radius: 4px; background: #fff; }
.zoom-fig figcaption { max-width: 56rem; text-align: center; }
.zoom-fig strong { display: block; font-size: 17px; font-weight: 700; }
.zoom-fig figcaption span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.8; color: rgba(255, 255, 255, .72); }
.zoom-bar { display: flex; align-items: center; gap: 10px; }
.zoom-count { min-width: 60px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.zoom-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.zoom-btn:hover { background: rgba(255, 255, 255, .12); }
.zoom-btn svg { width: 20px; height: 20px; }
.zoom-prev svg { transform: scaleX(-1); }
html[dir="rtl"] .zoom-prev svg { transform: none; }
html[dir="rtl"] .zoom-next svg { transform: scaleX(-1); }
.zoom-close { margin-inline-start: 12px; }
html:has(.zoom[open]) { overflow: hidden; }
.case-cta { margin-top: clamp(48px, 6vw, 88px); }
.case-cta .band-sub { max-width: 36rem; }
.case-cta-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.case-next { margin-top: clamp(48px, 6vw, 80px); }
.case-next h2 { font-size: 15px; font-weight: 600; color: var(--muted); }
.case-next ul { margin-top: 12px; border-top: 1px solid var(--line); list-style: none; padding: 0; }
.case-next li a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.case-next li a strong { font-size: 18px; font-weight: 600; }
.case-next li a span { font-size: 14px; color: var(--muted); }
.case-next li a:hover strong { text-decoration: underline; text-underline-offset: 6px; }
.legal { max-width: 46rem; }
.legal h1 { margin-top: 28px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.25; font-weight: 700; }
.legal-updated { margin-top: 10px; font-size: 14px; color: var(--muted); }
.legal section { margin-top: 36px; }
.legal section h2 { font-size: 19px; font-weight: 700; }
.legal section p { margin-top: 10px; font-size: 16.5px; line-height: 1.95; color: var(--muted); text-wrap: pretty; }

/* ---------- about ---------- */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; padding-block: clamp(56px, 8vw, 110px); }
.about-big { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.5; font-weight: 600; text-wrap: balance; }
.about-body { margin-top: 24px; font-size: 16.5px; line-height: 1.9; color: var(--muted); max-width: 40rem; text-wrap: pretty; }
.facts { border-top: 1px solid var(--line); }
.fact-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact-row span:first-child { font-size: 14px; color: var(--muted); }
.fact-row span:last-child { font-size: 15px; font-weight: 600; text-align: end; }

/* ---------- promise ---------- */
.promise { background: var(--bg2); border-block: 1px solid var(--line); }
.promise-inner { padding-block: clamp(56px, 7vw, 96px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.promise-mark img { width: 64px; height: auto; margin-inline: auto; }
.promise-mark span { display: block; margin-top: 14px; font-size: 11px; letter-spacing: .2em; color: var(--muted); direction: ltr; }
.promise blockquote { margin: 28px auto 0; max-width: 820px; font-size: clamp(22px, 2.8vw, 36px); font-weight: 700; line-height: 1.45; text-wrap: balance; }
.promise blockquote em { font-style: normal; color: var(--accent); }

/* ---------- sectors ---------- */
.sectors .wrap { padding-block: 36px; display: grid; grid-template-columns: 4fr 8fr; gap: 24px; align-items: baseline; }
.sectors { border-bottom: 1px solid var(--line); }
.sectors-note { font-size: 14px; color: var(--muted); }
.sector-list { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 15px; font-weight: 500; }
.sector-list span { padding: 3px 0; }
.sector-list span + span::before { content: ""; display: inline-block; width: 1px; height: 14px; background: var(--line); margin-inline: 14px; vertical-align: -2px; }

/* ---------- contact ---------- */
.contact .wrap { padding-block: clamp(56px, 8vw, 110px); }
.band { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: clamp(28px, 4vw, 56px); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.band-sub { margin-top: 16px; font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 30rem; }
.contact-lines { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 15px; }
.contact-lines > * { display: flex; gap: 14px; align-items: center; direction: ltr; }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-lines .k { font-size: 11px; letter-spacing: .12em; color: var(--muted); width: 40px; }
.wa-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--accent); }
.wa-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.social-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--fg); }
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.social-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-social { margin-top: 6px; gap: 8px 18px; }
.footer-social .social-link { font-size: 14px; font-weight: 400; color: var(--muted); }
.footer-social .social-link:hover { color: var(--fg); }

.form { display: flex; flex-direction: column; gap: 20px; position: relative; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field textarea { height: 44px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 0 12px; font-size: 16px; color: var(--fg); outline: none; width: 100%; transition: border-color .15s; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { border-color: var(--fg); }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field.invalid input { border-color: var(--err); }
.err { color: var(--err); font-size: 12.5px; }
.chips-field legend { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); font-size: 14px; color: var(--fg); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover span { border-color: var(--fg); }
.chip input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; margin: 0; }
.form .btn { align-self: flex-start; margin-top: 4px; }
.form-hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------- people ---------- */
.people .wrap { padding-block: clamp(56px, 8vw, 110px); }
.people-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 36px; }
.people-note { font-size: 15px; color: var(--muted); max-width: 30rem; }
.people-grid { border-top: 1px solid var(--line); }
.person { display: grid; grid-template-columns: 52px 1fr auto; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.person-ico { width: 52px; height: 60px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--fg); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.person-text strong { display: block; font-size: 19px; font-weight: 700; }
.person-role { display: block; font-size: 14px; color: var(--muted); }
.person-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 14.5px; }
.person-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color .15s; }
.person-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }
.person-links svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }

/* ---------- footer ---------- */
.footer { background: var(--bg2); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 48px 36px; }
.footer-brand img { width: 30px; height: 35px; object-fit: contain; }
.footer-brand > div { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; margin-top: 12px; }
.footer-brand p { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 320px; line-height: 1.8; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); }
.footer-col h4 { margin-bottom: 4px; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.footer-col a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }
.footer-col a[aria-current="page"] { color: var(--fg); }
.footer-mails { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a:hover, .footer-link-btn:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }
.footer-link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.footer-link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- floating whatsapp ---------- */
.wa-float { position: fixed; bottom: 22px; left: 22px; z-index: 45; width: 50px; height: 50px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; }
.wa-float:hover { background: #1ebe5a; }
.wa-float svg { width: 24px; height: 24px; }

/* ---------- keyframes (the only motion on the site) ---------- */
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } }
@keyframes sweep { to { left: 105%; } }
@keyframes linkA { 0%, 26% { transform: translate(-92px, -78px) rotate(0deg); } 44%, 54% { transform: translate(-196px, -168px) rotate(-22deg); } 72%, 100% { transform: translate(-92px, -78px) rotate(0deg); } }
@keyframes linkC { 0%, 26% { transform: translate(92px, 78px) rotate(0deg); } 44%, 54% { transform: translate(196px, 168px) rotate(22deg); } 72%, 100% { transform: translate(92px, 78px) rotate(0deg); } }
@keyframes linkB { 0%, 26% { transform: rotate(0deg) scale(1); } 44%, 54% { transform: rotate(60deg) scale(.86); } 72%, 100% { transform: rotate(0deg) scale(1); } }
@keyframes gapFade { 0%, 30% { opacity: 1; } 38%, 60% { opacity: 0; } 68%, 100% { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  /* ست روابط وزر الوضع: تتحول إلى قائمة الجوال قبل أن تزدحم (main.js يغلقها فوق 1180) */
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .mobile-menu { display: block; position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; overflow: auto; }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .mobile-menu nav { display: flex; flex-direction: column; padding: 16px var(--pad) 40px; }
  .mobile-menu nav a:not(.btn) { font-size: clamp(24px, 6vw, 32px); font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu nav .mobile-tel { font-size: 18px; font-weight: 600; direction: ltr; text-align: start; }
  .mobile-menu nav .btn { margin-top: 24px; justify-content: center; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 1100px) {
  .service { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px 22px; }
  .service-out { grid-column: 3; min-height: 0; }
}
@media (max-width: 900px) {
  :root { --nav-h: 66px; }

  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 56px; }
  .hero-visual { order: 2; }
  .chain { width: min(100%, 380px); }
  .hero-facts { gap: 24px; flex-wrap: wrap; }
  .process-grid, .about-grid, .band-grid, .people-head, .sectors .wrap { grid-template-columns: 1fr; }
  .partner { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .partner-shot { order: -1; }
  .request-grid { grid-template-columns: 1fr; }
  .case-head, .case-body { grid-template-columns: 1fr; }
  .tour-shot { grid-template-columns: 1fr; gap: 16px; }
  .tour-shot figcaption { order: 2; }
  .strengths .wrap { grid-template-columns: 1fr; gap: 28px; }
  .service { grid-template-columns: 32px minmax(0, 1fr); gap: 8px 14px; padding: 22px 0; }
  .service p, .service-out { grid-column: 2; }
  .console { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .person { grid-template-columns: 52px 1fr; }
  .person-links { grid-column: 2; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero-title { font-size: clamp(32px, 9vw, 40px); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-facts { flex-direction: column; gap: 12px; }
  .fact b { font-size: 17px; }
  .band { padding: 24px 18px; }
  .band-grid { gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .node { min-width: 0; width: 38%; padding: 8px 9px; }
  .node-title { font-size: 12px; hyphens: auto; overflow-wrap: anywhere; }
  .node-sub { display: none; }
  .core { width: 26%; }
  .console-head, .console-foot { padding: 0 14px; }
  .console-foot { font-size: 10px; }
  .console-arrow { margin: 0 10px; }
  .step h3 { font-size: 18px; }
  .wa-float { width: 46px; height: 46px; bottom: 16px; left: 16px; }
  .tour-phones { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 20px; }
  .tour-phone { scroll-snap-align: center; }
  .zoom { padding: 10px; }
  .zoom-fig img { max-height: calc(100dvh - 220px); }
}
@media (max-width: 420px) { .brand-text { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .packet { display: none; }
}

/* ---------- pages: each menu item has its own page ---------- */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4.5vw, 60px); }
.page-title { font-size: clamp(32px, 4vw, 54px); line-height: 1.2; font-weight: 800; max-width: 24ch; text-wrap: balance; }
html[lang="en"] .page-title { letter-spacing: -.015em; }
.page-sub { margin-top: 18px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.85; color: var(--muted); max-width: 44rem; text-wrap: pretty; }
.line { display: block; }
.kicker { margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--accent); }
html[lang="en"] .kicker { letter-spacing: .14em; }
.page-head + section { border-top: 0; }
.page-head + section > .wrap { padding-top: clamp(28px, 3.5vw, 48px); }
.request-card { scroll-margin-top: calc(var(--nav-h) + 16px); }
.request-page + .people { border-top: 1px solid var(--line); }

/* ---------- home: a short summary of each page ---------- */
.home-block { border-top: 1px solid var(--line); }
.home-block .wrap { padding-block: clamp(56px, 7vw, 96px); }
.home-flow { background: var(--bg2); }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.block-head .section-sub { max-width: 44rem; }
.more-link { font-size: 15px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.more-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.briefs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--fg); }
.brief { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 6px; border-inline-start: 1px solid var(--line); }
.brief:first-child { border-inline-start: 0; padding-inline-start: 0; }
.brief-num { font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; direction: ltr; width: fit-content; }
.brief strong { font-size: 17px; font-weight: 700; line-height: 1.4; }
.brief-out { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.brief:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.feature { display: flex; flex-direction: column; gap: 2px; }
.feature-shot { display: block; margin-bottom: 14px; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--bg2); }
.feature-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature strong { font-size: 19px; font-weight: 700; line-height: 1.35; }
.feature-sector { font-size: 14px; color: var(--accent); }
.feature:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.flow-step { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--fg); }
.flow-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 600; }
.flow-step strong { font-size: 19px; font-weight: 700; }
.flow-step span:last-child { font-size: 15px; line-height: 1.75; color: var(--muted); text-wrap: pretty; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1000px) {
  .briefs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .brief, .brief:first-child { padding: 18px 0 20px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .brief:nth-child(odd) { padding-inline-end: 20px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .briefs, .flow { grid-template-columns: 1fr; }
  .brief:nth-child(odd) { padding-inline-end: 0; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- partners: a moving strip of logos at the bottom of the home page ---------- */
.partners-strip .wrap { padding-block: clamp(56px, 7vw, 96px) 0; }
.partners-strip-title { margin-inline: auto; text-align: center; }
.logo-strip {
  overflow: hidden; padding-block: clamp(28px, 3.5vw, 44px) clamp(56px, 7vw, 96px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
/* المجموعة مكرّرة مرتين؛ الشريط يتحرك بعرض مجموعة واحدة ثم يعود من البداية دون أن يُلاحظ */
.logo-track { display: flex; width: max-content; animation: logos calc(var(--n, 8) * 3.5s) linear infinite; }
html[dir="rtl"] .logo-track { animation-name: logos-rtl; }
.logo-strip:hover .logo-track { animation-play-state: paused; }
.logo-group { display: flex; gap: 20px; margin: 0; padding: 0 20px 0 0; list-style: none; }
html[dir="rtl"] .logo-group { padding: 0 0 0 20px; }
.logo-tile { flex-shrink: 0; width: 168px; height: 96px; display: grid; place-items: center; padding: 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s; }
.logo-tile:hover { border-color: var(--fg); }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes logos { to { transform: translateX(-50%); } }
@keyframes logos-rtl { to { transform: translateX(50%); } }
@media (max-width: 560px) { .logo-tile { width: 132px; height: 78px; padding: 10px 14px; } .logo-group { gap: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .logo-strip { -webkit-mask-image: none; mask-image: none; }
  .logo-track { width: auto; animation: none; }
  .logo-group { flex-wrap: wrap; justify-content: center; padding: 0 var(--pad); }
  .logo-group[aria-hidden] { display: none; }
}

/* ---------- thank-you page ---------- */
.thanks-inner { padding-block: clamp(64px, 10vw, 140px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.thanks-inner .page-title, .thanks-inner .page-sub { margin-inline: auto; }
.thanks-mark { width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: var(--accent-ink); font-size: 30px; font-weight: 700; }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.thanks-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .thanks-actions .btn { width: 100%; justify-content: center; } }

/* ---------- cookie consent banner (main.js) ---------- */
/* بطاقة ثابتة أسفل الشاشة في جهة البداية، بعيداً عن زر واتساب في اليسار. الزرّان بنفس الحجم: الرفض سهل مثل الموافقة */
.consent {
  position: fixed; z-index: 60; bottom: 20px; right: 20px; width: min(430px, calc(100% - 40px));
  padding: 18px 20px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(11, 22, 51, .14); animation: consent-in .3s var(--ease) both;
}
:root[data-theme="dark"] .consent { background: var(--bg2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.consent p { font-size: 14px; line-height: 1.75; color: var(--muted); }
.consent p a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.consent p a:hover { text-decoration: underline; text-underline-offset: 4px; }
.consent-actions { display: flex; gap: 10px; margin-top: 14px; }
.consent-actions .btn { flex: 1 1 0; justify-content: center; }
.consent.is-leaving { animation: consent-out .22s ease-in both; }
@keyframes consent-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes consent-out { to { opacity: 0; transform: translateY(14px); } }
@media (max-width: 560px) {
  .consent { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 16px; }
  body.consent-open .wa-float { visibility: hidden; }
}

/* ---------- motion between pages, languages and modes ---------- */
/* الانتقال بين الصفحات: المحتوى يتلاشى ويصعد قليلاً، والهيدر وزر واتساب ثابتان، وخط القائمة ينزلق إلى رابط الصفحة الجديدة.
   التفعيل (@view-transition) في <style> داخل <head> في index.html لا هنا: Chrome يلغي الانتقال إذا اكتمل ملف تنسيق آخر
   (خط Google) قبل هذا الملف. المتصفح الذي لا يدعم View Transitions ينتقل مباشرة، ومن فعّل تقليل الحركة لا يرى شيئاً منها */
.site-header { view-transition-name: site-header; }
.nav-mark { view-transition-name: nav-mark; }
.wa-float { view-transition-name: wa-float; }
::view-transition-old(root) { animation: page-out .16s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: page-in .34s cubic-bezier(.2, .7, .2, 1) .06s both; }
::view-transition-group(nav-mark) { animation-duration: .4s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }

/* تغيير اللغة وتغيير الوضع يشملان الصفحة كلها: لا يُفصل الهيدر ولا زر واتساب، والجديد يُرسم فوق القديم مباشرة */
html[data-vt] .site-header, html[data-vt] .nav-mark, html[data-vt] .wa-float { view-transition-name: none; }
html[data-vt]::view-transition-old(root), html[data-vt]::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* تغيير اللغة (data-vt="lang" من سكربت <head>): الصفحة الجديدة تُمسح فوق القديمة بحافة ناعمة في اتجاه قراءتها،
   من اليمين للعربي ومن اليسار للإنجليزي */
html[data-vt="lang"]::view-transition-new(root) {
  mask-image: linear-gradient(to right, transparent 46%, #000 54%);
  mask-size: 250% 100%;
  mask-repeat: no-repeat;
  animation: wipe-rtl .7s cubic-bezier(.65, 0, .35, 1) both;
}
html[data-vt="lang"][dir="ltr"]::view-transition-new(root) {
  mask-image: linear-gradient(to right, #000 46%, transparent 54%);
  animation-name: wipe-ltr;
}
@keyframes wipe-rtl { from { mask-position: 0% 0; } to { mask-position: 100% 0; } }
@keyframes wipe-ltr { from { mask-position: 100% 0; } to { mask-position: 0% 0; } }

/* تغيير الوضع (data-vt="theme"): main.js يوسّع دائرة الوضع الجديد من الزر.
   ومتصفح بلا View Transitions تتدرّج فيه الألوان بدل الدائرة */
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color .4s, color .4s, border-color .4s, fill .4s, stroke .4s, opacity .25s, transform .5s !important;
}
