/* =========================================================
   شركة القاسم العقارية — نموذج عرض
   نظام تصميم 3 طبقات: لوحة خام ← أوضاع أقسام ← مكوّنات دلالية
   ========================================================= */

/* ===== الطبقة 1 — لوحة خام من هوية العميل (الأحمر مقاس من اللوجو) ===== */
:root{
  --accent:#BE2532;
  --accent-rgb:190,37,50;
  --accent-2:#E8505D;          /* أفتح للعناوين الصغيرة فوق الداكن */
  --accent-2-rgb:232,80,93;
  --on-accent:#fff;

  --ink-900:#121012;  --ink-800:#1B181A;  --ink-700:#4A4548;
  --ink-rgb:18,16,18;
  --stone:#999799;             /* رمادي نص اللوجو */
  --paper:#FFFFFF;  --paper-2:#F6F3F1;  --paper-3:#ECE7E3;

  --nav-bg:transparent;
  --nav-bg-scrolled:rgba(var(--ink-rgb),.82);

  --maxw:1240px;  --pad:clamp(18px,5vw,44px);  --sec-y:clamp(64px,9vw,120px);
  --r-sm:10px; --r-md:14px; --r-lg:20px; --r-xl:28px; --r-pill:100px;

  --sh-sm:0 2px 10px rgba(var(--ink-rgb),.08);
  --sh-md:0 16px 44px rgba(var(--ink-rgb),.14);
  --sh-lg:0 30px 70px rgba(var(--ink-rgb),.22);

  --ease:cubic-bezier(.22,.61,.36,1); --ease-out:cubic-bezier(.16,1,.3,1);
  --t-fast:.2s; --t-mid:.35s; --t-slow:.8s; --x:-1;

  /* شريط النموذج التوضيحي — خارج هوية العميل عمدا */
  --demo-bg:#1A1200; --demo-ink:#FFD76B;

  --white:#fff; --white-06:rgba(255,255,255,.06); --white-14:rgba(255,255,255,.14);
  --white-30:rgba(255,255,255,.3);  --white-70:rgba(255,255,255,.7);

  color-scheme: light;
}
html[dir="ltr"]{ --x:1; }

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-padding-block-start:110px; }
body{
  margin:0; background:var(--paper); color:var(--ink-900);
  font-family:"SF Arabic","Geeza Pro","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  line-height:1.7; -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img{ max-width:100%; display:block; height:auto; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--pad); }
section{ background:var(--bg); color:var(--ink); padding-block:var(--sec-y); position:relative; }
.site-footer{ background:var(--bg); color:var(--ink); }

h1,h2,h3{ margin:0; font-weight:800; line-height:1.2; }
h1{ font-size:clamp(34px,6vw,64px); line-height:1.15; }
h2{ font-size:clamp(26px,4vw,42px); }
h3{ font-size:clamp(19px,2.4vw,24px); }
p{ margin:0; text-align:justify; text-justify:inter-word; hyphens:none; }
.lead{ font-size:clamp(16px,1.7vw,19px); }
h1,h2,h3,.lead,.btn,li{ text-align:start; }
.ltr{ direction:ltr; unicode-bidi:isolate; display:inline-block; }

/* ===== الطبقة 2 — أوضاع الأقسام ===== */
.sec-dark  { --bg:var(--ink-900); --ink:var(--white);     --ink-2:var(--white-70);     --surface:var(--white-06);  --border:var(--white-14); --eyebrow:var(--accent-2); }
.sec-deep  { --bg:var(--ink-800); --ink:var(--white);     --ink-2:var(--white-70);     --surface:var(--white-06);  --border:var(--white-14); --eyebrow:var(--accent-2); }
.sec-light { --bg:var(--paper);   --ink:var(--ink-900); --ink-2:var(--ink-700);      --surface:var(--paper-2);   --border:rgba(var(--ink-rgb),.10); --eyebrow:var(--accent); }
.sec-tint  { --bg:var(--paper-2); --ink:var(--ink-900); --ink-2:var(--ink-700);      --surface:var(--paper);     --border:rgba(var(--ink-rgb),.10); --eyebrow:var(--accent); }
.sec-brand { --bg:var(--accent);  --ink:var(--on-accent); --ink-2:rgba(255,255,255,.86); --surface:rgba(255,255,255,.12); --border:rgba(255,255,255,.26); --eyebrow:var(--on-accent); }

/* ===== الطبقة 3 — مكوّنات دلالية ===== */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--eyebrow); font-weight:700; font-size:14px;
  margin-block-end:14px;
}
.eyebrow::before{ content:""; width:26px; height:2px; background:currentColor; border-radius:2px; }
.muted{ color:var(--ink-2); }

