/* =========================================================
   السراج العالمية لإدارة المشاريع — نظام التصميم
   ألوان الهوية: أخضر بترولي + نحاسي، خلفية بيضاء
   ========================================================= */

/* ---------- خطوط الموقع (ملفات محلية في assets/font) ---------- */
@font-face {
  font-family: "AlHfhaf";                    /* الخط العربي */
  src: url("../font/H-ALHFHAF-ARABIC.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Sui Generis";                /* الخط الإنجليزي */
  src: url("../font/sui generis.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand-teal:      #16403B;
  --brand-teal-2:    #1E524C;
  --brand-teal-3:    #0F302C;
  --brand-copper:    #A85A2C;
  --brand-copper-2:  #C67A45;
  --brand-copper-3:  #8E4922;

  --bg:        #FFFFFF;
  --surface:   #F5F7F6;
  --surface-2: #EDF1F0;
  --ink:       #163C39;
  --text:      #33413F;
  --muted:     #6D7C7A;
  --line:      #E2E8E6;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 50px -24px rgba(15, 46, 43, .28);
  --shadow-sm: 0 8px 24px -14px rgba(15, 46, 43, .30);

  --container: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "AlHfhaf", "Tajawal", system-ui, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
}
/* الوضع الإنجليزي: خط Sui Generis واتجاه LTR (يُبدَّل من زر اللغة) */
html[lang="en"] body { font-family: "Sui Generis", "Tajawal", "Segoe UI", sans-serif; }
html[lang="en"] .hero-title { letter-spacing: 0; }
/* هامش أمان إضافي: تسميات إنجليزية أعرض حرفياً من العربية القصيرة، فنقلّص
   المسافة والخط شوي بالقائمة حتى تبقى كل التسميات بسطر واحد بدون التفاف */
html[lang="en"] .main-nav { gap: 22px; }
html[lang="en"] .main-nav a { font-size: 15px; }
/* النصوص الفرعية/الوصفية بالإنجليزي: Sui Generis المجاني وزن واحد ثابت فقط
   (لا يستجيب لـ font-weight)، فنستخدم Quicksand (مجاني، Google Fonts، مدوّر
   بروح مشابهة) — العناوين تبقى بخط Sui Generis. وزن 600 (شبه-غامق) بدل اللايت
   الأصلي: النص الصغير باللايت غير مقروء مهما كان لون الخلفية، فوحّدنا الوزن */
html[lang="en"] .hero-lead,
html[lang="en"] .section-head .lead,
html[lang="en"] .feature-list p,
html[lang="en"] .why-card p,
html[lang="en"] .vm-card p,
html[lang="en"] .proj-desc,
html[lang="en"] .pc-desc,
html[lang="en"] .pv-desc,
html[lang="en"] .page-hero p,
html[lang="en"] .cta-inner p,
html[lang="en"] .gift-hero-lead,
html[lang="en"] .gift-hint,
html[lang="en"] .gift-box-hint,
html[lang="en"] .gift-copy .lead,
html[lang="en"] .gift-points li {
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-weight: 600;
}
/* على خلفية بيضاء تحديداً (قسم "من نحن"): اللون الرمادي الفاتح الافتراضي
   ضعيف التباين، فنغمّقه هون فقط — بقية النصوص أعلاه على خلفيات داكنة وواضحة
   أصلاً بلونها الأبيض شبه الكامل */
html[lang="en"] .section-head .lead { color: var(--text); font-size: 19px; }
html[lang="en"] .feature-list p { color: var(--text); font-size: 16.5px; }

/* الوضع العربي (خط AlHfhaf): تباعد أوسع بين الكلمات + تكبير كل النصوص عدا العناوين الكبيرة */
html[lang="ar"] body { word-spacing: 0.2em; font-size: 18px; }
html[lang="ar"] .main-nav a { font-size: 17.5px; }
html[lang="ar"] .brand-text em { font-size: 14.5px; }
html[lang="ar"] .btn { font-size: 17px; }
html[lang="ar"] .btn-lg { font-size: 18.5px; }
html[lang="ar"] .btn-sm { font-size: 16.5px; }
html[lang="ar"] .eyebrow { font-size: 16px; }
html[lang="ar"] .hero-lead { font-size: clamp(18.5px, 2.4vw, 22px); }
html[lang="ar"] .globe-caption { font-size: 17px; }
html[lang="ar"] .kicker { font-size: 24px; }
html[lang="ar"] .section-head .lead { font-size: 19.5px; }
html[lang="ar"] .about .lead { font-size: 20px; }
html[lang="ar"] .feature-list h4 { font-size: 20px; }
html[lang="ar"] .feature-list p,
html[lang="ar"] .why-card p,
html[lang="ar"] .field input,
html[lang="ar"] .field textarea { font-size: 17.5px; }
html[lang="ar"] .contact-tiles-col h3 { font-size: 16.5px; }
html[lang="ar"] .contact-tiles-col p:not(.tile-phone) { font-size: 14px; }
html[lang="ar"] .contact-tiles-col p.tile-phone { font-size: 16px; }
html[lang="ar"] .tile-lic-code { font-size: 13.5px; }
html[lang="ar"] .type-pill { font-size: 15.5px; }
html[lang="ar"] .tl-body h4 { font-size: 18.5px; }
html[lang="ar"] .proj-tab { font-size: 17px; }
html[lang="ar"] .proj-country { font-size: 16.5px; }
html[lang="ar"] .proj-badge,
html[lang="ar"] .proj-chip { font-size: 15.5px; }
html[lang="ar"] .proj-actions .btn { font-size: 16.5px; }
html[lang="ar"] .pc-chip { font-size: 14px; }
html[lang="ar"] .pc-desc { font-size: 15.5px; }
html[lang="ar"] .pc-cta { font-size: 15.5px; }
html[lang="ar"] .pv-desc { font-size: 17px; }
html[lang="ar"] .pv-stat-label { font-size: 14px; }
/* الخط العربي (AlHfhaf) لا يملك وزناً غامقاً حقيقياً، فنضيف تخطيطاً رفيعاً
   يُثخّن الحروف بصرياً — بالعربي فقط، الإنجليزي (Sui Generis) ممتاز كما هو */
html[lang="ar"] .pv-num,
html[lang="ar"] .pv-status { -webkit-text-stroke: .45px currentColor; }
/* الأرقام اللاتينية تُعرض أصلاً بخط احتياطي غامق حقيقياً (لا تحمله AlHfhaf) —
   التخطيط أعلاه كان يُلصق الأرقام المتلاصقة ببعضها (مثلاً بالتاريخ)، فنُلغى عنها هنا */
html[lang="ar"] .pv-digit,
html[lang="ar"] .pv-num-ben { -webkit-text-stroke: 0; }
html[lang="ar"] .pv-eyebrow { font-size: 15.5px; }
html[lang="ar"] .projects-cta p { font-size: 19px; }
html[lang="ar"] .guarantee-list li { font-size: 18px; }
html[lang="ar"] .cta-inner p,
html[lang="ar"] .page-hero p { font-size: 19.5px; }
html[lang="ar"] .fl-field label,
html[lang="ar"] .field-static-label { font-size: 16.5px; }
html[lang="ar"] .form-note { font-size: 16px; }
html[lang="ar"] .footer-slogan { font-size: 18px; }
html[lang="ar"] .footer-license { font-size: 16.5px; }
html[lang="ar"] .footer-col h5 { font-size: 17px; }
html[lang="ar"] .footer-col a { font-size: 17px; }
html[lang="ar"] .footer-bottom { font-size: 16px; }
html[lang="ar"] .gift-hint { font-size: 16px; }
html[lang="ar"] .gift-copy .lead { font-size: 18.5px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; word-spacing: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5 { color: var(--ink); line-height: 1.3; font-weight: 800; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; cursor: pointer;
  border: 1.5px solid transparent; transition: .25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-copper { background: var(--brand-copper); color: #fff; }
.btn-copper:hover { background: var(--brand-copper-3); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(192,96,44,.6); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color:#fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.lang-toggle { min-width: 58px; justify-content: center; letter-spacing: .5px; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60;
  transition: .3s var(--ease);
  padding: 16px 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -18px rgba(15,46,43,.4);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; transition: color .3s; }
.scrolled .brand { color: var(--brand-teal); }
.brand-mark { display: inline-flex; color: currentColor; }
/* شعار السراج الرسمي: أبيض فوق الهيرو الداكن، وبألوانه الأصلية بعد التمرير */
.brand-logo { height: 72px; width: auto; display: block; transition: filter .3s var(--ease), height .3s var(--ease); }
.scrolled .brand-logo { height: 56px; }
.site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }
.footer-brandmark .brand-logo { filter: brightness(0) invert(1); height: 82px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; font-weight: 900; }
.brand-text em { font-size: 12.5px; font-style: normal; opacity: .85; }

.main-nav { display: flex; align-items: center; gap: 28px; position: relative; }
/* منع التفاف اسم الرابط لسطرين — كان "About Us"/"Memorial Dedication" ينكسر
   لسطرين لما تضيق المساحة، بدل ما تبقى كل تسمية بسطر واحد ثابت */
.main-nav a { color: rgba(255,255,255,.9); font-weight: 500; font-size: 16px; white-space: nowrap; position: relative; z-index: 1; padding: 4px 0; transition: color .25s; }
.main-nav a::after { content:""; position:absolute; inset-block-end:-2px; inset-inline-start:0; width:0; height:2px; background: var(--brand-copper-2); transition: width .25s var(--ease); }
.main-nav a:hover::after { width: 100%; }
.scrolled .main-nav a { color: var(--text); }
.scrolled .main-nav a:hover { color: var(--brand-teal); }
.main-nav a.is-active { color: var(--brand-copper-2); }
.main-nav a.is-active::after { width: 100%; }
.scrolled .main-nav a.is-active { color: var(--brand-copper-3); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s; }
.scrolled .nav-toggle span { background: var(--brand-teal); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(198,122,69,.34), transparent 60%),
    linear-gradient(155deg, #0F302C 0%, #16403B 45%, #1E524C 100%);
}
.hero-bg::after {
  content:""; position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 90px);
  opacity: .9;
}
.hero-inner {
  position: relative; padding-block: 120px 70px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(24px, 4vw, 60px);
}
.hero-content { max-width: 720px; }

/* ---- الكرة الأرضية الهولوجرامية ---- */
.hero-globe { position: relative; width: 100%; max-width: 580px; margin-inline: auto; }
.globe-canvas-wrap { position: relative; display: flex; justify-content: center; }
.globe-canvas-wrap::before {
  content: ""; position: absolute; inset: -6%; pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(198,122,69,.20), rgba(127,181,172,.09) 45%, transparent 72%);
  filter: blur(2px);
}
.globe-canvas-wrap::after {
  content: ""; position: absolute; inset: 4%; pointer-events: none; border-radius: 50%;
  background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(255,255,255,.02) 6px 7px);
}
.hero-globe canvas { position: relative; display: block; cursor: grab; touch-action: pan-y; }
.hero-globe canvas:active { cursor: grabbing; }
.globe-caption { text-align: center; color: rgba(255,255,255,.65); font-size: 14.5px; margin-top: 10px; }
.globe-caption b { color: var(--brand-copper-2); font-weight: 800; }
.globe-labels { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 3; }
.globe-label {
  position: absolute; top: 0; left: 0; opacity: 0;
  color: #fff; font-family: "AlHfhaf", Tajawal, sans-serif; font-weight: 700; line-height: 1;
  white-space: nowrap; will-change: transform, opacity;
  transform: translate(-9999px, -9999px);
  text-shadow: 0 1px 6px rgba(6,20,18,.8), 0 0 2px rgba(6,20,18,.55);
}
.eyebrow {
  display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: .3px;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero-title {
  color: #fff; font-size: clamp(58px, 15vw, 82px); font-weight: 900; line-height: 1.08;
  letter-spacing: -1px; margin-bottom: 22px;
}
.hero-title .line { display: block; }
.hero-title .line + .line { margin-top: 14px; }
.hero-title .line-copper { color: var(--brand-copper-2); }
.hero-lead { font-size: clamp(17px, 2.2vw, 21px); color: rgba(255,255,255,.9); max-width: 620px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections base ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section-head { max-width: 620px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; font-size: 15px; font-weight: 800; color: var(--brand-copper); letter-spacing: .6px; margin-bottom: 14px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -.5px; }
.section-head .lead { margin-top: 16px; font-size: 18px; color: var(--muted); }
.section-head.light .kicker { color: var(--brand-copper-2); }
.section-head.light h2 { color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }

/* ---------- About ---------- */
.about .lead { font-size: 19px; color: var(--text); }
.feature-list { display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; transition: .25s var(--ease); }
.feature-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: transparent; }
.feature-list .fi { flex: 0 0 auto; font-weight: 900; font-size: 22px; color: #fff; background: var(--brand-teal); width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.feature-list h4 { font-size: 19px; margin-bottom: 4px; }
.feature-list p { color: var(--muted); font-size: 15.5px; }

/* ---------- Vision & Mission ---------- */
/* «ضوء السراج»: قسم غامق بترولي + توهج نحاسي يتبع الماوس + بطاقات زجاجية تميل 3D */
.vm {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 80% 12%, rgba(198,122,69,.12), transparent 62%),
    linear-gradient(160deg, var(--brand-teal-3), var(--brand-teal) 62%);
}
.vm-glow {
  position: absolute; top: 0; left: 0; width: 560px; height: 560px;
  margin: -280px 0 0 -280px;                 /* مركز الضوء = نقطة الماوس */
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232,152,82,.30) 0%, rgba(198,122,69,.14) 36%, transparent 68%);
  filter: blur(4px); opacity: 0; transition: opacity .5s var(--ease);
  will-change: transform;
}
.vm.lit .vm-glow, .why.lit .vm-glow, .contact-hero.lit .vm-glow, .gift-hero.lit .vm-glow { opacity: 1; }
.vm-grid { align-items: stretch; perspective: 1100px; position: relative; z-index: 1; }
.vm-card {
  position: relative;
  background: rgba(255,255,255,.055);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 40px;
  will-change: transform;
}
/* بعد ظهور البطاقة (reveal) نستبدل الانتقال حتى يصير الميلان رشيقاً */
.vm-card.in, .why-card.in { transition: transform .18s ease-out, border-color .35s var(--ease), background .3s var(--ease); }
/* حلقة توهج نحاسي على الحافة تلاحق مكان الماوس */
.vm-card::before, .why-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(232,152,82,.55), transparent 55%);
  padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
