/* ============================================================
   شركة رواف للمقاولات — نظام التصميم
   مبنيّ على نظام darredc.com: أساس فاتح · كبسولة زجاجية عائمة · eyebrow بخطين ·
   عناوين سيريف ضخمة · بطاقات بيضاء · أزرار كبسولة · زخرفة ماسية.
   الهوية: فحمي #141414 + أصفر #F9EE32 — الأصفر لمسة قوية لا خلفية عامة.
   قاعدة تباين ثابتة: لا نص أبيض فوق الأصفر — الفحمي دائماً فوق الأصفر.
   قاعدة نصّية: لا letter-spacing موجب على العربي · لا خط مائل.
   ============================================================ */

:root {
  /* ---------- الأسطح الفاتحة ---------- */
  --white:   #FFFFFF;
  --base:    #F3F3F3;   /* أساس الصفحة — مطابق لصفحة المقاولات في المرجع الحيّ */
  --base-2:  #EAEAEA;
  --base-3:  #E1E1E1;

  /* ---------- الفحمي (هوية رواف) ---------- */
  --ink:      #141414;
  --ink-2:    #3B3B39;
  --ink-soft: #626260;   /* أفتح درجة مسموحة للنص الثانوي (AA على الأساس الفاتح) */
  --ink-90:   rgba(20, 20, 20, 0.90);
  --ink-70:   rgba(20, 20, 20, 0.70);
  --ink-55:   rgba(20, 20, 20, 0.55);
  --line:     rgba(20, 20, 20, 0.11);
  --line-2:   rgba(20, 20, 20, 0.06);

  /* ---------- الأصفر (اللمسة) ---------- */
  --accent:      #F9EE32;
  --accent-2:    #FFF9A8;
  --accent-soft: rgba(249, 238, 50, 0.26);
  --accent-line: rgba(20, 20, 20, 0.18);

  /* ---------- الظلال ---------- */
  --shadow-xs: 0 1px 3px rgba(20, 20, 20, 0.05);
  --shadow-sm: 0 6px 24px -12px rgba(20, 20, 20, 0.20);
  --shadow:    0 24px 60px -26px rgba(20, 20, 20, 0.28);
  --shadow-lg: 0 44px 90px -36px rgba(20, 20, 20, 0.36);

  /* ---------- المقاسات ---------- */
  --container: 1260px;
  --narrow:    820px;
  --gutter:    clamp(20px, 5vw, 60px);
  --radius:    20px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --header-h:  110px;

  /* ---------- الخطوط ---------- */
  --font-serif: "Thmanyah Serif", "Times New Roman", serif;
  --font-sans:  "Thmanyah Sans", system-ui, "Segoe UI", Tahoma, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   إعادة الضبط والأساسيات
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  background: var(--base);
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

/* ممنوع الخط المائل نهائياً (قرار العميل) */
i, em, cite, address, dfn, var { font-style: normal; }

::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.16;
  color: var(--ink);
}
h1, h2 { letter-spacing: -0.02em; }   /* سالب فقط وعلى العناوين الكبيرة */

.ic { width: 22px; height: 22px; flex-shrink: 0; }
.social-ic { width: 19px; height: 19px; flex-shrink: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; inset-block-start: -100px; inset-inline-start: 50%;
  transform: translateX(50%); z-index: 300;
  background: var(--ink); color: var(--accent);
  padding: 13px 26px; border-radius: 0 0 14px 14px; font-weight: 700;
  transition: inset-block-start .3s var(--ease);
}
.skip-link:focus { inset-block-start: 0; }

/* شريط تقدّم التمرير */
.scroll-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px;
  z-index: 120; pointer-events: none; background: transparent;
}
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ============================================================
   الحاويات والأقسام
   ============================================================ */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--narrow); }

.section, .band { position: relative; padding-block: clamp(66px, 8.5vw, 128px); }
.section--white,  .band--light  { background: var(--white); }
.section--base,   .band--base   { background: var(--base); }
.section--soft,   .band--dark   { background: linear-gradient(180deg, var(--base), var(--base-2)); }
.section--muted,  .band--darker { background: var(--base-2); }
.section--yellow, .band--yellow { background: var(--accent); color: var(--ink); }
.section--ink,    .band--ink    { background: var(--ink); color: rgba(255, 255, 255, 0.86); }
.band--tight { padding-block: clamp(44px, 5.5vw, 78px); }
.band--flush { padding-block: 0; }
.band--grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--line) 1.1px, transparent 1.1px);
  background-size: 28px 28px; opacity: .55;
}
.band > .container, .section > .container { position: relative; z-index: 1; }

.section--ink h1, .section--ink h2, .section--ink h3,
.band--ink h1, .band--ink h2, .band--ink h3 { color: #fff; }
.section--ink p, .band--ink p { color: rgba(255, 255, 255, 0.78); }
.section--ink .eyebrow, .band--ink .eyebrow { color: var(--accent); }
.section--ink .eyebrow::before, .section--ink .eyebrow::after,
.band--ink .eyebrow::before, .band--ink .eyebrow::after { background: var(--accent); }

.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); line-height: 1.95; }
.stack > * + * { margin-top: 18px; }