.card{
  background:var(--surface); border:1px solid var(--border); color:var(--ink);
  border-radius:var(--r-lg); padding:clamp(22px,3vw,30px);
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--surface); border:1px solid var(--border); color:var(--ink);
  border-radius:var(--r-pill); padding:8px 16px; font-size:14px; font-weight:700;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 28px; border-radius:var(--r-pill); font-weight:700; font-size:15px;
  min-height:52px; white-space:nowrap; border:1px solid transparent; cursor:pointer;
}
.btn-primary{ background:var(--accent); color:var(--on-accent); }
.sec-brand .btn-primary{ background:var(--paper); color:var(--accent); }
.btn-ghost{ border-color:var(--border); color:var(--ink); background:transparent; }
.sec-brand .btn-ghost, .hero .btn-ghost{ border-color:var(--white-30); }
.btn-row{ display:flex; flex-wrap:wrap; gap:14px; }
.btn svg{ width:18px; height:18px; flex:none; }
.arrow{ display:inline-block; }
.more{ display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--eyebrow); font-size:15px; }

/* ===== الهيدر ===== */
.top-fixed{ position:fixed; inset-block-start:0; inset-inline:0; z-index:50; }
.demo-banner{
  background:var(--demo-bg); color:var(--demo-ink); text-align:center; font-size:13px; font-weight:700;
  padding:9px var(--pad); line-height:1.5;
}
.site-header{ background:var(--nav-bg); }
.site-header.scrolled{ background:var(--nav-bg-scrolled); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); box-shadow:var(--sh-sm); }
.header-row{ display:flex; align-items:center; justify-content:space-between; gap:18px; padding-block:14px; }
.brand{ display:flex; align-items:center; flex:none; }
.brand img{ height:48px; width:auto; }
.main-nav{ display:flex; align-items:center; gap:2px; }
.main-nav a{
  color:var(--white-70); font-weight:600; font-size:15px; white-space:nowrap;
  padding:10px 12px; border-radius:var(--r-pill);
  transition:background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.main-nav a[aria-current="page"]{ color:var(--on-accent); }
@media (hover:hover){ .main-nav a:hover{ background:var(--white-14); color:var(--on-accent); } }
.header-cta{ display:flex; align-items:center; gap:10px; }
.header-cta .btn{ padding:10px 22px; min-height:44px; font-size:14px; }
.lang{
  display:inline-flex; align-items:center; justify-content:center; min-width:44px; height:44px;
  border:1px solid var(--white-30); border-radius:var(--r-pill); color:var(--on-accent);
  font-size:13px; font-weight:700; letter-spacing:.06em;
}
.burger{
  display:none; width:44px; height:44px; border-radius:var(--r-sm);
  border:1px solid var(--white-30); background:transparent; cursor:pointer;
  align-items:center; justify-content:center; flex-direction:column; gap:5px;
}
.burger span{ width:20px; height:2px; background:var(--on-accent); border-radius:2px; }

/* ===== الهيرو ===== */
.hero{
  min-height:min(100svh,1000px); display:flex; align-items:flex-end; overflow:hidden; isolation:isolate;
  padding-block:clamp(170px,22vh,230px) clamp(56px,9vh,96px);
}
.hero-media{ position:absolute; inset:0; z-index:-2; overflow:hidden; animation:hero-zoom 2.4s var(--ease-out) both; }
.hero-media img{ width:100%; height:118%; max-width:none; object-fit:cover; object-position:center 60%; }
.hero-media::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(to top, rgba(var(--ink-rgb),.94) 0%, rgba(var(--ink-rgb),.55) 45%, rgba(var(--ink-rgb),.35) 100%),
    linear-gradient(to left, rgba(var(--ink-rgb),.55), transparent 65%);
}
.hero::before{
  content:""; position:absolute; inset:-20%; z-index:-1; pointer-events:none;
  background:radial-gradient(38% 38% at 78% 72%, rgba(var(--accent-rgb),.42), transparent 70%),
             radial-gradient(30% 30% at 20% 30%, rgba(var(--accent-2-rgb),.16), transparent 70%);
  filter:blur(40px);
  animation:drift 18s ease-in-out infinite alternate;
}
@keyframes drift{ to{ transform:translate3d(4%,-3%,0) scale(1.1) } }
@keyframes hero-zoom{ from{ transform:scale(1.14) } to{ transform:scale(1) } }

