/* الفكرة: أبيض ورمادي فاتح مريح للعين، والكحلي للعناوين والأشرطة، والأزرق للتفاصيل والروابط، والبرتقالي لأزرار "اطلب عرض سعر" بس */
:root {
  --ground: #FFFFFF;
  --band: #F4F6F9;
  --panel: #EAEFF5;
  --line: #DDE3EB;
  --text: #0F1F38;
  --muted: #56667E;
  --navy: #0F2A4F;
  --navy-dk: #0A1D38;
  --accent: #214D9C;
  --accent-hi: #2B5FB8;
  --accent-soft: #EAF1FC;
  --spark: #F28C28;
  --spark-hi: #FF9D3F;
  --on-spark: #1B0F03;
  --grid: rgba(18, 48, 92, .055);
  --ok: #18915A;
  --err: #D64535;
  --f-body: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 12px;
  --wrap: 1180px;
  --sh: 0 1px 2px rgba(15, 31, 56, .05), 0 12px 32px -20px rgba(15, 31, 56, .30);
  color-scheme: light;
}
/* الأشرطة الكحلي (الأرقام، الدعوة، صور المصنع، الفوتر، الخلفية بالصورة): نفس الأسماء بألوان غامقة */
.facts, .cta-band, .gal-band, .site-foot, .hero-media, .page-top.has-media, .local, .soon {
  --ground: #0A1D38; --band: #10284A; --panel: #163259; --line: #24426E;
  --text: #EEF3F9; --muted: #A9B9CF; --grid: rgba(255, 255, 255, .06);
  --accent: #7FB0FF; --accent-hi: #A3C6FF;
  color-scheme: dark; color: var(--text);
}
.sec-white { --ground: #FFFFFF; --band: #F4F6F9; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 400 17px/1.75 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--spark); color: var(--on-spark); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--spark-hi); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- الهيدر ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px -20px rgba(15, 31, 56, .5); }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-mark { display: inline-flex; align-items: center; gap: 6px; color: var(--spark); }
.logo-mark b { font-family: var(--f-mono); font-weight: 500; letter-spacing: .08em; color: var(--navy); font-size: 18px; }
.logo-img { height: 58px; width: auto; }
.site-foot .logo-img { height: 58px; }
@media (max-width: 900px) { .site-head .logo-img { height: 46px; } .head-row { min-height: 66px; } }
.brand-name { font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--band); }
.nav .lang-switch { border: 1px solid var(--line); }
.nav .btn { color: var(--on-spark); background: var(--spark); }
.nav .btn:hover { background: var(--spark-hi); color: var(--on-spark); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; margin-inline-start: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--text); }
.nav-toggle:focus-visible + .nav-btn { outline: 2px solid var(--spark-hi); outline-offset: 3px; }
.nav-ic, .nav-contact { display: none; }
@media (max-width: 900px) {
  .brand-name { display: none; }
  .nav-btn { display: inline-flex; }
  /* قائمة الموبايل: صفحة كاملة تحت الشريط، بأيقونات، وتحتها اتصال وواتساب */
  .nav { display: none; position: fixed; inset-inline: 0; top: var(--head-h, 66px); bottom: 0; overflow-y: auto; overscroll-behavior: contain; flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; border-top: 1px solid var(--line);
    padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .nav a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; font-size: 18px; color: var(--navy); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { background: var(--band); border-radius: 10px; }
  .nav-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
  .nav .lang-switch { border: 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 10px; justify-content: center; border-bottom: 0; border-radius: 10px; padding: 15px; font-size: 17px; }
  .nav-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 16px; }
  .nav-contact .btn { margin: 0; font-size: 15px; padding: 13px 10px; }
  .nav-contact .btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--navy); }
  .nav-contact .btn-wa-site { background: #25D366; color: #fff; border-color: #25D366; }
  /* الشريط اللي فوق بيعمل تغبيش، وده بيمنع القائمة تملا الشاشة؛ بنشيله وهي مفتوحة */
  .site-head:has(.nav-toggle:checked) { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  body:has(.nav-toggle:checked) .wa-float, body:has(.nav-toggle:checked) .wa-hint { display: none; }
  .nav-contact .btn-wa-site { color: #fff; }
  .nav-toggle:checked ~ .nav { display: flex; }
  body:has(.nav-toggle:checked) { overflow: hidden; }
  .nav-toggle:checked + .nav-btn { background: var(--band); }
}
.preview-bar { background: var(--band); border-bottom: 1px dashed var(--line); color: var(--muted); font-size: 14px; padding-block: 8px; }

/* ---------- أزرار وتاجات ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  background: var(--spark); color: var(--on-spark); font: 700 16px/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--spark-hi); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 8px 14px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--band); }
.btn-light { background: var(--spark); color: var(--on-spark); }
.btn-light:hover { background: var(--spark-hi); }
.lang-en .btn .ic, .lang-en .link-arrow .ic { transform: none; }
.lang-ar .link-arrow .ic, .lang-ar .btn-light .ic { transform: scaleX(-1); }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 2px 10px; border-radius: 999px; background: var(--spark); color: var(--on-spark); }
.tag-muted { background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
.tag:not(.tag-muted) { box-shadow: 0 4px 12px -6px rgba(242, 140, 40, .7); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; text-decoration: none; }
.link-arrow:hover { color: var(--accent-hi); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- الهيرو: إسطمبة بتشتغل قدامك ---------- */
.hero { position: relative; overflow: hidden; padding-block: 40px 36px; background:
  radial-gradient(55% 70% at 25% 40%, rgba(31, 95, 191, .08), transparent 70%),
  linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%); border-bottom: 1px solid var(--line); }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }


.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 32px; align-items: center; min-height: min(78vh, 700px); }
.hero-text { display: grid; gap: 22px; min-width: 0; align-content: center; }
.eyebrow { color: var(--muted); font-size: 15px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.since { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 999px; padding: 1px 12px; font-weight: 700; }
.hero h1 { font-size: clamp(32px, 3.9vw, 54px); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; color: var(--navy); }
.hero-media h1 { color: #fff; }
.lead { color: var(--muted); font-size: 19px; max-width: 58ch; }
.hero .actions .btn { padding: 15px 26px; font-size: 17px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ic { color: var(--accent); }
.hero-stage { position: relative; min-width: 0; display: grid; gap: 8px; }
.stage-box { position: relative; aspect-ratio: 7 / 5; border-radius: 22px; overflow: hidden; background:
  radial-gradient(70% 70% at 50% 55%, #16335F 0%, #0C1A33 75%); box-shadow: 0 30px 60px -30px rgba(10, 29, 56, .55), 0 0 0 1px rgba(15, 42, 79, .08); }
.stage-box canvas, .stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-poster { object-fit: contain; transition: opacity .6s; }
.stage-box canvas { opacity: 0; transition: opacity .8s; cursor: grab; touch-action: pan-y; }
.has-3d .stage-box canvas { opacity: 1; }
.has-3d .stage-poster { opacity: 0; }
.cycle { list-style: none; margin: 4px auto 0; padding: 4px; display: flex; gap: 4px; justify-content: center; background: #fff; box-shadow: var(--sh); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; }
.cycle li { padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background .25s, color .25s; white-space: nowrap; }
.cycle li.is-on { background: var(--navy); color: #fff; }
.cycle-note { text-align: center; color: var(--muted); font-size: 13px; }
.sample-note { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .hero { padding-block: 28px 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .hero-stage { order: 2; }
  .stage-box { border-radius: 16px; }
  .stage-box { aspect-ratio: 5 / 4; }
  .cycle li { padding: 4px 10px; font-size: 13px; }
}
/* الرسمة القديمة (بتستخدم في صفحات تانية) */
.blueprint { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--band); }
.bp-grid { fill: none; stroke: var(--grid); stroke-width: 1; }
.bp-plate { fill: var(--panel); stroke: var(--muted); stroke-width: 1.2; }
.bp-cav { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.bp-line { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.bp-dim { stroke: var(--muted); stroke-width: .8; stroke-dasharray: 3 3; }
.bp-t { fill: var(--muted); font: 500 11px var(--f-mono); text-anchor: middle; }
.bp-acc { fill: var(--accent); text-anchor: start; }
.bp-accent { fill: var(--accent); }

/* ---------- أرقام: شريط برتقاني ---------- */
.facts { background: linear-gradient(135deg, var(--navy) 0%, #12355F 100%); }
.facts-row { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.fact { display: grid; gap: 0; padding: 24px 18px; border-inline-start: 1px solid rgba(255,255,255,.14); min-width: 0; }
.fact:first-child { border-inline-start: 0; }
.fact .num { font: 900 clamp(24px, 2.9vw, 40px)/1.15 var(--f-body); font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; }
.fact span:last-child { font-size: 15px; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) { .facts-row { grid-template-columns: repeat(2, 1fr); } .fact:nth-child(odd) { border-inline-start: 0; } .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); } }

/* ---------- أقسام ---------- */
.sec { padding-block: 64px; }
.sec-alt { background: var(--band); color: var(--text); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px, 24px 24px; border-block: 1px solid var(--line); }
.sec-alt .svc, .sec-alt .work-card, .sec-alt .ind, .sec-alt .cl, .sec-alt .say, .sec-alt .mc { background: #fff; }
.sec-white { --ground: #FFFFFF; --band: #F2F5F9; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; color: var(--navy); }
.sec-head p { color: var(--muted); margin-top: 6px; }
.page-top { padding-block: 52px 40px; border-bottom: 1px solid var(--line); background:
  radial-gradient(50% 120% at 15% 100%, rgba(31,95,191,.07), transparent 70%),
  linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, var(--band); }
.page-top .wrap { display: grid; gap: 12px; justify-items: start; }
.page-top h1 { font-size: clamp(32px, 4.8vw, 52px); font-weight: 900; color: var(--navy); }
.page-top.has-media h1 { color: #fff; }
.back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.back::before { content: "→ "; }
.lang-en .back::before { content: "← "; }
.empty { color: var(--muted); padding: 28px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }

/* ---------- الخدمات: كروت بصورة ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; min-width: 0;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(15,31,56,.45); transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(15,31,56,.55); }
.svc-vis { position: relative; aspect-ratio: 16 / 10; background: #0D2244; overflow: hidden; display: grid; place-items: center; }
.svc-vis img { width: 100%; height: 100%; object-fit: cover; }
.svc-vis.art { background:
  radial-gradient(60% 80% at 70% 100%, rgba(31,95,191,.14), transparent 70%),
  linear-gradient(rgba(18,48,92,.07) 1px, transparent 1px) 0 0 / 18px 18px,
  linear-gradient(90deg, rgba(18,48,92,.07) 1px, transparent 1px) 0 0 / 18px 18px, #EEF3FA; color: var(--navy); }
.svc-vis.art .ic { width: 86px; height: 86px; stroke-width: 1.1; filter: drop-shadow(0 8px 16px rgba(15,42,79,.18)); }
.svc-body { display: grid; gap: 8px; align-content: start; padding: 18px 20px 22px; }
.svc h3 { font-size: 19px; color: var(--navy); }
.svc p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.svc-ic { color: var(--accent); display: inline-flex; }
/* لو آخر خدمة لوحدها في الصف: بتاخد الصف كله بالعرض */
@media (min-width: 1001px) {
  .svc-grid > .svc:last-child:nth-child(3n+1) { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-rows: auto; }
  .svc-grid > .svc:last-child:nth-child(3n+1) .svc-vis { aspect-ratio: auto; height: 100%; min-height: 190px; }
  .svc-grid > .svc:last-child:nth-child(3n+1) .svc-body { align-content: center; padding: 24px 28px; }
}
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc { grid-template-columns: 112px 1fr; grid-template-rows: auto; }
  .svc-vis { aspect-ratio: auto; height: 100%; min-height: 112px; }
  .svc-vis.art .ic { width: 46px; height: 46px; }
  .svc-body { padding: 14px 16px; }
  .svc h3 { font-size: 17px; }
  .svc p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
.svc-list { display: grid; gap: 0; }
.svc-row { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-block: 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-row:first-child { padding-top: 0; }
.svc-row-body { display: grid; gap: 10px; min-width: 0; max-width: 72ch; justify-items: start; }
.svc-row h2 { font-size: 24px; }
.lead-sm { color: var(--text); font-weight: 600; }
.svc-row p:not(.lead-sm) { color: var(--muted); }
.svc-title { display: flex; align-items: center; gap: 14px; }
.prose { display: grid; gap: 24px; max-width: 72ch; justify-items: start; color: var(--muted); }

/* ---------- خطوات الشغل ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.process li { position: relative; display: grid; gap: 8px; align-content: start; padding-inline-end: 18px; min-width: 0; }
.process li::before { content: ""; position: absolute; top: 19px; inset-inline-start: 48px; inset-inline-end: 8px; border-top: 1px dashed var(--line); }
.process li:last-child::before { display: none; }
.step { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--navy); color: #fff; border-radius: 50%; font-size: 16px; font-weight: 800; background: var(--navy); position: relative; }
.process h3 { font-size: 17px; margin-top: 6px; }
.process p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 22px; }
  .process li { grid-template-columns: 40px 1fr; column-gap: 14px; padding: 0; }
  .process li .step { grid-row: span 2; }
  .process h3 { margin-top: 0; }
  .process li::before { top: 46px; bottom: -18px; inset-inline-start: 19px; inset-inline-end: auto; border-top: 0; border-inline-start: 1px dashed var(--line); }
}

/* ---------- الأعمال ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { display: grid; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--sh); transition: border-color .15s, transform .2s; height: 100%; }
.work-card:hover { transform: translateY(-3px); }
.work-card:hover { border-color: var(--accent); }
.work-img { position: relative; aspect-ratio: 4 / 3; background: var(--panel); max-width: 100%; }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-img .svc-vis { position: absolute; inset: 0; aspect-ratio: auto; }
.work-img .tag { position: absolute; top: 12px; inset-inline-start: 12px; }
.work-body { padding: 16px 18px 18px; display: grid; gap: 4px; align-content: start; }
.work-body h3 { font-size: 17px; color: var(--navy); }
.meta { color: var(--muted); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font: 600 14px var(--f-body); color: var(--muted); background: transparent; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.chip.is-on { background: var(--text); color: var(--ground); border-color: var(--text); }
.work-detail { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .work-detail { grid-template-columns: 1fr; gap: 24px; } }
.wd-media { display: grid; gap: 14px; min-width: 0; }
.wd-video .gal-main { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.wd-gal { display: grid; gap: 12px; min-width: 0; }
.wd-gal.has-thumbs { grid-template-columns: minmax(0, 1fr) 92px; }
.wd-main { position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #F1F3F6; cursor: zoom-in; }
.wd-main img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wd-zoom { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--navy); box-shadow: var(--sh); }
.wd-gal .gal-thumbs { display: grid; gap: 10px; align-content: start; height: 0; min-height: 100%; overflow: auto; }
.gal-t { padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; transition: border-color .2s; }
.gal-t:hover { border-color: var(--accent); }
.gal-t.is-on { border-color: var(--spark); }
.gal-t img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 900px) {
  .wd-gal.has-thumbs { grid-template-columns: 1fr; }
  .wd-gal .gal-thumbs { height: auto; min-height: 0; grid-auto-flow: column; grid-auto-columns: 76px; overflow-x: auto; padding-bottom: 4px; }
}
.wd-side { display: grid; gap: 18px; min-width: 0; }
.wd-result { margin: 0; display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #FFF4E8; border: 1px solid #F6C89A; color: #7A3E06; font-weight: 700; font-size: 17px; line-height: 1.6; }
.wd-result .ic { flex: none; margin-top: 3px; color: var(--spark); }
.wd-spec { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-size: 15.5px; }
.wd-spec th, .wd-spec td { border: 1px solid var(--line); padding: 13px 16px; vertical-align: top; }
.wd-spec th { width: 36%; background: var(--band); color: var(--muted); font-weight: 600; text-align: start; }
.wd-spec td { color: var(--text); }
.lang-ar .wd-spec td.mono { text-align: right; }
.wd-desc p { margin: 0; color: var(--muted); }
.wd-act { display: flex; flex-wrap: wrap; gap: 12px; }
.wd-act .btn { padding: 14px 22px; }
.wd-note { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.wd-note .ic { flex: none; margin-top: 4px; color: var(--accent); }
@media (max-width: 560px) { .wd-act .btn { flex: 1 1 100%; } .wd-spec th { width: 42%; } .wd-spec th, .wd-spec td { padding: 11px 12px; } }
.work-result { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; color: #A1550B; font-weight: 700; font-size: 14px; }
.work-result .ic { flex: none; color: var(--spark); }
/* عرض الصور بحجم الشاشة */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(5, 12, 24, .94); display: grid; place-items: center; padding: 56px 16px; }
.lb[hidden] { display: none; }
.lb img { max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
.lb-x { position: absolute; top: 14px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lb-prev { inset-inline-start: 16px; } .lb-next { inset-inline-end: 16px; }
.lang-ar .lb-prev, .lang-ar .lb-next { transform: translateY(-50%) scaleX(-1); }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: 14px; }
@media (max-width: 600px) { .lb-nav { width: 42px; height: 42px; font-size: 28px; } }

/* ---------- الماكينات ---------- */
.mc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .mc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mc-grid { grid-template-columns: 1fr; } }
/* الكارت كله صورة، والاسم مكتوب عليها؛ لما تقف عليه الصورة تغمق والاسم يبقى أبيض ناصع */
.mc { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #0D2244; box-shadow: var(--sh); isolation: isolate; outline-offset: 3px; }
.mc .mc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.mc-ph { display: grid; place-items: center; color: rgba(255,255,255,.18);
  background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(160deg, #14335F, #0A1D38); }
.mc::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 14, 30, .92) 0%, rgba(5, 14, 30, .55) 30%, rgba(5, 14, 30, 0) 58%); transition: background .4s ease; }
.mc-ov { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 20px 22px 22px; display: grid; gap: 6px; }
.mc-ov h2 { margin: 0; font-size: 23px; line-height: 1.35; font-weight: 800; color: rgba(255,255,255,.86); text-shadow: 0 2px 12px rgba(0,0,0,.45); transition: color .3s ease; }
.mc-size { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.78); }
.mc-size .mono { color: #FFB066; font-size: 15px; font-weight: 500; }
.mc-desc { margin: 0; font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,.9); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .35s ease; }
.mc:hover .mc-photo, .mc:focus-visible .mc-photo { filter: brightness(.5); transform: scale(1.05); }
.mc:hover::after, .mc:focus-visible::after { background: linear-gradient(to top, rgba(5,14,30,.95) 0%, rgba(5,14,30,.6) 45%, rgba(5,14,30,.15) 80%); }
.mc:hover h2, .mc:focus-visible h2 { color: #fff; }
.mc:hover .mc-desc, .mc:focus-visible .mc-desc { max-height: 9em; opacity: 1; }
@media (hover: none) { .mc-desc { max-height: none; opacity: 1; } .mc .mc-photo { filter: none; } }
@media (prefers-reduced-motion: reduce) { .mc .mc-photo, .mc-desc { transition: none; } }
@media (max-width: 600px) { .mc { aspect-ratio: 4 / 4.6; } .mc-ov h2 { font-size: 21px; } }
.fig { display: grid; place-items: center; gap: 4px; padding: 20px 16px 10px; min-height: 170px; border-bottom: 1px solid var(--line); background-color: var(--band);
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 16px 16px; }
.fig-icon, .fig-shot { color: var(--muted); }
.fig-shot { grid-auto-flow: row; }
.fig-shot .big { font-size: 46px; color: var(--navy); line-height: 1; font-weight: 800; }
.fig-shot .unit { color: var(--muted); }
.bed { width: 100%; max-width: 260px; height: auto; overflow: visible; }
.bed-r { fill: var(--panel); stroke: var(--muted); stroke-width: 1.2; }
.bed-slot { stroke: var(--line); stroke-width: 1; }
.dim { stroke: var(--accent); stroke-width: 1; }
.dim-t { fill: var(--accent); font: 500 11px var(--f-mono); text-anchor: middle; }
.fig-cap { color: var(--text); font-size: 14px; }
.mc-body { padding: 16px 18px 20px; display: grid; gap: 6px; }
.mc-body h2 { font-size: 19px; color: var(--navy); }
.mc-label { color: var(--accent); font-size: 14px; font-weight: 600; }
.mc-body p:last-child { color: var(--muted); font-size: 15px; }

/* ---------- طلب عرض سعر ---------- */
.quote-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.req { color: var(--err); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.5 var(--f-body); color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field.has-err input, .field.has-err textarea, .field.has-err .drop { border-color: var(--err); }
.drop { display: flex !important; align-items: center; gap: 12px; padding: 18px; border: 1.5px dashed var(--line); border-radius: var(--r); color: var(--muted); font-weight: 400 !important; cursor: pointer; }
.drop:hover { border-color: var(--accent); color: var(--text); }
.field { position: relative; }
.field .file-input { position: absolute; inset-inline-start: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.file-input:focus-visible + .drop, .field:focus-within .drop { border-color: var(--accent); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-err { background: color-mix(in srgb, var(--err) 14%, transparent); border: 1px solid var(--err); color: var(--text); padding: 10px 14px; border-radius: 8px; }
.form-note { background: var(--panel); border: 1px dashed var(--line); color: var(--muted); padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.form .btn { justify-self: start; }
.quote-side { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--band); }
.quote-side h2, .done h2 { color: var(--navy); }
.quote-side h2 { font-size: 20px; }
.mini-steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--muted); }
.mini-steps li::marker { color: var(--accent); font-family: var(--f-mono); }
.done { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; max-width: 60ch; }
.done-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.done p { color: var(--muted); }
.done-num { color: var(--text) !important; font-weight: 700; }

/* ---------- تواصل ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--sh); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.c-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.contact-list div { display: grid; min-width: 0; }
.c-label { color: var(--muted); font-size: 14px; }
.c-val { font-weight: 600; overflow-wrap: anywhere; }
.lang-ar .c-val.mono { text-align: right; }
.c-missing { color: var(--muted); font-weight: 400; font-style: italic; font-size: 15px; }
.contact-side { display: grid; gap: 20px; }
.map-card { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--band); text-decoration: none; }
.map-art { width: 100%; height: auto; display: block; }
.map-road { stroke: var(--line); stroke-width: 10; fill: none; }
.map-road.thin { stroke-width: 5; }
.map-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .5; }
.map-cta { position: absolute; inset-inline-start: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--ground); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.map-card:hover .map-cta { border-color: var(--accent); color: var(--accent); }

/* ---------- شريط الدعوة والفوتر ---------- */
.cta-band { background: radial-gradient(60% 140% at 10% 50%, rgba(43,111,214,.35), transparent 70%), linear-gradient(135deg, var(--navy) 0%, #0C2242 100%); }
.cta-row h2 { color: #fff; }
.cta-row p, .cta-lock { color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 40px; }
.cta-row h2 { font-size: clamp(24px, 3vw, 32px); }
.cta-row p { margin-top: 6px; max-width: 60ch; }
.cta-band .btn-light { background: var(--spark); color: var(--on-spark); padding: 15px 28px; font-size: 17px; }
.cta-band .btn-light:hover { background: var(--spark-hi); }
.site-foot { background: var(--navy-dk); padding-block: 48px 24px; color: var(--muted); font-size: 15px; }
.site-foot .logo-mark b { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.1fr; gap: 32px; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 0; } .foot-brand { margin-bottom: 18px; } }
.foot-col > summary { list-style: none; cursor: default; }
.foot-col > summary::-webkit-details-marker { display: none; }
.foot-all { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; margin-top: 4px; }
.lang-ar .foot-all .ic { transform: scaleX(-1); }
@media (max-width: 760px) {
  /* آخر الصفحة على الموبايل: كل جزء بيتفتح ويتقفل بلمسة */
  .foot-col { border-top: 1px solid rgba(255,255,255,.12); }
  .foot-col > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
  .foot-col > summary h3 { margin: 0; }
  .foot-col > summary::after { content: ""; width: 10px; height: 10px; border-inline-end: 2px solid rgba(255,255,255,.7); border-bottom: 2px solid rgba(255,255,255,.7); transform: rotate(45deg); transition: transform .2s; margin-inline-end: 6px; }
  .foot-col[open] > summary::after { transform: rotate(-135deg); }
  .foot-col > ul { padding-bottom: 18px; }
  .foot-map { aspect-ratio: 21 / 9; }
}
.foot-brand { display: grid; gap: 12px; align-content: start; }
.site-foot h3 { color: var(--text); font-size: 16px; margin-bottom: 10px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-contact { gap: 12px; }
.foot-contact li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; }
.fc-ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.foot-contact a { color: inherit; }
.lang-ar .foot-contact a[dir="ltr"] { text-align: right; }
.foot-more { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; transition: background .15s, border-color .15s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.contact-list .socials, .socials-lg { display: flex; margin-top: 6px; }
.socials-lg a { border-color: var(--line); color: var(--accent); background: #fff; }
.socials-lg a:hover { color: #fff; }
.foot-map { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255,255,255,.18); aspect-ratio: 16 / 9; background: rgba(255,255,255,.06); }
.foot-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.foot-map-link { position: absolute; inset-inline-start: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.foot-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.pf-float { position: fixed; inset-inline-start: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  height: 48px; padding: 0 18px 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 6px 20px rgba(15,42,79,.35); border: 1px solid rgba(255,255,255,.18); }
.pf-float:hover { background: var(--accent); }
@media (max-width: 760px) { .pf-float { display: none; } } /* على الموبايل كان بيغطي زرار عرض السعر؛ موجود في آخر الصفحة ومن نحن */
.foot-profile { justify-self: start; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.foot-profile:hover { background: #fff; color: var(--navy); }
.about-profile { display: inline-flex; align-items: center; gap: 8px; }
.wa-float { position: fixed; inset-inline-end: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
/* ---------- المجالات ---------- */
.sec-tight { padding-top: 0; }
.ind-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ind { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .ind-ic { width: 40px; height: 40px; }
  .ind h3 { font-size: 15px; }
  .ind p { font-size: 13px; }
}
.ind { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.ind:hover { border-color: #C5D4EA; box-shadow: var(--sh); }
.ind-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line); }
.ind h3 { font-size: 16px; color: var(--navy); }
.ind p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 2px; }

/* ---------- العملاء ---------- */
.cl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cl { position: relative; display: grid; place-items: center; gap: 6px; align-content: center; min-height: 120px; padding: 22px 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ground); text-align: center; }
.cl img { max-height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.cl:hover img { filter: none; opacity: 1; }
.cl-name { font-weight: 800; font-size: 17px; }
.cl-field { color: var(--muted); font-size: 13px; }
.cl .tag { font-size: 11px; margin-bottom: 4px; }
.says { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.say { margin: 0; display: grid; gap: 12px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ground); }
.say-ic { color: var(--accent); }
.say blockquote { margin: 0; font-size: 17px; }
.say figcaption { color: var(--muted); font-size: 14px; }

/* ---------- الأسئلة ---------- */
.faq { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; background: #fff; box-shadow: var(--sh); }
.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--band); }
.faq summary .tag { margin-inline-start: 8px; vertical-align: middle; }
.faq-x { flex: 0 0 22px; height: 22px; position: relative; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; inset: 10px 3px auto; height: 2px; background: var(--accent); border-radius: 2px; transition: transform .2s; }
.faq-x::after { transform: rotate(90deg); }
.faq details[open] .faq-x::after { transform: rotate(0); }
.faq details[open] summary { color: var(--accent); }
.faq details p { padding: 0 18px 18px; color: var(--muted); max-width: 75ch; }
.faq-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .faq-page { grid-template-columns: 1fr; } }

/* ---------- السرية ---------- */
.nda { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line)); border-radius: var(--r); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.nda-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.nda strong { display: block; font-size: 16px; }
.nda p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 600; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }
.check span { display: inline-flex; align-items: center; gap: 6px; }
.check .ic { color: var(--ok); }
.cta-side { display: grid; gap: 10px; justify-items: start; }
.cta-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }

/* ---------- الخريطة ---------- */
.map-frame { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--band); aspect-ratio: 16 / 10; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame .map-cta { text-decoration: none; }

/* ---------- الصور والفيديوهات الحقيقية ---------- */
video.vid { display: block; width: 100%; height: 100%; object-fit: cover; background: #0D2244; }
.svc-vis video, .work-img video, .step-media video, .step-media img { width: 100%; height: 100%; object-fit: cover; }
/* أول الصفحة بفيديو أو صورة كاملة */
.hero-media { padding-block: 0; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg .hero-bg-media, .hero-bg img, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(270deg, rgba(8,24,48,.92) 0%, rgba(8,24,48,.72) 45%, rgba(8,24,48,.25) 100%),
  linear-gradient(0deg, rgba(8,24,48,.85) 0%, transparent 40%); }
.lang-en .hero-bg::after { background: linear-gradient(90deg, rgba(8,24,48,.92) 0%, rgba(8,24,48,.72) 45%, rgba(8,24,48,.25) 100%), linear-gradient(0deg, rgba(8,24,48,.85) 0%, transparent 40%); }
.hero-media .hero-grid { grid-template-columns: minmax(0, 640px); min-height: min(88vh, 820px); padding-block: 64px 48px; }
@media (max-width: 900px) {
  .hero-media .hero-grid { min-height: 78vh; align-content: end; padding-block: 120px 32px; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(8,24,48,.95) 0%, rgba(8,24,48,.75) 55%, rgba(8,24,48,.3) 100%); }
}
/* خطوات الشغل بصور */
.process.has-media { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.process.has-media li { padding: 0; position: relative; }
.process.has-media li::before { display: none; }
.step-media { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; margin-bottom: 10px; background: #0D2244; }
.step-media .svc-vis { height: 100%; aspect-ratio: auto; }
.process.has-media .step { position: absolute; top: 10px; inset-inline-start: 10px; margin: 0; background: var(--navy); color: #fff; border-color: #fff; z-index: 1; }
@media (max-width: 900px) {
  .process.has-media { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding-inline: 16px; }
  .process.has-media li { flex: 0 0 72%; scroll-snap-align: start; display: block; }
}
/* شريط صور المصنع */
.gal-band { background: var(--navy-dk); padding-block: 52px; overflow: hidden; }
.gal-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; margin-bottom: 20px; }
.gal-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); padding-bottom: 8px; scrollbar-width: thin; }
.gal-item { position: relative; margin: 0; flex: 0 0 min(78vw, 440px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; scroll-snap-align: center; background: #10284A; }
.gal-item.is-video { flex-basis: min(86vw, 560px); aspect-ratio: 16 / 9; }
.gal-item img, .gal-item video { width: 100%; height: 100%; object-fit: cover; }
.gal-item figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 10px; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(0deg, rgba(8,24,48,.9), transparent); }
/* رأس صفحة الخدمة بصورة أو فيديو */
.page-top.has-media { position: relative; overflow: hidden; padding-block: 120px 44px; }
.page-media { position: absolute; inset: 0; }
.page-media img, .page-media video { width: 100%; height: 100%; object-fit: cover; }
.page-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,24,48,.95) 10%, rgba(8,24,48,.45) 100%); }
.page-top.has-media .wrap { position: relative; }
.ind-ic.has-img { padding: 0; overflow: hidden; }
.ind-ic.has-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- بديل المستورد ---------- */
html { scroll-behavior: smooth; }
.local-pill { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; padding-inline-start: 6px; border-radius: 999px;
  background: #fff; border: 1px solid #F3C99D; box-shadow: 0 6px 18px -12px rgba(242, 140, 40, .8); color: var(--navy); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.local-pill span { background: var(--spark); color: var(--on-spark); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.local-pill .ic { color: var(--spark); }
.lang-ar .local-pill .ic { transform: scaleX(-1); }
.local-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(242, 140, 40, .9); }
.local { padding-block: 72px; scroll-margin-top: 70px; background:
  radial-gradient(50% 80% at 90% 10%, rgba(43, 111, 214, .30), transparent 70%),
  linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(160deg, var(--navy) 0%, #0A1D38 100%); }
.local-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.local-text { display: grid; gap: 18px; justify-items: start; }
.local-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 700; font-size: 14px; }
.local-badge .ic { color: var(--spark); }
.local h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 900; color: #fff; }
.local .lead { color: var(--muted); }
.local-steps { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 0; width: 100%; }
.local-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: 18px; }
.local-steps li:not(:last-child)::before { content: ""; position: absolute; top: 40px; bottom: 0; inset-inline-start: 19px; border-inline-start: 1px dashed rgba(255,255,255,.25); }
.ls-n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #fff; font-weight: 600; }
.local-steps li:last-child .ls-n { background: var(--spark); border-color: var(--spark); color: var(--on-spark); }
.local-steps b { display: block; color: #fff; font-size: 17px; }
.local-steps span:not(.ls-n) { display: block; color: var(--muted); font-size: 15px; }
.local-side { display: grid; gap: 16px; padding: 24px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); position: sticky; top: 90px; }
.local-side h3 { color: #fff; font-size: 19px; }
.local-ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.local-ex li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; color: var(--navy); font-weight: 700; }
.lx-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: #1F5FBF; }
.local-works { display: grid; gap: 12px; }
.local-works .work-card { grid-template-columns: 120px 1fr; background: #fff; }
.local-works .work-img { aspect-ratio: auto; height: 100%; min-height: 96px; }
.local-works .work-body h3 { color: var(--navy); }
.local-works .meta { color: #56667E; }
@media (max-width: 900px) { .local-grid { grid-template-columns: 1fr; gap: 28px; } .local-side { position: static; } .local { padding-block: 52px; } }

/* ---------- من نحن ---------- */
.about-top .lead { max-width: 80ch; font-size: 18px; line-height: 1.9; }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.team { display: grid; gap: 6px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--sh); }
.team-n { font: 900 44px/1 var(--f-body); color: var(--navy); }
.team h3 { font-size: 19px; color: var(--navy); }
.team p { color: var(--muted); font-size: 15px; }
.fac-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.fac { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.fac-ic { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.fac-ic img { width: 100%; height: 100%; object-fit: cover; }
.fac h3 { font-size: 16px; color: var(--navy); }
.fac p { color: var(--muted); font-size: 14px; }

/* ---------- الكوكيز والخصوصية ---------- */
.cookie { position: fixed; z-index: 40; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(15, 31, 56, .45); font-size: 14.5px; }
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 260px; color: var(--muted); }
.cookie a { color: var(--accent); font-weight: 700; }
.cookie-act { display: flex; gap: 8px; }
.privacy { gap: 28px; }
.privacy h2 { font-size: 21px; color: var(--navy); margin-bottom: 8px; }
.privacy p { color: var(--muted); margin-bottom: 6px; }
.check-soft { font-weight: 500; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- متابعة المشروع (صفحة العميل) ---------- */
.trk-none { text-align: center; display: grid; justify-items: center; gap: 14px; padding-block: 40px; }
.trk-none-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.trk-top { background: var(--navy); color: #fff; padding-block: 36px 40px; }
.trk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.trk-code { display: inline-block; font-size: 14px; letter-spacing: 1px; color: #C9D6EA; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 2px 12px; }
.trk-head h1 { color: #fff; font-size: clamp(24px, 4vw, 34px); margin: 10px 0 4px; }
.trk-client { color: #C9D6EA; margin: 0; }
.trk-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.trk-b-ok { background: #E4F5EC; color: #127548; }
.trk-b-late { background: #FDEDEB; color: #B5281A; }
.trk-b-done { background: #E8F0FD; color: #1F55B0; }
.trk-cards { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .trk-cards { grid-template-columns: 1fr; } }
.trk-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 4px; }
.trk-lbl { font-size: 14px; color: #9FB6DA; }
.trk-card b { font-size: 26px; line-height: 1.3; }
.lang-ar .trk-card b.mono { text-align: right; }
.trk-card small { color: #C9D6EA; font-size: 14px; }
.trk-card small.is-late { color: #FFB4A9; font-weight: 700; }
.trk-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 4px; }
.trk-bar span { display: block; height: 100%; background: linear-gradient(90deg, #5B8DE0, #8FB4F0); border-radius: 99px; }
.trk-h { font-size: 22px; margin: 0 0 18px; }
/* المراحل: بالعرض على الكمبيوتر، وبالطول على الموبايل */
.trk-steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.trk-steps li { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; padding-inline: 6px; }
.trk-steps li::before { content: ""; position: absolute; top: 21px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.trk-steps li:last-child::before { display: none; }
.trk-steps li.is-done::before { background: var(--accent); }
.trk-dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); color: var(--muted); font-weight: 700; }
.is-done .trk-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.is-cur .trk-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.is-late:not(.is-done) .trk-dot { border-color: #CF3B2B; color: #CF3B2B; box-shadow: 0 0 0 6px #FDEDEB; }
.trk-st { display: grid; gap: 2px; }
.trk-st b { font-size: 15px; line-height: 1.5; }
.trk-st small { color: var(--muted); font-size: 13px; }
.is-late .trk-st small { color: #CF3B2B; font-weight: 700; }
.trk-now { justify-self: center; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 1px 10px; }
@media (max-width: 760px) {
  .trk-steps { grid-template-columns: 1fr; gap: 0; }
  .trk-steps li { grid-template-columns: 44px 1fr; justify-items: start; text-align: start; gap: 14px; padding: 0 0 22px; }
  .trk-steps li::before { top: 44px; inset-inline-start: 20px; width: 3px; height: calc(100% - 44px); }
  .trk-st { padding-top: 8px; }
  .trk-now { justify-self: start; }
}
.trk-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .trk-grid { grid-template-columns: 1fr; } }
.trk-log { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.trk-log li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.trk-log li:last-child { border-bottom: 0; }
@media (max-width: 560px) { .trk-log li { grid-template-columns: 1fr; gap: 6px; } }
.trk-when { font-weight: 700; color: var(--navy); display: grid; align-content: start; }
.lang-ar .trk-when { text-align: right; }
.trk-when small { color: var(--muted); font-weight: 400; }
.trk-body p { margin: 0; }
.trk-k-date .trk-body p { color: #A86A10; }
.trk-k-stage .trk-body p { font-weight: 700; color: var(--navy); }
.trk-imgs { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.trk-imgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.trk-side { display: grid; gap: 14px; }
.trk-help { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; background: #fff; box-shadow: var(--sh); }
.trk-help h3 { margin: 0; font-size: 18px; }
.trk-help p { margin: 0; color: var(--muted); }
.btn-wa-site { background: #1FA855; color: #fff; }
.btn-wa-site:hover { background: #22BA5E; }
.trk-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin: 0; }
.dt-ltr { unicode-bidi: isolate; white-space: nowrap; display: inline-block; }

/* ===== الموقع تحت الإنشاء ===== */
.soon-nav { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.soon-nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.soon-nav .lang-switch { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.soon-nav .lang-switch:hover { color: var(--navy); background: var(--band); }
.soon-nav .btn { color: var(--on-spark); background: var(--spark); }
.soon {
  min-height: calc(100vh - 68px - 64px); min-height: calc(100svh - 68px - 64px);
  display: grid; align-items: center; padding-block: 56px 72px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(60% 80% at 85% 10%, rgba(43, 111, 214, .38), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, #0A1D38 100%);
}
.soon-in { display: grid; justify-items: center; text-align: center; gap: 22px; max-width: 860px; }
.soon-tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--accent-hi); font-weight: 700; font-size: 15px; }
.soon-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 0 rgba(242, 140, 40, .6); animation: soon-pulse 2s infinite; }
@keyframes soon-pulse { 70% { box-shadow: 0 0 0 10px rgba(242, 140, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 140, 40, 0); } }
@media (prefers-reduced-motion: reduce) { .soon-dot { animation: none; } }
.soon h1 { margin: 0; font-size: clamp(30px, 6vw, 52px); line-height: 1.3; font-weight: 800; color: #fff; }
.soon-lead { margin: 0; font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); max-width: 720px; }
.soon-svc { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.soon-svc li { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--band); color: var(--text); font-size: 14px; font-weight: 600; }
.soon-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.soon-act .btn { padding: 14px 24px; font-size: 17px; text-decoration: none; }
.soon-quote { background: var(--spark); color: var(--on-spark); }
.soon-quote:hover { background: var(--spark-hi); }
.lang-ar .soon-quote .ic { transform: scaleX(-1); }
.soon-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.soon-ghost:hover { background: var(--band); }
.soon-info { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); font-size: 15px; }
.soon-info li { display: inline-flex; align-items: center; gap: 8px; }
.soon-info .ic { color: var(--accent); flex: none; }
.soon-info a { color: var(--muted); text-decoration: none; }
.soon-info a:hover { color: var(--text); }
.soon-foot .foot-base { border-top: 0; }
@media (max-width: 560px) {
  .soon { padding-block: 40px 56px; }
  .soon-act { display: grid; width: 100%; }
  .soon-info { display: grid; justify-items: center; }
}
.soon-bar { background: var(--spark); color: var(--on-spark); font-size: 14px; font-weight: 600; }
.soon-bar .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding-block: 8px; }
.soon-bar a { color: var(--on-spark); font-weight: 800; }

/* ===== الشريط المتحرك في أول الرئيسية ===== */
.hero.has-strip { padding-bottom: 28px; }
.hero.has-strip .hero-grid { min-height: min(60vh, 540px); }
.hero-strip { position: relative; margin-top: 24px; overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.hs-track { display: flex; gap: 16px; width: max-content; animation: hs-run var(--dur, 50s) linear infinite; }
.lang-ar .hs-track { animation-direction: reverse; }
.hero-strip:hover .hs-track { animation-play-state: paused; }
.hs-item { margin: 0; flex: none; width: 270px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 10px 30px -18px rgba(10, 29, 56, .55); }
.hs-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.hs-item:hover img { transform: scale(1.06); }
@keyframes hs-run { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
@media (max-width: 700px) { .hero-strip { margin-top: 20px; } .hs-item { width: 210px; border-radius: 12px; } .hs-track { gap: 12px; } @keyframes hs-run { to { transform: translateX(calc(-50% - 6px)); } } }
@media (prefers-reduced-motion: reduce) { .hs-track { animation: none; } .hero-strip { overflow-x: auto; } }

/* ===== طلب عرض السعر: 3 طرق ===== */
.qpaths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.qpath { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 18px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--text); text-decoration: none; box-shadow: var(--sh); transition: border-color .2s, box-shadow .2s, transform .2s; }
.qpath:hover { border-color: var(--accent); transform: translateY(-2px); }
.qpath.is-on { border-color: var(--spark); box-shadow: 0 0 0 3px rgba(242, 140, 40, .18), var(--sh); }
.qp-n { position: absolute; top: 14px; inset-inline-end: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--band); color: var(--muted); }
.qpath.is-on .qp-n { background: var(--spark); color: var(--on-spark); }
.qp-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.qpath b { font-size: 18px; color: var(--navy); margin-top: 4px; }
.qp-t { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.qp-out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 700; color: var(--navy); }
.qp-out em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; }
@media (max-width: 860px) {
  .qpaths { grid-template-columns: 1fr; gap: 10px; }
  .qpath { grid-template-columns: 46px 1fr; column-gap: 12px; padding: 14px; }
  .qp-ic { grid-row: span 2; }
  .qpath b { margin-top: 0; font-size: 17px; }
  .qp-t, .qp-out { grid-column: 2; }
  .qp-n { top: 12px; }
}
.qm { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.qm[hidden] { display: none; }
.qm + .qm { border-top: 1px solid var(--line); padding-top: 18px; }
.qm-h { padding: 0; margin-bottom: 2px; font-size: 18px; font-weight: 800; color: var(--navy); }
.qa { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.qa legend { float: inline-start; padding: 0; font-weight: 600; font-size: 15.5px; }
.qa-opts { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qa-opts label { position: relative; cursor: pointer; }
.qa-opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qa-opts span { display: block; padding: 7px 14px; font-size: 14.5px; color: var(--muted); border-inline-start: 1px solid var(--line); }
.qa-opts label:first-child span { border-inline-start: 0; }
.qa-opts input:checked + span { background: var(--navy); color: #fff; }
.qa-opts input:focus-visible + span { outline: 2px solid var(--spark); outline-offset: -2px; }
.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dims.has-err input { border-color: var(--err); }
.dims label small { color: var(--muted); font-weight: 400; }
@media (max-width: 560px) { .dims { grid-template-columns: 1fr 1fr; } .qa { flex-direction: column; align-items: flex-start; } }
.q3d { display: grid; gap: 10px; }
.q3d[hidden] { display: none; }
.q3d-view { position: relative; height: clamp(300px, 58vh, 560px); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); cursor: grab; touch-action: none;
  background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #EEF2F7 70%), #EEF2F7; }
.q3d-view canvas { display: block; width: 100% !important; height: 100% !important; }
.q3d-spin { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--spark); animation: q3d-spin .9s linear infinite; }
@keyframes q3d-spin { to { transform: rotate(360deg); } }
.q3d-status { margin: 0; font-weight: 600; color: var(--muted); }
.q3d-status.is-ok { color: var(--ok); }
.q3d-status.is-err { color: var(--err); }
.q-geo { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-size: 15px; background: #fff; }
.q-geo th, .q-geo td { border: 1px solid var(--line); padding: 9px 12px; text-align: start; }
.q-geo th { background: var(--band); color: var(--muted); font-weight: 600; width: 46%; }
.done .q-geo { max-width: 460px; }
.q-est { display: grid; gap: 4px; justify-items: start; margin: 4px 0; padding: 16px 20px; border-radius: 14px; background: #FFF4E8; border: 1px solid #F6C89A; }
.q-est span { color: #7A3E06; font-weight: 600; }
.q-est b { font-size: 26px; color: var(--navy); }
.q-est small { color: var(--muted); }
.done-act { display: flex; flex-wrap: wrap; gap: 10px; }

.q3d-no { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.quote-side [hidden], #q-send [hidden], .qm [hidden] { display: none !important; }
.q-est-meta { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 14.5px; }
.q-est-meta b { color: var(--navy); }
.q-trial { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }


/* ===== طلب عرض السعر بالكروت (31-10) ===== */
.qsvcs { display: grid; gap: 12px; }
.qsvc { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; box-shadow: var(--sh); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.qsvc:hover { border-color: #B9C8E2; }
.qsvc.is-open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(33, 77, 156, .10), 0 18px 40px -24px rgba(15, 42, 79, .45); }
.qsvc-h { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); text-decoration: none; cursor: pointer; }
.qsvc-art { flex: none; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #FFFFFF, #E4ECF8 60%, #D3DFF2); box-shadow: inset 0 0 0 1px rgba(33, 77, 156, .10); transition: transform .25s; }
.qsvc-art svg { width: 58px; height: 58px; }
.qsvc-h:hover .qsvc-art { transform: translateY(-2px) rotate(-2deg); }
.qsvc-t { flex: 1; display: grid; gap: 2px; justify-items: start; min-width: 0; }
.qsvc-t b { font-size: 17px; color: var(--navy); line-height: 1.4; }
.qsvc-t > span:not(.qtag) { color: var(--muted); font-size: 14px; line-height: 1.5; }
.qsvc-chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--band); position: relative; transition: transform .25s, background .2s; }
.qsvc-chev::before { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-2px) rotate(45deg); }
.qsvc.is-open .qsvc-chev { transform: rotate(180deg); background: var(--accent-soft); }
.qsvc-b { border: 0; margin: 0; min-width: 0; padding: 16px; border-top: 1px solid var(--line); background: #FBFCFE; display: grid; gap: 14px; }
.qsvc-b[hidden], #q-park, [data-types][hidden], .qm[hidden] { display: none !important; }
.qsvc-full { background: var(--band); box-shadow: none; border-style: dashed; }
.qsvc-full .qsvc-art { width: 56px; height: 56px; border-radius: 14px; }
.qsvc-full .qsvc-art svg { width: 44px; height: 44px; }
.qtag { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 700; border-radius: 20px; padding: 2px 10px; white-space: nowrap; }
.qtag-now { background: #E6F4EC; color: #1E7A45; }
.qtag-eta { background: #FFF1E3; color: #9A520B; }
.qtag-full { background: var(--accent-soft); color: var(--accent); }
.qgroup { display: grid; gap: 8px; }
.qlab { font-weight: 700; color: var(--navy); font-size: 15px; }
.qseg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--band); border-radius: 12px; padding: 4px; gap: 4px; }
.qseg label, .qlevels label, .qchips label { position: relative; cursor: pointer; }
.qseg input, .qlevels input, .qchips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qseg span { display: block; text-align: center; padding: 8px 6px; border-radius: 9px; font-weight: 700; color: var(--muted); font-size: 14.5px; transition: background .2s, color .2s; }
.qseg input:checked + span { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(15, 31, 56, .12); }
.qlevels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qlevels span { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 13px; line-height: 1.5; transition: border-color .2s, background .2s; }
.qlevels b { color: var(--navy); font-size: 14.5px; }
.qlevels input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.qseg input:focus-visible + span, .qlevels input:focus-visible + span, .qchips input:focus-visible + span { outline: 2px solid var(--spark); outline-offset: 2px; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchips span { display: block; padding: 5px 14px; border: 1.5px solid var(--line); border-radius: 20px; background: #fff; font-size: 14px; color: var(--muted); }
.qchips input:checked + span { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.qwhy { margin: -4px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--band); color: var(--muted); font-size: 13.5px; }
.qslot:empty { display: none; }
.qmethod { display: grid; gap: 12px; }
.qdrop { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 170px; padding: 18px; text-align: center; border: 2px dashed #AAB4C3; border-radius: 16px; background: linear-gradient(#FFFFFF, #F2F5FA); color: var(--muted); font-weight: 600 !important; cursor: pointer; transition: border-color .2s, background .2s; }
.qdrop:hover, .file-input:focus-visible + .qdrop, .field:focus-within .qdrop { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.qdrop-sm { min-height: 110px; }
.qdrop-ic { color: var(--accent); }
.qdrop-ext { font-weight: 400; font-size: 13px; }
.field.has-err .qdrop { border-color: var(--err); }
.qswitch { justify-self: center; background: none; border: 0; padding: 4px 6px; color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.qswitch span { color: #9A520B; }
.qform .qm-contact { border-top: 1px solid var(--line); padding-top: 14px; }
.qsend { width: 100%; justify-content: center; }
@media (max-width: 560px) {
  .qsvc-h { gap: 12px; padding: 12px; }
  .qsvc-art { width: 62px; height: 62px; border-radius: 16px; }
  .qsvc-art svg { width: 50px; height: 50px; }
  .qsvc-t b { font-size: 16px; }
  .qsvc-b { padding: 14px 12px; }
  .qlevels { gap: 6px; } .qlevels span { padding: 8px; font-size: 12px; } .qlevels b { font-size: 13.5px; }
}
/* صفحة الخدمات: كل كارت بيفتح صفحته */
.qhub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.qhub-card { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 12px; padding: 22px 18px 18px; text-align: center; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; box-shadow: var(--sh); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.qhub-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 0 0 3px rgba(33, 77, 156, .08), 0 22px 44px -26px rgba(15, 42, 79, .5); }
.qhub-card .qsvc-art { width: 104px; height: 104px; border-radius: 26px; }
.qhub-card .qsvc-art svg { width: 84px; height: 84px; }
.qhub-card:hover .qsvc-art { transform: translateY(-3px) rotate(-2deg); }
.qhub-t { display: grid; gap: 4px; justify-items: center; align-content: start; }
.qhub-t b { font-size: 19px; color: var(--navy); }
.qhub-t > span:not(.qtag) { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.qhub-go { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px; transition: background .2s; }
.qhub-go i { font-style: normal; transition: transform .2s; }
.qhub-card:hover .qhub-go { background: var(--spark); color: var(--on-spark); }
.qhub-card:hover .qhub-go i { transform: translateX(-4px); }
.lang-en .qhub-card:hover .qhub-go i { transform: translateX(4px); }
.qhub-full { background: var(--band); border-style: dashed; box-shadow: none; }
.qhub-full .qhub-go { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.qback { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--accent); font-weight: 700; text-decoration: none; }
.qback:hover { text-decoration: underline; text-underline-offset: 4px; }
.qback i { font-style: normal; }
.qform .qsvc-h { cursor: default; }
@media (max-width: 560px) {
  .qhub { grid-template-columns: 1fr; gap: 12px; }
  .qhub-card { grid-template-columns: auto 1fr; grid-template-rows: auto auto; justify-items: start; text-align: start; column-gap: 14px; row-gap: 10px; padding: 14px; }
  .qhub-card .qsvc-art { grid-row: span 2; width: 74px; height: 74px; border-radius: 18px; }
  .qhub-card .qsvc-art svg { width: 60px; height: 60px; }
  .qhub-t { justify-items: start; } .qhub-t b { font-size: 17px; }
  .qhub-go { padding: 6px 14px; font-size: 13.5px; }
}
@media (min-width: 561px) {
  .qhub-full { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; grid-template-rows: auto; align-items: center; justify-items: start; text-align: start; gap: 16px; padding: 16px 20px; }
  .qhub-full .qsvc-art { width: 72px; height: 72px; border-radius: 18px; }
  .qhub-full .qsvc-art svg { width: 58px; height: 58px; }
  .qhub-full .qhub-t { justify-items: start; }
}

/* ===== المعاينة الكبيرة للملف ===== */
.qdrop-big { min-height: 260px; }
.qdrop.is-drag, .is-drag .qdrop { border-color: var(--spark); background: #FFF4E8; color: var(--text); }
.q3d.is-drag .q3d-view { outline: 3px dashed var(--spark); outline-offset: -6px; }
.q3d-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.q3d-fname { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.q3d-change { display: inline-flex !important; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--accent); font-weight: 700 !important; font-size: 14px; cursor: pointer; }
.q3d-change:hover { border-color: var(--accent); background: var(--accent-soft); }
.q3d-stage { position: relative; }
.q3d-view:active { cursor: grabbing; }
.q3d-tools { position: absolute; inset-inline: 10px; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; pointer-events: none; }
.q3d-tools[hidden] { display: none; }
.q3d-views, .q3d-acts { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(15,42,79,.12); pointer-events: auto; }
.q3d-tools button { min-width: 38px; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--navy); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-grid; place-items: center; }
.q3d-tools button:hover { background: var(--band); }
.q3d-tools button.is-on { background: var(--navy); color: #fff; }
.q3d-tools button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.q3d-dim { position: absolute; top: 0; left: 0; padding: 2px 7px; border-radius: 6px; background: #F28C28; color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; font-family: ui-monospace, Menlo, Consolas, monospace; }
.q3d-dim[hidden] { display: none; }
.q3d-hint { margin-top: -4px; }
.q3d-table { max-width: 560px; }
.q3d-stage.is-full { position: fixed; inset: 0; z-index: 1000; background: #fff; }
.q3d-stage.is-full .q3d-view { height: 100%; border: 0; border-radius: 0; }
.q3d-stage.is-full .q3d-tools { bottom: max(14px, env(safe-area-inset-bottom)); }
html.q3d-lock, html.q3d-lock body { overflow: hidden; }
@media (max-width: 560px) {
  .q3d-view { height: clamp(280px, 52vh, 440px); }
  .q3d-tools button { min-width: 34px; padding: 4px 7px; font-size: 12.5px; }
}

/* ===== تأكيد الإيميل بكود والموافقة ===== */
.qverify { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid #F6C89A; border-radius: 12px; background: #FFF8F0; }
.qverify[hidden] { display: none; }
.qverify-t { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-weight: 600; color: var(--navy); }
.qverify-t svg { flex: none; color: var(--spark); margin-top: 3px; }
.qverify-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qverify-row [hidden] { display: none !important; }
.qverify-code { width: 9.5em; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; font: 600 20px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .3em; text-align: center; }
.qverify-msg { color: var(--muted); }
.qverify-msg.is-ok { color: var(--ok); font-weight: 700; }
.qverify-msg.is-err { color: var(--err); }
.qverify.is-done { border-color: #BFE6D2; background: #F0FAF4; }
.qverify.is-done .qverify-t { display: none; }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.check.has-err span { color: var(--err); }

/* أزرار تحميل ملف عرض السعر */
.q-doc { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.q-doc .btn { gap: 6px; }

/* ===== رسومات صفحة طلب عرض السعر ===== */
.qinfo { margin-top: 44px; }
.qinfo-h { margin: 0 0 18px; font-size: clamp(20px, 2.4vw, 26px); color: var(--navy); text-align: center; }
.qsteps, .qflow { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.qsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.qsteps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 20px 16px 18px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 18px rgba(15, 42, 79, .06); }
.qsteps li:not(:last-child)::after { content: ""; position: absolute; top: 46px; inset-inline-end: -17px; width: 18px; border-top: 2px dashed var(--spark); }
.qsteps-ic { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: #fff; }
.qsteps-ic i { position: absolute; top: -4px; inset-inline-end: -4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--spark); color: #fff; font: 700 13px/1 inherit; font-style: normal; border: 2px solid #fff; }
.qsteps b { color: var(--navy); font-size: 16.5px; }
.qsteps span:not(.qsteps-ic) { color: var(--muted); font-size: 14px; line-height: 1.7; }
.qflow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.qflow li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: var(--band); border-radius: 999px; color: var(--navy); }
.qflow li:not(:last-child)::after { content: "←"; margin-inline-start: 6px; color: var(--spark); font-weight: 700; }
html[dir="ltr"] .qflow li:not(:last-child)::after { content: "→"; }
.qflow-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--spark); box-shadow: 0 2px 8px rgba(15, 42, 79, .08); }
.qflow b { font-size: 15px; }
.qfac { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.qfac-c { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.qfac-ic { grid-row: 1 / span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #FFF4E8; color: var(--spark); }
.qfac-c b { color: var(--navy); font-size: 16px; }
.qfac-c span:not(.qfac-ic) { color: var(--muted); font-size: 14px; line-height: 1.7; }
details.qinfo-d { margin-top: 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
details.qinfo-d summary { margin: 0; font-size: 18px; text-align: start; cursor: pointer; }
details.qinfo-d[open] summary { margin-bottom: 14px; }
@media (max-width: 900px) { .qsteps { grid-template-columns: repeat(2, 1fr); } .qsteps li::after { display: none; } .qfac { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .qsteps { grid-template-columns: 1fr; }
  .qsteps li { grid-template-columns: auto 1fr; justify-items: start; text-align: start; column-gap: 14px; padding: 14px; }
  .qsteps-ic { grid-row: 1 / span 2; width: 52px; height: 52px; }
  .qfac { grid-template-columns: 1fr; }
  .qflow { flex-direction: column; align-items: stretch; }
  .qflow li { border-radius: 14px; }
  .qflow li:not(:last-child)::after { content: "↓"; margin-inline-start: auto; }
  html[dir="ltr"] .qflow li:not(:last-child)::after { content: "↓"; }
}

/* ===== شريط التواصل الرفيع فوق القائمة (كمبيوتر بس) ===== */
.topbar { background: var(--navy-dk); color: rgba(255,255,255,.78); font-size: 13.5px; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.tb-info { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.tb-info li { display: inline-flex; align-items: center; gap: 7px; }
.tb-info .ic { color: var(--spark); }
.tb-info a { color: inherit; text-decoration: none; }
.tb-info a:hover { color: #fff; }
.socials-sm { gap: 6px; }
.socials-sm a { width: 28px; height: 28px; border-color: rgba(255,255,255,.18); }
.socials-sm a .ic { width: 15px; height: 15px; }
@media (max-width: 900px) { .topbar { display: none; } }

/* ===== رسالة جنب زرار الواتساب ===== */
.wa-hint { position: fixed; z-index: 30; inset-inline-end: calc(84px + env(safe-area-inset-right, 0px)); bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 4px; max-width: min(260px, calc(100vw - 110px)); padding: 10px 8px 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -8px rgba(15,31,56,.35); border: 1px solid var(--line);
  animation: wa-hint-in .35s ease both; }
.lang-ar .wa-hint { padding: 10px 14px 10px 8px; }
.wa-hint[hidden] { display: none; }
.wa-hint a { color: var(--navy); font-weight: 700; font-size: 14.5px; text-decoration: none; line-height: 1.5; }
.wa-hint-x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--band); color: var(--muted); cursor: pointer; font-size: 12px; }
@keyframes wa-hint-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wa-hint { animation: none; } }


/* ---------- أول الصفحة: عنوان ضخم، وشارة الدقة، والقائمة شفافة فوق الفيديو ---------- */
.logo-light { display: none; }
.hero-sub { font-size: clamp(18px, 1.7vw, 23px); font-weight: 700; line-height: 1.6; color: var(--muted); max-width: 36ch; }
.hero-media .hero-sub { color: rgba(255, 255, 255, .88); }
.hero-media .hero-grid { grid-template-columns: minmax(0, 860px); }
.hero-media h1 { font-size: clamp(42px, 6.4vw, 96px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.hero-badge { position: absolute; inset-inline-end: 24px; bottom: 44px; display: flex; align-items: baseline; gap: 10px; padding: 16px 22px; border-radius: 16px;
  color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-top: 3px solid var(--spark);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-badge b { font-size: 46px; font-weight: 500; line-height: 1; }
.hero-badge span { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.hero.has-strip .hero-badge { bottom: 20px; }
@media (max-width: 900px) {
  .hero-badge { position: static; justify-self: start; padding: 10px 16px; border-radius: 12px; }
  .hero-badge b { font-size: 30px; }
  .hero-badge span { font-size: 14px; }
}

/* القائمة فوق الفيديو: شفافة وكلامها أبيض، ولما الزائر ينزل أو يفتح القائمة بترجع بيضا */
.head-over .site-head { background: transparent; border-bottom-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .25s, box-shadow .25s, border-color .25s; }
.head-over .site-head.is-solid { background: rgba(255, 255, 255, .94); border-bottom-color: var(--line); box-shadow: 0 6px 24px -20px rgba(15, 31, 56, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.head-over .site-head:has(.nav-toggle:checked) { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; } /* التغبيش بيمنع قائمة الموبايل تملا الشاشة */
.head-over .site-head:not(.is-solid) .logo-img:not(.logo-light) { display: none; }
.head-over .site-head:not(.is-solid) .logo-light { display: block; }
.head-over .site-head:not(.is-solid) .nav-btn { color: #fff; border-color: rgba(255, 255, 255, .45); }
@media (min-width: 901px) {
  .head-over .site-head:not(.is-solid) .nav a:not(.btn) { color: rgba(255, 255, 255, .9); }
  .head-over .site-head:not(.is-solid) .nav a:not(.btn):hover, .head-over .site-head:not(.is-solid) .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }
  .head-over .site-head:not(.is-solid) .nav .lang-switch { border-color: rgba(255, 255, 255, .4); }
}
.head-over .soon-bar { position: relative; z-index: 19; }
.head-over .hero-media { margin-top: calc(-1 * var(--hh, 76px)); }
.head-over .hero-media .hero-grid { min-height: calc(100svh - 38px); padding-top: calc(var(--hh, 76px) + 48px); }
.head-over .hero-media.has-strip .hero-grid { min-height: calc(100svh - 38px - 220px); }
.head-over .hero-bg::before { content: ""; position: absolute; inset: 0 0 auto; height: 200px; z-index: 1; background: linear-gradient(180deg, rgba(8, 24, 48, .6), transparent); pointer-events: none; }
@media (max-width: 900px) {
  .head-over .hero-media { margin-top: calc(-1 * var(--hh, 66px)); }
  .head-over .hero-media .hero-grid { min-height: 100svh; padding-top: calc(var(--hh, 66px) + 40px); }
  .head-over .hero-media.has-strip .hero-grid { min-height: calc(100svh - 200px); }
}
/* درجة تغميق الفيديو من اللوحة (الإعدادات ← أول الصفحة ← الخلفية) */
.hero-bg::after { opacity: var(--dim, 1); }

/* ---------- شريط الأرقام: أرقام ضخمة وبتعدّ لما تظهر ---------- */
.facts { position: relative; overflow: hidden; }
.facts::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 85% 0%, rgba(33, 77, 156, .45), transparent 70%); pointer-events: none; }
.facts-row { position: relative; }
.fact { padding: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px); gap: 10px; align-content: start; }
.fact .num { font-size: clamp(34px, 4.4vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.fact .num::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 14px; border-radius: 2px; background: #8FB3F0; opacity: .7; }
.fact span:last-child { font-size: 15px; font-weight: 600; line-height: 1.6; color: rgba(255, 255, 255, .72); }
@media (max-width: 760px) {
  .fact .num { font-size: clamp(30px, 9vw, 40px); }
  .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.fact .num.num-long { font-size: clamp(24px, 2.3vw, 34px); } /* الأرقام الطويلة زي "800 × 1200" عشان ماتدخلش في اللي جنبها */
@media (max-width: 760px) { .fact .num.num-long { font-size: clamp(22px, 6.4vw, 28px); } }
.fact .num { justify-self: start; width: fit-content; } /* الرقم يقف في نفس جنب الكلام اللي تحته */
.lang-ar .fact .num::after { margin-left: auto; }

/* ---------- الجملة الكبيرة تحت شريط الأرقام ---------- */
.statement { padding: clamp(56px, 9vw, 120px) 0; background: #fff; }
.st-text { margin: 0; max-width: 22ch; font-size: clamp(30px, 4.6vw, 64px); font-weight: 800; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.lang-en .st-text { max-width: 26ch; }
.st-w { color: var(--navy); transition: color .35s ease; }
.st-w.st-hi { color: var(--accent); }
.st-anim .st-w:not(.on) { color: #C3CCD8; } /* بيتفعل بالجافاسكربت بس، فلو مقفولة الكلام بيفضل واضح */

/* صور القطع اللي بتتحرك جنب الجملة (عمودين: واحد طالع وواحد نازل) */
.statement.has-side .st-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.st-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: clamp(380px, 38vw, 520px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
.st-col { overflow: hidden; }
.st-track { display: grid; gap: 16px; animation: st-up var(--dur, 24s) linear infinite; }
.st-col-2 .st-track { animation-direction: reverse; }
.st-side:hover .st-track { animation-play-state: paused; }
.st-card { margin: 0; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px -24px rgba(15, 31, 56, .45); }
.st-card img { width: 100%; height: 100%; object-fit: contain; }
@keyframes st-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
@keyframes st-side { from { transform: translateX(0); } to { transform: translateX(calc(50% + 6px)); } }
@media (max-width: 900px) {
  .statement.has-side .st-grid { grid-template-columns: 1fr; }
  .st-side { grid-template-columns: 1fr; height: auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .st-track { display: flex; gap: 12px; width: max-content; animation-name: st-side; }
  .lang-en .st-track { animation-direction: reverse; }
  .st-card { width: 128px; padding: 10px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .st-track { animation: none; } }

/* صفحة "تحت الإنشاء": فيديو أول الصفحة في الخلفية وعليه طبقة كحلي */
.soon.has-bg { position: relative; isolation: isolate; overflow: hidden; background: #0A1D38; }
.soon-bg { position: absolute; inset: 0; z-index: -1; }
.soon-bg img, .soon-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.soon-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 29, 56, .78), rgba(10, 29, 56, .88)), radial-gradient(60% 80% at 85% 10%, rgba(43, 111, 214, .3), transparent 70%); }
.soon.has-bg .soon-svc li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.soon.has-bg .soon-lead, .soon.has-bg .soon-info { color: rgba(255, 255, 255, .8); }

/* ---------- الخدمات: أعمدة كبيرة بالصور، بتكبر وتتلوّن لما الزائر يقف عليها ---------- */
.pillars { display: flex; gap: 12px; height: clamp(440px, 46vw, 600px); }
.pillar { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 20px; color: #fff; text-decoration: none; isolation: isolate;
  background: linear-gradient(160deg, var(--navy), #0A1D38); transition: flex-grow .6s cubic-bezier(.2, .8, .2, 1); }
.pillar img, .pillar video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) brightness(.7) contrast(1.05); transform: scale(1.04); transition: filter .6s ease, transform .9s ease; }
.pillar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 29, 56, .05) 30%, rgba(10, 29, 56, .88) 100%); }
.pl-num { position: absolute; top: 18px; inset-inline-start: 20px; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.pl-body { position: absolute; inset-inline: 0; bottom: 0; padding: 24px; display: grid; gap: 8px; }
.pl-title { font-size: clamp(20px, 1.9vw, 28px); font-weight: 800; line-height: 1.25; }
.pl-stat { font-size: 14px; font-weight: 700; color: #BFD3F5; }
.pl-desc, .pl-more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease; }
.pl-desc { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .85); }
.pl-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.lang-ar .pl-more .ic { transform: scaleX(-1); }
.pillar:hover, .pillar:focus-visible { flex-grow: 2.4; }
.pillar:hover img, .pillar:focus-visible img, .pillar:hover video, .pillar:focus-visible video { filter: none; transform: scale(1); }
.pillar:hover .pl-desc, .pillar:focus-visible .pl-desc { max-height: 140px; opacity: 1; }
.pillar:hover .pl-more, .pillar:focus-visible .pl-more { max-height: 30px; opacity: 1; }
.pillar:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) {
  .pillars { flex-direction: column; height: auto; }
  .pillar { flex: none; height: 300px; }
  .pillar img, .pillar video { filter: brightness(.85); transform: none; }
  .pl-desc { max-height: none; opacity: 1; }
  .pl-more { max-height: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .pillar, .pillar img, .pillar video, .pl-desc, .pl-more { transition: none; } }

/* ---------- المجالات بالصور: الصورة مالية الكارت والاسم عليها ---------- */
.ind-photo { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; aspect-ratio: 1 / 1; padding: 18px; border: 0; color: #fff; background: var(--navy); }
.ind-photo .ind-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.ind-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 29, 56, 0) 35%, rgba(10, 29, 56, .9) 100%); }
.ind-photo:hover { box-shadow: var(--sh); }
.ind-photo:hover .ind-bg { transform: scale(1.06); }
.ind-photo .ind-ic { position: absolute; top: 14px; inset-inline-start: 14px; width: 38px; height: 38px; color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ind-photo h3 { color: #fff; font-size: 18px; }
.ind-photo p { color: rgba(255, 255, 255, .8); }
@media (max-width: 760px) { .ind-photo { padding: 12px; } .ind-photo h3 { font-size: 15px; } .ind-photo .ind-ic { width: 32px; height: 32px; top: 10px; inset-inline-start: 10px; } }
@media (prefers-reduced-motion: reduce) { .ind-photo .ind-bg { transition: none; } }

/* ---------- خطوات الشغل في الرئيسية: شريط كحلي، والخطوات بتنوّر واحدة واحدة والزائر نازل ---------- */
.process-band { position: relative; color: #fff; background: linear-gradient(160deg, var(--navy) 0%, #0A1D38 100%); overflow: hidden; }
.process-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.process-band .wrap { position: relative; }
.process-band .sec-head h2 { color: #fff; font-size: clamp(28px, 3.6vw, 48px); }
.process-band .sec-head p { color: rgba(255, 255, 255, .72); }
.process-band .process { margin-top: 12px; }
.process-band .process li { padding-inline-end: 24px; gap: 10px; }
.process-band .step { width: 56px; height: 56px; font-size: 20px; color: #fff; background: #0A1D38; border: 2px solid rgba(255, 255, 255, .28); transition: background-color .4s, border-color .4s, box-shadow .4s, color .4s; z-index: 1; }
.process-band .process li::before { top: 27px; inset-inline-start: 64px; inset-inline-end: 8px; border-top: 2px solid rgba(255, 255, 255, .14); }
.process-band .process li::after { content: ""; position: absolute; top: 27px; inset-inline-start: 64px; width: 0; border-top: 2px solid #8FB3F0; transition: width .6s ease .15s; }
.process-band .process li:last-child::after { display: none; }
.process-band .process li.on .step { background: var(--accent); border-color: #8FB3F0; box-shadow: 0 0 0 6px rgba(143, 179, 240, .15); }
.process-band .process li.on::after { width: calc(100% - 72px); }
.process-band h3 { color: #fff; font-size: 19px; margin-top: 8px; }
.process-band p { color: rgba(255, 255, 255, .72); }
.process-band .process.has-media .step { width: 40px; height: 40px; font-size: 16px; }
@media (max-width: 900px) {
  .process-band .process li { grid-template-columns: 56px 1fr; padding: 0; }
  .process-band .process li::before { top: 60px; bottom: -18px; inset-inline-start: 27px; border-top: 0; border-inline-start: 2px solid rgba(255, 255, 255, .14); }
  .process-band .process li::after { top: 60px; inset-inline-start: 27px; width: 0; height: 0; border-top: 0; border-inline-start: 2px solid #8FB3F0; transition: height .6s ease .15s; }
  .process-band .process li.on::after { width: 0; height: calc(100% - 42px); }
  .process-band h3 { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .process-band .step, .process-band .process li::after { transition: none; } }

/* شخصيات خطوات الشغل جوه التروس (رموز ثلاثية الأبعاد): بتشتغل لما الزائر يقف على الخطوة، وعلى الموبايل لما الخطوة تنوّر */
.process.has-figs li { gap: 12px; }
.step-fig { position: relative; width: 112px; height: 112px; display: block; color: rgba(255, 255, 255, .22); transition: color .4s; z-index: 1; }
.sf { position: absolute; inset: 0; display: block; }
.sf-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.sf-gear { transform-origin: 60px 60px; }
.sf-main { position: absolute; width: 60%; height: auto; left: 20%; top: 17%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.sf-prop { position: absolute; width: 36%; height: auto; inset-inline-end: 4%; bottom: 6%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.sf-p2 { width: 28%; bottom: auto; top: 8%; inset-inline-end: 6%; }
.step-fig .step { position: absolute; top: -4px; inset-inline-start: -4px; width: 32px; height: 32px; font-size: 14px; border-width: 2px; z-index: 2; }
.process-band .process.has-figs li::before, .process-band .process.has-figs li::after { top: 56px; inset-inline-start: 124px; }
.process-band .process.has-figs li.on::after { width: calc(100% - 132px); }
.process.has-figs li.on .step-fig, .process.has-figs li:hover .step-fig { color: #8FB3F0; }
@keyframes sf-spin { to { transform: rotate(-360deg); } } /* عكس عقارب الساعة */
@keyframes sf-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-5deg); } }
@keyframes sf-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }
@keyframes sf-write { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-4px, 2px) rotate(-8deg); } 50% { transform: translate(-8px, 0) rotate(0); } 75% { transform: translate(-4px, -2px) rotate(8deg); } }
@keyframes sf-hit { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-28deg); } 55% { transform: rotate(6deg); } }
@keyframes sf-scan { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, -6px); } }
@keyframes sf-pop { 0%, 45% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes sf-lift { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-6deg); } }
.sf-check { transform: scale(0); }
.process.has-figs li:hover .sf-gear { animation: sf-spin 6s linear infinite; }
.process.has-figs li:hover .sf-main { animation: sf-bob 1.4s ease-in-out infinite; }
.process.has-figs li:hover .sf-clipboard { animation: sf-wiggle 1.2s ease-in-out infinite; }
.process.has-figs li:hover .sf-pencil { animation: sf-write 1s linear infinite; }
.process.has-figs li:hover .sf-tools { animation: sf-hit .7s ease-in-out infinite; }
.process.has-figs li:hover .sf-lens { animation: sf-scan 1.8s ease-in-out infinite; }
.process.has-figs li:hover .sf-check { animation: sf-pop 1.8s ease-out infinite; }
.process.has-figs li:hover .sf-package { animation: sf-lift 1.1s ease-in-out infinite; }
@media (hover: none) {
  .process.has-figs li.on .sf-gear { animation: sf-spin 6s linear infinite; }
  .process.has-figs li.on .sf-main { animation: sf-bob 1.4s ease-in-out infinite; }
  .process.has-figs li.on .sf-clipboard { animation: sf-wiggle 1.2s ease-in-out infinite; }
  .process.has-figs li.on .sf-pencil { animation: sf-write 1s linear infinite; }
  .process.has-figs li.on .sf-tools { animation: sf-hit .7s ease-in-out infinite; }
  .process.has-figs li.on .sf-lens { animation: sf-scan 1.8s ease-in-out infinite; }
  .process.has-figs li.on .sf-check { animation: sf-pop 1.8s ease-out infinite; }
  .process.has-figs li.on .sf-package { animation: sf-lift 1.1s ease-in-out infinite; }
}
.lang-en .sf-lens { animation-direction: reverse; }
@media (max-width: 900px) {
  .process-band .process.has-figs li { grid-template-columns: 84px 1fr; }
  .step-fig { width: 84px; height: 84px; grid-row: span 2; }
  .step-fig .step { width: 26px; height: 26px; font-size: 12px; }
  .process-band .process.has-figs li::before, .process-band .process.has-figs li::after { top: 90px; inset-inline-start: 41px; }
  .process-band .process.has-figs li.on::after { width: 0; height: calc(100% - 72px); }
  .process-band .process.has-figs h3 { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .process.has-figs li * { animation: none !important; } .sf-check { transform: none; } }

/* نقطة نور ضبابية بتجري على الخط من كل خطوة للي بعدها، وسايبة وراها ديل ضبابي */
.step-run { position: absolute; top: 26px; inset-inline-start: 64px; width: 72px; height: 4px; border-radius: 4px; pointer-events: none; opacity: 0; z-index: 0;
  background: linear-gradient(to left, rgba(143, 179, 240, 0), rgba(143, 179, 240, .5) 60%, #EAF2FF); filter: blur(1.2px);
  box-shadow: -6px 0 14px 2px rgba(143, 179, 240, .55); animation: step-run 2.6s cubic-bezier(.45, 0, .25, 1) infinite; }
.lang-en .step-run { background: linear-gradient(to right, rgba(143, 179, 240, 0), rgba(143, 179, 240, .5) 60%, #EAF2FF); box-shadow: 6px 0 14px 2px rgba(143, 179, 240, .55); }
.process.has-figs .step-run { top: 54px; inset-inline-start: 124px; }
.process li:nth-child(2) .step-run { animation-delay: .5s; }
.process li:nth-child(3) .step-run { animation-delay: 1s; }
.process li:nth-child(4) .step-run { animation-delay: 1.5s; }
.process li:nth-child(5) .step-run { animation-delay: 2s; }
@keyframes step-run {
  0% { inset-inline-start: var(--run-from, 64px); opacity: 0; }
  15%, 80% { opacity: 1; }
  100% { inset-inline-start: calc(100% - 72px); opacity: 0; }
}
.process.has-figs { --run-from: 124px; }
@media (max-width: 900px) {
  .step-run { top: var(--run-top, 60px); inset-inline-start: 26px; width: 4px; height: 56px;
    background: linear-gradient(to bottom, rgba(143, 179, 240, 0), rgba(143, 179, 240, .5) 60%, #EAF2FF); box-shadow: 0 6px 14px 2px rgba(143, 179, 240, .55); animation-name: step-run-v; }
  .lang-en .step-run { background: linear-gradient(to bottom, rgba(143, 179, 240, 0), rgba(143, 179, 240, .5) 60%, #EAF2FF); box-shadow: 0 6px 14px 2px rgba(143, 179, 240, .55); }
  .process.has-figs .step-run { --run-top: 90px; inset-inline-start: 40px; }
  @keyframes step-run-v {
    0% { top: var(--run-top, 60px); opacity: 0; }
    15%, 80% { opacity: 1; }
    100% { top: calc(100% - 40px); opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) { .step-run { display: none; } }
/* الأداة المرفوعة من اللوحة بتتهز */
.process.has-figs li:hover .sf-custom { animation: sf-wiggle 1.2s ease-in-out infinite; }
@media (hover: none) { .process.has-figs li.on .sf-custom { animation: sf-wiggle 1.2s ease-in-out infinite; } }

/* ---------- صور المصنع: شبكة بأحجام مختلفة (الأولى كبيرة) ---------- */
.gal-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 210px); grid-auto-flow: dense; gap: 12px; }
.gal-mosaic .gal-item { flex: none; aspect-ratio: auto; height: 100%; border-radius: 16px; }
.gal-mosaic .gal-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gal-mosaic .gal-item:nth-child(6n+4) { grid-row: span 2; }
.gal-mosaic .gal-item:nth-child(6n+6) { grid-column: span 2; }
.gal-mosaic .gal-item img, .gal-mosaic .gal-item video { transition: transform .7s ease; }
.gal-mosaic .gal-item:hover img, .gal-mosaic .gal-item:hover video { transform: scale(1.05); }
.gal-mosaic .gal-item figcaption { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gal-mosaic .gal-item:hover figcaption { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .gal-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 8px; }
  .gal-mosaic .gal-item:nth-child(6n+1), .gal-mosaic .gal-item:nth-child(6n+6) { grid-column: span 2; grid-row: span 1; }
  .gal-mosaic .gal-item:nth-child(6n+4) { grid-row: span 2; }
  .gal-mosaic .gal-item figcaption { opacity: 1; transform: none; }
}
@media (hover: none) { .gal-mosaic .gal-item figcaption { opacity: 1; transform: none; } }

/* ---------- من أعمالنا في الرئيسية: عمل كبير وجنبه عملين صغيرين ---------- */
@media (min-width: 901px) {
  .work-feature { grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, clamp(220px, 19vw, 270px)); }
  .work-feature .work-card:first-child { grid-row: span 2; grid-template-rows: minmax(0, 1fr) auto; }
  .work-feature .work-card:first-child .work-img { aspect-ratio: auto; min-height: 0; height: 100%; }
  .work-feature .work-card:first-child .work-body { padding: 22px 24px 24px; }
  .work-feature .work-card:first-child h3 { font-size: 22px; }
  .work-feature .work-card:not(:first-child) { grid-template-columns: 46% 1fr; align-items: stretch; }
  .work-feature .work-card:not(:first-child) .work-img { aspect-ratio: auto; height: 100%; min-height: 0; }
  .work-feature .work-card:not(:first-child) .work-body { align-content: center; }
}
.work-feature .work-img img, .work-feature .work-img video { transition: transform .7s ease; }
.work-feature .work-card:hover .work-img img, .work-feature .work-card:hover .work-img video { transform: scale(1.04); }
.work-feature .work-img { overflow: hidden; }

/* ---------- شركاء النجاح: لوجوهات أكبر وبألوانها ---------- */
.cl-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cl { min-height: 170px; padding: 28px 18px 20px; gap: 10px; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px -26px rgba(15, 31, 56, .5); transition: transform .25s, box-shadow .25s, border-color .25s; }
.cl:hover { transform: translateY(-4px); border-color: #C5D4EA; box-shadow: 0 18px 36px -24px rgba(15, 31, 56, .45); }
.cl img { max-height: 84px; max-width: 80%; filter: none; opacity: 1; }
.cl-name { font-size: 22px; color: var(--navy); }
.cl-field { font-size: 14px; }
@media (max-width: 760px) {
  .cl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cl { min-height: 130px; padding: 20px 10px 14px; }
  .cl img { max-height: 60px; }
  .cl-name { font-size: 18px; }
}

/* ---------- نافذة بيانات قبل تحميل ملف التعريف ---------- */
.pf-gate { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 30px 80px -20px rgba(8, 24, 48, .55); }
.pf-gate::backdrop { background: rgba(8, 24, 48, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.pf-gate-in { position: relative; display: grid; gap: 12px; padding: 28px 24px 20px; }
.pf-gate-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); cursor: pointer; font-size: 14px; }
.pf-gate-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.pf-gate h2 { margin: 0; font-size: 22px; color: var(--navy); }
.pf-gate-sub { margin: -4px 0 4px; color: var(--muted); font-size: 15px; }
.pf-gate label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.pf-gate input:not([type="checkbox"]) { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 500; background: #fff; }
.pf-gate input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.pf-gate-ck { grid-template-columns: auto 1fr; align-items: start; font-weight: 500 !important; color: var(--muted); }
.pf-gate-ck input { margin-top: 4px; width: 18px; height: 18px; }
.pf-hp { position: absolute !important; inset-inline-start: 0; top: 0; width: 1px; height: 1px; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; } /* كانت بتعمل سكرول بالعرض */
.pf-gate { overflow-x: hidden; }
.pf-gate-err { margin: 0; color: var(--err); font-size: 14px; font-weight: 700; }
.pf-gate-go { justify-content: center; padding: 14px 20px; font-size: 17px; color: #fff; background: var(--navy); border-color: var(--navy); }
.pf-gate-go:hover { background: var(--accent); border-color: var(--accent); }
.pf-gate-go[disabled] { opacity: .6; cursor: progress; }
.pf-gate-note { margin: 0; text-align: center; font-size: 13px; }
.pf-gate-note a { color: var(--muted); }
/* حجم كل لوجو من اللوحة (--z) عشان اللوجوهات تبان قد بعض */
.cl img { height: calc(64px * var(--z, 1)); max-height: none; width: auto; max-width: 90%; object-fit: contain; }
.cl { overflow: hidden; }
@media (max-width: 760px) { .cl img { height: calc(46px * var(--z, 1)); } }

/* ---------- شركاء النجاح: شريط لوجوهات بيتحرك من الشمال لليمين ---------- */
.cl-marquee { position: relative; direction: ltr; overflow: hidden; padding-block: 18px; margin-inline: calc(-1 * max(16px, (100vw - var(--wrap)) / 2)); padding-inline: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cl-marquee::before, .cl-marquee::after { content: ""; position: absolute; inset-inline: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(33, 77, 156, .35), transparent); }
.cl-marquee::before { top: 0; } .cl-marquee::after { bottom: 0; }
.cl-track { display: flex; gap: 18px; width: max-content; animation: cl-run var(--dur, 30s) linear infinite; }
.cl-marquee:hover .cl-track { animation-play-state: paused; }
.cl-m { flex: 0 0 auto; width: 220px; min-height: 130px; position: relative; }
.cl-m::after { content: ""; position: absolute; inset: auto 30% 10px; height: 3px; border-radius: 3px; background: var(--accent); opacity: 0; transform: scaleX(.3); transition: opacity .3s, transform .3s; }
.cl-m:hover::after { opacity: .8; transform: scaleX(1); }
@keyframes cl-run { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 760px) { .cl-m { width: 160px; min-height: 100px; } .cl-track { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .cl-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- آخر الرئيسية: رقم التليفون بخط ضخم ---------- */
.cta-big { position: relative; overflow: hidden; text-align: center; }
.cta-big::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.cta-big-in { position: relative; display: grid; justify-items: center; gap: 14px; padding-block: clamp(56px, 8vw, 100px); }
.cta-eyebrow { margin: 0; color: #8FB3F0; font-weight: 700; font-size: clamp(15px, 1.4vw, 18px); }
.cta-big h2 { color: #fff; font-size: clamp(26px, 3.4vw, 44px); margin: 0; }
.cta-phone { display: inline-block; margin-top: 6px; color: #fff; text-decoration: none; font-size: clamp(38px, 8.2vw, 116px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; white-space: nowrap;
  background: linear-gradient(90deg, #fff 0%, #CFE0FF 50%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: cta-shine 6s linear infinite; }
.cta-phone:hover { -webkit-text-fill-color: #fff; }
@keyframes cta-shine { to { background-position: -200% 0; } }
.cta-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.cta-acts .btn { padding: 15px 28px; font-size: 17px; }
.cta-q { background: var(--spark); color: var(--on-spark); border-color: var(--spark); }
.cta-q:hover { background: var(--spark-hi); }
.lang-ar .cta-q .ic { transform: scaleX(-1); }
.cta-notes { margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.cta-notes span { display: inline-flex; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .cta-phone { animation: none; } }

/* ملف التعريف قيد التحديث: بعد الطلب بتظهر رسالة الشكر بس */
.pf-gate.is-done label, .pf-gate.is-done .pf-gate-go, .pf-gate.is-done .pf-gate-err, .pf-gate.is-done .pf-gate-sub { display: none; }
.pf-gate-done { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px; background: #EAF7EF; color: #1E6B41; font-weight: 700; line-height: 1.7; }
.pf-gate-done[hidden] { display: none; }
.pf-gate-done p { margin: 0; }
.pf-ok { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #2E9E5B; color: #fff; }

/* تنبيه "الموقع قيد التطوير" تحت القائمة */
.dev-notice { position: relative; z-index: 18; background: #FFF6E9; border-bottom: 1px solid #F6D9AE; color: #7A4A10; font-size: 14px; font-weight: 600; }
.dev-notice .wrap { display: flex; align-items: center; gap: 10px; padding-block: 9px; }
.dev-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 0 rgba(242, 140, 40, .6); animation: dev-pulse 2s infinite; }
@keyframes dev-pulse { 70% { box-shadow: 0 0 0 8px rgba(242, 140, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 140, 40, 0); } }
.dev-x { margin-inline-start: auto; flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 13px; }
.dev-x:hover { background: rgba(122, 74, 16, .1); }
.head-over .dev-notice { position: relative; }
@media (prefers-reduced-motion: reduce) { .dev-dot { animation: none; } }

/* الرقم التاني جنب الأول */
.tb-sep { margin-inline: 6px; opacity: .5; }
.fc-phones { display: grid; gap: 4px; }
.cta-phone2 { color: #CFE0FF; text-decoration: none; font-size: clamp(22px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.01em; margin-top: -4px; }
.cta-phone2:hover { color: #fff; }

/* أعمالنا قيد التحديث */
.wp-box{max-width:640px;margin:0 auto;text-align:center;background:#fff;border:1px solid #E3E8F0;border-radius:18px;padding:40px 24px;box-shadow:0 10px 30px rgba(15,42,79,.06)}
.wp-ic{position:relative;display:inline-grid;place-items:center;width:76px;height:76px;border-radius:50%;background:#EEF3FB;color:var(--accent,#214D9C);margin-bottom:14px}
.wp-ic i{position:absolute;bottom:-2px;inset-inline-end:-2px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--navy,#0F2A4F);color:#fff;border:3px solid #fff}
.wp-box h2{color:var(--navy,#0F2A4F);margin:0 0 10px;font-size:clamp(1.3rem,3.5vw,1.7rem)}
.wp-box p{color:#4A5870;line-height:1.9;margin:0 auto 22px;max-width:52ch}
.wp-btns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.wp-btns .btn{min-width:180px;justify-content:center}
.wp-box .wp-admin{margin:22px 0 0;font-size:.85rem;color:#8A94A6;background:#F6F8FB;border-radius:10px;padding:8px 12px}

/* ===== صفحة الخدمات ===== */
.sv-tag { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; max-width: 760px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); border-radius: var(--r); font-weight: 700; color: var(--navy); line-height: 1.8; box-shadow: var(--sh); }
.sv-tag-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.sv-nav { position: sticky; top: var(--hh, 72px); z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sv-nav-in { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.sv-nav-in::-webkit-scrollbar { display: none; }
.sv-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px; background: #fff; transition: border-color .2s, background .2s; }
.sv-nav a:hover, .sv-nav a.is-on { border-color: var(--accent); background: var(--accent-soft); }
.sv-nav a svg { color: var(--accent); }
.sv-nav a b { font-size: 12px; color: var(--muted); background: var(--band); border-radius: 999px; padding: 1px 8px; }
.sv-group { scroll-margin-top: calc(var(--hh, 72px) + 56px); }
.sv-ghead { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.sv-gic { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--navy); color: #fff; }
.sv-ghead h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; color: var(--navy); line-height: 1.3; }
.sv-ghead p { color: var(--muted); margin-top: 4px; max-width: 70ch; }
.sv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sv-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--sh); scroll-margin-top: calc(var(--hh, 72px) + 64px); transition: transform .25s, box-shadow .25s, border-color .25s; }
.sv-card:hover { transform: translateY(-4px); border-color: #C9D6EA; box-shadow: 0 2px 4px rgba(15,31,56,.05), 0 22px 40px -22px rgba(15,31,56,.4); }
.sv-media { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy), #1B3F78); overflow: hidden; }
.sv-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sv-card:hover .sv-media img { transform: scale(1.05); }
.sv-ph { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.9); background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; }
.sv-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.sv-body h3 { font-size: 21px; font-weight: 800; line-height: 1.4; }
.sv-body h3 a { color: var(--navy); text-decoration: none; }
.sv-body h3 a:hover { color: var(--accent); }
.sv-sum { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.sv-pts { list-style: none; display: grid; gap: 6px; margin: 2px 0 0; padding: 0; }
.sv-pts li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--text); line-height: 1.7; }
.sv-pts li svg { flex: none; margin-top: 5px; color: var(--ok); }
.sv-btns { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
/* صفحة الخدمة */
.sd-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; }
.sd-stats li { display: grid; gap: 2px; padding: 10px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); min-width: 130px; }
.sd-stats b { font-size: 22px; font-weight: 900; color: var(--accent); line-height: 1.3; }
.sd-stats span { font-size: 13.5px; color: var(--muted); }
.page-top.has-media .sd-stats li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.page-top.has-media .sd-stats b { color: #fff; }
.page-top.has-media .sd-stats span { color: rgba(255,255,255,.8); }
.sd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.sd-h { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--navy); margin-bottom: 18px; }
.sd-pts { list-style: none; display: grid; gap: 12px; margin: 0 0 30px; padding: 0; }
.sd-pts li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--band); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--text); line-height: 1.8; }
.sd-pt-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; }
.sd-body { max-width: none; }
.sd-side { position: sticky; top: calc(var(--hh, 72px) + 20px); }
.sd-card { display: grid; gap: 12px; padding: 24px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: var(--sh); }
.sd-card h2 { font-size: 22px; font-weight: 900; color: #fff; }
.sd-card p { color: rgba(255,255,255,.8); line-height: 1.8; font-size: 15px; }
.sd-card .btn { width: 100%; }
.sd-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; padding-top: 4px; }
.sd-mc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sd-mc-item { display: flex; align-items: center; gap: 14px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.sd-mc-img { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--navy); color: #fff; }
.sd-mc-img img { width: 100%; height: 100%; object-fit: cover; }
.sd-mc-item h3 { font-size: 17px; font-weight: 800; color: var(--navy); }
.sd-mc-size { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.sd-faq { max-width: 860px; display: grid; gap: 10px; }
.sd-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.sd-faq summary { cursor: pointer; padding: 16px 0; font-weight: 800; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
.sd-faq details[open] summary::after { content: "−"; }
.sd-faq details p { padding-bottom: 16px; color: var(--muted); line-height: 1.9; }
@media (max-width: 960px) {
  .sv-grid { grid-template-columns: repeat(2, 1fr); }
  .sd-grid { grid-template-columns: 1fr; gap: 28px; }
  .sd-side { position: static; }
}
@media (max-width: 640px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-media:has(.sv-ph) { aspect-ratio: 16 / 6; }
  .sv-ghead { gap: 12px; }
  .sv-gic { width: 48px; height: 48px; border-radius: 13px; }
  .sd-stats li { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .sd-stats b { font-size: 19px; }
}

/* نوع الإسطمبة: 7 أنواع بتلف على سطرين بدل ما تتزنق */
.qseg { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
@media (max-width: 640px) { .qseg { grid-template-columns: repeat(2, 1fr); } }

/* صفحة الخدمة: العمليات والتقنيات — دواير بيضا بحافة ترس + خط منقّط متموّج بنقطة نور لحد التسليم */
.pf { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 18px; --cols: 5; }
.pf > .pf-item { width: calc((100% - (var(--cols) - 1) * 18px) / var(--cols)); }
.pf-item { position: relative; display: grid; justify-items: center; align-content: start; gap: 14px; text-align: center; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i) * 90ms); }
.pf.on .pf-item { opacity: 1; transform: none; }
.pf-node { position: relative; z-index: 1; display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 14px 30px -18px rgba(15, 42, 79, .55); }
.pf-edge { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); transition: transform .8s ease; }
.pf-edge path { fill: none; stroke: rgba(33, 77, 156, .3); stroke-width: 1.6; }
.pf-item:hover .pf-edge { transform: rotate(60deg); }
.pf-item:hover .pf-edge path { stroke: var(--accent); }
.pf-ic { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--accent-soft); transition: background .25s, color .25s; }
.pf-item:hover .pf-ic { background: var(--navy); color: #fff; }
.pf-node b { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--spark); color: var(--on-spark); font-size: 14px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--band); }
.pf-t { font-weight: 800; color: var(--navy); line-height: 1.55; font-size: 15.5px; max-width: 19ch; }
.pf-end .pf-node { background: var(--navy); color: #fff; box-shadow: 0 0 0 8px rgba(33, 77, 156, .08), 0 18px 34px -16px rgba(15, 42, 79, .8); }
.pf-end .pf-edge path { stroke: rgba(255, 255, 255, .25); }
.pf-end .pf-ic { background: var(--spark); color: var(--on-spark); animation: pf-pulse 2.4s ease-in-out infinite; }
.pf-end .pf-t { font-size: 18px; font-weight: 900; }
@keyframes pf-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 140, 40, .45); } 50% { box-shadow: 0 0 0 14px rgba(242, 140, 40, 0); } }
/* الخط المتموّج بين كل دايرة واللي بعدها (من اليمين للشمال بالعربي) */
.pf-link { position: absolute; top: 48px; height: 20px; inset-inline-start: calc(50% + 62px); width: calc(100% - 124px + 18px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 C 25 0, 25 0, 50 10 S 75 20, 100 10' fill='none' stroke='%23214D9C' stroke-opacity='.45' stroke-width='2' stroke-dasharray='5 5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.pf-item:nth-child(5n) .pf-link { display: none; }
.pf-link i { position: absolute; top: 50%; inset-inline-start: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 4px rgba(242, 140, 40, .22), 0 0 14px 4px rgba(242, 140, 40, .55); animation: pf-run 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * .45s); opacity: 0; }
@keyframes pf-run { 0% { inset-inline-start: 0; transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 25% { transform: translateY(-5px); } 50% { transform: translateY(0); } 75% { transform: translateY(5px); } 90% { opacity: 1; } 100% { inset-inline-start: 100%; transform: translateY(0); opacity: 0; } }
.sd-mc-head { margin-top: 56px; }
@media (max-width: 1100px) { .pf { --cols: 4; } .pf-item:nth-child(5n) .pf-link { display: block; } .pf-item:nth-child(4n) .pf-link { display: none; } }
@media (max-width: 860px) {
  .pf { display: grid; grid-template-columns: 1fr; gap: 0; }
  .pf > .pf-item { width: auto; }
  .pf-item { grid-template-columns: 84px 1fr; justify-items: start; align-items: center; text-align: start; gap: 16px; padding-bottom: 30px; }
  .pf-node { width: 84px; height: 84px; }
  .pf-ic { width: 56px; height: 56px; }
  .pf-ic svg { width: 30px; height: 30px; }
  .pf-node b { top: -8px; min-width: 26px; height: 26px; font-size: 12.5px; }
  .pf-t { max-width: none; }
  .pf-item .pf-link, .pf-item:nth-child(4n) .pf-link, .pf-item:nth-child(5n) .pf-link { display: block; top: 88px; inset-inline-start: 32px; width: 20px; height: calc(100% - 92px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'%3E%3Cpath d='M10 0 V100' fill='none' stroke='%23214D9C' stroke-opacity='.45' stroke-width='2' stroke-dasharray='5 5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
  .pf-link i { left: 50%; top: 0; inset-inline-start: auto; margin: -5px 0 0 -5px; animation-name: pf-down; }
  @keyframes pf-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .pf-item { opacity: 1; transform: none; transition: none; } .pf-link i, .pf-end .pf-ic { animation: none; } }

/* الخامات اللي بنشتغل عليها */
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mat { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.mat:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--sh); }
.mat-code { flex: none; display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 8px; border-radius: 14px; background: var(--navy); color: #fff; font: 800 17px var(--f-mono); letter-spacing: .5px; position: relative; overflow: hidden; }
.mat-code::after { content: ""; position: absolute; inset-inline-end: 0; bottom: 0; width: 18px; height: 18px; background: var(--spark); border-start-start-radius: 10px; }
.mat h3 { font-size: 16.5px; font-weight: 800; color: var(--navy); line-height: 1.45; }
.mat p { font-size: 14px; color: var(--muted); line-height: 1.75; margin-top: 4px; }

/* الأدلة والأخبار */
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--sh); transition: transform .25s, box-shadow .25s; }
.pc:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15,31,56,.05), 0 22px 40px -22px rgba(15,31,56,.4); }
.pc-img { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), #1B3F78); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pc:hover .pc-img img { transform: scale(1.05); }
.pc-ph { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.85); background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; }
.pc-kind { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--spark); color: var(--on-spark); font-size: 13px; font-weight: 800; }
.pc-img .pc-kind { position: absolute; top: 12px; inset-inline-start: 12px; }
.pc-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.pc-date { font-size: 13px; color: var(--muted); }
.pc-body h3 { font-size: 19px; font-weight: 800; line-height: 1.5; }
.pc-body h3 a { color: var(--navy); text-decoration: none; }
.pc-body h3 a:hover { color: var(--accent); }
.pc-body p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.pc-body .link-arrow { margin-top: auto; padding-top: 6px; }
.filters a.chip { text-decoration: none; display: inline-block; }
.post-top h1 { max-width: 30ch; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 4px; color: var(--muted); font-size: 14px; }
.page-top.has-media .post-meta { color: rgba(255,255,255,.8); }
.post-body { max-width: 760px; color: var(--text); font-size: 17px; line-height: 2; }
.post-body h2 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 900; color: var(--navy); margin: 30px 0 8px; padding-inline-start: 14px; border-inline-start: 4px solid var(--spark); line-height: 1.5; }
.post-body p { margin: 0 0 14px; color: #33435B; }
.post-body ul { margin: 0 0 16px; padding-inline-start: 22px; display: grid; gap: 8px; }
.post-body li::marker { color: var(--accent); }

/* لوجو العميل على العمل */
.work-client { position: absolute; bottom: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 74px; height: 46px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.95); box-shadow: 0 6px 16px -8px rgba(15,31,56,.5); }
.work-client img { max-width: 100%; max-height: 100%; object-fit: contain; }
.work-img { position: relative; }

/* فورم "راسلنا" في صفحة التواصل */
.cf-wrap { max-width: 860px; }
.cf-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.cf-ic { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--navy); color: #fff; }
.cf-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--navy); }
.cf-head p { color: var(--muted); margin-top: 4px; }
.cf { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--sh); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf .field { display: grid; gap: 6px; }
.cf label { font-weight: 700; color: var(--text); font-size: 15px; }
.cf input:not([type=checkbox]), .cf textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cf input:focus, .cf textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.cf .btn { justify-self: start; }
@media (max-width: 860px) { .pc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pc-grid { grid-template-columns: 1fr; } .cf-row { grid-template-columns: 1fr; } .cf .btn { justify-self: stretch; } }

/* صفحة الخدمة: فيديو الإسطمبة اللي بتتجمع جنب العنوان */
.page-top .wrap.pt-side { grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); align-items: center; gap: 28px; justify-items: stretch; }
.pt-text { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.pt-vid { grid-column: 2; grid-row: 1; aspect-ratio: 1; margin-block: -30px -24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent); mask-composite: intersect; }
.pt-vid video { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; display: block; }
@media (max-width: 860px) {
  .page-top .wrap.pt-side { grid-template-columns: 1fr; gap: 6px; }
  .pt-vid { grid-column: 1; grid-row: 2; width: min(360px, 88vw); justify-self: center; margin: -6px 0 -16px; }
}
@media (prefers-reduced-motion: reduce) { .pt-vid video { display: none; } .pt-vid { background: url(../video/mold-assemble.jpg) center / cover; } }