/* زخرفة نقطية خفيفة */
.dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--line) 1.1px, transparent 1.1px);
  background-size: 28px 28px; opacity: .5;
}

/* ============================================================
   رأس القسم — eyebrow بخطين + عنوان سيريف ضخم
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-sans); font-weight: 700; font-size: 14.5px;
  color: var(--ink); margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: clamp(24px, 4vw, 40px); height: 2px;
  background: var(--ink); border-radius: 2px;
}
.eyebrow--center::after,
.section-head--center .eyebrow::after,
.page-hero--center .eyebrow::after,
.hero .eyebrow::after {
  content: ""; width: clamp(24px, 4vw, 40px); height: 2px;
  background: var(--ink); border-radius: 2px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(31px, 4.8vw, 58px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 20px;
}
.section-title .accent {
  color: var(--ink);
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  padding-inline: 4px;
}
.section-lead {
  max-width: 66ch; color: var(--ink-2);
  font-size: clamp(16px, 1.9vw, 18.5px); line-height: 1.95;
}
.section-head { margin-bottom: clamp(38px, 5vw, 68px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

/* توافق مع الوسم القديم — يُوحَّد شكلياً مع eyebrow */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--ink); border-radius: 2px; }
.section-head--center .kicker, .hero .kicker, .page-hero--center .kicker { justify-content: center; }
.section-head--center .kicker::after, .hero .kicker::after, .page-hero--center .kicker::after {
  content: ""; width: 34px; height: 2px; background: var(--ink); border-radius: 2px;
}
.hero .kicker { color: var(--ink); }
.hero .kicker::before, .hero .kicker::after { background: var(--ink); }
.sec-num { display: none; }   /* الأرقام الضخمة من التصميم المرفوض */

/* ============================================================
   الزخرفة الماسية ◇
   ============================================================ */
.ornament-divider {
  display: flex; align-items: center; justify-content: center;
  margin-block: 26px; color: var(--ink);
}
.ornament-divider::before, .ornament-divider::after {
  content: ""; height: 1px; width: clamp(50px, 10vw, 100px);
  background: linear-gradient(90deg, transparent, var(--accent-line));
}
.ornament-divider::after { background: linear-gradient(90deg, var(--accent-line), transparent); }
.ornament-divider__icon { display: flex; margin-inline: 16px; }
.ornament-divider__icon svg { width: 15px; height: 15px; }
.hero .ornament-divider::before, .hero .ornament-divider::after { background: rgba(20, 20, 20, 0.3); }

/* ============================================================
   الأزرار — كبسولة بتعبئة منزلقة
   ============================================================ */
.btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--font-sans); font-weight: 700; font-size: 15.5px;
  padding: 16px 34px; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; overflow: hidden; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease),
              transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn > span, .btn > svg { position: relative; z-index: 1; }
.btn .ic { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease);
}
.btn:hover::after { transform: scaleX(1); }
.btn:hover .ic { transform: translateX(-5px); }