/* إنارة داخلية خفيفة تحت الضوء */
.vm-card::after, .why-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(232,152,82,.10), transparent 62%);
  opacity: 0; transition: opacity .4s;
}
.vm-card.lit::before, .vm-card.lit::after,
.why-card.lit::before, .why-card.lit::after { opacity: 1; }
.vm-icon {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(140deg, var(--brand-copper), var(--brand-copper-2)); color: #fff;
  margin-bottom: 20px; box-shadow: 0 10px 26px -10px rgba(198,122,69,.55);
  animation: vm-float 5s ease-in-out infinite;              /* الأيقونة تطفو بهدوء */
}
.vm-card:nth-child(2) .vm-icon { animation-delay: -2.5s; }
@keyframes vm-float { 50% { transform: translateY(-7px); } }
.vm-card h3 { font-size: 24px; margin-bottom: 12px; color: #fff; }
.vm-card p { color: rgba(255,255,255,.78); font-size: 18px; }
/* بدون ماوس (لمس): الضوء يتمشى لوحده والبطاقات مضاءة دائماً */
@media (hover: none) {
  .vm-glow { opacity: 1; animation: vm-drift 16s ease-in-out infinite alternate; }
  .vm-card::before, .vm-card::after,
  .why-card::before, .why-card::after { opacity: 1; }
}
@keyframes vm-drift {
  0%   { transform: translate(18vw, 180px); }
  45%  { transform: translate(80vw, 420px); }
  100% { transform: translate(40vw, 700px); }
}

/* ---------- Timeline / Process ---------- */
.timeline { max-width: 820px; margin-inline: auto; margin-top: 50px; position: relative; }
.timeline::before { content:""; position: absolute; inset-block: 10px; inset-inline-start: 23px; width: 2px; background: linear-gradient(var(--brand-copper), var(--line)); }
.timeline li { display: flex; gap: 24px; padding-bottom: 26px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.tl-num { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-teal); color: #fff; font-weight: 900; font-size: 19px; display: grid; place-items: center; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.tl-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 22px; flex: 1; display: flex; align-items: center; transition: .25s var(--ease); }
.timeline li:hover .tl-body { border-color: var(--brand-copper); transform: translateX(-4px); }
.timeline li:hover .tl-num { background: var(--brand-copper); }
.tl-body h4 { font-size: 17px; font-weight: 700; }

/* ---------- Projects ---------- */
.projects { background: var(--surface); }
.proj-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.proj-tab { padding: 10px 26px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font-weight: 700; font-size: 15.5px; cursor: pointer; transition: .22s var(--ease); }
.proj-tab:hover { border-color: var(--brand-teal); }
.proj-tab.is-active { background: var(--brand-teal); color: #fff; border-color: var(--brand-teal); }

/* شبكة فسيفسائية: أول بطاقة من كل ست تأخذ مساحة «بطولية» مضاعفة */
.proj-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 225px; grid-auto-flow: dense; gap: 18px; margin-top: 50px; }
.proj-grid-full { margin-top: 26px; }
.proj-loading, .proj-empty { grid-column: 1/-1 !important; grid-row: auto !important; text-align: center; color: var(--muted); padding: 40px 0; }
.proj-card, .proj-skel { grid-column: span 2; }
.proj-card:nth-child(6n+1), .proj-skel:nth-child(6n+1) { grid-column: span 4; grid-row: span 2; }

/* بطاقة مغمورة: الصورة تملأ البطاقة والنصوص فوقها على تدرّج داكن */
.proj-card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--brand-teal-3); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: proj-in .55s var(--ease) both; animation-delay: var(--d, 0s);
  outline-offset: 3px;
}
@keyframes proj-in { from { opacity: 0; transform: translateY(26px) scale(.98); } }
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.proj-card:focus-visible { outline: 3px solid var(--brand-copper); }

