/* =====================================================
   Marketec Agency — Design System & Stylesheet
   جميع الألوان معرّفة كمتغيرات CSS هنا لتسهيل التعديل
   ===================================================== */

:root{
  /* ---- Design tokens — عدّل هذه القيم لتغيير الهوية البصرية بالكامل ---- */
  --color-ivory:      #FAF6EF;  /* Warm Ivory — الخلفية الأساسية الفاتحة */
  --color-ivory-alt:  #F1E9DB;  /* خلفية فاتحة بديلة للتنويع */
  --color-surface:    #FFFFFF;  /* خلفية البطاقات الفاتحة */
  --color-espresso:      #1C1714; /* Near Black / Espresso — الأقسام الداكنة والنصوص القوية */
  --color-espresso-soft: #2C2420; /* درجة أفتح من الإسبريسو */
  --color-burgundy:      #5C1F2E; /* Deep Burgundy — لون العلامة الأساسي */
  --color-burgundy-light: #7A2C3F;
  --color-gold:           #C9A86A; /* Muted Champagne Gold — لون التأكيد */
  --color-gold-light:     #E3CFA0;
  --color-ai-glow:        #B9C6FF; /* لمسة ضوئية باردة مرتبطة بالـ AI — تُستخدم بشكل محدود جداً */
  --color-line:           rgba(28,23,20,.12);
  --color-line-dark:      rgba(250,246,239,.14);
  --color-text-soft:      rgba(28,23,20,.64);

  --font-en: 'Playfair Display', serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  --font-utility: 'Montserrat', sans-serif;

  --container-w: 1240px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --ease: cubic-bezier(.19,1,.22,1);
  --shadow-soft: 0 20px 50px rgba(28,23,20,.08);
  --shadow-lift: 0 30px 70px rgba(28,23,20,.16);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--color-ivory);
  color:var(--color-espresso);
  font-family:var(--font-ar);
  font-weight:400;
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img,video{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; }
[data-lucide]{ width:1em; height:1em; }

h1,h2,h3{
  font-family:var(--font-ar);
  font-weight:700;
  color:var(--color-espresso);
  margin:0;
  line-height:1.25;
}

:focus-visible{ outline:2px solid var(--color-gold); outline-offset:3px; }

.container{ width:100%; max-width:var(--container-w); margin:0 auto; padding:0 32px; }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-utility);
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--color-burgundy);
  margin:0 0 16px;
  font-weight:700;
}
.eyebrow::before{ content:''; width:22px; height:1px; background:var(--color-gold); }
.eyebrow--light{ color:var(--color-gold-light); }
.eyebrow--light::before{ background:var(--color-gold-light); }

.section-head{ max-width:680px; margin:0 auto 64px; text-align:center; }
.section-head--left{ margin-inline:0; text-align:start; }
.section-head h2{ font-size:clamp(1.9rem,3.6vw,2.9rem); letter-spacing:-.01em; }
.section-head h2 span{ color:var(--color-burgundy); }
.section-head h2.on-dark{ color:var(--color-ivory); }
.section-head h2.on-dark span{ color:var(--color-gold-light); }
.section-sub{ margin-top:16px; color:var(--color-text-soft); font-size:1rem; }
.section-sub.on-dark-sub{ color:rgba(250,246,239,.66); }
.section-sub code{ background:var(--color-ivory-alt); padding:2px 8px; border-radius:6px; font-family:monospace; }