.hero-inner{ display:grid; grid-template-columns:1.25fr .75fr; gap:clamp(30px,5vw,70px); align-items:end; width:100%; }
.hero-copy .eyebrow{ color:var(--accent-2); }
.hero h1{ margin-block:6px 22px; max-width:15ch; }
.hero h1 .hl{ color:var(--accent-2); }
.hero .lead{ max-width:52ch; color:var(--ink-2); margin-block-end:32px; }
.hero-line{ display:block; width:120px; height:3px; background:var(--accent); border-radius:3px; margin-block-end:26px; transform-origin:right center; }

.hero-facts{ display:grid; gap:14px; }
.hero-fact{
  background:rgba(var(--ink-rgb),.5); border:1px solid var(--white-14); border-radius:var(--r-lg);
  padding:18px 22px; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.hero-fact b{ display:block; font-size:clamp(26px,3vw,34px); font-weight:800; color:var(--on-accent); line-height:1.2; }
.hero-fact > span{ font-size:14px; color:var(--ink-2); }

/* دخول الهيرو عند التحميل — CSS animation (قسم 8.4: مش reveal ومش GSAP) */
.h-in{ animation:h-up .9s var(--ease-out) both; }
.h-in.d1{ animation-delay:.15s } .h-in.d2{ animation-delay:.3s } .h-in.d3{ animation-delay:.45s }
.h-in.d4{ animation-delay:.6s }  .h-in.d5{ animation-delay:.75s }
.hero-line.h-in{ animation-name:h-line; }
@keyframes h-up{ from{ opacity:0; transform:translateY(46px) } to{ opacity:1; transform:none } }
@keyframes h-line{ from{ opacity:0; transform:scaleX(0) } to{ opacity:1; transform:scaleX(1) } }

.scroll-cue{
  position:absolute; inset-block-end:24px; inset-inline-start:50%; transform:translateX(50%);
  width:26px; height:42px; border:2px solid var(--white-30); border-radius:20px;
}
.scroll-cue::after{
  content:""; position:absolute; inset-inline-start:50%; inset-block-start:8px; width:4px; height:8px;
  margin-inline-start:-2px; background:var(--on-accent); border-radius:2px; animation:cue 1.8s var(--ease) infinite;
}
@keyframes cue{ 0%{ opacity:0; transform:translateY(0) } 30%{ opacity:1 } 100%{ opacity:0; transform:translateY(14px) } }

/* ===== الماركي ===== */
.marquee{ overflow:hidden; padding-block:22px; background:var(--bg); color:var(--ink); }
.marquee-track{ display:inline-flex; white-space:nowrap; animation:marq 38s linear infinite; }
html[dir="rtl"] .marquee-track{ animation-direction:reverse; }
.marquee-item{ display:inline-flex; align-items:center; gap:28px; padding-inline-end:28px; font-size:clamp(20px,2.6vw,30px); font-weight:800; }
.marquee-item::after{ content:""; width:10px; height:10px; border-radius:50%; background:currentColor; opacity:.5; }
@media (hover:hover){ .marquee:hover .marquee-track{ animation-play-state:paused; } }
@keyframes marq{ to{ transform:translateX(-50%) } }

/* ===== رؤوس الأقسام ===== */
.section-head{ max-width:64ch; margin-block-end:clamp(32px,5vw,54px); }
.section-head .lead{ margin-block-start:14px; }
.head-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-block-end:clamp(32px,5vw,54px); }
.head-row .section-head{ margin-block-end:0; }