.proj-media { position: absolute; inset: 0; overflow: hidden; }
/* طبقتا صورة للتقليب المتقاطع أثناء التمرير */
.pc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .65s var(--ease), transform 5s var(--ease); }
.pc-img.is-on { opacity: 1; }
.proj-card:hover .pc-img.is-on { transform: scale(1.08); }
/* حركة «كين بيرنز» هادئة دائمة على البطاقة البطولية */
.proj-card:nth-child(6n+1) .pc-img.is-on { animation: pc-ken 18s ease-in-out infinite alternate; }
@keyframes pc-ken { from { transform: scale(1); } to { transform: scale(1.09) translate(1.5%, -1.5%); } }

.pc-scrim { position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(10,34,31,.16) 0%, rgba(10,34,31,0) 34%, rgba(8,30,27,.52) 58%, rgba(5,23,21,.96) 100%); }
/* غلالة أدكن تظهر عند التمرير حتى يبقى النص المنزلق مقروءاً فوق أي صورة */
.pc-scrim::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease);
  background: linear-gradient(185deg, rgba(8,28,26,.45) 0%, rgba(8,28,26,.62) 35%, rgba(4,18,17,.97) 100%); }
.proj-card:hover .pc-scrim::after, .proj-card:focus-visible .pc-scrim::after { opacity: 1; }
/* لمعة ضوء تمسح البطاقة عند التمرير */
.proj-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.13) 50%, transparent 60%);
  transform: translateX(-140%); }
.proj-card:hover .proj-media::after { transform: translateX(140%); transition: transform .9s var(--ease); }

.proj-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.22);
  background: radial-gradient(120% 90% at 50% 0%, var(--brand-teal-2), var(--brand-teal-3)); }
.proj-noimg svg { width: 64px; height: 64px; }

/* عرض أقصى يحجز مساحة شارة عدد الوسائط بالجهة المقابلة (.pc-count) — بدونه
   كانت كلمات إنجليزية أطول (مثل "Completed") تمتد تحتها وتتداخل معها على
   البطاقات الضيّقة، بينما العربي القصير ("مكتمل") كان يكفيه المكان أصلاً */
.pc-top { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 3;
  max-width: calc(100% - 76px); transition: opacity .3s var(--ease); }
/* عند التمرير تختفي عناصر الواجهة العلوية لتفسح المجال للنص المنزلق (وضع سينمائي) */
.proj-card:hover .pc-top, .proj-card:focus-visible .pc-top,
.proj-card:hover .pc-count, .proj-card:focus-visible .pc-count,
.proj-card:hover .proj-play, .proj-card:focus-visible .proj-play { opacity: 0; }
.proj-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(10,34,31,.55); color: #fff;
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.proj-badge svg { width: 15px; height: 15px; color: var(--brand-copper-2); }
.proj-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; padding: 6px 13px; border-radius: 999px;
  color: #fff; background: rgba(15,46,43,.6); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.proj-status.done { background: rgba(34,139,94,.85); }