.btn-primary, .btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary::after, .btn-dark::after { background: var(--accent); }
.btn-primary:hover, .btn-dark:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-yellow { background: var(--accent); color: var(--ink); border-color: var(--ink); }
.btn-yellow::after { background: var(--ink); }
.btn-yellow:hover { color: var(--accent); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline::after { background: var(--ink); }
.btn-outline:hover { color: #fff; transform: translateY(-2px); }
/* فوق الأصفر: التعبئة فحمية والنص يعود أصفر (تباين ممتاز) */
.hero .btn-outline:hover,
.band--yellow .btn-outline:hover,
.section--yellow .btn-outline:hover { color: var(--accent); }

/* كبسولة بحدّ رفيع — نفس لغة أزرار المرجع (لا كبسولة رمادية مصمتة) */
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(20, 20, 20, 0.28); }
.btn-ghost::after { background: var(--ink); }
.btn-ghost:hover { color: #fff; border-color: var(--ink); transform: translateY(-2px); }

.btn-light { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light::after { background: var(--accent); }
.btn-light:hover { color: var(--ink); transform: translateY(-2px); }

.btn-lg { padding: 19px 42px; font-size: 16.5px; }
.btn-sm { padding: 12px 24px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.link-arrow .ic { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.link-arrow:hover .ic { transform: translateX(-6px); }

/* ============================================================
   الترويسة — كبسولة زجاجية عائمة بلمسة صفراء
   ============================================================ */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  padding: 18px var(--gutter); transition: padding .45s var(--ease);
}
.site-header.scrolled { padding-block: 10px; }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: var(--container); margin-inline: auto;
  padding-block: 9px; padding-inline-start: 22px; padding-inline-end: 10px;
  /* شفافية عالية بما يكفي ليبقى الخط الأصفر تحت الرابط النشط مقروءاً فوق الهيرو الأصفر */
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: 0 14px 44px -30px rgba(20, 20, 20, 0.55), inset 0 0 0 1px rgba(249, 238, 50, 0.34);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.site-header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 50px -28px rgba(20, 20, 20, 0.55), inset 0 0 0 1px rgba(249, 238, 50, 0.5);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 62px; width: auto; transition: height .4s var(--ease); }
.site-header.scrolled .brand img { height: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.35; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 16px; color: var(--ink); }
.brand__tag { font-size: 12.5px; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav a {
  position: relative; padding: 10px 16px; border-radius: 100px;
  font-weight: 500; font-size: 15.5px; color: var(--ink-2);
}
.nav a::after {
  content: ""; position: absolute; inset-block-end: 4px; inset-inline-start: 50%;
  transform: translateX(50%); width: 0; height: 3px; border-radius: 3px;
  background: var(--accent); transition: width .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { width: 22px; }
.nav a.active { color: var(--ink); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-primary { box-shadow: 0 8px 20px -14px rgba(20, 20, 20, 0.9); }
.header-actions .btn-primary:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px;
  align-items: center; justify-content: center;
  color: var(--ink); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6);
}
.nav-toggle .ic { width: 23px; height: 23px; }

/* ---------- قائمة الجوال ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.mobile-nav__overlay {
  position: absolute; inset: 0; background: rgba(20, 20, 20, 0.42);
  opacity: 0; transition: opacity .4s var(--ease); backdrop-filter: blur(2px);
}
.mobile-nav__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0;
  width: min(380px, 88vw); background: var(--white);
  padding: 28px 26px; box-shadow: var(--shadow-lg);
  transform: translateX(-100%); transition: transform .5s var(--ease);
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  border-inline-start: 6px solid var(--accent);
}
.mobile-nav.open { visibility: visible; pointer-events: auto; }
.mobile-nav.open .mobile-nav__overlay { opacity: 1; }
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.mobile-nav__head img { height: 48px; width: auto; }
.mobile-nav__head .nav-toggle { display: inline-flex; }
.mobile-nav a.m-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 14px; border-radius: 14px; font-size: 17px; font-weight: 500;
  border-bottom: 1px solid var(--line-2); transition: background .3s var(--ease);
}
.mobile-nav a.m-link .ic { width: 18px; height: 18px; color: var(--ink-soft); }
.mobile-nav a.m-link:hover, .mobile-nav a.m-link.active { background: var(--accent-soft); font-weight: 700; }

/* ============================================================
   شريط التواصل العمودي الثابت (يسار الشاشة في RTL)
   ============================================================ */
.social-rail {
  position: fixed; inset-block-start: 50%; inset-inline-end: 0;
  transform: translateY(-50%); z-index: 80;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-inline-end: 0;
  border-radius: 16px 0 0 16px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.social-rail a {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: background .3s var(--ease), color .3s var(--ease);
}
.social-rail a:hover { background: var(--accent); color: var(--ink); }

/* ============================================================
   الهيرو — أصفر رواف + خطوط قطرية خفيفة + شريط فحمي سميك
   ============================================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 92svh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--ink);
  padding-block: clamp(146px, 17vw, 210px) clamp(70px, 8vw, 116px);
  background: var(--accent);
  border-bottom: 14px solid var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(118deg, transparent 0 52px, rgba(20, 20, 20, 0.045) 52px 104px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.4), transparent 62%);
}

/* الإطار الرفيع بزوايا مزخرفة (من المرجع) */
.hero__frame {
  position: absolute; inset: clamp(16px, 3vw, 46px); z-index: 1;
  pointer-events: none; border: 1px solid rgba(20, 20, 20, 0.22);
}
.hero__frame span { position: absolute; width: 40px; height: 40px; border: 2px solid var(--ink); }
.hero__frame .tl { inset-block-start: -1px; inset-inline-start: -1px; border-inline-end: 0; border-block-end: 0; }
.hero__frame .tr { inset-block-start: -1px; inset-inline-end: -1px; border-inline-start: 0; border-block-end: 0; }
.hero__frame .bl { inset-block-end: -1px; inset-inline-start: -1px; border-inline-end: 0; border-block-start: 0; }
.hero__frame .br { inset-block-end: -1px; inset-inline-end: -1px; border-inline-start: 0; border-block-start: 0; }

.hero__inner { position: relative; z-index: 2; max-width: 940px; margin-inline: auto; }

.hero__logo { display: flex; justify-content: center; margin-bottom: clamp(20px, 3vw, 32px); }
.hero__logo img {
  width: auto; height: auto;
  max-height: clamp(96px, 12vw, 146px); max-width: min(300px, 74vw);
  object-fit: contain;
}

.hero .eyebrow { justify-content: center; color: var(--ink); }
.hero .eyebrow::before, .hero .eyebrow::after { background: var(--ink); }

.hero__title, .hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6.8vw, 92px);
  font-weight: 700; line-height: 1.14; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 20px;
}
.hero__title .line, .hero h1 .line { display: block; }

.hero__sub, .hero__tagline {
  font-size: clamp(17px, 2.1vw, 22px); line-height: 1.85; font-weight: 500;
  color: var(--ink-90); max-width: 62ch; margin-inline: auto;
}
.hero__tagline { font-family: var(--font-serif); font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(26px, 3.6vw, 40px); }

.hero__stats {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(24px, 5vw, 66px); margin-top: clamp(40px, 5.5vw, 64px);
}
.hero__stat { position: relative; text-align: center; }
.hero__stat::after {
  content: ""; position: absolute; inset-block: 12%;
  inset-inline-start: calc(-1 * clamp(12px, 2.5vw, 33px));
  width: 1px; background: rgba(20, 20, 20, 0.28);
}
.hero__stat:first-child::after { display: none; }
.hero__stat b {
  display: block; font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1; color: var(--ink);
  direction: ltr; unicode-bidi: isolate;
}
.hero__stat span { font-size: 14px; color: var(--ink-70); }

.hero__scroll {
  position: absolute; inset-block-end: 30px; inset-inline-start: 50%;
  transform: translateX(50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-70);
}
.hero__scroll .l { position: relative; width: 2px; height: 44px; background: rgba(20, 20, 20, 0.2); overflow: hidden; }
.hero__scroll .l::after {
  content: ""; position: absolute; inset-inline: 0; height: 14px;
  background: var(--ink); animation: scrollDot 2.2s var(--ease) infinite;
}
@keyframes scrollDot { 0% { top: -14px; } 100% { top: 44px; } }

/* وسائط الهيرو (صورة/فيديو) — تبقى خافتة تحت اللون الأصفر */
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; opacity: .12; }
.hero__scrim { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(249, 238, 50, 0.55), rgba(249, 238, 50, 0.85)); }
/* الشرائط التحذيرية القطرية من التصميم المرفوض — مُلغاة */
.hero__hazard, .hazard { display: none; }

/* حركة دخول الهيرو (تُفعَّل بإضافة .in من app.js) */
.js .hero__logo, .js .hero .eyebrow, .js .hero__title, .js .hero h1,
.js .hero__sub, .js .hero__tagline, .js .hero .ornament-divider,
.js .hero__cta, .js .hero__stats {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .hero.in .hero__logo,
.js .hero.in .eyebrow,
.js .hero.in .hero__title,
.js .hero.in h1,
.js .hero.in .hero__sub,
.js .hero.in .hero__tagline,
.js .hero.in .ornament-divider,
.js .hero.in .hero__cta,
.js .hero.in .hero__stats { opacity: 1; transform: none; }
.js .hero.in .eyebrow          { transition-delay: .08s; }
.js .hero.in .hero__title,
.js .hero.in h1                { transition-delay: .18s; }
.js .hero.in .hero__sub,
.js .hero.in .hero__tagline    { transition-delay: .28s; }
.js .hero.in .ornament-divider { transition-delay: .36s; }
.js .hero.in .hero__cta        { transition-delay: .44s; }
.js .hero.in .hero__stats      { transition-delay: .52s; }

/* ============================================================
   واجهة الصفحات الداخلية
   ============================================================ */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(148px, 16vw, 200px) clamp(48px, 6vw, 82px);
  background: linear-gradient(170deg, var(--white), var(--base) 62%, var(--base-2));
  border-bottom: 4px solid var(--ink);   /* نفس فاصل الهيرو الفحمي في المرجع — لا شريط أصفر عريض */
}
.page-hero .dots { mask-image: radial-gradient(circle at 70% 30%, #000, transparent 68%); opacity: .45; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero__inner { max-width: 860px; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__inner { max-width: 780px; margin-inline: auto; }
.page-hero--center .eyebrow { justify-content: center; }
.page-hero--center .breadcrumb ol { justify-content: center; }
.page-hero--center .lead, .page-hero--center .page-hero__lead { margin-inline: auto; }

.page-title, .page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.6vw, 70px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 18px;
}
.page-title .accent, .page-hero__title .accent {
  background: linear-gradient(transparent 62%, var(--accent) 62%); padding-inline: 4px;
}
.page-hero__lead { font-size: clamp(16.5px, 2vw, 20px); color: var(--ink-2); line-height: 1.9; max-width: 68ch; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .14; }
.page-hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(243, 243, 243, 0.92)); }

