/* =========================================================================
   CALIQ | شركة كال التقنية — الأنماط
   ========================================================================= */

/* ---------- الخطوط ----------
   Thmanyah Serif Text: ضع ملفات woff2 في assets/fonts بالأسماء أدناه.
   حتى إضافتها يُستخدم IBM Plex Sans Arabic تلقائيًا كخط احتياطي. */
@font-face { font-family: "Thmanyah Serif Text"; font-weight: 300; font-display: swap;
  src: local("Thmanyah Serif Text Light"), url("../assets/fonts/thmanyah-serif-text-light.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Text"; font-weight: 400; font-display: swap;
  src: local("Thmanyah Serif Text"), local("Thmanyah Serif Text Regular"), url("../assets/fonts/thmanyah-serif-text-regular.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Text"; font-weight: 500; font-display: swap;
  src: local("Thmanyah Serif Text Medium"), url("../assets/fonts/thmanyah-serif-text-medium.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Text"; font-weight: 700; font-display: swap;
  src: local("Thmanyah Serif Text Bold"), url("../assets/fonts/thmanyah-serif-text-bold.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Text"; font-weight: 900; font-display: swap;
  src: local("Thmanyah Serif Text Black"), url("../assets/fonts/thmanyah-serif-text-black.woff2") format("woff2"); }

/* ---------- المتغيرات ---------- */
:root {
  --blue: #005BFC;
  --blue-600: #004BE0;
  --cyan: #00B8FC;
  --ink: #0C0C0B;
  --ink-2: #2A2F38;
  --ink-soft: #1C2536;
  --muted: #5B6475;
  --line: #E3E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --blue-50: #EEF4FF;
  --danger: #D92D3A;
  --success: #12A150;
  --grad: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 70%);
  --grad-v: linear-gradient(180deg, var(--cyan), var(--blue));

  --font-ar: "Thmanyah Serif Text", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font: var(--font-ar);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(12, 20, 40, .05), 0 2px 8px rgba(12, 20, 40, .04);
  --shadow: 0 10px 30px -10px rgba(12, 30, 80, .18);
  --shadow-lg: 0 30px 60px -20px rgba(0, 60, 180, .28);
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="en"] { --font: var(--font-en); }

/* ---------- الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.85; color: var(--ink-2);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.7; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0; font-weight: 700; }
html[lang="en"] :is(h1, h2, h3) { letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(0, 91, 252, .16); }
:focus-visible { outline: 3px solid rgba(0, 91, 252, .55); outline-offset: 3px; border-radius: 8px; }

.icon { width: 24px; height: 24px; flex-shrink: 0; }
[dir="rtl"] .icon--arrow { transform: scaleX(-1); }

.container { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 200; padding: 10px 18px; border-radius: 10px;
  background: var(--ink); color: #fff; transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }
.muted { color: var(--muted); }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- الأزرار ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 28px;
  border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .btn__icon { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .icon--arrow { transform: scaleX(-1) translateX(4px); }
.btn--primary { background: var(--blue); background-image: linear-gradient(135deg, #1A8BFF, var(--blue) 60%); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 91, 252, .55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0, 91, 252, .6); }
.btn--ghost { background: rgba(255, 255, 255, .8); border-color: var(--line); color: var(--ink); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--outline { border-color: rgba(0, 91, 252, .3); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .4); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; font-size: 15px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }

/* ---------- الهيدر ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .nav-open .site-header {
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: rgba(227, 232, 240, .8);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; color: var(--ink); flex-shrink: 0; }
.brand .logo-svg { height: 30px; width: auto; }
.nav { margin-inline-start: auto; }
/* الشاشات الواسعة: الشعار | الروابط في المنتصف | الأزرار */
@media (min-width: 1024px) {
  .header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav { margin: 0; }
  .header__actions { justify-self: end; }
}
.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px; font-size: 15.5px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--blue); background: var(--blue-50); }
.nav__link[aria-current="page"] { color: var(--blue); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; bottom: 2px; inset-inline: 0; margin-inline: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
}
.nav__mobile-cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14.5px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .7); transition: border-color .2s, color .2s;
}
.lang-btn .icon { width: 18px; height: 18px; color: var(--blue); }
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-btn[lang="en"] { font-family: var(--font-en); }
.lang-btn[lang="ar"] { font-family: var(--font-ar); }
.lang-btn__short { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; color: var(--ink); border: 1.5px solid var(--line); }
.menu-btn__close { display: none; }
.nav-open .menu-btn__open { display: none; }
.nav-open .menu-btn__close { display: block; }

/* ---------- خلفيات الأقسام البطولية ---------- */
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent); mask-image: linear-gradient(180deg, #000 65%, transparent);
}
.hero-bg__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0, 91, 252, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 91, 252, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; animation: drift 18s ease-in-out infinite alternate; }
.blob, .page-hero__mark { display: none; }
.blob--2 { width: 380px; height: 380px; background: var(--blue); bottom: -160px; inset-inline-start: -120px; opacity: .18; animation-delay: -6s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }

/* ---------- الواجهة الرئيسية ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vw, 80px)) 0 clamp(24px, 4vw, 48px); overflow: hidden; background: linear-gradient(180deg, #F3F7FF 0%, #fff 100%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 14px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue); font-size: 14.5px; font-weight: 600; margin-bottom: 20px; line-height: 1.6;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(0, 184, 252, .18); }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; line-height: 1.25; margin-bottom: 24px; }
html[lang="en"] .hero__title { line-height: 1.08; }
.hero__text { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 580px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(0, 91, 252, .18); animation: spin 60s linear infinite; }
.orbit--2 { inset: 14%; border-style: solid; border-color: rgba(0, 184, 252, .16); animation-duration: 40s; animation-direction: reverse; }
.orbit::before { content: ""; position: absolute; top: 12%; left: 12%; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 6px rgba(0, 184, 252, .15); }
.orbit--2::before { top: auto; bottom: 4%; left: 60%; background: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__mark-card {
  position: absolute; inset: 26%; border-radius: 36px; background: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(0, 91, 252, .08);
}
.hero__mark { width: 62%; height: auto; }
.mark-svg .mk-s1, .mark-svg .mk-s2, .mark-svg .mk-s3 { animation: stripe 1s var(--ease) both; }
.mark-svg .mk-s1 { animation-delay: .5s; } .mark-svg .mk-s2 { animation-delay: .65s; } .mark-svg .mk-s3 { animation-delay: .8s; }
@keyframes stripe { from { opacity: 0; transform: translate(-30px, 50px); } }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 16px; background: #fff;
  box-shadow: var(--shadow); font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; animation: float 6s ease-in-out infinite;
}
.chip .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--grad); color: #fff; }
.chip--1 { top: 8%; inset-inline-start: 0; }
.chip--2 { top: 22%; inset-inline-end: -4%; animation-delay: -1.5s; }
.chip--3 { bottom: 20%; inset-inline-start: -6%; animation-delay: -3s; }
.chip--4 { bottom: 5%; inset-inline-end: 6%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- الواجهة مع المسارات الضوئية (فاتحة) ---------- */
.hero--lights { min-height: min(100svh, 900px); display: flex; align-items: center; padding-bottom: clamp(48px, 6vw, 88px); background: linear-gradient(180deg, #F3F7FF, #fff); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero__canvas.is-on { opacity: 1; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .55) 42%, transparent 68%); }
[dir="rtl"] .hero__shade { background: linear-gradient(270deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .55) 42%, transparent 68%); }
.hero--lights::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; pointer-events: none; background: linear-gradient(180deg, transparent, #fff); }
.hero--lights .hero__mark-card { background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero--lights .chip { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 1023px) { .hero__shade, [dir="rtl"] .hero__shade { background: linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .6) 50%, transparent 75%); } }

/* ---------- الأقسام ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.85rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.section-text { font-size: 1.1rem; color: var(--muted); }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-row .section-head { margin-bottom: 0; }
.center-action { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }
.lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 18px; }
.block-title { font-size: 1.6rem; margin: clamp(48px, 6vw, 72px) 0 24px; }

.icon-box {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad); color: #fff; box-shadow: 0 10px 20px -8px rgba(0, 91, 252, .5);
}
.icon-box .icon { width: 26px; height: 26px; }
.icon-box--soft { background: var(--blue-50); color: var(--blue); box-shadow: none; }
.icon-box--light { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.icon-box--lg { width: 72px; height: 72px; border-radius: 20px; }
.icon-box--lg .icon { width: 32px; height: 32px; }

.check-list { display: grid; gap: 12px; margin: 8px 0 32px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.check-list .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--blue-50); color: var(--blue); stroke-width: 2.5; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--blue-50);
  color: var(--blue); font-size: 13.5px; font-weight: 600; line-height: 1.7;
}
.tag .icon { width: 15px; height: 15px; }

/* من نحن (الرئيسية) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-visual { position: relative; aspect-ratio: 5 / 4.4; }
.about-visual .about-visual__web { position: absolute; inset: 0 14% 16% 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-visual .about-visual__app { position: absolute; bottom: 0; inset-inline-end: 0; width: 40%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 6px solid #fff; }
[dir="rtl"] .about-visual .about-visual__web { inset: 0 0 16% 14%; }

/* الخدمات */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); transform: scaleX(0); transition: transform .4s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { font-size: 1.25rem; margin: 24px 0 10px; }
.service-card p { color: var(--muted); font-size: 15.5px; padding-bottom: 36px; }
.service-card .link-arrow {
  position: absolute; bottom: 24px; inset-inline-end: 24px; width: 44px; height: 44px; border-radius: 50%; justify-content: center;
  border: 1.5px solid var(--line); transition: background-color .25s, border-color .25s, color .25s;
}
.service-card:hover .link-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }

/* بطاقات الخدمات (الرئيسية) */
.services-grid:has(.svc-card) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.svc-card {
  --dur: .35s; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; color: inherit; transition: transform var(--dur) ease-out, box-shadow var(--dur) ease-out, border-color var(--dur);
}
.svc-media { position: relative; height: 176px; overflow: hidden; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.svc-media__inner { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .6s ease-out; }
.svc-media__inner::before {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(rgba(255, 255, 255, .45) 1px, transparent 1px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.svc-media__stripes { position: absolute; width: 150px; bottom: -14px; inset-inline-end: -10px; fill: #fff; opacity: .16; }
[dir="rtl"] .svc-media__stripes { transform: scaleX(-1); }
/* رسم خاص بكل خدمة (SERVICE_ART في app.js) */
.svc-art { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .3; transition: transform .8s var(--ease), opacity .4s; }
.svc-art * { vector-effect: non-scaling-stroke; }
.svc-art .f { fill: rgba(255, 255, 255, .35); }
.svc-art .dash { stroke-dasharray: 5 7; }
@keyframes svc-flow { to { stroke-dashoffset: -24; } }
.svc-media__icon {
  position: relative; width: 80px; height: 80px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 18px 30px -12px rgba(0, 20, 80, .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.svc-media__icon .icon { width: 38px; height: 38px; stroke-width: 1.6; }
.svc-num {
  position: absolute; top: 16px; inset-inline-start: 16px; padding: 3px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  color: var(--ink); font: 600 12px/1.7 var(--font-en); letter-spacing: .04em;
}
.svc-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; flex: 1; }
.svc-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
html[lang="en"] .svc-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; }
.svc-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1) 18%, transparent); }
.svc-title { font-size: 1.32rem; }
.svc-desc { color: var(--muted); font-size: 15px; flex: 1; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tags li { padding: 3px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.svc-cta {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 6px; padding: 13px 18px; border-radius: 14px; background: var(--bg-alt); color: var(--ink); font-weight: 600; font-size: 15px;
  transition: color var(--dur) ease-out;
}
.svc-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, var(--a1), var(--a2));
  transform: scaleX(0); transform-origin: left center; transition: transform var(--dur) ease-out;
}
[dir="rtl"] .svc-cta::before { transform-origin: right center; }
.svc-cta .icon { width: 20px; height: 20px; transition: transform var(--dur) ease-out; }
@media (hover: hover) {
  .svc-card.reveal.is-visible:hover { transform: translateY(-5px); transition-delay: 0ms; }
  .svc-card:hover { border-color: transparent; box-shadow: 0 1px 2px rgba(12, 30, 80, .06), 0 12px 24px -10px rgba(0, 40, 120, .14), 0 32px 60px -24px rgba(0, 70, 200, .28); }
  .svc-card:hover .svc-media__inner { transform: scale(1.06); }
  .svc-card:hover .svc-art { opacity: .42; transform: translateY(-4px); }
  .svc-card:hover .svc-art .dash { animation: svc-flow 1s linear infinite; }
  .svc-card:hover .svc-cta { color: #fff; }
  .svc-card:hover .svc-cta::before { transform: scaleX(1); }
  .svc-card:hover .svc-cta .icon { transform: rotate(-35deg); }
  [dir="rtl"] .svc-card:hover .svc-cta .icon { transform: scaleX(-1) rotate(-35deg); }
}
.svc-card:focus-visible { outline: 3px solid rgba(0, 91, 252, .55); outline-offset: 4px; }
.svc-card:focus-visible .svc-cta { color: #fff; }
.svc-card:focus-visible .svc-cta::before { transform: scaleX(1); }

/* المشاريع */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
/* الجوال: صف واحد يُسحب أفقيًا ويمتد حتى حافتي الشاشة */
@media (max-width: 720px) {
  .filters {
    flex-wrap: nowrap; justify-content: flex-start; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scroll-padding-inline: var(--gutter); margin-bottom: 28px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; white-space: nowrap; scroll-snap-align: start; }
}
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.projects-grid--2 { grid-template-columns: repeat(2, 1fr); }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.project-card { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card__link { display: flex; flex-direction: column; height: 100%; }
.project-card .cover { aspect-ratio: 16 / 11; }
.projects-grid--2 .project-card .cover { aspect-ratio: 16 / 10; }
.project-card:hover .mock { transform: scale(1.04); }
.project-card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card__body .tag { align-self: flex-start; }
.project-card__title { font-size: 1.3rem; }
.project-card__body p { color: var(--muted); font-size: 15.5px; flex: 1; }
.project-card:hover .link-arrow .icon { transform: translateX(4px); }
[dir="rtl"] .project-card:hover .link-arrow .icon { transform: scaleX(-1) translateX(4px); }

/* ---------- الأغلفة والنماذج التصميمية ---------- */
.cover {
  position: relative; overflow: hidden; container-type: inline-size;
  background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(135deg, var(--c1, var(--blue)), var(--c2, var(--cyan)));
}
.cover::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.cover--img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .cover--img img { transform: scale(1.05); }
.mock { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .6s var(--ease); direction: ltr; }
.mock i, .mock b, .mock span, .mock em { display: block; }
.ui-lines { display: grid; gap: 1.6cqw; }
.ui-lines i { height: 1.6cqw; width: var(--w); border-radius: 99px; background: #E6EBF3; }
.ui-lines--lg i:first-child { height: 3cqw; background: color-mix(in srgb, var(--c1) 80%, #000 0%); }

.browser {
  width: 76%; aspect-ratio: 16 / 10.5; background: #fff; border-radius: 2cqw; overflow: hidden; translate: 0 8%;
  box-shadow: 0 4cqw 8cqw -2cqw rgba(0, 20, 60, .45);
}
.browser__bar { height: 7%; display: flex; align-items: center; gap: 1cqw; padding: 0 2.4cqw; background: #F1F4F9; }
.browser__bar span { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #D5DCE7; }
.browser__bar em { margin-inline-start: 3cqw; width: 30%; height: 45%; border-radius: 99px; background: #fff; }
/* موقع */
.web-nav { display: flex; align-items: center; gap: 2cqw; padding: 2.4cqw 4cqw; }
.web-nav b { width: 9cqw; height: 2.4cqw; border-radius: 99px; background: var(--c1); margin-inline-end: auto; }
.web-nav i { width: 5cqw; height: 1.3cqw; border-radius: 99px; background: #E6EBF3; }
.web-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; padding: 2cqw 4cqw; align-items: center; }
.web-hero__img { aspect-ratio: 4 / 3; border-radius: 1.6cqw; background: linear-gradient(135deg, var(--c2), var(--c1)); opacity: .9; }
.web-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; padding: 2cqw 4cqw; }
.web-cards b { height: 8cqw; border-radius: 1.4cqw; background: #F1F4F9; }
/* منصة */
.plat { display: grid; grid-template-columns: 22% 1fr; height: 93%; }
.plat__side { background: #F6F8FC; padding: 3cqw 2.4cqw; display: grid; align-content: start; gap: 2cqw; }
.plat__side b { height: 3cqw; width: 70%; border-radius: 99px; background: var(--c1); margin-bottom: 1.4cqw; }
.plat__side i { height: 1.5cqw; border-radius: 99px; background: #E3E8F0; }
.plat__side i:nth-child(2) { background: color-mix(in srgb, var(--c1) 30%, #fff); }
.plat__main { padding: 3cqw; display: grid; align-content: start; gap: 2.4cqw; }
.plat__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; }
.plat__grid b { height: 11cqw; border-radius: 1.4cqw; background: #F1F4F9; }
.plat__grid b:first-child { background: linear-gradient(135deg, var(--c1), var(--c2)); }
/* نظام */
.dash { padding: 3cqw; display: grid; gap: 2.4cqw; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.dash__kpis b { height: 7cqw; border-radius: 1.4cqw; background: #F1F4F9; border-inline-start: .8cqw solid var(--c1); }
.dash__row { display: grid; grid-template-columns: 1fr 30%; gap: 2cqw; }
.dash__chart { height: 17cqw; display: flex; align-items: flex-end; gap: 1.4cqw; padding: 2cqw; border-radius: 1.4cqw; background: #F6F8FC; }
.dash__chart i { flex: 1; height: var(--h); border-radius: .8cqw .8cqw 0 0; background: linear-gradient(180deg, var(--c2), var(--c1)); }
.dash__donut { border-radius: 1.4cqw; background: #F6F8FC; position: relative; }
.dash__donut::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: conic-gradient(var(--c1) 0 62%, var(--c2) 62% 84%, #E3E8F0 84%); -webkit-mask: radial-gradient(circle, transparent 48%, #000 50%); mask: radial-gradient(circle, transparent 48%, #000 50%); }
/* تطبيق */
.mock--app { grid-template-columns: auto; }
.phone {
  position: relative; width: 30cqw; aspect-ratio: 9 / 18.5; background: #fff; border-radius: 4.6cqw; border: 1.1cqw solid #0C0C0B;
  padding: 5cqw 2.6cqw 2.6cqw; display: flex; flex-direction: column; gap: 2.2cqw; translate: 0 12%; z-index: 2;
  box-shadow: 0 4cqw 8cqw -2cqw rgba(0, 20, 60, .5); overflow: hidden;
}
.phone--back { position: absolute; translate: -60% 20%; rotate: -8deg; z-index: 1; opacity: .95; }
.phone__notch { position: absolute; top: 1.4cqw; left: 50%; translate: -50% 0; width: 9cqw; height: 2cqw; border-radius: 99px; background: #0C0C0B; }
.ui-hello { display: grid; gap: 1.2cqw; }
.ui-hello i { height: 1.5cqw; }
.ui-hello i:first-child { width: 55% !important; height: 2.2cqw; background: var(--ink); border-radius: 99px; }
.ui-hello i:last-child { width: 80% !important; height: 1.3cqw; background: #E6EBF3; border-radius: 99px; }
.ui-banner { height: 13cqw; border-radius: 2cqw; background: linear-gradient(135deg, var(--c1), var(--c2)); flex-shrink: 0; }
.ui-list { display: grid; gap: 1.6cqw; }
.ui-list span { height: 5.4cqw; border-radius: 1.6cqw; background: #F1F4F9; }
.ui-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding-top: 1.6cqw; border-top: 1px solid #EEF1F6; }
.ui-tabbar b { width: 2.6cqw; height: 2.6cqw; border-radius: .8cqw; background: #D5DCE7; }
.ui-tabbar b:first-child { background: var(--c1); }
.ui-head { height: 11cqw; margin: -2.4cqw -2.6cqw 0; background: linear-gradient(135deg, var(--c2), var(--c1)); flex-shrink: 0; }
.ui-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; }
.ui-tiles b { height: 8cqw; border-radius: 1.6cqw; background: #F1F4F9; }
.about-visual__app .phone { width: 58cqw; translate: 0 18%; }
.about-visual__app .phone--back { display: none; }

/* ---------- الشركاء ---------- */
.logos-title { text-align: center; font-weight: 600; color: var(--muted); margin: -16px 0 28px; font-size: 15px; }
.marquee {
  display: flex; overflow: hidden; user-select: none; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee + .marquee { margin-top: 16px; }
.marquee__track { display: flex; flex-shrink: 0; gap: 20px; padding-inline-end: 20px; min-width: 100%; justify-content: space-around; animation: marquee var(--dur, 40s) linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes marquee-rtl { to { transform: translateX(100%); } }
.logo-item a, .logo-item > img { display: grid; place-items: center; }
.logo-item {
  width: 200px; height: 92px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 20px 28px;
  transition: border-color .3s, box-shadow .3s;
}
/* --logo-h: ارتفاع مخصص من data.js، ولا يتجاوز المساحة الداخلية للبطاقة */
.logo-item img, .logo-grid__item img { max-height: min(var(--logo-h, 46px), var(--logo-max)); max-width: 100%; width: auto; object-fit: contain; transition: transform .3s var(--ease); }
.logo-item { --logo-max: 52px; }
.logo-grid__item { --logo-max: 72px; }
.logo-item:hover img, .logo-grid__item:hover img { transform: scale(1.06); }
.logo-item:hover { border-color: rgba(0, 91, 252, .3); box-shadow: var(--shadow-sm); }
.logo-grid { --cols: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.logo-grid__item { flex: 0 0 calc((100% - 20px * (var(--cols) - 1)) / var(--cols)); height: 120px; display: grid; place-items: center; padding: 24px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); transition: background-color .3s; }
.logo-grid__item:hover { background: #fff; }

/* ---------- لماذا كال ---------- */
.why { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.why__head { position: sticky; top: calc(var(--header-h) + 40px); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s; }
.feature-card:nth-child(even) { translate: 0 32px; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-card h3 { font-size: 1.2rem; margin: 20px 0 8px; }
.feature-card p { color: var(--muted); font-size: 15.5px; }

/* ---------- كيف نعمل ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.process.reveal { opacity: 1; transform: none; }
/* المسار ثم امتلاؤه تدريجيًا عند الظهور */
.process::before, .process::after { content: ""; position: absolute; top: 27px; inset-inline: 10%; height: 3px; border-radius: 3px; }
.process::before { background: var(--line); }
.process::after { background: linear-gradient(90deg, var(--cyan), var(--blue)); transform: scaleX(0); transform-origin: left center; transition: transform 1.8s var(--ease) .2s; }
[dir="rtl"] .process::after { background: linear-gradient(270deg, var(--cyan), var(--blue)); transform-origin: right center; }
.process.is-visible::after { transform: scaleX(1); }
.process__step { position: relative; display: flex; flex-direction: column; align-items: center; }
.process__node {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); color: var(--muted); font: 700 16px/1 var(--font-en);
  box-shadow: 0 0 0 8px var(--bg-alt); transition: background .5s, color .5s, border-color .5s, box-shadow .5s;
  transition-delay: calc(var(--i) * .32s + .25s);
}
.process.is-visible .process__node { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 8px var(--bg-alt), 0 12px 24px -6px rgba(0, 91, 252, .55); }
.process__card {
  position: relative; width: 100%; flex: 1; margin-top: 24px; padding: 28px 22px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-align: center;
  opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .35s, border-color .35s;
  transition-delay: calc(var(--i) * .32s + .35s);
}
.process__card::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; background: #fff;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); transform: translateX(-50%) rotate(45deg);
}
.process.is-visible .process__card { opacity: 1; transform: none; }
.process__icon { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); transition: background .35s, color .35s; }
.process__icon .icon { width: 26px; height: 26px; }
.process__step h3 { font-size: 1.13rem; margin-bottom: 8px; }
.process__step p { font-size: 14.5px; color: var(--muted); }
@media (hover: hover) {
  .process.is-visible .process__step:hover .process__card { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; transition-delay: 0s; }
  .process__step:hover .process__icon { background: var(--grad); color: #fff; }
}

/* ---------- مجالات الحلول ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sector-card { padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--bg-alt), #fff); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sector-card h3 { font-size: 1.2rem; margin: 22px 0 8px; }
.sector-card p { color: var(--muted); font-size: 15.5px; }

/* ---------- الأسئلة الشائعة ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 14px; }
.faq__item { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: rgba(0, 91, 252, .25); box-shadow: var(--shadow-sm); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex-shrink: 0; transition: transform .3s var(--ease), background-color .3s, color .3s; }
.faq__icon .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(180deg); background: var(--blue); color: #fff; }
.faq__answer { padding: 0 26px 24px; color: var(--muted); }
.faq__item[open] .faq__answer { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- شريط الدعوة ---------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(40px, 6vw, 72px); border-radius: 32px; color: #fff;
  background: radial-gradient(circle at 15% 120%, rgba(0, 184, 252, .45), transparent 45%), radial-gradient(circle at 90% -20%, rgba(0, 91, 252, .55), transparent 55%), var(--ink-soft);
}
.cta-band__content { position: relative; max-width: 640px; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .75); font-size: 1.08rem; }
.cta-band .btn { position: relative; flex-shrink: 0; }
.cta-band__mark { position: absolute; width: 420px; height: auto; inset-inline-end: 12%; bottom: -120px; opacity: .1; pointer-events: none; }

/* ---------- رأس الصفحات الداخلية ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(56px, 7vw, 88px); background: linear-gradient(180deg, #F3F7FF, #fff); }
.page-hero__inner { position: relative; z-index: 1; max-width: 820px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.page-hero__title { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 20px; }
.page-hero__text { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--muted); }
.page-hero__text + .page-hero__text { margin-top: 10px; }
.page-hero__mark { position: absolute; width: 300px; height: auto; inset-inline-end: -40px; bottom: -70px; opacity: .07; z-index: 0; pointer-events: none; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumb__sep { opacity: .4; }
.page-hero--project .tag { margin-bottom: 16px; }

/* ---------- من نحن ---------- */
.statement { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.8; color: var(--ink); font-weight: 500; text-align: center; max-width: 900px; margin: 0 auto clamp(48px, 6vw, 72px); }
html[lang="en"] .statement { line-height: 1.5; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card {
  position: relative; overflow: hidden; padding: clamp(32px, 4vw, 48px); border-radius: var(--radius-lg);
  background: radial-gradient(circle at 100% 0%, rgba(0, 184, 252, .14), transparent 50%), linear-gradient(160deg, #fff 30%, var(--blue-50));
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.vm-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.vm-card.reveal.is-visible:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; transition-delay: 0ms; }
.vm-card__head { position: relative; display: flex; align-items: center; justify-content: space-between; }
.vm-card__num { font: 800 3rem/1 var(--font-en); color: var(--blue); opacity: .1; }
.vm-card__mark { position: absolute; width: 220px; height: auto; inset-inline-end: -40px; bottom: -50px; opacity: .06; pointer-events: none; transition: transform .6s var(--ease), opacity .4s; }
.vm-card:hover .vm-card__mark { transform: translateY(-8px) scale(1.04); opacity: .1; }
.vm-card h2 { position: relative; font-size: 1.7rem; margin: 26px 0 12px; }
.vm-card p { position: relative; color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value-card { padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-align: center; transition: transform .35s var(--ease), box-shadow .35s; }
.value-card .icon-box { margin: 0 auto; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.value-card p { font-size: 15px; color: var(--muted); }

/* ---------- صفحة الخدمات ---------- */
.services-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-row {
  position: relative; display: flex; gap: 24px; padding: clamp(28px, 3.5vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.service-row:hover, .service-row:target { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(0, 91, 252, .25); }
.service-row__num { position: absolute; top: 12px; inset-inline-end: 24px; font-family: var(--font-en); font-size: 4.5rem; font-weight: 800; line-height: 1; color: var(--blue); opacity: .06; }
.service-row h2 { font-size: 1.35rem; margin-bottom: 10px; }
.service-row p { color: var(--muted); margin-bottom: 18px; }

/* ---------- تفاصيل المشروع ---------- */
.project-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; }
.project-meta div { padding: 12px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: start; }
.project-meta dt { font-size: 13px; color: var(--muted); }
.project-meta dd { margin: 0; font-weight: 700; color: var(--ink); }
.project-cover { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); }
.project-cover .cover { aspect-ratio: 16 / 8; }
.project-cover .browser { width: 56%; }
.project-cover .phone { width: 18cqw; }
.project-layout { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 5vw, 64px); margin-top: clamp(48px, 6vw, 72px); align-items: start; }
.project-main { display: grid; gap: 36px; }
.project-block h2 { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; margin-bottom: 12px; }
.project-block h2 .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.project-block p { color: var(--muted); font-size: 1.08rem; }
.project-aside { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--line); }
.project-aside h2 { font-size: 1.3rem; margin-bottom: 16px; }
.project-aside .check-list { margin-bottom: 24px; }
.project-aside .check-list:last-child { margin-bottom: 0; }
.project-aside .btn { width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery__item .cover, .gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; overflow: hidden; }
.gallery__zoom img { transition: transform .5s var(--ease); }
.gallery__zoom:hover img { transform: scale(1.05); }
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 64px 80px;
  background: rgba(8, 12, 24, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeDown .3s var(--ease);
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .12); transition: background-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 20px; inset-inline-end: 20px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__prev { inset-inline-start: 20px; }
.lightbox__next { inset-inline-end: 20px; }
.lightbox__prev .icon { transform: scaleX(-1); }
[dir="rtl"] .lightbox__prev .icon { transform: none; }
@media (max-width: 720px) { .lightbox { padding: 72px 12px; } .lightbox__nav { top: auto; bottom: 16px; translate: none; } }

/* ---------- تواصل معنا ---------- */
.contact { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact__form-card { padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact__form-card > h2 { font-size: 1.75rem; margin-bottom: 8px; }
.contact__form-card > .muted { margin-bottom: 32px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; color: var(--ink); }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; font-size: 13.5px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-alt);
  font-size: 16px; transition: border-color .2s, background-color .2s, box-shadow .2s; outline: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.field input[dir="ltr"] { text-align: left; }
[dir="rtl"] .field input[dir="ltr"]::placeholder { text-align: right; }
.field :is(input, select, textarea):hover { border-color: #C9D3E2; }
.field :is(input, select, textarea):focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 91, 252, .12); }
.field ::placeholder { color: #98A1B2; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-inline-end: 48px; cursor: pointer; }
.select .icon { position: absolute; top: 50%; inset-inline-end: 16px; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.field__error { font-size: 13.5px; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.has-error :is(input, select, textarea) { border-color: var(--danger); background: #FFF7F7; }
.has-error :is(input, select, textarea):focus { box-shadow: 0 0 0 4px rgba(217, 45, 58, .12); }
.form__status { padding: 12px 16px; border-radius: 12px; background: #FFF1F2; color: var(--danger); font-size: 15px; margin-bottom: 16px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; inset-inline-start: -9999px; }
.form-success { text-align: center; padding: 32px 0 8px; outline: none; animation: fadeDown .5s var(--ease); }
.form-success__icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 0 0 12px var(--blue-50); }
.form-success__icon .icon { width: 38px; height: 38px; stroke-width: 2.5; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); margin-bottom: 28px; }
.contact__info { position: relative; display: grid; gap: 14px; padding: 32px; border-radius: 32px; background: var(--bg-alt); border: 1px solid var(--line); overflow: hidden; }
.contact__info h2 { font-size: 1.35rem; margin-bottom: 8px; }
.info-card { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
a.info-card:hover { border-color: rgba(0, 91, 252, .35); transform: translateY(-2px); }
.info-card .icon-box { width: 48px; height: 48px; border-radius: 14px; }
.info-card .icon-box .icon { width: 22px; height: 22px; }
.info-card span { display: block; font-size: 13.5px; color: var(--muted); }
.info-card strong { display: block; color: var(--ink); font-size: 15.5px; word-break: break-word; }
[dir="rtl"] .info-card strong[dir="ltr"] { text-align: right; }
.contact__mark { display: flex; justify-content: center; padding-top: 24px; }
.contact__mark svg { width: 120px; opacity: .14; }

/* ---------- الصفحات القانونية ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.prose p { color: var(--muted); }

/* ---------- التذييل ---------- */
.site-footer { position: relative; overflow: hidden; background: #2A3650; color: rgba(255, 255, 255, .68); padding: clamp(56px, 8vw, 88px) 0 0; font-size: 15.5px; }
.footer__glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: var(--blue); filter: blur(140px); opacity: .18; top: -300px; inset-inline-start: -200px; pointer-events: none; }
.footer__grid { position: relative; display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 56px; }
.brand--light { color: #fff; margin-bottom: 18px; }
.brand--light .logo-svg { height: 34px; }
.footer__name { color: #fff; font-weight: 700; margin-bottom: 8px; }
.footer__brand p:last-child { max-width: 340px; }
.footer__title { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a, .footer__contact a { transition: color .2s; }
.footer__links a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; align-items: center; gap: 12px; }
.footer__contact .icon { width: 20px; height: 20px; color: var(--cyan); }
.footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0; font-size: 14.5px; text-align: center; }

/* ---------- واتساب ---------- */
:root { --wa: #25D366; }
.icon--whatsapp { stroke: none; }
.wa-float {
  position: fixed; z-index: 90; bottom: 24px; inset-inline-end: 24px; width: 60px; height: 60px; display: grid; place-items: center;
  animation: waIn .6s var(--ease) 1s both;
}
.wa-float__btn {
  position: relative; z-index: 2; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #3BE07D, #1EBE5A); box-shadow: 0 12px 28px -6px rgba(30, 190, 90, .6);
  transition: transform .3s var(--ease); animation: waWiggle 4s ease-in-out 2.5s infinite;
}
.wa-float__btn .icon { width: 32px; height: 32px; }
.wa-float:hover .wa-float__btn { transform: scale(1.08); animation-play-state: paused; }
.wa-float__ring { position: absolute; inset: 0; border-radius: 50%; background: var(--wa); opacity: 0; animation: waPulse 2.4s ease-out infinite; }
.wa-float__ring--2 { animation-delay: 1.2s; }
.wa-float__tip {
  position: absolute; inset-inline-end: calc(100% + 14px); top: 50%; translate: 0 -50%; white-space: nowrap; padding: 8px 14px; border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
[dir="rtl"] .wa-float__tip { transform: translateX(-8px); }
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes waIn { from { opacity: 0; transform: translateY(20px) scale(.6); } }
@keyframes waWiggle { 0%, 84%, 100% { rotate: 0deg; } 88% { rotate: -14deg; } 92% { rotate: 12deg; } 96% { rotate: -6deg; } }
@media (max-width: 720px) {
  .wa-float { bottom: 16px; inset-inline-end: 16px; width: 54px; height: 54px; }
  .wa-float__btn { width: 54px; height: 54px; }
  .wa-float__tip { display: none; }
}

/* ---------- حركة الظهور ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.project-card.reveal.is-visible:hover, .service-card.reveal.is-visible:hover, .sector-card.reveal.is-visible:hover, .value-card.reveal.is-visible:hover { transform: translateY(-6px); transition-delay: 0ms; }
.feature-card.reveal.is-visible:hover, .service-row.reveal.is-visible:hover { transform: translateY(-4px); transition-delay: 0ms; }

/* =========================================================================
   التجاوب
   ========================================================================= */
@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .chip--2 { inset-inline-end: 0; }
  .chip--3 { inset-inline-start: 0; }
}

@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0; padding: 16px var(--gutter) 28px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -20px rgba(12, 30, 80, .2);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .nav__link[aria-current="page"] { background: var(--blue-50); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__mobile-cta { display: block; margin-top: 16px; }
  .nav__mobile-cta .btn { width: 100%; }
  .header__cta { display: none; }
  .header__actions { margin-inline-start: auto; }

  .hero__inner, .split, .why, .faq, .contact, .project-layout { grid-template-columns: 1fr; }
  .hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__text { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 440px; }
  .why__head { position: static; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; gap: 20px; max-width: 600px; margin-inline: auto; }
  .process::before, .process::after { top: 28px; bottom: 28px; inset-inline: 27px auto; width: 3px; height: auto; }
  .process::after, [dir="rtl"] .process::after { background: linear-gradient(180deg, var(--cyan), var(--blue)); transform: scaleY(0); transform-origin: center top; }
  .process.is-visible::after { transform: scaleY(1); }
  .process__step { flex-direction: row; align-items: flex-start; gap: 20px; }
  .process__node { flex-shrink: 0; }
  .process__card { margin-top: 0; text-align: start; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .process__card::before { top: 22px; left: auto; inset-inline-start: -7px; transform: rotate(-45deg); }
  [dir="rtl"] .process__card::before { transform: rotate(135deg); }
  .process__icon { grid-row: span 2; margin: 0; width: 46px; height: 46px; }
  .process__step h3 { margin-bottom: 4px; }
  .services-list { grid-template-columns: 1fr; }
  .project-aside { position: static; }
  .logo-grid { --cols: 3; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .services-grid, .projects-grid, .projects-grid--2, .why__grid, .vm-grid, .gallery, .form__grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(even) { translate: none; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .values-grid .value-card:last-child { grid-column: 1 / -1; }
  .sectors-grid { grid-template-columns: 1fr; }
  .section-row { flex-direction: column; align-items: flex-start; }
  .logo-grid { --cols: 2; gap: 12px; }
  .logo-grid__item { flex-basis: calc((100% - 12px) / 2); }
  .logo-item { width: 160px; height: 76px; padding: 16px 20px; --logo-max: 44px; }
  .lang-btn__full { display: none; }
  .lang-btn__short { display: inline; }
  .lang-btn { padding: 0 12px; }
  .brand .logo-svg { height: 26px; }
  .chip { font-size: 12.5px; padding: 8px 12px 8px 8px; gap: 8px; }
  .chip .icon { width: 28px; height: 28px; padding: 6px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .page-hero__mark { display: none; }
  .project-cover .cover { aspect-ratio: 4 / 3; }
  .project-cover .browser { width: 80%; }
  .project-cover .phone { width: 30cqw; }
  .service-row { flex-direction: column; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .faq__item summary { padding: 18px 20px; font-size: 1rem; }
  .faq__answer { padding: 0 20px 20px; }
}

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; min-width: 0; width: 100%; }
  .marquee__track[aria-hidden] { display: none; }
}