/* ---------- أزرار ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:16px 32px; border-radius:999px;
  font-size:.96rem; font-weight:700;
  border:1px solid transparent;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
  white-space:nowrap;
}
.btn--primary{ background:var(--color-espresso); color:var(--color-ivory); }
.btn--primary:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lift); }
.btn--outline{ background:transparent; border-color:var(--color-espresso); color:var(--color-espresso); }
.btn--outline:hover{ background:var(--color-espresso); color:var(--color-ivory); transform:translateY(-3px); }
.btn--ghost{ background:transparent; color:var(--color-espresso); border:1px solid var(--color-line); padding:11px 24px; }
.btn--ghost:hover{ border-color:var(--color-gold); color:var(--color-burgundy); }
.btn--lg{ padding:20px 42px; font-size:1.05rem; }
.btn--block{ width:100%; justify-content:center; }

/* ================= شاشة التحميل ================= */
.loader{
  position:fixed; inset:0; z-index:2000;
  background:var(--color-espresso);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:24px;
  transition:opacity .7s var(--ease), visibility .7s var(--ease);
}
.loader.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.loader__mark{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.loader__en{ font-family:var(--font-en); font-style:italic; font-size:2.1rem; color:var(--color-ivory); }
.loader__ar{ font-family:var(--font-ar); font-size:.9rem; color:var(--color-gold); letter-spacing:.04em; }
.loader__bar{ width:180px; height:2px; background:rgba(255,255,255,.14); border-radius:2px; overflow:hidden; }
.loader__bar span{ display:block; height:100%; width:38%; background:linear-gradient(90deg, var(--color-gold), var(--color-ai-glow)); animation:loaderMove 1.15s ease-in-out infinite; }
@keyframes loaderMove{ 0%{ transform:translateX(-100%);} 100%{ transform:translateX(360%);} }

/* ================= مؤشر مخصص ================= */
.custom-cursor{
  position:fixed; top:0; left:0;
  width:20px; height:20px;
  border:1px solid var(--color-gold);
  border-radius:50%;
  pointer-events:none; z-index:3000;
  transform:translate(-50%,-50%);
  transition:width .25s var(--ease), height .25s var(--ease), opacity .25s var(--ease), background .25s var(--ease);
  opacity:0;
  mix-blend-mode:difference;
}
.custom-cursor.is-active{ opacity:1; }
.custom-cursor.is-hover{ width:44px; height:44px; background:rgba(201,168,106,.22); }

/* ================= شريط التنقل ================= */
/* الخلفية دائماً Ivory فاتحة والنص دائماً داكناً — لا تعتمد أبداً على لون
   القسم الذي خلفها (حتى فوق الـHero الداكن)، فهذا يمنع اختفاء الكتابة.
   عند التمرير نضيف فقط Blur/Shadow أقوى، دون أي تغيير في الألوان. */
.navbar{
  position:sticky; top:0; z-index:500;
  background:rgba(250,246,239,.88);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:background .4s, backdrop-filter .4s, box-shadow .4s, border-color .4s;
}
.navbar.is-scrolled{
  background:rgba(250,246,239,.96);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-color:var(--color-line); box-shadow:0 10px 30px rgba(28,23,20,.08);
}
.navbar__inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding-block:18px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand__mark{ color:var(--color-gold); display:flex; }
.brand__text{ display:flex; flex-direction:column; line-height:1.2; }
.brand__en{ font-family:var(--font-en); font-weight:700; font-size:1.28rem; letter-spacing:-.01em; color:var(--color-espresso); }
.brand__en em{ font-style:normal; color:var(--color-gold); }
.brand__ar{ font-family:var(--font-ar); font-weight:700; font-size:.8rem; color:var(--color-text-soft); }

.nav-links{ display:flex; align-items:center; gap:32px; }
.nav-link{ font-size:.93rem; font-weight:600; color:var(--color-text-soft); position:relative; padding-bottom:5px; transition:color .3s; }
.nav-link::after{ content:''; position:absolute; right:0; bottom:0; width:0; height:2px; background:var(--color-gold); border-radius:2px; transition:width .35s var(--ease); }
.nav-link:hover{ color:var(--color-espresso); }
.nav-link:hover::after, .nav-link.is-active::after{ width:100%; }
.nav-link.is-active{ color:var(--color-espresso); }

.nav-cta{ flex-shrink:0; border-color:var(--color-line); color:var(--color-espresso); }

.menu-toggle{ display:none; flex-direction:column; justify-content:center; gap:5px; width:38px; height:38px; background:none; border:none; }
.menu-toggle span{ display:block; width:100%; height:2px; background:var(--color-espresso); transition:transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle.is-open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity:0; }
.menu-toggle.is-open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ================= Hero — Premium Editorial ================= */
.hero{
  position:relative;
  min-height:calc(100svh - 80px);
  display:flex;
  align-items:center;
  overflow:hidden;
  padding-block:60px;
  background:var(--color-espresso);
  color:var(--color-ivory);
}

/* الكلمة الضخمة كخلفية طباعية خافتة — عنصر هوية، أخف من النص الرئيسي دوماً */
.hero__mast{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.hero__mast-word{
  font-family:var(--font-en);
  font-weight:800;
  font-size:13vw;
  line-height:1;
  letter-spacing:-.01em;
  white-space:nowrap;
  color:rgba(92,31,46,.15);
  transform:translateY(26px);
  user-select:none;
}

/* الفيديوهات الحقيقية — Reels عمودية 9:16، بأوفست نسبي (%) لا يستخدم vh ولا
   Negative Offsets، أقرب قليلاً لمركز التكوين لكن دون لمس منطقة النص أبداً،
   وبتوزيع Asymmetric مقصود (لا تطابق بين الأربعة، لا محاذاة رأسية موحّدة). */
.hero__frames{ position:absolute; inset:0; z-index:1; pointer-events:none; }
.hero__frame{
  position:absolute;
  aspect-ratio:9/16;
  overflow:hidden;
  border-radius:12px;
  box-shadow:0 18px 45px rgba(0,0,0,.32);
  border:1px solid rgba(255,255,255,.07);
  pointer-events:auto;
}
.hero__frame-video{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .6s var(--ease);
}
.hero__frame:hover .hero__frame-video{ transform:scale(1.025); }

/* ---- Desktop ≥1200px ---- */
.hero__frame--tl{ width:clamp(175px, 11.7vw, 218px); top:5%; inset-inline-start:8%; }
.hero__frame--bl{ width:clamp(170px, 11.3vw,210px); bottom:6%; inset-inline-start:12%; }
.hero__frame--tr{ width:clamp(173px, 11.5vw, 215px); top:4%; inset-inline-end:8%; }
.hero__frame--br{ width:clamp(168px, 10vw, 205px); bottom:11%; inset-inline-end:12%; }

/* منطقة النص المركزية — محمية تماماً بعرض ثابت 560px */
.hero__inner{ position:relative; z-index:2; width:100%; }
.hero__content{ max-width:560px; margin:0 auto; margin-top:-16px; text-align:center; }
.hero__title{
  font-size:clamp(2.7rem, 3.9vw, 3.95rem);
  line-height:1.28;
  max-width:560px;
  margin:0 auto 16px;
  letter-spacing:-.01em;
  font-weight:700;
  color:var(--color-ivory);
}
.hero__desc{
  max-width:460px;
  margin-inline:auto;
  font-size:1rem;
  line-height:1.8;
  color:rgba(250,246,239,.78);
  margin-bottom:28px;
}
.hero__actions{ display:flex; align-items:stretch; justify-content:center; gap:14px; flex-wrap:wrap; }

.hero .btn{ min-width:170px; justify-content:center; }
.hero .btn--outline{ border-color:rgba(250,246,239,.5); color:var(--color-ivory); }
.hero .btn--outline:hover{ background:rgba(250,246,239,.12); border-color:var(--color-ivory); }
.hero .btn--primary{ background:var(--color-ivory); color:var(--color-espresso); }
.hero .btn--primary:hover{ background:var(--color-gold-light); }

.scroll-hint{ position:absolute; bottom:24px; inset-inline-start:50%; transform:translateX(50%); width:26px; height:42px; border:1px solid rgba(250,246,239,.4); border-radius:20px; display:flex; justify-content:center; padding-top:8px; z-index:2; }
.scroll-hint span{ width:4px; height:8px; background:var(--color-gold); border-radius:2px; animation:hint 1.9s ease-in-out infinite; }
@keyframes hint{ 0%{ opacity:1; transform:translateY(0);} 100%{ opacity:0; transform:translateY(10px);} }

/* ================= شريط الثقة ================= */
.trust{ position:relative; width:100%; background:var(--color-espresso); padding:18px 24px; }
.trust__track{ display:flex; align-items:center; justify-content:center; flex-wrap:wrap; row-gap:8px; max-width:var(--container-w); margin:0 auto; }
.trust__item{ display:inline-flex; align-items:center; white-space:nowrap; color:var(--color-ivory); font-size:.92rem; font-weight:500; padding-inline:16px; }
.trust__separator{ display:inline-flex; flex-shrink:0; color:var(--color-gold); font-size:.6rem; }
@media (max-width: 768px){
  .trust{ padding:14px 16px; }
  .trust__track{ flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .trust__track::-webkit-scrollbar{ display:none; }
  .trust__item{ font-size:.8rem; padding-inline:10px; }
}

/* ================= من نحن — Premium Editorial ================= */

.about{
  padding:125px 0 120px;
  background:var(--color-ivory);
}

.about__inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:110px;
  align-items:center;
}

/* ================= الجهة النصية ================= */

.about__text{
  max-width:600px;
}

.about__text .eyebrow{
  margin-bottom:30px;
}

.about__text h2{
  font-size:clamp(2.35rem,3.35vw,3.15rem);
  line-height:1.24;
  letter-spacing:-.018em;
  margin:0 0 26px;
  max-width:600px;
}

.about__text h2 span{
  display:block;
  color:var(--color-gold);
}

.about__text > p:not(.about__ai-line){
  color:var(--color-text-soft);
  font-size:.98rem;
  line-height:1.9;
  max-width:560px;
  margin:0;
}

/* Signature line */

.about__ai-line{
  display:flex;
  align-items:center;
  gap:13px;
  margin-top:32px;

  font-family:var(--font-ar);
  font-style:normal;
  font-size:.92rem;
  font-weight:600;

  color:var(--color-espresso);
}

.about__ai-line i{
  display:none;
}

.about__ai-line::before{
  content:"";
  width:34px;
  height:1px;
  flex-shrink:0;
  background:var(--color-gold);
}

/* ================= المبادئ ================= */

.about__cards{
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:590px;
}

/* لا Cards بيضاء */
.about__card{
  position:relative;

  display:grid;
  grid-template-columns:82px 1fr;
  grid-template-areas:
    "num title"
    "num text";

  column-gap:24px;
  row-gap:7px;

  padding:30px 4px;

  background:transparent;
  border:none;
  border-bottom:1px solid rgba(28,23,20,.12);
  border-radius:0;
  box-shadow:none;

  transition:
    padding .4s var(--ease),
    border-color .4s var(--ease);
}

.about__card:first-child{
  border-top:1px solid rgba(28,23,20,.12);
}

/* الرقم */

.about__card-num{
  grid-area:num;

  font-family:var(--font-en);
  font-size:2.55rem;
  line-height:1;
  font-weight:700;

  color:var(--color-gold);
  opacity:.72;

  padding-top:2px;
}

/* العنوان */

.about__card h3{
  grid-area:title;

  margin:0;
  color:var(--color-espresso);
  font-size:1.08rem;
  line-height:1.5;
  font-weight:700;
}

/* الوصف */

.about__card p{
  grid-area:text;

  margin:0;
  max-width:430px;

  color:var(--color-text-soft);
  font-size:.92rem;
  line-height:1.8;
}

/* Hover بسيط جداً */

.about__card:hover{
  padding-inline-start:12px;
  border-color:rgba(201,168,106,.55);
  transform:none;
  box-shadow:none;
}

.about__card:hover .about__card-num{
  color:var(--color-burgundy);
}
/* ================= الخدمات — Premium Grid ================= */

.services{
  padding:125px 0;
  background:var(--color-ivory-alt);
}

.services__grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

/* ================= Card ================= */

.service-card,
.service-card--wide{
  position:relative;
  min-height:255px;

  padding:34px 30px 30px;

  display:flex;
  flex-direction:column;
  justify-content:flex-end;

  background:rgba(255,255,255,.76);
  color:var(--color-espresso);

  border:1px solid rgba(28,23,20,.09);
  border-radius:20px;

  overflow:hidden;

  box-shadow:
    0 10px 30px rgba(28,23,20,.035);

  transition:
    transform .4s var(--ease),
    border-color .4s var(--ease),
    box-shadow .4s var(--ease),
    background .4s var(--ease);
}

/* إلغاء شكل الكرت العريض القديم */

.service-card--wide{
  grid-column:auto;
}

/* ================= Number ================= */

.service-card__num,
.service-card--wide .service-card__num{
  position:absolute;

  top:25px;
  inset-inline-end:27px;

  font-family:var(--font-en);
  font-size:2.25rem;
  line-height:1;
  font-weight:700;

  color:var(--color-gold);
  opacity:.30;

  pointer-events:none;
}

/* ================= Icon ================= */

/*
  Lucide يحوّل <i> إلى <svg>
  لذلك نستهدف SVG مباشرة
*/

.service-card > svg,
.service-card--wide > svg,
.service-card > [data-lucide],
.service-card--wide > [data-lucide]{
  position:absolute;

  top:24px;
  inset-inline-start:26px;

  width:54px;
  height:54px;

  padding:15px;

  margin:0;

  color:var(--color-espresso);

  background:rgba(201,168,106,.11);
  border:1px solid rgba(201,168,106,.15);
  border-radius:50%;

  stroke-width:1.7;

  transition:
    transform .4s var(--ease),
    background .4s var(--ease),
    color .4s var(--ease);
}

/* ================= Title ================= */

.service-card h3,
.service-card--wide h3{
  position:relative;
  z-index:2;

  margin:0 0 11px;

  max-width:90%;

  color:var(--color-espresso);

  font-size:1.08rem;
  line-height:1.5;
  font-weight:700;
}

/* ================= Description ================= */

.service-card p,
.service-card--wide p{
  position:relative;
  z-index:2;

  margin:0;

  max-width:100%;

  color:rgba(28,23,20,.66);

  font-size:.88rem;
  line-height:1.8;
}

/* ================= Gold Accent ================= */

.service-card::after,
.service-card--wide::after{
  content:"";

  position:absolute;

  bottom:0;
  inset-inline-start:30px;

  width:30px;
  height:2px;

  background:var(--color-gold);

  opacity:.65;

  transition:
    width .4s var(--ease),
    opacity .4s var(--ease);
}

/* ================= Hover ================= */

.service-card:hover,
.service-card--wide:hover{
  transform:translateY(-5px);

  background:rgba(255,255,255,.92);

  border-color:rgba(201,168,106,.38);

  box-shadow:
    0 20px 45px rgba(28,23,20,.075);
}

.service-card:hover::after,
.service-card--wide:hover::after{
  width:52px;
  opacity:1;
}

.service-card:hover > svg,
.service-card--wide:hover > svg,
.service-card:hover > [data-lucide],
.service-card--wide:hover > [data-lucide]{
  transform:translateY(-2px);
  background:rgba(201,168,106,.18);
  color:var(--color-burgundy);
}
/* ================= الأعمال / Portfolio ================= */
.portfolio{ position:relative; padding:150px 0; background:var(--color-espresso); overflow:hidden; }
.portfolio__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(122,44,63,.35), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(201,168,106,.14), transparent 50%);
}
.portfolio > .container{ position:relative; z-index:1; }
.portfolio__filters{ display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-bottom:54px; }
.filter-btn{
  background:transparent; border:1px solid var(--color-line-dark); color:rgba(250,246,239,.65);
  padding:11px 24px; border-radius:999px; font-size:.88rem; font-weight:600;
  transition:all .35s var(--ease);
}
.filter-btn:hover{ border-color:var(--color-gold); color:var(--color-ivory); }
.filter-btn.is-active{ background:var(--color-gold); border-color:var(--color-gold); color:var(--color-espresso); }