/* ---------- فتات الخبز ---------- */
.breadcrumb { margin-bottom: 22px; font-size: 14px; color: var(--ink-soft); }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-55); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ============================================================
   الشبكات
   ============================================================ */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split   { grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px, 4.5vw, 60px); }
.grid--sidebar { grid-template-columns: 1fr 340px; align-items: start; gap: clamp(26px, 3.5vw, 48px); }

/* ============================================================
   البطاقات — بيضاء، حواف مستديرة، ظل خفيف، أيقونة في مربّع أصفر
   ============================================================ */
.card, .tile, .service-card, .vm-card, .cert-card, .equip-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
  padding: clamp(26px, 2.8vw, 38px); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card:hover, .tile:hover, .service-card:hover,
.vm-card:hover, .cert-card:hover, .equip-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: var(--accent-line);
}
.card__icon, .tile__icon, .service-card__icon, .vm-card__icon, .cert-card__icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: transform .45s var(--ease);
}
.card__icon .ic, .tile__icon .ic, .service-card__icon .ic,
.vm-card__icon .ic, .cert-card__icon .ic { width: 27px; height: 27px; }
.card:hover .card__icon, .service-card:hover .service-card__icon,
.tile:hover .tile__icon, .vm-card:hover .vm-card__icon { transform: rotate(-6deg); }