/* ===== نبذة ===== */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(34px,6vw,80px); align-items:center; }
.about-media{ position:relative; }
.about-media .frame{ border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--sh-lg); aspect-ratio:7/4; }
.about-media .frame img{ width:100%; height:100%; object-fit:cover; }
.about-media .tag{
  position:absolute; inset-block-end:-22px; inset-inline-start:24px;
  background:var(--accent); color:var(--on-accent); border-radius:var(--r-md);
  padding:14px 20px; font-weight:800; box-shadow:var(--sh-md);
}
.about-media .tag b{ font-size:26px; display:block; line-height:1.1; }
.about-media .tag span{ font-size:13px; font-weight:600; }
.about-copy p + p{ margin-block-start:16px; }
.about-copy h2{ margin-block-end:20px; }
.pillars{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-block:28px 30px; }
.pillar{ padding:18px 20px; border-radius:var(--r-md); background:var(--surface); border:1px solid var(--border); }
.pillar h3{ font-size:17px; margin-block-end:6px; color:var(--accent); }
.pillar p{ font-size:15px; color:var(--ink-2); text-align:start; }

/* ===== الخدمات ===== */
.svc-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.svc{ display:flex; flex-direction:column; gap:12px; min-height:240px; position:relative; overflow:hidden; }
.svc .ic{
  width:54px; height:54px; border-radius:var(--r-md); display:flex; align-items:center; justify-content:center;
  background:rgba(var(--accent-rgb),.09); color:var(--accent);
}
.svc .ic svg{ width:26px; height:26px; }
.svc h3{ font-size:20px; }
.svc p{ font-size:15px; text-align:start; }
.svc .more{ margin-block-start:auto; font-size:14px; }
.svc::after{
  content:""; position:absolute; inset-inline:0; inset-block-end:0; height:3px; background:var(--accent);
  transform:scaleX(0); transform-origin:right; transition:transform var(--t-mid) var(--ease);
}
.svc-wide{ grid-column:span 2; background:var(--ink-900); color:var(--on-accent); border-color:transparent;
  --ink-2:var(--white-70); --eyebrow:var(--accent-2); }
.svc-wide .ic{ background:rgba(var(--accent-2-rgb),.16); color:var(--accent-2); }

/* ===== الأرقام ===== */
.stats{ overflow:hidden; }
.stats-bg{
  position:absolute; inset-block-start:50%; inset-inline-start:0; transform:translateY(-50%);
  font-size:clamp(140px,24vw,340px); font-weight:800; line-height:1; white-space:nowrap;
  color:transparent; -webkit-text-stroke:1px var(--white-14); pointer-events:none; user-select:none;
}
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.stat{ padding:clamp(18px,3vw,34px); border-inline-start:1px solid var(--border); }
.stat:first-child{ border-inline-start:0; }
.stat .num{ display:block; font-size:clamp(44px,6.4vw,84px); font-weight:800; line-height:1; color:var(--on-accent); }
.stat .num small{ font-size:.42em; color:var(--accent-2); margin-inline-start:6px; font-weight:800; }
.stat h3{ font-size:17px; margin-block:14px 6px; }
.stat p{ font-size:14px; color:var(--ink-2); text-align:start; }