.portfolio__grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:36px 30px; align-items:start; }

/* بطاقة هادئة: الفيديو وحده في الأعلى، والنص بالكامل تحته بدون أي تراكب */
.project-card{
  display:flex;
  flex-direction:column;
  background:transparent;
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:transform .45s var(--ease);
}
.project-card:hover{ transform:translateY(-6px); }

/* ---- منطقة الفيديو: العنصر الوحيد المسموح فوقه هو Badge REEL وزر التشغيل ---- */
.project-card__media{
  position:relative;
  aspect-ratio:9/14; /* نسبة تناسب فيديوهات Reels العمودية بدون قص سيّئ */
  border-radius:var(--radius-md);
  background:linear-gradient(160deg, var(--color-espresso-soft), #0e0b09);
  cursor:pointer;
  overflow:hidden;
  border:1px solid var(--color-line-dark);
  transition:border-color .4s var(--ease);
}
.project-card__media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.project-card:hover .project-card__media{ border-color:var(--color-gold); }
.project-card__media img,
.project-card__preview{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .8s var(--ease);
}
.project-card:hover .project-card__media img,
.project-card:hover .project-card__preview{ transform:scale(1.04); }
.project-card__preview{ pointer-events:none; }

/* Badge REEL — تصنيف بصري إنجليزي صغير، وليس نص محتوى */
.project-card__duration{
  position:absolute; top:14px; inset-inline-end:14px; z-index:1;
  background:rgba(0,0,0,.5);
  backdrop-filter:blur(4px);
  color:rgba(255,255,255,.9);
  font-size:.62rem;
  font-family:var(--font-utility);
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:5px 10px;
  border-radius:5px;
}

/* زر التشغيل — العنصر البصري الوحيد الآخر فوق الفيديو */
.project-card__play{
  position:absolute; inset:0; z-index:1;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,0);
  transition:background .4s var(--ease);
}
.project-card:hover .project-card__play{ background:rgba(0,0,0,.18); }
.project-card__play i{
  width:60px; height:60px; border-radius:50%;
  background:rgba(255,255,255,.12); backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.4);
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.15rem;
  opacity:.9;
  transition:transform .4s var(--ease), background .35s, border-color .35s, opacity .35s;
}
.project-card:hover .project-card__play i{ transform:scale(1.1); background:var(--color-gold); border-color:var(--color-gold); color:var(--color-espresso); opacity:1; }