.card__title, .card h3, .tile h3, .service-card h3,
.vm-card h3, .cert-card h3, .equip-card h3 {
  font-family: var(--font-serif); font-size: clamp(20px, 2.1vw, 25px);
  font-weight: 700; line-height: 1.25; margin-bottom: 12px; color: var(--ink);
}
.card p, .tile p, .service-card p, .vm-card p, .cert-card p, .equip-card p {
  color: var(--ink-soft); font-size: 15.5px; line-height: 1.9;
}
.card__body { flex: 1; }
.card .link-arrow, .service-card .link-arrow { margin-top: 20px; }

.tile--accent { background: var(--accent); border-color: var(--ink); }
.tile--accent p { color: var(--ink-90); }
.tile--accent .tile__icon { background: var(--ink); color: var(--accent); }

/* شريط علوي أصفر يظهر عند المرور */
.card::after, .service-card::after, .vm-card::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.card:hover::after, .service-card:hover::after, .vm-card:hover::after { transform: scaleX(1); }

/* ---------- بطاقة مشروع ---------- */
.work-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s var(--ease);
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.work-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--base-2); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--base-3); }
.work-card__ph .ic { width: 54px; height: 54px; }
.work-card__badge { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; z-index: 2; }
.work-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.work-card__meta, .meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.work-card__meta span, .meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.work-card__meta .ic, .meta-row .ic { width: 15px; height: 15px; color: var(--ink); }
.work-card h3 { font-family: var(--font-serif); font-size: clamp(20px, 2vw, 24px); margin-bottom: 10px; }
.work-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.85; flex: 1; }
.work-card__foot { margin-top: 18px; }

/* ---------- بطاقة عميل ---------- */
.client-tile {
  display: flex; align-items: center; justify-content: center;
  min-height: 116px; padding: 22px;
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.client-tile:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.client-tile img { max-height: 62px; max-width: 100%; width: auto; object-fit: contain; }
.client-tile span { font-weight: 700; color: var(--ink-2); text-align: center; }

/* ---------- معدّات وشهادات ---------- */
.equip-card__thumb {
  aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--base-2); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; color: var(--base-3);
}
.equip-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.equip-qty {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 14px; padding: 6px 14px; border-radius: 100px;
  background: var(--accent); color: var(--ink); font-size: 13.5px; font-weight: 700;
}
.cert-card__logo { max-height: 54px; width: auto; margin-bottom: 16px; }

/* ---------- شارات ورقائق ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 12.5px; font-weight: 700;
  background: var(--base-2); color: var(--ink);
}
.badge--open, .badge--done, .badge--completed { background: var(--accent); color: var(--ink); }
.badge--closed { background: var(--base-3); color: var(--ink-2); }
.badge--ongoing, .badge--current { background: var(--ink); color: var(--accent); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 100px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
}
.chip .ic { width: 16px; height: 16px; color: var(--ink); }

/* ---------- قوائم ---------- */
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 11px; height: 11px; margin-top: 11px;
  background: var(--accent); border: 2px solid var(--ink); border-radius: 3px;
}
.scope-list { display: grid; gap: 10px; }
.scope-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; background: var(--white);
  border: 1px solid var(--line-2); border-radius: 100px; font-weight: 500;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.scope-list li:hover { border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- النص الطويل ---------- */
.prose { color: var(--ink-2); font-size: 17px; line-height: 2; }
.prose > * + * { margin-top: 20px; }
.prose h2, .prose h3 { font-family: var(--font-serif); color: var(--ink); margin-top: 34px; }
.prose h2 { font-size: clamp(24px, 3vw, 34px); }
.prose h3 { font-size: clamp(20px, 2.4vw, 26px); }
.prose ul { display: grid; gap: 11px; }
.prose ul li { display: flex; gap: 12px; }
.prose ul li::before {
  content: ""; flex-shrink: 0; width: 9px; height: 9px; margin-top: 13px;
  background: var(--accent); border: 2px solid var(--ink); border-radius: 2px;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }

/* ============================================================
   شريط المؤشرات
   ============================================================ */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 40px); }
.stat-tile { position: relative; text-align: center; }
.stat-tile::after {
  content: ""; position: absolute; inset-block: 18%;
  inset-inline-start: calc(-1 * clamp(9px, 1.5vw, 20px));
  width: 1px; background: var(--line);
}
.stat-tile:first-child::after { display: none; }
.stat-tile__value {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 3px;
  direction: ltr; unicode-bidi: isolate;
}
.stat-tile__suffix { font-size: .48em; color: var(--ink-soft); }
.stat-tile__label { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }

/* ============================================================
   شريط الدعوة
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-band.band--yellow { border-block: 5px solid var(--ink); }
.cta-band__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px, 4vw, 50px); flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(27px, 3.8vw, 44px); color: var(--ink); margin-bottom: 12px; }
.cta-band p { color: var(--ink-90); max-width: 60ch; font-size: 17px; }

/* ============================================================
   النماذج
   ============================================================ */