/* ===== المشروعات ===== */
.proj-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.proj{ padding:0; overflow:hidden; display:flex; flex-direction:column; }
.proj .ph{ overflow:hidden; aspect-ratio:595/355; position:relative; }
.proj .ph img{ width:100%; height:100%; object-fit:cover; }
.proj .loc{
  position:absolute; inset-block-start:16px; inset-inline-start:16px;
  background:rgba(var(--ink-rgb),.7); color:var(--on-accent); border-radius:var(--r-pill);
  padding:6px 14px; font-size:13px; font-weight:700; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.proj .body{ padding:clamp(20px,2.6vw,28px); display:flex; flex-direction:column; gap:10px; }
.proj .body{ flex:1; }
.proj .body p{ font-size:15px; }
.proj .more{ margin-block-start:auto; padding-block-start:6px; }
.proj .role{ font-size:13px; font-weight:700; color:var(--accent); }

/* ===== إدارة الأملاك ===== */
.pm-grid{ display:grid; grid-template-columns:1fr 1.05fr; gap:clamp(34px,6vw,80px); align-items:start; }
.pm-lead{ margin-block-start:14px; }
.pm-list{ list-style:none; margin:28px 0 32px; padding:0; display:grid; gap:14px; }
.pm-list li{ display:flex; gap:14px; align-items:flex-start; font-size:16px; color:var(--ink-2); }
.pm-list li::before{
  content:""; flex:none; width:22px; height:22px; margin-block-start:3px; background:var(--accent-2);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M7 12.5l3.5 3.5L17 9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M7 12.5l3.5 3.5L17 9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tiers{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.tier{ display:flex; flex-direction:column; gap:6px; padding:24px; }
.tier .nm{ font-weight:700; color:var(--ink-2); font-size:15px; }
.tier .pc{ font-size:clamp(34px,4vw,46px); font-weight:800; line-height:1.1; color:var(--on-accent); }
.tier .pc small{ font-size:15px; font-weight:600; color:var(--ink-2); margin-inline-start:6px; }
.tier.featured{ background:var(--accent); border-color:transparent; }
.tier.featured .nm, .tier.featured .pc small{ color:rgba(255,255,255,.86); }
.demo-note{
  display:flex; gap:10px; align-items:center; margin-block-end:16px;
  background:var(--demo-bg); color:var(--demo-ink); border-radius:var(--r-sm);
  padding:10px 14px; font-size:13px; font-weight:700; line-height:1.5;
}
.pm-media{ margin-block-start:16px; border-radius:var(--r-lg); overflow:hidden; aspect-ratio:595/355; }
.pm-media img{ width:100%; height:100%; object-fit:cover; }

/* ===== العقارات ===== */
.props{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.prop{ padding:0; overflow:hidden; display:flex; flex-direction:column; }
.prop .ph{ aspect-ratio:4/3; overflow:hidden; position:relative; }
.prop .ph img{ width:100%; height:100%; object-fit:cover; }
.prop .kind{
  position:absolute; inset-block-start:14px; inset-inline-start:14px;
  background:var(--accent); color:var(--on-accent); border-radius:var(--r-pill); padding:5px 12px; font-size:12px; font-weight:700;
}
.prop .body{ padding:20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.prop h3{ font-size:17px; }
.prop .price{ font-size:22px; font-weight:800; color:var(--accent); }
.prop .price small{ font-size:13px; font-weight:700; color:var(--ink-2); margin-inline-start:4px; }
.prop .meta{ display:flex; flex-wrap:wrap; gap:8px 16px; font-size:13px; color:var(--ink-2); margin-block-start:auto; padding-block-start:12px; border-block-start:1px solid var(--border); }
.prop .meta span{ display:inline-flex; align-items:center; gap:6px; }
.prop .meta svg{ width:15px; height:15px; color:var(--accent); }

/* ===== الفروع + CTA ===== */
.cta-grid{ display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(30px,5vw,70px); align-items:center; }
.cta-grid .lead{ margin-block:14px 30px; }
.branches{ display:grid; gap:14px; }
.branch{ display:flex; gap:16px; align-items:flex-start; padding:20px 22px; }
.branch .n{
  flex:none; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--on-accent); color:var(--accent); font-weight:800;
}
.branch h3{ font-size:17px; margin-block-end:4px; }
.branch p{ font-size:14px; color:var(--ink-2); text-align:start; }
.branch .new{ display:inline-block; margin-inline-start:8px; font-size:12px; padding:2px 10px; border-radius:var(--r-pill); background:var(--on-accent); color:var(--accent); vertical-align:middle; }

/* ===== الفوتر ===== */
.site-footer .wrap{ padding-block:clamp(54px,7vw,84px) 30px; }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:36px; margin-block-end:40px; }
.footer-brand img{ height:52px; width:auto; margin-block-end:18px; }
.footer-brand p{ font-size:14px; color:var(--ink-2); max-width:42ch; }
.footer-col h3{ font-size:15px; margin-block-end:16px; color:var(--on-accent); }
.footer-col ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.footer-col li, .footer-col a{ color:var(--ink-2); font-size:14px; }
@media (hover:hover){ .footer-col a:hover{ color:var(--on-accent); } }
.social-row{ display:flex; gap:10px; margin-block-start:18px; flex-wrap:wrap; }
.social-row a{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; color:var(--on-accent);
}
.social-row svg{ width:17px; height:17px; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding-block-start:26px; border-block-start:1px solid var(--border); font-size:13px; color:var(--ink-2);
}

/* ===== زر واتساب عائم ===== */
.wa-float{
  position:fixed; inset-block-end:20px; inset-inline-end:20px; z-index:40;
  width:56px; height:56px; border-radius:50%; background:var(--accent); color:var(--on-accent);
  display:flex; align-items:center; justify-content:center; box-shadow:var(--sh-md);
}
.wa-float svg{ width:28px; height:28px; }

/* =========================================================
   الحركة — الطبقة الأساسية (إلزامية، قسم 8)
   ========================================================= */
.site-header{ transition:background var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease); }
.card,.btn,.wa-float{
  transition:transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease),
             background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}

.reveal      { opacity:0; transform:translateY(46px);
               transition:opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal-fade { opacity:0; transition:opacity .8s var(--ease); }
.reveal.in, .reveal-fade.in{ opacity:1; transform:none; }
.reveal[data-d="1"]{transition-delay:.1s} .reveal[data-d="2"]{transition-delay:.2s}
.reveal[data-d="3"]{transition-delay:.3s} .reveal[data-d="4"]{transition-delay:.4s}

[data-stagger] > *   { opacity:0; transform:translateY(44px);
                       transition:opacity .75s var(--ease), transform .75s var(--ease),
                                  box-shadow var(--t-mid) var(--ease), background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease); }
[data-stagger].in > *{ opacity:1; transform:none; }
[data-stagger].in > *:nth-child(2){transition-delay:.1s}
[data-stagger].in > *:nth-child(3){transition-delay:.2s}
[data-stagger].in > *:nth-child(4){transition-delay:.3s}
[data-stagger].in > *:nth-child(5){transition-delay:.4s}
[data-stagger].in > *:nth-child(n+6){transition-delay:.5s}
/* بعد ما الدخول يخلص، الهوفر يرجع سريع من غير تأخير التتابع */
[data-stagger].done > *{ transition-delay:0s!important; transition-duration:var(--t-mid); }

.card .ph img{ transition:transform .6s var(--ease); }
.arrow{ transition:transform var(--t-mid) var(--ease); }
@media (hover:hover){
  .card:hover          { transform:translateY(-6px); box-shadow:var(--sh-md); }
  .btn:hover           { transform:translateY(-2px); box-shadow:var(--sh-sm); }
  .wa-float:hover      { transform:scale(1.08); }
  .card:hover .ph img  { transform:scale(1.06); }
  .svc:hover::after    { transform:scaleX(1); }
  .card:hover .arrow,
  .btn:hover .arrow,
  .more:hover .arrow   { transform:translateX(calc(6px * var(--x))); }
}

/* انتقال بين الصفحات */
@view-transition{ navigation:auto; }
@media (prefers-reduced-motion:no-preference){
  ::view-transition-old(root){ animation:.4s cubic-bezier(.65,0,.35,1) both pg-out; }
  ::view-transition-new(root){ animation:.4s cubic-bezier(.65,0,.35,1) both pg-in; }
  @keyframes pg-out{ to  { opacity:0; transform:translateY(-14px) } }
  @keyframes pg-in { from{ opacity:0; transform:translateY(14px) } }
}

/* الحارس — بيرجّع المخفي ظاهر */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation:none!important; transition:none!important; scroll-behavior:auto!important; }
  .reveal,.reveal-fade,[data-stagger] > *{ opacity:1!important; transform:none!important; }
}
.no-js .reveal,.no-js .reveal-fade,.no-js [data-stagger] > *{ opacity:1; transform:none; }