/* ---- النص: بالكامل تحت الفيديو، بلا أي تراكب ---- */
.project-card__body{
  padding:18px 4px 0;
  display:flex; flex-direction:column; gap:8px;
}
.project-card__category{
  color:var(--color-gold-light);
  font-size:.72rem; font-weight:700; letter-spacing:.06em;
  font-family:var(--font-utility);
}
.project-card__body h3{
  color:var(--color-ivory);
  font-size:1.02rem;
  font-weight:700;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.project-card__body p{
  color:rgba(250,246,239,.6);
  font-size:.86rem;
  line-height:1.6;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.project-card__view{
  display:inline-flex; align-items:center; gap:6px; margin-top:4px;
  font-size:.82rem; font-weight:700; color:var(--color-gold);
  transition:color .3s var(--ease), gap .3s var(--ease);
  align-self:flex-start;
}
.project-card__view:hover{ color:var(--color-ivory); gap:9px; }

/* ---- Video Modal — Dark نظيف ---- */
.video-modal{ position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:24px; opacity:0; pointer-events:none; transition:opacity .35s var(--ease); }
.video-modal.is-open{ opacity:1; pointer-events:auto; }
.video-modal__backdrop{ position:absolute; inset:0; background:rgba(10,8,7,.92); backdrop-filter:blur(6px); }
.video-modal__box{ position:relative; width:100%; max-width:920px; background:var(--color-espresso); border-radius:var(--radius-md); overflow:hidden; border:1px solid rgba(255,255,255,.08); transform:translateY(28px) scale(.96); transition:transform .4s var(--ease); }
.video-modal.is-open .video-modal__box{ transform:translateY(0) scale(1); }
.video-modal__media{ position:relative; width:100%; aspect-ratio:16/9; background:#000; }
.video-modal__media video, .video-modal__media iframe{ position:absolute; inset:0; width:100%; height:100%; border:none; }
.video-modal__close{
  position:absolute; top:18px; inset-inline-end:18px; z-index:2;
  width:42px; height:42px; border-radius:50%;
  background:rgba(255,255,255,.1); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center; font-size:1rem; color:#fff;
  transition:background .3s, transform .3s;
}
.video-modal__close:hover{ background:var(--color-gold); color:var(--color-espresso); transform:rotate(90deg); }
.video-modal__info{ padding:24px 28px 30px; color:var(--color-ivory); }
.video-modal__info h3{ color:var(--color-ivory); margin-bottom:8px; font-size:1.2rem; font-family:var(--font-en); }
.video-modal__info p{ color:rgba(250,246,239,.68); margin:0; font-size:.92rem; }

/* ================= لماذا نحن ================= */
.why-us{ padding:140px 0; background:var(--color-espresso); color:var(--color-ivory); }
.why-us__list{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:64px; }
.why-us__list li{
  display:flex; align-items:center; gap:14px;
  background:rgba(250,246,239,.04);
  border:1px solid var(--color-line-dark);
  border-radius:var(--radius-md);
  padding:22px 24px;
  font-size:.95rem;
  transition:background .35s, border-color .35s;
}
.why-us__list li:hover{ background:rgba(250,246,239,.07); border-color:var(--color-gold); }
.why-us__list i{ color:var(--color-gold); flex-shrink:0; font-size:1.2rem; }
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.stat{ background:rgba(250,246,239,.04); border:1px solid var(--color-line-dark); border-radius:var(--radius-md); padding:28px 20px; text-align:center; }
.stat__num{ font-family:var(--font-en); font-weight:700; font-size:2.3rem; color:var(--color-gold); }
.stat__plus{ font-family:var(--font-en); font-weight:700; font-size:1.35rem; color:var(--color-gold); }
.stat__label{ display:block; margin-top:8px; font-size:.85rem; color:rgba(250,246,239,.6); }

/* ================= خطوات العمل ================= */
.process{ padding:140px 0; }
.process__timeline{ position:relative; display:grid; grid-template-columns:repeat(5,1fr); gap:20px; }
.process__timeline::before{ content:''; position:absolute; top:27px; inset-inline:6%; height:1px; background:var(--color-line); z-index:0; }
.process__step{ position:relative; z-index:1; text-align:center; }
.process__num{
  display:flex; align-items:center; justify-content:center;
  width:54px; height:54px; margin:0 auto 20px;
  border-radius:50%; background:var(--color-surface); border:1px solid var(--color-line);
  font-family:var(--font-en); font-weight:700; color:var(--color-burgundy); font-size:1.1rem;
}
.process__step h3{ font-size:1rem; margin-bottom:10px; }
.process__step p{ color:var(--color-text-soft); font-size:.86rem; margin:0; }

/* ================= CTA ================= */
.cta{ position:relative; padding:120px 0; background:linear-gradient(135deg, var(--color-burgundy), var(--color-espresso) 78%); color:var(--color-ivory); overflow:hidden; }
.cta__noise{
  position:absolute; inset:0; opacity:.06; mix-blend-mode:overlay; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cta__inner{ position:relative; text-align:center; max-width:740px; margin:0 auto; }
.cta__inner h2{ color:var(--color-ivory); font-size:clamp(1.9rem,3.6vw,2.7rem); margin-bottom:22px; }
.cta__inner h2 span{ color:var(--color-gold-light); }
.cta__inner p{ color:rgba(250,246,239,.78); margin-bottom:38px; font-size:1.05rem; }
.cta__actions{ display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }
.cta .btn--primary{ background:var(--color-gold); color:var(--color-espresso); }
.cta .btn--primary:hover{ background:var(--color-gold-light); }
.cta .btn--outline{ border-color:rgba(250,246,239,.4); color:var(--color-ivory); }
.cta .btn--outline:hover{ background:rgba(250,246,239,.12); }

/* ================= تواصل معنا ================= */
.contact{ padding:140px 0; }
.contact__inner{ display:grid; grid-template-columns:.9fr 1.1fr; gap:72px; }
.contact__info h2{ font-size:clamp(1.8rem,3.4vw,2.5rem); margin-bottom:32px; }
.contact__info h2 span{ color:var(--color-gold); }
.contact__list{ display:flex; flex-direction:column; gap:22px; }
.contact__list li{ display:flex; align-items:center; gap:16px; }
.contact__list i{
  width:48px; height:48px; border-radius:50%;
  background:var(--color-ivory-alt); color:var(--color-burgundy);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0;
}
.contact__list li > div{ display:flex; flex-direction:column; gap:2px; }
.contact__list span{ display:block; font-size:.82rem; color:var(--color-text-soft); }
.contact__list a{ font-weight:700; }
.contact__list a:hover{ color:var(--color-gold); }
.contact__map-link{ font-size:.84rem !important; font-weight:600; color:var(--color-burgundy); margin-top:2px; }
.contact__map-link:hover{ color:var(--color-gold); }

.contact__form{
  background:var(--color-surface); border:1px solid var(--color-line); border-radius:var(--radius-lg);
  padding:42px; display:flex; flex-direction:column; gap:20px; box-shadow:var(--shadow-soft);
}
.field{ display:flex; flex-direction:column; gap:8px; position:relative; }
.field label{ font-size:.88rem; font-weight:700; color:var(--color-espresso); }
.field label .req{ color:var(--color-burgundy); }
.field label .optional{ color:var(--color-text-soft); font-weight:400; font-size:.8rem; }
.field input, .field select, .field textarea{
  border:1px solid var(--color-line); border-radius:var(--radius-sm);
  padding:14px 16px; background:var(--color-ivory); font-size:.95rem; color:var(--color-espresso);
  transition:border-color .3s; resize:vertical;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--color-gold); }
.field.has-error input, .field.has-error select{ border-color:var(--color-burgundy); }
.field__error{ font-size:.78rem; color:var(--color-burgundy); min-height:1em; }
.field__hint{ font-size:.82rem; color:var(--color-text-soft); margin:0; text-align:center; }

/* ================= Footer ================= */
.footer{ background:var(--color-espresso); color:var(--color-ivory); padding-top:70px; }
.footer__inner{ display:flex; flex-wrap:wrap; gap:40px; justify-content:space-between; padding-bottom:38px; border-bottom:1px solid var(--color-line-dark); }
.footer__brand{ display:flex; flex-direction:column; gap:6px; max-width:320px; }
.footer__brand .brand__en{ font-family:var(--font-en); font-weight:700; font-size:1.4rem;color:var(--color-ivory); }
.footer__brand .brand__en em{ font-style:normal; color:var(--color-gold); }
.footer__brand .brand__ar{ font-family:var(--font-ar); font-weight:700; font-size:.85rem; color:var(--color-gold-light); }
.footer__brand p{ margin:10px 0 0; font-size:.88rem; color:rgba(250,246,239,.6); }
.footer__links{ display:flex; flex-wrap:wrap; gap:24px; align-content:flex-start; }
.footer__links a{ font-size:.92rem; color:rgba(250,246,239,.78); }
.footer__links a:hover{ color:var(--color-gold); }
.footer__social{ display:flex; gap:14px; align-content:flex-start; height:fit-content; }
.footer__social a{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--color-line-dark);
  display:flex; align-items:center; justify-content:center; transition:all .35s var(--ease);
}
.footer__social a:hover{ background:var(--color-gold); border-color:var(--color-gold); color:var(--color-espresso); }
.footer__bottom{ padding:24px 0; text-align:center; font-size:.85rem; color:rgba(250,246,239,.5); display:flex; flex-direction:column; gap:6px; }
.footer__tagline{ font-family:var(--font-en); font-style:italic; color:var(--color-gold); }

/* ================= أزرار عائمة ================= */
.floating-whatsapp-wrap{ position:fixed; bottom:28px; inset-inline-start:28px; z-index:400; display:flex; align-items:center; }
.floating-whatsapp{
  width:58px; height:58px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.6rem;
  box-shadow:0 14px 30px rgba(37,211,102,.35); transition:transform .35s var(--ease);
}
.floating-whatsapp:hover{ transform:scale(1.08); }
.floating-whatsapp__tooltip{
  position:absolute; inset-inline-start:70px; background:var(--color-espresso); color:var(--color-ivory);
  font-size:.8rem; padding:6px 12px; border-radius:8px;
  opacity:0; transform:translateX(-8px); pointer-events:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease); white-space:nowrap;
}
html[dir="rtl"] .floating-whatsapp__tooltip{ transform:translateX(8px); }
.floating-whatsapp-wrap:hover .floating-whatsapp__tooltip{ opacity:1; transform:translateX(0); }

.back-to-top{
  position:fixed; bottom:28px; inset-inline-end:28px;
  width:50px; height:50px; border-radius:50%;
  background:var(--color-espresso); color:var(--color-ivory); border:none;
  display:flex; align-items:center; justify-content:center; font-size:1.05rem;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:all .4s var(--ease); z-index:400;
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background:var(--color-gold); color:var(--color-espresso); }

/* ================= حركات الظهور ================= */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible{ opacity:1; transform:translateY(0); }