.form-panel {
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(26px, 4vw, 50px);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field > label, .field__label { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.field__req { color: #B3261E; margin-inline-start: 4px; }

.field input, .field textarea, .field select,
.input, .textarea, .select {
  width: 100%; padding: 15px 18px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--base);
  color: var(--ink); font-size: 16px; line-height: 1.7;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea, .textarea { resize: vertical; min-height: 130px; }
.field select, .select {
  appearance: none; cursor: pointer; padding-inline-end: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: left 22px top 55%, left 16px top 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field textarea:focus, .field select:focus,
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--ink); background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field__hint { font-size: 13.5px; color: var(--ink-soft); }
.field__err { font-size: 13.5px; color: #B3261E; font-weight: 600; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #B3261E; }

/* حقل الملف */
.field-file__box {
  position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border: 1.5px dashed var(--line);
  border-radius: 14px; background: var(--base);
}
.field-file__box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-file__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.field-file__name { font-size: 14px; color: var(--ink-soft); }

.hp, .honeypot {
  position: absolute !important; inset-inline-start: -9999px !important;
  width: 1px; height: 1px; overflow: hidden; opacity: 0;
}

/* ---------- رسائل flash ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 16px 20px; border-radius: 16px; margin-bottom: 24px;
  font-weight: 500; line-height: 1.8;
  border: 1px solid transparent; background: var(--base-2);
}
.alert .ic { width: 21px; height: 21px; margin-top: 4px; }
.alert ul { margin-top: 8px; display: grid; gap: 6px; }
.alert ul li { display: flex; gap: 9px; font-weight: 400; }
.alert ul li::before { content: "\2022"; }
.alert--ok   { background: rgba(38, 122, 60, 0.09); border-color: rgba(38, 122, 60, 0.28); color: #1E6B33; }
.alert--err  { background: rgba(179, 38, 30, 0.08); border-color: rgba(179, 38, 30, 0.26); color: #98211B; }
.alert--info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }

/* ---------- شريط الفلاتر ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: clamp(26px, 3.4vw, 40px); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.filter-label { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.filter-chip:hover { border-color: var(--accent-line); }
.filter-chip.active, .filter-chip[aria-current="true"] {
  background: var(--accent); border-color: var(--ink); color: var(--ink); font-weight: 700;
}

/* ---------- الجداول ---------- */
.spec-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--white); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.spec-table th, .spec-table td {
  padding: 15px 20px; text-align: start;
  border-bottom: 1px solid var(--line-2); font-size: 15px;
}
.spec-table thead th { background: var(--base-2); font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: var(--ink); }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover { background: var(--accent-soft); }

/* ---------- الأكورديون ---------- */
.accordion { display: grid; gap: 12px; }
.accordion__item { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 22px; text-align: start; font-weight: 700; font-size: 16.5px; color: var(--ink);
}
.accordion__btn::after {
  content: ""; flex-shrink: 0; width: 11px; height: 11px;
  border-inline-end: 2.5px solid var(--ink); border-block-end: 2.5px solid var(--ink);
  transform: rotate(45deg); transition: transform .35s var(--ease);
}
.accordion__btn[aria-expanded="true"] { background: var(--accent-soft); }
.accordion__btn[aria-expanded="true"]::after { transform: rotate(-135deg); }
.accordion__panel { display: none; padding: 4px 22px 22px; color: var(--ink-2); line-height: 1.95; }
.accordion__btn[aria-expanded="true"] + .accordion__panel { display: block; }

/* ---------- الحالة الفارغة ---------- */
.empty-state {
  text-align: center; padding: clamp(38px, 5.5vw, 70px) clamp(22px, 4vw, 44px);
  background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius-lg);
}
.empty-state__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 20px;
  background: var(--accent-soft); color: var(--ink); margin-bottom: 20px;
}
.empty-state__icon .ic { width: 30px; height: 30px; }
.empty-state h3 { font-family: var(--font-serif); font-size: clamp(21px, 2.4vw, 27px); margin-bottom: 10px; }
.empty-state p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 22px; }

/* ---------- ترقيم الصفحات ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(34px, 4vw, 54px); }
.pagination a, .pagination span {
  min-width: 46px; height: 46px; padding-inline: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 100px; border: 1px solid var(--line);
  background: var(--white); font-weight: 700; font-size: 15px; color: var(--ink-2);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current="page"] { background: var(--accent); border-color: var(--ink); color: var(--ink); }
.pagination .is-disabled { opacity: .42; }

/* ============================================================
   المعرض · الفيديو · اللايت بوكس
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.5vw, 18px); }
.gallery__item {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--base-2); cursor: pointer; padding: 0;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(249, 238, 50, 0.24); opacity: 0; transition: opacity .35s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }

.video-block {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: var(--base-2);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.video-block img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-block video, .video-block iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; object-fit: cover; background: #000;
}
.video-block__trigger {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.18), rgba(20, 20, 20, 0.52));
  color: #fff; font-weight: 700;
}
.video-block__play {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease);
}
.video-block__play .ic { width: 28px; height: 28px; margin-inline-start: 3px; }
.video-block__trigger:hover .video-block__play { transform: scale(1.08); }
.video-block__label { font-size: 15.5px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 20, 20, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 30px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lightbox__close {
  position: absolute; inset-block-start: 24px; inset-inline-end: 24px;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lightbox__close:hover { background: var(--accent); color: var(--ink); }

/* شريط شعارات أفقي */
.marquee { overflow: hidden; }
.marquee__track { display: flex; align-items: center; gap: clamp(28px, 5vw, 70px); }
.marquee__item { flex-shrink: 0; opacity: .75; transition: opacity .3s var(--ease); }
.marquee__item:hover { opacity: 1; }