/* ===== ريسبونسف ===== */
@media (max-width:1024px){
  .main-nav, .header-cta .btn{ display:none; }
  .burger{ display:flex; }
  .hero-inner{ grid-template-columns:1fr; }
  .hero-facts{ grid-template-columns:repeat(3,1fr); }
  .about-grid, .pm-grid, .cta-grid{ grid-template-columns:1fr; }
  .svc-grid{ grid-template-columns:repeat(2,1fr); }
  .props{ grid-template-columns:repeat(2,1fr); }
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
  .stat:nth-child(3){ border-inline-start:0; }
  .stat:nth-child(n+3){ border-block-start:1px solid var(--border); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:768px){
  .proj-grid{ grid-template-columns:1fr; max-width:620px; }
  .brand img{ height:40px; }
  .hero-facts{ grid-template-columns:1fr 1fr 1fr; gap:10px; }
  .hero-fact{ padding:14px; }
  .hero-fact b{ font-size:20px; white-space:nowrap; }
  .hero-fact > span{ font-size:12px; line-height:1.4; display:block; }
  .scroll-cue{ display:none; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
}
@media (max-width:480px){
  .btn-row{ flex-direction:column; align-items:stretch; }
  .svc-grid, .props, .pillars{ grid-template-columns:1fr; }
  .tier{ padding:18px; }
  .tier .pc{ font-size:28px; }
  .tier .pc small{ display:block; margin-inline-start:0; font-size:13px; }
  .svc-wide{ grid-column:auto; }
  .svc{ min-height:0; }
  .stat .num{ font-size:44px; }
  .demo-banner{ font-size:12px; padding-block:7px; }
  .lang{ min-width:40px; height:40px; }
}

/* ===== درور الموبايل ===== */
.mobile-drawer{
  position:fixed; inset:0; z-index:60; background:var(--ink-900);
  display:flex; flex-direction:column; padding:24px var(--pad); overflow-y:auto;
  transform:translateX(calc(100% * var(--x) * -1)); visibility:hidden;
  transition:transform var(--t-mid) var(--ease), visibility 0s linear var(--t-mid);
}
.mobile-drawer.open{ transform:translateX(0); visibility:visible; transition:transform var(--t-mid) var(--ease), visibility 0s; }
.mobile-drawer .top{ display:flex; justify-content:space-between; align-items:center; margin-block-end:30px; }
.mobile-drawer .top img{ height:40px; width:auto; }
.mobile-drawer nav{ display:grid; gap:4px; }
.mobile-drawer nav a{ color:var(--on-accent); font-size:20px; font-weight:700; padding:14px 6px; border-block-end:1px solid var(--white-14); }
.mobile-drawer .close{
  width:44px; height:44px; border-radius:var(--r-sm); border:1px solid var(--white-30);
  background:transparent; color:var(--on-accent); cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.mobile-drawer .close svg{ width:20px; height:20px; }
.mobile-drawer .btn{ margin-block-start:24px; }
body.no-scroll{ overflow:hidden; }

/* ===== صفحة قريبا ===== */
.soon{ min-height:78svh; display:flex; align-items:center; padding-block:clamp(170px,22vw,230px) clamp(90px,14vw,160px); text-align:center; overflow:hidden; isolation:isolate; }
.soon::before{
  content:""; position:absolute; inset:-20%; z-index:-1; pointer-events:none;
  background:radial-gradient(36% 36% at 70% 40%, rgba(var(--accent-rgb),.38), transparent 70%);
  filter:blur(40px); animation:drift 18s ease-in-out infinite alternate;
}
.soon .wrap{ width:100%; }
.soon .eyebrow{ justify-content:center; }
.soon h1{ margin-block-start:10px; text-align:center; font-size:clamp(30px,5vw,52px); }
.soon .lead{ margin-inline:auto; margin-block-start:16px; max-width:50ch; text-align:center; }
.soon .btn-row{ justify-content:center; margin-block-start:32px; }