.proj-status.wip { background: rgba(198,122,69,.9); }
/* نبضة «حيّة» للمشاريع قيد التنفيذ — عزلها بطبقة تركيب خاصة بها لتفادي
   تشوّه الحلقة (يميل/يتمدّد) عند وجودها داخل عنصر أب معتم الخلفية (backdrop-filter) */
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex: 0 0 auto;
  isolation: isolate; transform: translateZ(0); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor;
  animation: pulse-ring 1.6s ease-out infinite; will-change: transform, opacity; backface-visibility: hidden; }
@keyframes pulse-ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* شارة عدد الوسائط (صور + فيديو) */
.pc-count { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(10,34,31,.55); color: #fff; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: opacity .3s var(--ease); }
.pc-count svg { width: 14px; height: 14px; }
.pc-vid { color: var(--brand-copper-2); font-style: normal; font-size: 11px; }

/* أيقونة تشغيل الفيديو في منتصف الصورة */
.proj-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; z-index: 2;
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .3s var(--ease); }
.proj-play::before { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
  transform: translateX(2px); }

/* نقاط تقدّم عمودية لتقليب صور المعرض */
.pc-dots { position: absolute; inset-block-start: 50%; inset-inline-end: 16px; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.pc-dots i { width: 6px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.4); transition: .3s var(--ease); }
.pc-dots i.on { background: #fff; height: 16px; }

/* النص السفلي فوق التدرّج */
.pc-overlay { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 18px 20px; z-index: 2; color: #fff;
  max-height: 100%; overflow: hidden; }
.proj-country { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; font-size: 14px;
  text-shadow: 0 1px 10px rgba(0,0,0,.8), 0 0 3px rgba(0,0,0,.6); }
.proj-country::before { content: ""; width: 14px; height: 14px; flex: 0 0 auto;
  background: var(--brand-copper-2); -webkit-mask: var(--pin) center/contain no-repeat; mask: var(--pin) center/contain no-repeat; }
.proj-title { color: #fff; font-size: 20px; font-weight: 800; line-height: 1.4; margin-top: 2px;
  text-shadow: 0 2px 14px rgba(0,0,0,.65), 0 0 3px rgba(0,0,0,.4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-card:nth-child(6n+1) .proj-title { font-size: clamp(22px, 2.4vw, 30px); }

/* تفاصيل إضافية تنزلق للظهور عند التمرير (وتظهر دائماً على البطولية) */
.pc-more { display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .5s var(--ease), opacity .4s var(--ease); }
.pc-more-in { overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.proj-card:hover .pc-more, .proj-card:focus-visible .pc-more,
.proj-card:nth-child(6n+1) .pc-more { grid-template-rows: 1fr; opacity: 1; }
.pc-desc { color: rgba(255,255,255,.95); font-size: 14.5px; line-height: 1.7; margin-top: 8px;
  text-shadow: 0 1px 8px rgba(0,0,0,.75);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-card:nth-child(6n+1) .pc-desc { -webkit-line-clamp: 3; font-size: 15.5px; }
/* الشرائح التفصيلية تظهر على البطاقة البطولية فقط — البطاقات الصغيرة تكتفي بالوصف
   والزر حتى لا تتزاحم النصوص، وكل التفاصيل موجودة في العارض */
.pc-chips { display: none; flex-wrap: wrap; gap: 8px; }
.proj-card:nth-child(6n+1) .pc-chips { display: flex; }
.pc-chip { font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 12px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pc-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-copper-2); font-weight: 800; font-size: 14.5px; }
.pc-arr { transition: transform .25s var(--ease); }
.proj-card:hover .pc-arr { transform: translateX(-4px); }
html[dir="ltr"] .pc-arr { display: inline-block; transform: scaleX(-1); }
html[dir="ltr"] .proj-card:hover .pc-arr { transform: scaleX(-1) translateX(-4px); }
:root { --pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.5-7-10a7 7 0 0 1 14 0c0 5.5-7 10-7 10z'/%3E%3Ccircle cx='12' cy='11' r='2.5' fill='white'/%3E%3C/svg%3E"); }
.btn-outline { border: 1.5px solid var(--brand-teal); color: var(--brand-teal); }
.btn-outline:hover { background: var(--brand-teal); color: #fff; }

.projects-cta { text-align: center; margin-top: 50px; }
.proj-viewall::after { content: " ←"; }
html[dir="ltr"] .proj-viewall::after { content: " →"; }

/* هياكل التحميل الوامضة (skeleton) — تشارك بمقاسات الفسيفساء نفسها */
.proj-skel { border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface-2) 30%, #fbfdfc 50%, var(--surface-2) 70%);
  background-size: 200% 100%; animation: sk-shimmer 1.3s infinite; }
@keyframes sk-shimmer { to { background-position: -200% 0; } }

/* أدوات صفحة المشاريع الكاملة */
.projects-hero .page-hero-lead { max-width: 620px; margin: 12px auto 0; color: rgba(255,255,255,.85); }
.proj-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.proj-search { position: relative; display: flex; align-items: center; }
.proj-search svg { position: absolute; inset-inline-start: 14px; color: var(--muted); pointer-events: none; }
.proj-search input {
  width: min(320px, 74vw); padding: 12px 44px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; font: inherit; font-size: 15px; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.proj-search input:focus { outline: none; border-color: var(--brand-teal); box-shadow: 0 0 0 4px rgba(22,60,57,.08); }
.proj-count { margin-top: 20px; color: var(--muted); font-size: 14.5px; font-weight: 600; }

/* نافذة المشروع: فيديو/صورة + معرض */
.modal-media:empty { display: none; }
.modal-video { position: relative; aspect-ratio: 16/9; background: #000; }
.modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.m-desc { color: var(--muted); line-height: 1.8; }
.modal-gallery { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.mg-thumb { width: 78px; height: 58px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; transition: border-color .2s; }
.mg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mg-thumb.is-active, .mg-thumb:hover { border-color: var(--brand-copper); }
.m-actions { margin-top: 22px; }
.m-actions .btn { flex: 1; justify-content: center; }

/* ---------- تراخيص متعددة من الشيت (تتكدّس في الهيرو والفوتر) ---------- */
.eyebrow-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-bottom: 34px; }
.eyebrow-stack .eyebrow { margin: 0; }
.footer-license .lic-code { font-weight: 800; letter-spacing: .4px; }

/* ---------- Why us ---------- */
/* «ضوء السراج» هنا أيضاً — نفس تأثير قسم الرؤية والرسالة */
.why {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 460px at 80% 12%, rgba(198,122,69,.12), transparent 62%),
    linear-gradient(160deg, var(--brand-teal-3), var(--brand-teal) 60%);
}
.why > .container { position: relative; z-index: 1; }
/* flex بدل grid حتى يتمركز الصف الأخير الناقص (5 بطاقات ÷ 3 أعمدة) بدل ما يلتزق يمين */
.why-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 50px; perspective: 1100px; }
.why-card {
  position: relative;
  flex: 0 1 calc((100% - 22px * 2) / 3);
  background: rgba(255,255,255,.055);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 30px 28px;
  transition: .28s var(--ease); will-change: transform;
}
.why-card:hover { background: rgba(255,255,255,.09); border-color: rgba(213,129,63,.5); }
.why-ic {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(140deg, var(--brand-copper), var(--brand-copper-2)); color: #fff;
  margin-bottom: 18px; box-shadow: 0 10px 26px -10px rgba(198,122,69,.55);
  animation: vm-float 5s ease-in-out infinite;
}
.why-card:nth-child(2) .why-ic { animation-delay: -1s; }
.why-card:nth-child(3) .why-ic { animation-delay: -2s; }
.why-card:nth-child(4) .why-ic { animation-delay: -3s; }
.why-card:nth-child(5) .why-ic { animation-delay: -4s; }
.why-card h4 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,.72); font-size: 15.5px; }

/* ---------- Guarantees ---------- */
.guarantee-list { display: grid; gap: 14px; }
.guarantee-list li { position: relative; padding: 18px 58px 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; color: var(--text); font-size: 16.5px; }
.guarantee-list li::before {
  content: "✓"; position: absolute; inset-inline-end: 18px; inset-block-start: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-copper); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 15px;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-copper); color: #fff; }
.cta-inner { text-align: center; padding-block: clamp(56px, 8vw, 84px); }
.cta-inner h2 { color: #fff; font-size: clamp(28px, 4.4vw, 42px); }
.cta-inner p { color: rgba(255,255,255,.92); font-size: 18px; margin: 14px auto 30px; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-copper { background: #fff; color: var(--brand-copper-3); }
.cta-band .btn-copper:hover { background: var(--brand-teal); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--brand-teal-3); color: rgba(255,255,255,.75); padding-block: 56px 0; }
.site-footer::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-copper), var(--brand-copper-2), var(--brand-copper), transparent);
  opacity: .85;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brandmark { color: #fff; margin-bottom: 16px; }
.footer-slogan { color: var(--brand-copper-2); font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.footer-license { font-size: 14px; line-height: 1.7; }
.footer-col h5 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: .3px; }
.footer-col a { display: flex; align-items: center; gap: 9px; padding: 6px 0; color: rgba(255,255,255,.7); font-size: 15px; transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--brand-copper-2); transform: translateX(-3px); }
html[dir="ltr"] .footer-col a:hover { transform: translateX(3px); }
.footer-ico { flex: 0 0 auto; opacity: .8; }
.footer-ico-wa { filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; font-size: 14px; text-align: center; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15,46,43,.6); backdrop-filter: blur(4px); }
.modal-box { position: relative; background: #fff; border-radius: var(--radius); max-width: 640px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: var(--shadow); animation: pop .3s var(--ease); }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } }
.modal-close { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.06); font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.modal-close:hover { background: rgba(0,0,0,.12); }
.modal-content img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.modal-pad { padding: 26px 28px 30px; }
.modal-pad h3 { font-size: 26px; margin-bottom: 6px; }
.modal-pad .m-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

/* ---------- العارض السينمائي للمشاريع (ملء الشاشة) ---------- */
.pviewer { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: clamp(0px, 2.4vw, 30px); }
.pviewer[hidden] { display: none; }
/* خلفية محيطة: قاعدة داكنة + طبقتا صورة ضبابية تتبادلان بتلاشٍ */
.pv-bg { position: absolute; inset: 0; background: rgba(6,24,22,.88); overflow: hidden; }
.pv-bg-l { position: absolute; inset: -50px; background: center/cover no-repeat;
  filter: blur(44px) brightness(.42) saturate(1.15); opacity: 0; transition: opacity .8s var(--ease); }
.pv-bg-l.on { opacity: .75; }

.pv-shell { position: relative; z-index: 1; display: flex; width: min(1180px, 100%); height: min(700px, 100%);
  border-radius: var(--radius); overflow: hidden; background: rgba(10,34,31,.6);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 120px -30px rgba(0,0,0,.65);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  animation: pv-pop .45s var(--ease); }
@keyframes pv-pop { from { opacity: 0; transform: translateY(26px) scale(.97); } }

/* موضع ثابت فيزيائياً (لا ينعكس بالعربي) — نفس مبدأ أسهم المعرض تحت:
   عناصر التحكّم بالمشغّل تبقى بنفس مكانها بغض النظر عن اتجاه اللغة */
.pv-close { position: absolute; inset-block-start: 14px; right: 14px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35); color: #fff; font-size: 17px; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: .25s var(--ease); }
.pv-close:hover { background: var(--brand-copper); border-color: var(--brand-copper); transform: rotate(90deg); }

/* المسرح: شريط شرائح + مصغّرات */
.pv-stage { position: relative; flex: 1.5; min-width: 0; display: flex; flex-direction: column; overflow: hidden; touch-action: pan-y; }
.pv-track { direction: ltr; display: flex; flex: 1; min-height: 0; transition: transform .5s var(--ease); will-change: transform; }
.pv-slide { position: relative; flex: 0 0 100%; min-width: 0; display: grid; place-items: center; }
.pv-slide img { width: 100%; height: 100%; object-fit: contain; }
.pv-slide-empty svg { width: 90px; height: 90px; color: rgba(255,255,255,.2); }
.pv-slide-video { background: #000; }
.pv-slide-video img { object-fit: cover; filter: brightness(.72); }
/* بعد الضغط على تشغيل: نخفي صورة الغلاف نهائياً — كانت تبقى تحت صندوق الفيديو
   وتظهر كشريط مقطوع فوق/تحت الفيديو لأن صندوق الـ16:9 أصبح أصغر من الشريحة */
.pv-slide-video.playing img { display: none; }
/* صندوق الفيديو بنسبة 16:9 حقيقية، ممركز داخل الشريحة — كان يتمدّد ليملأ
   الشريحة كاملة (أياً كانت نسبتها) فيتشوّه الفيديو داخل يوتيوب */
.pv-vidwrap { position: absolute; inset: 0; margin: auto; width: 100%; height: auto;
  aspect-ratio: 16 / 9; max-height: 100%; background: #000; }
.pv-vidwrap iframe { width: 100%; height: 100%; border: 0; }
.pv-playbig { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.65);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: .3s var(--ease); }
.pv-playbig span { position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #fff;
  transform: translateX(4px); }
.pv-playbig:hover { transform: scale(1.1); background: var(--brand-copper); border-color: var(--brand-copper); }

.pv-nav { position: absolute; inset-block-start: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35); color: #fff; cursor: pointer; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .25s, border-color .25s; }
.pv-nav[hidden] { display: none; }
.pv-nav svg { width: 22px; height: 22px; }
.pv-nav:hover { background: var(--brand-copper); border-color: var(--brand-copper); }
/* لا نعكس موضع/اتجاه أسهم المعرض بالعربي: السابق دائماً يسار الشاشة والتالي
   دائماً يمينها (نفس قاعدة كل معارض الصور/الفيديو) — الانعكاس مع اللغة هو
   بالضبط ما كان يجعل منطق التنقل يبدو معكوساً (الزر يتحرك لكن الشريط يتحرك
   بعكس اتجاهه لأن السحب translateX ثابت فيزيائياً على .pv-track) */
.pv-prev { left: 14px; }
.pv-next { right: 14px; }

.pv-counter { position: absolute; inset-block-start: 16px; left: 16px; z-index: 4; direction: ltr;
  color: #fff; font-size: 13px; font-weight: 800; background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pv-counter[hidden] { display: none; }

.pv-thumbs { display: flex; gap: 8px; padding: 12px 14px; overflow-x: auto; direction: ltr;
  background: rgba(0,0,0,.25); scrollbar-width: thin; }
.pv-thumbs[hidden] { display: none; }
.pv-th { position: relative; flex: 0 0 auto; width: 64px; height: 46px; border-radius: 9px; overflow: hidden;
  border: 2px solid transparent; padding: 0; background: rgba(255,255,255,.06); cursor: pointer;
  opacity: .55; transition: opacity .25s, border-color .25s; }
.pv-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-th.on, .pv-th:hover { opacity: 1; border-color: var(--brand-copper-2); }
.pv-th-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 13px; background: rgba(0,0,0,.35); }

/* لوحة المعلومات الزجاجية */
.pv-info { flex: 1; min-width: 0; max-width: 420px; overflow-y: auto; color: #fff;
  background: linear-gradient(200deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-inline-start: 1px solid rgba(255,255,255,.1); }
.pv-info-in { padding: 50px 34px 34px; display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.pv-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--brand-copper-2); font-weight: 800; font-size: 14.5px; }
.pv-type { display: inline-flex; align-items: center; gap: 7px; }
.pv-type svg { width: 17px; height: 17px; flex: 0 0 auto; }
.pv-sep { color: rgba(255,255,255,.35); font-weight: 400; }
.pv-country { color: rgba(255,255,255,.85); font-weight: 700; }
.pv-title { color: #fff; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
/* بطاقات إحصائية موحّدة: القيمة بمنتصف المربع، والتسمية أسفله — بنفس حجم الخط للكل */
.pv-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.pv-stat { flex: 1 1 110px; min-height: 92px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 12px 12px 10px; display: flex; flex-direction: column; }
.pv-stat-value { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
.pv-stat-label { text-align: center; font-size: 13px; color: rgba(255,255,255,.65); font-weight: 700; }
.pv-num, .pv-status { font-size: 19px; font-weight: 900; line-height: 1.3; }
.pv-num { color: var(--brand-copper-2); }
/* عدد المستفيدين: الرقم الأبرز بالبطاقة — أكبر ولونه أخضر */
.pv-num-ben { font-size: 27px; color: #7ADCA8; }
/* تاريخ المشروع: أبيض بدل النحاسي حتى لا يُخلط بمدة التنفيذ */
.pv-num-date { color: #fff; }
.pv-status { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.pv-status.done { color: #7ADCA8; }
.pv-status.wip { color: var(--brand-copper-2); }
.pv-desc { color: rgba(255,255,255,.8); line-height: 1.9; font-size: 15.5px; }
.pv-desc[hidden] { display: none; }
.pv-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 10px; }
.pv-actions .btn { flex: 1; justify-content: center; }
.pv-btn-ghost { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.pv-btn-ghost:hover { background: rgba(255,255,255,.12); }

@media (max-width: 900px) {
  .pviewer { padding: 0; }
  .pv-shell { flex-direction: column; width: 100%; height: 100%; border-radius: 0; border: 0; }
  /* حدّ أدنى للارتفاع حتى لا يقترب سهم التالي (نفس حافة زر الإغلاق) من الـ X
     على شاشات قصيرة — بدونه كان 50% من ارتفاع قصير يضع الدائرتين شبه متلاصقتين */
  .pv-stage { flex: 0 0 auto; height: clamp(260px, 48vh, 430px); }
  .pv-info { max-width: none; flex: 1; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .pv-info-in { padding: 24px 20px 30px; }
  .pv-nav { width: 40px; height: 40px; }
}

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Contact page ---------- */
.page-hero { background: linear-gradient(155deg, #0F302C, #1E524C); color: #fff; padding-block: 150px 70px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); }
.page-hero p { color: rgba(255,255,255,.85); font-size: 18px; margin-top: 12px; }

/* ---- هيرو التواصل: «ضوء السراج» + شريط نحاسي قطري جريء ---- */
.contact-hero {
  position: relative; overflow: hidden; padding-block: 155px 80px;
  background:
    radial-gradient(900px 460px at 80% 12%, rgba(198,122,69,.12), transparent 62%),
    linear-gradient(160deg, var(--brand-teal-3), var(--brand-teal) 62%);
}
.contact-hero::before {
  content: ""; position: absolute; inset-block-start: -20%; inset-inline-end: -12%;
  width: 65%; height: 160%; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(198,122,69,.16) 50%, transparent 58%);
  transform: rotate(-8deg);
}
.contact-hero > .container { position: relative; z-index: 1; }
.contact-hero-head { max-width: 640px; margin-bottom: 54px; }
.contact-title { margin-bottom: 18px; }

/* ---- التواصل السريع + النموذج: عمودان جنباً إلى جنب ---- */
.contact-body { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 28px; align-items: start; margin-top: 56px; }

.contact-tiles-col { display: flex; flex-direction: column; gap: 14px; }
.contact-tile {
  text-align: center; text-decoration: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; padding: 32px 22px;
}
.contact-tile .vm-icon { margin-inline: auto; }
.contact-tile h3 { font-size: 18px; margin-bottom: 6px; }
.contact-tile p { font-size: 14.5px; word-break: break-word; }
.contact-tile.is-static { cursor: default; }
.contact-tile:nth-child(2) .vm-icon { animation-delay: -1.2s; }
.contact-tile:nth-child(3) .vm-icon { animation-delay: -2.4s; }
.contact-tile:nth-child(4) .vm-icon { animation-delay: -3.6s; }

/* داخل العمود: بطاقات أفقية مدمجة (أيقونة + نص) بدل البطاقة المربّعة الكبيرة */
.contact-tiles-col .contact-tile {
  flex-direction: row; align-items: center; text-align: start; padding: 16px 20px; gap: 14px;
}
.contact-tiles-col .vm-icon { width: 46px; height: 46px; margin: 0; flex: 0 0 auto; }
.contact-tiles-col .vm-icon svg { width: 20px; height: 20px; }
.contact-tiles-col .tile-text { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.contact-tiles-col h3 { font-size: 15px; margin: 0; }
.contact-tiles-col p { font-size: 13px; margin: 0; }
/* رقم الواتساب: dir="ltr" يقلب محاذاة "start" الموروثة، نثبّتها يدوياً حسب اتجاه الصفحة + نكبّره قليلاً */
/* بالعربي فقط: AlHfhaf يرسم الأرقام بشكل غير واضح — نستخدم Tajawal للأرقام.
   بالإنجليزي تبقى بخط الموقع العادي (Sui Generis/Quicksand) كباقي البطاقة */
.contact-tiles-col p.tile-phone { text-align: right; font-size: 15px; font-weight: 400; }
html[lang="ar"] .contact-tiles-col p.tile-phone { font-family: "Tajawal", "Segoe UI", sans-serif; }
html[dir="ltr"] .tile-phone { text-align: left; }

/* رقم الترخيص: واضح مع تباعد بسيط بين الأرقام، وبخط مخصص للأرقام بالعربي فقط */
.tile-lic-code { font-size: 13px; font-weight: 400; letter-spacing: .5px; }
html[lang="ar"] .tile-lic-code { font-family: "Tajawal", "Segoe UI", sans-serif; }
/* نفس خط الأرقام أعلاه، لكن بدون فرض حجم — يرث حجم مكانه (هيرو، فوتر...)
   بالعربي فقط: AlHfhaf لا يرسم الأرقام اللاتينية بوضوح. بالإنجليزي Sui
   Generis/Quicksand يرسمانها بشكل طبيعي، فيجب أن يتطابق مع النص المحيط
   (كان يفرض Tajawal حتى بالإنجليزي فيبين رقم الهاتف بخط مختلف عن باقي الفوتر) */
html[lang="ar"] .lic-code { font-family: "Tajawal", "Segoe UI", sans-serif; letter-spacing: .5px; }

/* ---- نموذج التواصل: بطاقة زجاجية حيّة ---- */
.contact-form {
  position: relative;
  background: rgba(255,255,255,.055);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 44px 40px; overflow: hidden;
}
/* نبضة نحاسية خفيفة عند الإرسال */
.contact-form::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 50% 100%, rgba(198,122,69,.4), transparent 60%);
  opacity: 0;
}
.contact-form.is-sending::after { animation: cf-pulse 1.1s var(--ease); }
@keyframes cf-pulse { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

.cf-head { text-align: center; margin-bottom: 32px; }
.cf-head .kicker { color: var(--brand-copper-2); }
.cf-head h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }

.field { margin-bottom: 24px; }
.field .field-static-label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 10px; color: rgba(255,255,255,.75); }
.form-note { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 10px; text-align: center; }

/* حقول عائمة تستيقظ عند التركيز */
.fl-field { position: relative; }
.fl-field input, .fl-field textarea {
  display: block;   /* يلغي فراغ الـ baseline أسفل الـ textarea حتى يتساوى بعد الخط النحاسي عن الحقلين */
  width: 100%; padding: 26px 16px 10px; border: 1.5px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 15.5px;
  background: rgba(255,255,255,.06); color: #fff; transition: border-color .2s, background .2s;
}
.fl-field textarea { min-height: 120px; resize: none; padding-top: 28px; }
.fl-field input:focus, .fl-field textarea:focus { outline: none; border-color: var(--brand-copper-2); background: rgba(255,255,255,.09); }
.fl-field label {
  position: absolute; inset-inline-start: 16px; inset-block-start: 18px;
  color: rgba(255,255,255,.55); font-weight: 600; font-size: 15.5px;
  pointer-events: none; transition: .2s var(--ease);
}
.fl-field input:focus + label, .fl-field input:not(:placeholder-shown) + label,
.fl-field textarea:focus + label, .fl-field textarea:not(:placeholder-shown) + label {
  inset-block-start: 7px; font-size: 12px; color: var(--brand-copper-2); font-weight: 700;
}
/* عنصر تدفّق عادي (مش absolute) حتى تصير المسافة تحت الحقل مضمونة ومتساوية بين المدخل الأحادي والسطر المتعدد */
.fl-underline {
  display: block; height: 2px; width: 0; margin-top: 4px;
  background: linear-gradient(90deg, var(--brand-copper), var(--brand-copper-2));
  transition: width .35s var(--ease);
}
.fl-field input:focus ~ .fl-underline, .fl-field textarea:focus ~ .fl-underline { width: 100%; }
.fl-check {
  position: absolute; inset-inline-end: 14px; inset-block-start: 16px;
  opacity: 0; transform: scale(.4); transition: .25s var(--ease); color: #8fd6a8; font-weight: 900;
}
.fl-field input:not(:placeholder-shown):valid ~ .fl-check,
.fl-field textarea:not(:placeholder-shown):valid ~ .fl-check { opacity: 1; transform: scale(1); }

/* بطاقات نوع المشروع القابلة للضغط */
.type-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.type-pill {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer;
  transition: .2s var(--ease);
  /* خط Tajawal بدل AlHfhaf هون: حرف الهمزة على نبرة (ئ) يظهر غير واضح بخط AlHfhaf */
  font-family: "Tajawal", "Segoe UI", sans-serif;
}
.type-pill:hover { border-color: var(--brand-copper-2); }
.type-pill.is-active { background: var(--brand-copper); border-color: var(--brand-copper); color: #fff; }

/* زر الإرسال: يتحوّل لعلامة صح لحظة الضغط */
.cf-submit { position: relative; overflow: hidden; }
.cf-submit .btn-label { display: inline-block; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.cf-submit .btn-check {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.4); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cf-submit.is-sending { pointer-events: none; }
.cf-submit.is-sending .btn-label { opacity: 0; transform: translateY(6px); }
.cf-submit.is-sending .btn-check { opacity: 1; transform: scale(1); }

/* ---------- صفحة الإهداء التذكاري ---------- */
.gift-hero { padding-block: 150px 70px; position: relative; overflow: hidden; }
.gift-hero .container { position: relative; z-index: 1; }
/* شرر نحاسي عائم خلف المحتوى */
.gift-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* هيرو بعمودين: النص + صندوق الهدية */
.gift-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 60px); align-items: center; text-align: start; }
/* ظهور متدرّج لعناصر الهيرو */
.gift-hero .gift-title[data-reveal] { transition-delay: .12s; }
.gift-hero .gift-hero-lead[data-reveal] { transition-delay: .24s; }
.gift-hero .gift-box-wrap[data-reveal] { transition-delay: .3s; }
.gift-title { margin-bottom: 22px; font-size: clamp(32px, 5vw, 58px); font-weight: 900; }
.gift-hero-lead { max-width: 640px; }
.gift-box-wrap { text-align: center; }
#giftBoxCanvas {
  width: 100%; max-width: 400px; aspect-ratio: 1 / 1; display: block;
  margin-inline: auto; cursor: pointer; touch-action: manipulation;
}
.gift-box-hint { color: rgba(255,255,255,.72); font-size: 14px; margin-top: 4px; animation: gift-hint-pulse 2.6s ease-in-out infinite; }
@keyframes gift-hint-pulse { 50% { opacity: .5; } }
html[lang="ar"] .gift-box-hint { font-size: 16px; }

/* كيف يعمل الإهداء */
.gift-how { background: var(--surface); }
.gift-timeline .tl-body { background: #fff; }

/* أقسام المشاريع (بئر / مسجد / مدرسة) بتصميم متعرّج
   القسم الأوسط (المسجد) بخلفية خضراء داكنة كالهيرو للتنويع */
.gift-feature.alt { background: linear-gradient(155deg, #0F302C, #1E524C); }
.gift-feature.alt .gift-copy .kicker { color: var(--brand-copper-2); }
.gift-feature.alt .gift-copy h2 { color: #fff; }
.gift-feature.alt .gift-copy .lead { color: rgba(255,255,255,.85); }
.gift-feature.alt .gift-hint { color: rgba(255,255,255,.65); }
.gift-row { align-items: center; }
.gift-stage-wrap {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* خط نحاسي علوي يضيء عند التمرير */
.gift-stage-wrap::before {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-copper-2), transparent);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gift-stage-wrap:hover { transform: translateY(-6px); box-shadow: 0 26px 52px -24px rgba(15,46,43,.4); border-color: rgba(198,122,69,.45); }
.gift-stage-wrap:hover::before { opacity: 1; }
.gift-feature.alt .gift-stage-wrap {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.5);
}
.gift-feature.alt .gift-stage-wrap:hover { border-color: rgba(213,129,63,.55); }
.gift-stage { aspect-ratio: 1 / 1; max-width: 380px; margin-inline: auto; position: relative; }
/* هالة نحاسية أرضية أسفل المجسم */
.gift-stage::before {
  content: ""; position: absolute; inset-inline: 12%; inset-block-end: 5%; height: 20%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(198,122,69,.20), transparent 70%);
}
.gift-stage canvas { position: relative; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.gift-hint { color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.gift-hint::before {
  content: "↻"; display: inline-block; margin-inline-end: 7px; color: var(--brand-copper);
  font-weight: 700; animation: gift-hint-spin 5s linear infinite;
}
@keyframes gift-hint-spin { to { transform: rotate(-360deg); } }
.gift-copy .kicker { margin-bottom: 14px; }
.gift-copy h2 { font-size: clamp(26px, 3.6vw, 38px); }
.gift-copy .lead { font-size: 17px; color: var(--text); margin: 16px 0 24px; }
.gift-points { display: grid; gap: 12px; margin-bottom: 30px; }
.gift-points li {
  position: relative; padding: 14px 50px 14px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15.5px; color: var(--text);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gift-points li:hover { border-color: var(--brand-copper); transform: translateX(-4px); box-shadow: var(--shadow-sm); }
html[dir="ltr"] .gift-points li:hover { transform: translateX(4px); }
/* دخول النقاط تباعاً بعد ظهور القسم */
.gift-copy.in .gift-points li { animation: gift-point-rise .55s var(--ease) backwards; }
.gift-copy.in .gift-points li:nth-child(2) { animation-delay: .12s; }
.gift-copy.in .gift-points li:nth-child(3) { animation-delay: .24s; }
.gift-copy.in .gift-points li:nth-child(4) { animation-delay: .36s; }
@keyframes gift-point-rise { from { opacity: 0; transform: translateY(16px); } }
.gift-feature.alt .gift-points li {
  background: rgba(255,255,255,.055);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
}
.gift-feature.alt .gift-points li:hover { border-color: var(--brand-copper-2); background: rgba(255,255,255,.09); }
.gift-points li::before {
  content: "✓"; position: absolute; inset-inline-end: 14px; inset-block-start: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand-copper); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 110px 60px; }
  .hero-globe { max-width: 360px; }
  /* شارات التراخيص فوق الهيرو: نفس عتبة القائمة الجانبية (900px) — كانت مصغَّرة
     فقط تحت 560px، فبقيت بحجمها الكبير على أغلب شاشات الموبايل الفعلية */
  .eyebrow-stack .eyebrow { font-size: 12.5px; padding: 5px 13px; margin-bottom: 0; }
  html[lang="ar"] .eyebrow-stack .eyebrow { font-size: 13px; }
  .eyebrow-stack { gap: 7px; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 235px; }
  .proj-card, .proj-skel { grid-column: span 1; }
  .proj-card:nth-child(6n+1), .proj-skel:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
  .proj-controls { flex-direction: column; align-items: stretch; }
  .proj-search input { width: 100%; }
  .why-card { flex-basis: calc((100% - 22px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .contact-body { grid-template-columns: 1fr; }
  .gift-stage-wrap { max-width: 380px; margin-inline: auto; }
  .gift-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .gift-hero-lead { margin-inline: auto; }
  #giftBoxCanvas { max-width: 320px; }

  .main-nav {
    position: fixed; inset-block-start: 0; inset-inline-end: 0; height: 100dvh; width: min(80vw, 320px);
    background: var(--brand-teal); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 8px; padding: 40px; transform: translateX(100%); transition: transform .35s var(--ease); z-index: 70;
  }
  .main-nav.open { transform: translateX(0); }
  /* inset-inline-end يعني left:0 بالعربي (RTL)، فلازم القائمة تنزلق يساراً (لا يميناً) لتختفي بالكامل */
  html[dir="rtl"] .main-nav { transform: translateX(-100%); }
  html[dir="rtl"] .main-nav.open { transform: translateX(0); }
  .main-nav a { color: #fff !important; font-size: 20px; width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  html[lang="ar"] .main-nav a { font-size: 21px; }  /* حتى لا تصغّرها قاعدة التكبير العامة للعربي */
  .nav-toggle { display: flex; z-index: 80; }
  .main-nav.open ~ * .nav-toggle span { background: #fff; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  html[lang="ar"] body { font-size: 17px; }
  .brand-logo, .scrolled .brand-logo { height: 54px; }
  .hero-globe { max-width: 300px; }
  .brand-text strong { font-size: 17px; }
  /* شارات التراخيص فوق الهيرو: أصغر وأضيق حتى لا تتضخّم على حساب العنوان
     الرئيسي عند تكدّس أكثر من ترخيص واحد */
  .eyebrow-stack .eyebrow { font-size: 12px; padding: 5px 12px; margin-bottom: 0; }
  html[lang="ar"] .eyebrow-stack .eyebrow { font-size: 12.5px; }
  .eyebrow-stack { gap: 6px; }
  .proj-grid { grid-template-columns: 1fr; grid-auto-rows: 290px; gap: 14px; }
  .proj-card, .proj-skel,
  .proj-card:nth-child(6n+1), .proj-skel:nth-child(6n+1) { grid-column: span 1; grid-row: span 1; }
  /* لا تمرير حقيقي على اللمس: نلغي النص المنزلق نهائياً حتى لا تتزاحم النصوص —
     الضغط على البطاقة يفتح العارض وفيه كل التفاصيل */
  .proj-card .pc-more { display: none; }
  .proj-card:nth-child(6n+1) .proj-title { font-size: 22px; }
  .why-card { flex-basis: 100%; }
  .contact-hero::before { display: none; }
  .contact-form { padding: 30px 22px; }
  .header-actions .btn-sm { display: none; }
  .header-actions .lang-toggle { display: inline-flex; padding: 8px 13px; }  /* زر اللغة يظل ظاهراً عالموبايل */
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .feature-list li { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