/* ============================================================
   التذييل — فاتح مع شريط فحمي علوي
   ============================================================ */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--white), var(--base-2));
  border-top: 6px solid var(--ink);
  padding-block: clamp(52px, 7vw, 82px) 0;
  color: var(--ink-2);
}
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
  gap: clamp(28px, 3.4vw, 46px); padding-bottom: 46px;
}
.footer-brand img { height: 74px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 15px; line-height: 1.9; color: var(--ink-soft); max-width: 34ch; }
.footer-col h4 {
  position: relative; padding-bottom: 12px; margin-bottom: 18px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--ink);
}
.footer-col h4::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0;
  width: 32px; height: 3px; background: var(--accent); border-radius: 3px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col ul a { font-size: 15px; color: var(--ink-2); transition: color .25s var(--ease), padding .25s var(--ease); }
.footer-col ul a:hover { color: var(--ink); font-weight: 700; padding-inline-start: 6px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.75; }
.footer-contact .ic { width: 18px; height: 18px; color: var(--ink); margin-top: 5px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.footer-social a:hover { background: var(--accent); color: var(--ink); border-color: var(--ink); transform: translateY(-4px); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft);
}

/* ============================================================
   صفحات الأخطاء
   ============================================================ */
.error-page {
  min-height: 72vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding-block: clamp(150px, 18vw, 210px) clamp(70px, 9vw, 110px);
  background: linear-gradient(170deg, var(--white), var(--base-2));
}
.error-page__code {
  font-family: var(--font-serif); font-weight: 700; line-height: 1;
  font-size: clamp(92px, 18vw, 200px); color: var(--ink);
  background: linear-gradient(transparent 66%, var(--accent) 66%);
  padding-inline: 10px; margin-bottom: 18px;
}
.error-page h1 { font-size: clamp(24px, 3.6vw, 38px); margin-bottom: 14px; }
.error-page p { color: var(--ink-soft); margin-bottom: 28px; max-width: 48ch; }

/* ============================================================
   حركات الكشف
   ============================================================ */
.js [data-reveal], .js [data-reveal-mask] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].in, .js [data-reveal-mask].in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: .08s; }
.js [data-reveal][data-delay="2"] { transition-delay: .16s; }
.js [data-reveal][data-delay="3"] { transition-delay: .24s; }
.js [data-reveal][data-delay="4"] { transition-delay: .32s; }
.js [data-reveal][data-delay="5"] { transition-delay: .40s; }

.js [data-stagger] > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-stagger].in > * { opacity: 1; transform: none; }
.js [data-stagger].in > *:nth-child(1) { transition-delay: .04s; }
.js [data-stagger].in > *:nth-child(2) { transition-delay: .12s; }
.js [data-stagger].in > *:nth-child(3) { transition-delay: .20s; }
.js [data-stagger].in > *:nth-child(4) { transition-delay: .28s; }
.js [data-stagger].in > *:nth-child(5) { transition-delay: .36s; }
.js [data-stagger].in > *:nth-child(6) { transition-delay: .44s; }

/* شبكة أمان: لو تعطّل المراقب تظهر العناصر فوراً بلا حركة */
.reveal-instant [data-reveal],
.reveal-instant [data-reveal-mask],
.reveal-instant [data-stagger] > *,
.reveal-instant .hero__logo, .reveal-instant .hero .eyebrow,
.reveal-instant .hero__title, .reveal-instant .hero h1,
.reveal-instant .hero__sub, .reveal-instant .hero__tagline,
.reveal-instant .hero .ornament-divider,
.reveal-instant .hero__cta, .reveal-instant .hero__stats {
  opacity: 1 !important; transform: none !important; transition: none !important;
}

/* ============================================================
   استجابة الشاشات
   ============================================================ */
@media (max-width: 1100px) {
  .grid--sidebar { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat-tile:nth-child(odd)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .social-rail { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .brand__text { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 92px; }
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 48px; }
  .site-header.scrolled .brand img { height: 42px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-block: clamp(120px, 26vw, 168px) 56px; border-bottom-width: 10px; }
  .hero__scroll { display: none; }
  .hero__stats {
    display: grid; grid-template-columns: repeat(2, auto); justify-content: center;
    column-gap: clamp(34px, 12vw, 60px); row-gap: 26px;
  }
  .hero__stat::after { display: none; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .section-head--split { align-items: flex-start; }
  /* أهداف لمس مريحة على الجوال (≥ 44px) */
  .footer-col ul { gap: 2px; }
  .footer-col ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-contact li { min-height: 44px; align-items: center; }
  .footer-contact li a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; gap: 22px; }
  .stat-tile::after { display: none; }
  .btn-row > .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js [data-reveal-mask], .js [data-stagger] > *,
  .js .hero__logo, .js .hero .eyebrow, .js .hero__title, .js .hero h1,
  .js .hero__sub, .js .hero__tagline, .js .hero .ornament-divider,
  .js .hero__cta, .js .hero__stats {
    opacity: 1 !important; transform: none !important;
  }
}

@media print {
  .site-header, .mobile-nav, .social-rail, .scroll-progress,
  .lightbox, .hero__scroll { display: none !important; }
  body { background: #fff; }
}

/* ============================================================
   شريط عرض المشاريع المتحرك (vstrip)
   مقاطع قصيرة تنساب أفقياً بلا توقف · تُدار من «وسائط الموقع» في اللوحة.
   يعتمد رموز الهوية القائمة: --accent · --ink · --line · --radius · --ease
   ============================================================ */
.vstrip {
  position: relative;
  padding-block: clamp(46px, 5.5vw, 84px);
  overflow: hidden;
}
.vstrip__head { text-align: center; margin-bottom: clamp(26px, 3vw, 44px); }
.vstrip__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.2;
  color: var(--ink);
}

/* نافذة الشريط: تلاشٍ ناعم على الطرفين ليبدو الانسياب بلا حدّ */
.vstrip__viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.vstrip__track {
  display: flex;
  gap: clamp(12px, 1.4vw, 22px);
  width: max-content;
  will-change: transform;
  animation: vstrip-run var(--vstrip-dur, 46s) linear infinite;
}
/* الاتجاه: يسير المسار نحو اليسار البصري في الحالتين (النسخة المكرّرة تسدّ الفراغ) */
@keyframes vstrip-run {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.vstrip__viewport:hover .vstrip__track,
.vstrip__viewport:focus-within .vstrip__track { animation-play-state: paused; }

.vstrip__item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(210px, 23vw, 330px);
  aspect-ratio: 16 / 10;
  border-radius: var(--radius, 18px);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.vstrip__media {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease, ease);
}
.vstrip__item:hover .vstrip__media { transform: scale(1.05); }
.vstrip__media--blank {
  display: grid; place-items: center;
  color: var(--accent);
  opacity: .5;
}
.vstrip__media--blank svg { width: 34px; height: 34px; }

/* زر التشغيل يغطي البطاقة كاملةً (هدف لمس كبير) */
.vstrip__open {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .42));
  border: 0; padding: 0; cursor: pointer;
  transition: background .35s var(--ease, ease);
}
.vstrip__item:hover .vstrip__open { background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .55)); }
.vstrip__play {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5);
  transition: transform .35s var(--ease, ease);
}
.vstrip__item:hover .vstrip__play { transform: scale(1.08); }
.vstrip__play svg { width: 22px; height: 22px; margin-inline-start: 2px; }
.vstrip__open:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }

.vstrip__label {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  padding: 26px 16px 12px;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
  pointer-events: none;
}

/* ---------- عارض الفيديو (يُبنى من app.js عند النقر) ---------- */
.vstrip-modal {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(10, 10, 12, .90);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease, ease), visibility .3s;
}
.vstrip-modal.open { opacity: 1; visibility: visible; }
.vstrip-modal__box {
  position: relative;
  width: min(1080px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius, 18px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.vstrip-modal__box > video,
.vstrip-modal__box > iframe { width: 100%; height: 100%; border: 0; display: block; }
.vstrip-modal__close {
  position: absolute; inset-block-start: -52px; inset-inline-end: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background .3s var(--ease, ease);
}
.vstrip-modal__close:hover { background: rgba(255, 255, 255, .24); }
.vstrip-modal__close svg { width: 20px; height: 20px; }

/* ---------- الاستجابة وتقليل الحركة ---------- */
@media (max-width: 640px) {
  .vstrip__item { width: clamp(180px, 62vw, 260px); }
  .vstrip__play { width: 46px; height: 46px; }
  .vstrip-modal__close { inset-block-start: auto; inset-block-end: -52px; }
}
@media (prefers-reduced-motion: reduce) {
  /* بلا انسياب: يصير الشريط قابلاً للتمرير يدوياً */
  .vstrip__track { animation: none; }
  .vstrip__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .vstrip__item { scroll-snap-align: center; }
  .vstrip__media, .vstrip__play, .vstrip__open { transition: none; }
  .vstrip__item:hover .vstrip__media { transform: none; }
}

/* ============================================================
   مجالات تنفيذ المشاريع — شبكة موجزة بأيقونة وعنوان
   ============================================================ */
.exec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.exec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: clamp(24px, 3vw, 38px) clamp(14px, 2vw, 22px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.exec-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-sm);
}
.exec-item__ic {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--ink);
}
.exec-item__ic svg { width: 26px; height: 26px; }
.exec-item__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink);
}
.exec-item__text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; }

@media (max-width: 560px) {
  .exec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exec-item { padding: 22px 12px; }
  .exec-item__ic { width: 48px; height: 48px; }
}
