/* =========================================================
   أثير البناء — نظام التصميم
   الألوان مستخرجة من الشعار الرسمي:
   كهرماني (النص)  #F5B30A  •  برونزي (الرمز)  #B8843C  •  شمبانيا (لمعة الرمز)  #F0CC84
   ========================================================= */
:root {
  /* ---- الألوان ---- */
  --c-primary: #f5b30a;          /* اللون الأساسي: أزرار ومؤشرات */
  --c-primary-hover: #ffc533;
  --c-on-primary: #16130a;
  --c-secondary: #b8843c;        /* الثانوي: زخارف وخطوط */
  --c-accent: #f0cc84;           /* لمسة على الخلفيات الداكنة */
  --c-accent-text: #8a5a12;      /* نص ذهبي على الخلفيات الفاتحة (تباين 5.4:1) */
  --c-bg: #f7f5f0;               /* خلفية الصفحة */
  --c-surface: #ffffff;          /* البطاقات */
  --c-surface-2: #efebe3;
  --c-text: #15171a;
  --c-text-2: #5b6069;
  --c-text-3: #6b7079;
  --c-border: rgba(21, 23, 26, 0.1);
  --c-border-strong: rgba(21, 23, 26, 0.18);
  --c-dark: #0e0f11;             /* الأقسام الداكنة */
  --c-dark-2: #16181b;
  --c-dark-3: #202328;
  --c-on-dark: #f4f1ea;
  --c-on-dark-2: rgba(244, 241, 234, 0.72);
  --c-border-dark: rgba(255, 255, 255, 0.1);
  --c-success: #1f7a4d;
  --c-wa: #25d366;

  /* ---- الأشكال ---- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(14, 15, 17, 0.06), 0 2px 8px rgba(14, 15, 17, 0.04);
  --sh-2: 0 12px 32px -12px rgba(14, 15, 17, 0.22);
  --sh-3: 0 30px 70px -28px rgba(14, 15, 17, 0.45);

  /* ---- المسافات ---- */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 140px);
  --section-sm: clamp(56px, 7vw, 96px);
  --gap: clamp(16px, 2vw, 24px);
  --measure: 62ch;

  /* ---- الخطوط ---- */
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --fs-hero: clamp(38px, 5.6vw, 80px);
  --fs-h1: clamp(34px, 4.4vw, 60px);
  --fs-h2: clamp(28px, 3.4vw, 48px);
  --fs-h3: clamp(19px, 1.5vw, 22px);
  --fs-lead: clamp(17px, 1.35vw, 20px);
  --fs-body: 17px;
  --fs-sm: 15px;
  --fs-xs: 13.5px;

  /* ---- الحركة ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.25s;
  --t: 0.45s;
  --t-slow: 0.9s;

  --header-h: 76px;
  --dir: 1; /* 1 = RTL ، -1 = LTR (لعكس الأسهم والحركة) */
}
[dir="ltr"] { --dir: -1; }

/* ---------- الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[dir="ltr"] body { line-height: 1.7; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.35; margin: 0 0 0.55em; text-wrap: balance; }
/* الخط العربي حروفه الصاعدة والنازلة أطول، فيحتاج مسافة أسطر أكبر من اللاتيني حتى لا تتلامس الأسطر */
[dir="rtl"] :is(h1, h2) { line-height: 1.5; }
[dir="ltr"] :is(h1, h2, h3, h4) { line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; inset-inline-start: 16px; background: var(--c-primary); color: var(--c-on-primary); padding: 12px 20px; border-radius: var(--r-xs); z-index: 1000; font-weight: 700; transition: top var(--t-fast); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-primary); color: var(--c-on-primary); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t) var(--ease); }
.btn:hover .i-arrow { transform: translateX(calc(-4px * var(--dir))); }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background: var(--c-primary-hover); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(245, 179, 10, 0.8); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-light:hover { background: #fff; color: var(--c-text); border-color: #fff; }
.btn-dark { background: var(--c-dark); color: var(--c-on-dark); }
.btn-dark:hover { background: var(--c-dark-3); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-border-strong); }
.btn-outline:hover { border-color: var(--c-text); background: var(--c-text); color: #fff; }
.btn-wa { background: var(--c-wa); color: #06331a; }
.btn-wa:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--c-accent-text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.link-arrow:hover svg { transform: translateX(calc(-4px * var(--dir))); }
/* الأسهم تشير لاتجاه القراءة */
[dir="ltr"] .i-arrow { scale: -1 1; }

/* ---------- عناوين الأقسام ---------- */
.section { padding-block: var(--section); position: relative; }
.section-sm { padding-block: var(--section-sm); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.section-head.split > div { max-width: 680px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--c-accent-text);
}
[dir="ltr"] .kicker { letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--c-secondary); }
.section-title { font-size: var(--fs-h2); font-weight: 800; margin-bottom: 0.4em; }
.section-lead { color: var(--c-text-2); font-size: var(--fs-lead); max-width: var(--measure); margin: 0; }
.section-head.center .section-lead { margin-inline: auto; }
.bg-surface { background: var(--c-surface); }
.bg-dark { background: var(--c-dark); color: var(--c-on-dark); }
.bg-dark .kicker { color: var(--c-accent); }
.bg-dark .kicker::before { background: var(--c-primary); }
.bg-dark .section-lead { color: var(--c-on-dark-2); }

/* ---------- الهيدر ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.site-header::before { /* تظليل خفيف فوق الفيديو لقراءة القائمة */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 15, 17, 0.55), transparent);
  transition: opacity var(--t);
}
.site-header.is-solid, .site-header.is-scrolled {
  background: rgba(14, 15, 17, 0.92); border-bottom-color: var(--c-border-dark);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.site-header.is-solid::before, .site-header.is-scrolled::before { opacity: 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 150px; height: auto; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82); font-weight: 500; font-size: 15.5px; transition: color var(--t-fast);
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--c-primary); transform: scaleX(0); transition: transform var(--t) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  color: #fff; font-weight: 600; font-size: 14.5px; border: 1px solid rgba(255, 255, 255, 0.24); transition: background var(--t-fast), border-color var(--t-fast);
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); }
.lang-switch svg { width: 17px; height: 17px; color: var(--c-primary); }
.lang-switch[lang="ar"] span { font-family: var(--font-display); }
.nav-cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav-cta svg { width: 16px; height: 16px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: var(--r-sm); position: relative; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
}
.nav-toggle span { position: absolute; inset-inline: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--t) var(--ease), opacity var(--t-fast); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer-foot { display: none; }

/* ---------- الواجهة بالفيديو ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--c-dark);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img, .hero-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide img { transform: scale(1.04); transition: transform 8s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide video { opacity: 0; transition: opacity 0.6s var(--ease); }
.hero-slide.has-video video { opacity: 1; }
.hero-overlay { /* تدرّج لقراءة النص دون إخفاء الفيديو */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(14, 15, 17, 0.92) 0%, rgba(14, 15, 17, 0.55) 34%, rgba(14, 15, 17, 0.12) 62%, rgba(14, 15, 17, 0.35) 100%),
    linear-gradient(var(--hero-side, 270deg), rgba(14, 15, 17, 0.6) 0%, rgba(14, 15, 17, 0) 60%);
}
[dir="ltr"] .hero-overlay { --hero-side: 90deg; }
.hero-content { padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(36px, 5vw, 56px); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--c-accent);
}
[dir="ltr"] .hero-eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.hero-eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--c-primary); }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; line-height: 1.55; max-width: 15ch; margin-bottom: 22px; }
[dir="ltr"] .hero h1 { line-height: 1.04; max-width: 16ch; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--c-primary); }
.hero-lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.82); max-width: 54ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px 26px; border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); flex: 1; max-width: 560px; }
.hero-dot {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  background: none; border: 0; padding: 10px 0; cursor: pointer; color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; transition: color var(--t-fast);
}
.hero-dot:hover, .hero-dot[aria-current="true"] { color: #fff; }
.hero-dot .track { position: relative; width: 100%; height: 2px; background: rgba(255, 255, 255, 0.22); border-radius: 2px; overflow: hidden; }
.hero-dot .fill { position: absolute; inset: 0; background: var(--c-primary); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .hero-dot .fill { transform-origin: left; }
.hero-dot.is-done .fill { transform: scaleX(1); }
.hero-ctrl { display: flex; align-items: center; gap: 12px; }
.hero-pause {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.24); color: #fff;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.hero-pause:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
.hero-pause svg { width: 16px; height: 16px; }
.hero-pause .i-play, .hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.7); min-height: 44px; }
.hero-scroll:hover { color: #fff; }
.hero-scroll span { position: relative; width: 22px; height: 34px; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 12px; }
.hero-scroll span::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--c-primary); animation: scrolldot 2.2s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.no-js .hero-bar { display: none; }

/* ---------- صفحات داخلية: رأس الصفحة ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--c-dark);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 96px);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(14, 15, 17, 0.96) 0%, rgba(14, 15, 17, 0.72) 55%, rgba(14, 15, 17, 0.55) 100%);
}
.page-hero h1 { font-size: var(--fs-h1); font-weight: 800; max-width: 22ch; margin-bottom: 18px; }
.page-hero > .container > p { color: rgba(255, 255, 255, 0.78); max-width: 60ch; font-size: var(--fs-lead); margin: 0; }
.page-hero .hero-actions { margin-top: 30px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 14.5px; color: rgba(255, 255, 255, 0.62); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 8px; opacity: 0.5; }
.breadcrumbs a { display: inline-block; padding-block: 6px; }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs [aria-current] { color: #fff; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-pills span { font-size: 14px; padding: 6px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.88); }

/* ---------- من نحن ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-media { position: relative; padding-bottom: 56px; padding-inline-end: 56px; }
.about-media .main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--sh-3); }
.about-media .main img { width: 100%; height: 100%; object-fit: cover; }
.about-media .inset {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
  border: 6px solid var(--c-bg); box-shadow: var(--sh-2);
}
.bg-surface .about-media .inset { border-color: var(--c-surface); }
.about-media .inset img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; top: 28px; inset-inline-start: -20px; background: var(--c-primary); color: var(--c-on-primary);
  border-radius: var(--r-md); padding: 18px 22px; box-shadow: var(--sh-2); text-align: center; line-height: 1.2;
}
.about-badge strong { display: block; font-family: "Alexandria", var(--font); font-size: 40px; font-weight: 800; }
.about-badge span { font-weight: 600; font-size: 14px; }
.about-copy .section-lead { margin-bottom: 28px; }
.check-list { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 4px; border-radius: 50%;
  background: var(--c-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b30a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- الأرقام ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-border); margin-top: clamp(56px, 7vw, 96px); }
.stat { padding: 28px 24px 0; position: relative; }
.stat + .stat { border-inline-start: 1px solid var(--c-border); }
.stat strong { display: block; font-family: "Alexandria", var(--font); font-size: clamp(36px, 4vw, 56px); font-weight: 800; line-height: 1.05; color: var(--c-text); direction: ltr; text-align: start; }
[dir="rtl"] .stat strong { text-align: right; }
.stat span { color: var(--c-text-2); font-size: var(--fs-sm); }
.bg-dark .stats { border-color: var(--c-border-dark); }
.bg-dark .stat + .stat { border-color: var(--c-border-dark); }
.bg-dark .stat strong { color: var(--c-primary); }
.bg-dark .stat span { color: var(--c-on-dark-2); }

/* ---------- الخدمات: شبكة غير متماثلة ---------- */
.svc-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(260px, auto); gap: var(--gap); }
.svc-tile {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-md);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px;
  padding: clamp(22px, 2.2vw, 30px); color: #fff; background: var(--c-dark-2);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.svc-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.svc-tile .media { position: absolute; inset: 0; z-index: -2; }
.svc-tile .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-tile:hover .media img { transform: scale(1.06); }
.svc-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 15, 17, 0.94) 0%, rgba(14, 15, 17, 0.55) 45%, rgba(14, 15, 17, 0.1) 100%); transition: background var(--t); }
.svc-tile .num { position: absolute; top: clamp(20px, 2vw, 28px); inset-inline-end: clamp(22px, 2.2vw, 30px); font-family: var(--font-display); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.08em; }
.svc-tile .ico { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(245, 179, 10, 0.14); color: var(--c-primary); margin-bottom: 18px; border: 1px solid rgba(245, 179, 10, 0.3); }
.svc-tile .ico svg { width: 24px; height: 24px; }
.svc-tile h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.svc-tile h3 a::before { content: ""; position: absolute; inset: 0; z-index: 2; } /* البطاقة كلها قابلة للنقر */
.svc-tile p { color: rgba(255, 255, 255, 0.76); font-size: var(--fs-sm); line-height: 1.7; margin: 0; max-width: 46ch; }
.svc-tile .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--c-primary); }
.svc-tile .more svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.svc-tile:hover .more svg { transform: translateX(calc(-4px * var(--dir))); }
.svc-tile.is-feature { grid-column: span 2; grid-row: span 2; min-height: 560px; padding: clamp(28px, 3vw, 44px); }
.svc-tile.is-feature h3 { font-size: clamp(26px, 2.6vw, 36px); }
.svc-tile.is-feature p { font-size: var(--fs-lead); max-width: 40ch; }
.svc-tile.is-wide { grid-column: span 2; }
.svc-tile.no-media { background: radial-gradient(120% 80% at 100% 0%, rgba(245, 179, 10, 0.16), transparent 60%), var(--c-dark-2); }
.svc-tile.no-media::after { display: none; }
.svc-tile.no-media .ico { width: 64px; height: 64px; margin-bottom: auto; }
.svc-tile.no-media .ico svg { width: 30px; height: 30px; }
.svc-tile.is-cta { background: var(--c-primary); color: var(--c-on-primary); justify-content: space-between; }
.svc-tile.is-cta::after { display: none; }
.svc-tile.is-cta strong { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.3; }
.svc-tile.is-cta p { color: rgba(22, 19, 10, 0.75); }
.svc-tile.is-cta .more { color: var(--c-on-primary); }
.svc-more { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.svc-more > span { font-weight: 600; color: var(--c-text-2); margin-inline-end: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--c-border-strong); background: var(--c-surface); font-weight: 500; font-size: var(--fs-sm);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip svg { width: 18px; height: 18px; color: var(--c-accent-text); }
.chip:hover { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.chip:hover svg { color: var(--c-primary); }

/* بطاقات الخدمات في صفحة الخدمات */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.svc-card {
  position: relative; display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--c-border); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: transparent; }
.svc-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-dark-2); }
.svc-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card:hover .media img { transform: scale(1.06); }
.svc-card .media.no-media { display: grid; place-items: center; background: radial-gradient(120% 90% at 100% 0%, rgba(245, 179, 10, 0.2), transparent 60%), var(--c-dark-2); color: var(--c-primary); }
.svc-card .media.no-media svg { width: 56px; height: 56px; }
.svc-card .ico { position: absolute; bottom: -24px; inset-inline-start: 24px; z-index: 1; width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-dark); color: var(--c-primary); border: 3px solid var(--c-surface); }
.svc-card .ico svg { width: 24px; height: 24px; }
.svc-card .body { padding: 40px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.svc-card h3 a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.svc-card p { color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.75; flex: 1; margin-bottom: 18px; }

/* ---------- لماذا نحن + خطوات العمل ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--c-border-dark); }
.why-item { padding: 36px 28px 8px 0; position: relative; }
[dir="rtl"] .why-item { padding: 36px 0 8px 28px; }
.why-item + .why-item { padding-inline-start: 28px; border-inline-start: 1px solid var(--c-border-dark); }
.why-item .ico { width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(245, 179, 10, 0.12); color: var(--c-primary); margin-bottom: 22px; }
.why-item .ico svg { width: 26px; height: 26px; }
.why-item h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.why-item p { color: var(--c-on-dark-2); font-size: var(--fs-sm); line-height: 1.8; margin: 0; }
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 28px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-border); }
.step::before {
  counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 18px;
  font-family: "Alexandria", var(--font); font-weight: 800; font-size: 34px; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px var(--c-secondary);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.75; margin: 0; }
.bg-dark .step { background: var(--c-dark-2); border-color: var(--c-border-dark); }
.bg-dark .step p { color: var(--c-on-dark-2); }
.bg-dark .step::before { -webkit-text-stroke-color: var(--c-primary); }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: clamp(64px, 8vw, 104px) 0 28px; flex-wrap: wrap; }
.sub-head h3 { font-size: clamp(22px, 2.2vw, 30px); margin: 0; }

/* ---------- معرض الأعمال ---------- */
.work-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(220px, 1fr)); gap: var(--gap); }
.work-mosaic .work:first-child { grid-column: span 2; grid-row: span 2; }
.work {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-md); background: var(--c-dark-2); color: #fff;
  min-height: 220px; isolation: isolate;
}
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover img, .work:focus-visible img { transform: scale(1.06); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 15, 17, 0.85), transparent 55%); opacity: 0.7; transition: opacity var(--t); }
.work:hover::after, .work:focus-visible::after { opacity: 1; }
.work .cap { position: absolute; inset: auto 0 0; z-index: 1; padding: 20px 22px; transform: translateY(8px); opacity: 0.92; transition: transform var(--t) var(--ease), opacity var(--t); }
.work:hover .cap, .work:focus-visible .cap { transform: none; opacity: 1; }
.work .tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--c-on-primary); background: var(--c-primary); padding: 2px 10px; border-radius: var(--r-pill); margin-bottom: 6px; }
.work .cap strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.4; }
.work-grid { columns: 3 320px; column-gap: var(--gap); }
.work-grid .work { break-inside: avoid; margin-bottom: var(--gap); min-height: 0; width: 100%; padding: 0; border: 0; cursor: zoom-in; text-align: start; }
.work-grid .work img { position: static; width: 100%; height: auto; }
.work-grid .work.is-hidden { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-btn {
  min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface);
  color: var(--c-text-2); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: all var(--t-fast);
}
.filter-btn:hover { color: var(--c-text); border-color: var(--c-text); }
.filter-btn.is-active { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 15, 17, 0.92); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: var(--r-sm); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-weight: 500; }
.lb-btn { position: fixed; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(14, 15, 17, 0.6); color: #fff; }
.lb-btn:hover { background: var(--c-primary); color: var(--c-on-primary); border-color: var(--c-primary); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev { top: 50%; inset-inline-start: 20px; transform: translateY(-50%); }
.lb-next { top: 50%; inset-inline-end: 20px; transform: translateY(-50%); }
[dir="ltr"] .lb-prev svg, [dir="rtl"] .lb-next svg { scale: -1 1; }

/* ---------- العملاء ---------- */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.clients .client { flex: 0 1 calc((100% - 4 * 12px) / 5); }
.client {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 18px 22px; border-radius: var(--r-sm);
  background: var(--c-surface); border: 1px solid var(--c-border); transition: border-color var(--t-fast), box-shadow var(--t);
}
.client img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter var(--t), opacity var(--t); }
.client:hover { border-color: var(--c-secondary); box-shadow: var(--sh-1); }
.client:hover img { filter: none; opacity: 1; }

/* ---------- المقالات ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.article-card {
  position: relative; display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--c-border); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.article-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-dark-2); }
.article-cover svg { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.article-card:hover .article-cover svg { transform: scale(1.05); }
.article-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.article-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--c-text-3); margin-bottom: 10px; }
.article-meta .cat { color: var(--c-accent-text); font-weight: 700; }
.article-card h3 { font-size: 19px; line-height: 1.5; }
[dir="ltr"] .article-card h3 { line-height: 1.3; }
.article-card h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.article-card p { color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.75; flex: 1; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--c-accent-text); }
.read-more svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.article-card:hover .read-more svg { transform: translateX(calc(-4px * var(--dir))); }

/* ---------- التواصل ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--c-border); }
.contact-list li { border-bottom: 1px solid var(--c-border); }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 0; }
a.contact-item:hover strong { color: var(--c-accent-text); }
.contact-item .ico { width: 48px; height: 48px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-dark); color: var(--c-primary); }
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item span { display: block; font-size: var(--fs-xs); color: var(--c-text-3); }
.contact-item strong { font-size: 17px; font-weight: 600; transition: color var(--t-fast); }
.form { background: var(--c-surface); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--c-border); box-shadow: var(--sh-2); }
.form h3 { font-size: 22px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--c-border-strong); background: var(--c-bg); color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6069' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 16px center; }
[dir="ltr"] .field select { background-position: right 16px center; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--c-secondary); background: var(--c-surface); box-shadow: 0 0 0 4px rgba(245, 179, 10, 0.2); }
.field input:user-invalid { border-color: #b3261e; }
[dir="rtl"] input[type="tel"] { text-align: right; }
.form-note { font-size: 14px; color: var(--c-text-3); margin: 14px 0 0; text-align: center; }
.form-status { margin: 14px 0 0; font-weight: 600; color: var(--c-success); display: none; text-align: center; }
.form-status.show { display: block; }

/* ---------- شريط الدعوة ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 80px); background: var(--c-primary); color: var(--c-on-primary);
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 48px; align-items: center;
}
.cta::before { /* نقش مستوحى من رمز الشعار */
  content: ""; position: absolute; z-index: -1; inset-block: -20%; inset-inline-end: -6%; width: 46%;
  background: repeating-linear-gradient(135deg, rgba(22, 19, 10, 0.06) 0 2px, transparent 2px 22px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%);
}
[dir="rtl"] .cta::before { -webkit-mask-image: linear-gradient(270deg, transparent, #000 40%); mask-image: linear-gradient(270deg, transparent, #000 40%); }
.cta h2 { font-size: clamp(26px, 3vw, 42px); font-weight: 800; margin-bottom: 12px; }
.cta p { margin: 0; font-size: var(--fs-lead); color: rgba(22, 19, 10, 0.78); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-outline { border-color: rgba(22, 19, 10, 0.35); color: var(--c-on-primary); }
.cta .btn-outline:hover { background: var(--c-on-primary); color: #fff; border-color: var(--c-on-primary); }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--c-dark); color: var(--c-on-dark-2); padding-top: clamp(64px, 8vw, 104px); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { width: 190px; height: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 36ch; line-height: 1.85; }
.site-footer h2 { font-size: 15px; color: #fff; margin-bottom: 18px; font-weight: 600; }
[dir="ltr"] .site-footer h2 { letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 5px 0; transition: color var(--t-fast); }
.footer-links a:hover { color: var(--c-primary); }
.footer-contact { display: grid; gap: 10px; }
.footer-contact a:hover { color: var(--c-primary); }
.footer-contact .phone { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--c-border-dark); color: #fff; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.socials a:hover { background: var(--c-primary); color: var(--c-on-primary); border-color: var(--c-primary); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: clamp(48px, 6vw, 80px); padding: 24px 0 28px; border-top: 1px solid var(--c-border-dark); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; color: rgba(244, 241, 234, 0.6); }

/* ---------- عناصر عائمة ---------- */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-wa); color: #fff; box-shadow: 0 12px 28px -10px rgba(37, 211, 102, 0.7);
  transition: transform var(--t) var(--ease), opacity var(--t);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float.is-hidden { opacity: 0; transform: scale(0.6); pointer-events: none; }
.wa-float svg { width: 28px; height: 28px; }
.to-top {
  position: fixed; bottom: 92px; inset-inline-end: 27px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--c-border-dark); background: var(--c-dark); color: var(--c-primary); display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity var(--t), transform var(--t) var(--ease); box-shadow: var(--sh-2);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- المدونة ---------- */
.blog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.blog-toolbar h2 { margin: 0; }
.search-box { position: relative; flex: 1; max-width: 380px; min-width: 240px; }
.search-box input { width: 100%; font: inherit; min-height: 52px; padding-inline: 48px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--c-border-strong); background: var(--c-surface); color: var(--c-text); }
.search-box input:focus { outline: 0; border-color: var(--c-secondary); box-shadow: 0 0 0 4px rgba(245, 179, 10, 0.2); }
.search-box svg { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--c-text-3); }
.featured-article { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--c-surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border); margin-bottom: var(--gap); transition: box-shadow var(--t) var(--ease); }
.featured-article:hover { box-shadow: var(--sh-2); }
.featured-article .article-cover { aspect-ratio: auto; min-height: 340px; }
.featured-article .article-body { padding: clamp(28px, 4vw, 52px); justify-content: center; }
.featured-article h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.4; }
.featured-article .btn { align-self: flex-start; }
.empty-state { text-align: center; color: var(--c-text-3); padding: 40px 0; display: none; }

/* ---------- صفحة المقال / الخدمة ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.prose { background: var(--c-surface); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 60px); border: 1px solid var(--c-border); font-size: 18px; line-height: 2; }
[dir="ltr"] .prose { line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 1.7em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 21px; margin-top: 1.4em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose p, .prose li { color: #2a2e35; }
.prose a:not(.btn) { color: var(--c-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--c-secondary); font-weight: 700; }
.prose blockquote { margin: 1.8em 0; padding: 22px 28px; border-inline-start: 4px solid var(--c-primary); background: var(--c-bg); border-radius: var(--r-sm); font-weight: 500; }
.prose .table-wrap, .prose table { width: 100%; }
.prose table { border-collapse: collapse; margin: 1.6em 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 14px 16px; border-bottom: 1px solid var(--c-border); text-align: start; min-width: 120px; }
.prose th { background: var(--c-dark); color: #fff; font-weight: 700; }
.prose tr:nth-child(even) td { background: var(--c-bg); }
.prose .lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--c-text-2); }
.tip { display: flex; gap: 16px; background: rgba(245, 179, 10, 0.1); border: 1px solid rgba(184, 132, 60, 0.35); border-radius: var(--r-sm); padding: 20px 24px; margin: 1.6em 0; }
.tip strong { color: var(--c-accent-text); }
.article-header-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 24px; color: rgba(255, 255, 255, 0.72); font-size: var(--fs-sm); }
.article-header-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-header-meta svg { width: 16px; height: 16px; color: var(--c-primary); }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--gap); }
.widget { background: var(--c-surface); border-radius: var(--r-md); padding: 26px; border: 1px solid var(--c-border); }
.widget h2, .widget h3 { font-size: 18px; margin-bottom: 14px; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 12px; border-radius: var(--r-xs); font-size: var(--fs-sm); color: var(--c-text-2); border-inline-start: 2px solid transparent; transition: all var(--t-fast); }
.toc a:hover, .toc a.is-active { background: var(--c-bg); color: var(--c-text); border-inline-start-color: var(--c-primary); }
.widget-cta { background: var(--c-dark); color: var(--c-on-dark); border: 0; }
.widget-cta p { color: var(--c-on-dark-2); font-size: var(--fs-sm); }
.widget-cta .btn { width: 100%; }
.widget-cta .btn + .btn { margin-top: 10px; }
.share { display: flex; gap: 10px; align-items: center; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--c-border); flex-wrap: wrap; }
.share span { font-weight: 700; margin-inline-end: 6px; }
.share a, .share button { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.share a:hover, .share button:hover, .share button.copied { background: var(--c-dark); color: var(--c-primary); }
.share svg { width: 18px; height: 18px; }
.progress-bar { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; background: var(--c-primary); z-index: 200; }
.faq { margin-top: 1.2em; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-bg); transition: background var(--t-fast); }
.faq details[open] { background: var(--c-surface); box-shadow: var(--sh-1); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c-dark); color: var(--c-primary); font-size: 18px; line-height: 1; transition: transform var(--t) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1em 0 1.6em; }
.benefit { padding: 22px 24px; border-radius: var(--r-sm); background: var(--c-bg); border: 1px solid var(--c-border); border-top: 3px solid var(--c-primary); }
.benefit h3 { font-size: 18px; margin: 0 0 6px; }
.benefit p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--c-text-2); }
.prose .check-list { padding: 0; margin: 1em 0 1.6em; }
.prose .check-list li { margin: 0; }
.prose .check-list li::marker { content: ""; }
.steps-list { list-style: none; counter-reset: s; padding: 0 !important; display: grid; gap: 10px; }
.steps-list li { counter-increment: s; display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r-sm); background: var(--c-bg); margin: 0 !important; }
.steps-list li::before { content: counter(s); flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--c-dark); color: var(--c-primary); font-weight: 800; font-family: var(--font-display); }
.service-figure { margin: 0 0 2em; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-dark-2); }
.service-figure img { width: 100%; height: 100%; object-fit: cover; }
.service-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.service-nav a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; min-height: 44px; border-radius: var(--r-xs); font-size: var(--fs-sm); color: var(--c-text-2); transition: background var(--t-fast), color var(--t-fast); }
.service-nav a:hover { background: var(--c-bg); color: var(--c-text); }
.mini-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--c-dark); color: var(--c-primary); }
.mini-icon svg { width: 16px; height: 16px; }
.related-service { display: flex; gap: 14px; align-items: flex-start; }
.related-service .mini-icon { width: 44px; height: 44px; flex-basis: 44px; }
.related-service .mini-icon svg { width: 20px; height: 20px; }
.related-service strong { display: block; font-size: 16px; }
.related-service small { display: block; color: var(--c-text-2); font-size: 14px; line-height: 1.6; }
.related-service:hover strong { color: var(--c-accent-text); }
.center-cta { text-align: center; margin-top: clamp(36px, 4vw, 48px); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; }
.notfound .code { font-family: "Alexandria", var(--font); font-weight: 800; font-size: clamp(96px, 16vw, 180px); line-height: 1; color: var(--c-primary); margin-bottom: 16px; }
.notfound .hero-actions { justify-content: center; }

/* ---------- الحركة عند الظهور ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.no-js .reveal { opacity: 1; transform: none; }
.hero-content > * { animation: rise 1.1s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: 0.1s; }
.hero-content > :nth-child(3) { animation-delay: 0.2s; }
.hero-content > :nth-child(4) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide img { transform: none; }
}

/* =========================================================
   التجاوب
   ========================================================= */
@media (max-width: 1320px) and (min-width: 1181px) {
  .nav-links a { padding: 10px 9px; font-size: 14.5px; }
  .nav-links a::after { inset-inline: 9px; }
  .nav-tools { margin-inline-start: 6px; gap: 8px; }
  .lang-switch { padding: 0 11px; }
  .nav-cta { padding: 0 16px; font-size: 14.5px; }
}
@media (max-width: 1100px) {
  .svc-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-tile.is-feature { min-height: 480px; }
  .svc-grid, .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-item:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .why-item:nth-child(n+3) { border-top: 1px solid var(--c-border-dark); margin-top: 28px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article .article-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .cta { grid-template-columns: 1fr; }
}

/* قائمة الجوال والتابلت: درج جانبي */
@media (max-width: 1180px) {
  :root { --header-h: 68px; }
  .brand img { width: 128px; }
  .nav-toggle { display: block; z-index: 3; }
  .brand { position: relative; z-index: 3; }
  .nav-menu {
    position: fixed; inset: 0; inset-inline-start: auto; z-index: 2; width: min(400px, 100%); height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; overflow-y: auto;
    padding: calc(var(--header-h) + 24px) 24px 32px; background: var(--c-dark); border-inline-start: 1px solid var(--c-border-dark);
    transform: translateX(calc(-100% * var(--dir))); visibility: hidden;
    transition: transform var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .nav-open .nav-menu { transform: none; visibility: visible; transition: transform var(--t) var(--ease), visibility 0s; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity var(--t); }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  /* backdrop-filter يجعل الهيدر حاوية للعناصر الثابتة فيحبس الدرج داخله، لذا نستبدله بخلفية شبه معتمة */
  .site-header.is-solid, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14, 15, 17, 0.97); }
  .nav-open .site-header { background: var(--c-dark); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--c-border-dark); }
  .nav-links a { font-family: var(--font-display); font-size: 21px; font-weight: 600; padding: 16px 4px; color: #fff; }
  .nav-links a::after { inset-inline: 4px auto; width: 24px; bottom: 10px; }
  .nav-tools { margin: 28px 0 0; flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-cta { width: auto; padding: 0 24px; min-height: 52px; }
  .lang-switch { justify-content: center; min-height: 52px; }
  .nav-drawer-foot { display: block; margin-top: auto; padding-top: 32px; color: var(--c-on-dark-2); font-size: 14px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { max-width: 560px; }
  .work-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 220px; }
  .work-mosaic .work:first-child { grid-column: span 2; grid-row: span 1; }
  .work-mosaic .work:nth-child(4) { grid-column: span 1; }
  .work-mosaic .work:nth-child(5) { grid-column: span 2; }
}
@media (min-width: 1181px) { .nav-backdrop { display: none; } }

@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --fs-body: 16px; }
  .hero { min-height: 100svh; }
  .hero-overlay { background: linear-gradient(0deg, rgba(14, 15, 17, 0.95) 0%, rgba(14, 15, 17, 0.7) 40%, rgba(14, 15, 17, 0.2) 70%, rgba(14, 15, 17, 0.45) 100%); }
  .hero h1 { max-width: none; }
  .hero-lead { margin-bottom: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-bar { padding-block: 14px 18px; gap: 14px; }
  .hero-scroll { display: none; }
  .hero-dot { font-size: 13px; padding: 12px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--c-border); }
  .bg-dark .stat:nth-child(n+3) { border-color: var(--c-border-dark); }
  .stat { padding: 22px 16px 22px 0; }
  [dir="rtl"] .stat { padding: 22px 0 22px 16px; }
  .stat + .stat { padding-inline-start: 16px; }
  .stat:nth-child(3) { padding-inline-start: 0; }
  .check-list { grid-template-columns: 1fr; }
  .about-media { padding-bottom: 40px; padding-inline-end: 32px; }
  .about-badge { inset-inline-start: 12px; top: 12px; padding: 14px 16px; }
  .about-badge strong { font-size: 30px; }

  /* الخدمات: بطاقة مميزة + شريط أفقي قابل للسحب */
  .svc-bento {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; grid-auto-rows: auto;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  }
  .svc-bento::-webkit-scrollbar { display: none; }
  .svc-tile, .svc-tile.is-feature, .svc-tile.is-wide { grid-column: auto; grid-row: auto; min-height: 380px; scroll-snap-align: start; padding: 24px; }
  .svc-tile.is-feature h3 { font-size: 24px; }
  .svc-tile.is-feature p { font-size: var(--fs-sm); }
  .swipe-hint { display: flex !important; }
  .svc-grid, .articles-grid, .process { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item, [dir="rtl"] .why-item, .why-item + .why-item { padding: 28px 0 4px; border-inline-start: 0; margin-top: 0; }
  .why-item + .why-item { border-top: 1px solid var(--c-border-dark); }
  .why-item { display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; }
  .process { gap: 10px; }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; padding: 20px; }
  .step::before { grid-row: span 2; font-size: 26px; margin: 2px 0 0; }
  .why-item .ico { grid-row: span 2; margin: 0; }

  .work-mosaic {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; grid-auto-rows: 300px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  }
  .work-mosaic::-webkit-scrollbar { display: none; }
  .work-mosaic .work:first-child, .work-mosaic .work:nth-child(4), .work-mosaic .work:nth-child(5) { grid-column: auto; grid-row: auto; }
  .work-mosaic .work { scroll-snap-align: start; }
  .work .cap { transform: none; opacity: 1; }
  .work-grid { columns: 2 140px; column-gap: 10px; }
  .work-grid .work { margin-bottom: 10px; border-radius: var(--r-sm); }
  .work-grid .work .cap { padding: 12px 12px; }
  .work-grid .work .cap strong { font-size: 14px; }
  .work-grid .work .tag { font-size: 11.5px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .filter-btn { flex: none; }

  .clients { gap: 8px; }
  .clients .client { flex-basis: calc((100% - 2 * 8px) / 3); }
  .client { padding: 10px 12px; }
  .client img { max-height: 44px; filter: none; opacity: 1; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .section-head.split .btn { display: none; }
  .cta { border-radius: var(--r-md); }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col-contact { grid-column: 1 / -1; }
  .benefits { grid-template-columns: 1fr; }
  .prose { font-size: 17px; border-radius: var(--r-md); }
  .wa-float { width: 54px; height: 54px; bottom: 16px; inset-inline-end: 16px; }
  .to-top { bottom: 82px; inset-inline-end: 19px; width: 44px; height: 44px; }
}
@media (max-width: 400px) {
  .hero-eyebrow { font-size: 13.5px; }
}
.swipe-hint { display: none; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--c-text-3); }
.swipe-hint svg { width: 16px; height: 16px; }

/* =========================================================
   مكونات صفحات الشركة والسيو
   ========================================================= */
address { font-style: normal; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip.is-active { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.sub-title { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 24px; }
.svc-more { align-items: flex-start; }
.svc-more > span { padding-top: 10px; }
.svc-card-top { position: relative; }

/* حقائق الشركة */
.facts strong { font-size: clamp(22px, 2.2vw, 32px); direction: inherit; line-height: 1.3; }
[dir="rtl"] .facts .stat strong { text-align: right; }

/* لماذا نحن: ستة عناصر */
.why-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why-grid.six .why-item:nth-child(3n + 1) { border-inline-start: 0; padding-inline-start: 0; }
.why-grid.six .why-item:nth-child(n + 4) { border-top: 1px solid var(--c-border-dark); }

/* قائمة المشاريع */
.proj-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.proj-card { display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); transition: border-color var(--t-fast), box-shadow var(--t); }
.bg-surface .proj-card { background: var(--c-bg); }
.proj-card:hover { border-color: var(--c-secondary); box-shadow: var(--sh-1); }
.proj-card .ico { flex: none; width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-dark); color: var(--c-primary); }
.proj-card .ico svg { width: 22px; height: 22px; }
.proj-card h3 { font-size: 17px; margin: 0 0 2px; line-height: 1.4; }
.proj-card p { margin: 0; font-size: var(--fs-xs); color: var(--c-text-3); }

/* صفوف صور الخدمة */
.work-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.work-row .work { aspect-ratio: 4 / 3; min-height: 0; padding: 0; border: 0; cursor: zoom-in; width: 100%; text-align: start; }

/* الخدمات المتخصصة */
.spec-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.spec-group { padding: 26px; border-radius: var(--r-md); background: var(--c-bg); border: 1px solid var(--c-border); }
.spec-group h3 { font-size: 19px; margin-bottom: 16px; }
.spec-group h3 a:hover { color: var(--c-accent-text); }
.child-services { list-style: none; padding: 0 !important; margin: 1em 0 1.6em; display: grid; gap: 10px; }
.child-services li { margin: 0 !important; }
.child-services a { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm); border: 1px solid var(--c-border); background: var(--c-bg); text-decoration: none !important; color: inherit !important; transition: border-color var(--t-fast); }
.child-services a:hover { border-color: var(--c-secondary); }
.child-services strong { display: block; font-size: 17px; }
.child-services small { display: block; color: var(--c-text-2); font-size: 15px; line-height: 1.7; }
.hero-parent { margin: 14px 0 0 !important; font-size: var(--fs-sm) !important; }
.hero-parent a { display: inline-block; padding-block: 10px; color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }

/* من نحن */
.about-text p { color: var(--c-text-2); font-size: var(--fs-lead); }
.about-text { margin-bottom: 28px; }
.vm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.vm { padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-border); }
.vm .ico { width: 56px; height: 56px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-dark); color: var(--c-primary); margin-bottom: 22px; }
.vm .ico svg { width: 26px; height: 26px; }
.vm h2 { font-size: clamp(22px, 2vw, 28px); }
.vm p { color: var(--c-text-2); font-size: var(--fs-lead); margin: 0; }
.philosophy { text-align: center; max-width: 900px; margin-inline: auto; }
.philosophy .kicker { justify-content: center; }
.philosophy .section-title { font-size: clamp(32px, 4.4vw, 60px); color: var(--c-primary); margin-bottom: 36px; }
.principles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.principles li { padding: 10px 20px; border-radius: var(--r-pill); border: 1px solid var(--c-border-dark); color: var(--c-on-dark); font-weight: 500; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.value { display: flex; align-items: center; gap: 18px; padding: 24px 26px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-border); }
.value span { font-family: "Alexandria", var(--font); font-weight: 800; font-size: 28px; color: transparent; -webkit-text-stroke: 1.5px var(--c-secondary); }
.value strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.goals { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }

/* الشركاء */
.clients.with-captions .client { aspect-ratio: auto; padding: 24px 18px 18px; gap: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.clients.with-captions .client img { max-height: 72px; filter: none; opacity: 1; }
.clients.with-captions span { font-size: 14px; color: var(--c-text-2); text-align: center; line-height: 1.5; }

/* التواصل */
.contact-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.contact-strip li { border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); }
.contact-strip .contact-item { padding: 18px 20px; height: 100%; }
.contact-strip strong { font-size: 16px; overflow-wrap: anywhere; }
.contact-strip.stacked { grid-template-columns: 1fr; margin: 28px 0; }
.socials.on-light a { background: var(--c-dark); border-color: var(--c-dark); }
.form h2 { font-size: 24px; margin-bottom: 6px; }
.form-lead { color: var(--c-text-3); font-size: 14px; margin-bottom: 22px; }
.form-error { background: #fdecea; color: #8c1d18; border-radius: var(--r-sm); padding: 12px 16px; font-weight: 600; font-size: 15px; }
.field-error { margin: 0; min-height: 0; font-size: 14px; color: #b3261e; font-weight: 500; }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fff; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions .btn { flex: 1 1 200px; }
.form-status a { color: inherit; text-decoration: underline; }
.form-status.is-error { color: #8c1d18; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* المقالات */
.blog-intro { margin-bottom: 28px; }
.cat-nav { flex: 1; }
.featured-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.4; }
.article-meta a.cat { position: relative; z-index: 2; }
.article-meta a.cat:hover { text-decoration: underline; }
.featured-article .btn { align-self: flex-start; }

@media (max-width: 1100px) {
  .proj-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid.six .why-item { border-top: 1px solid var(--c-border-dark); margin-top: 0; border-inline-start: 0; padding-inline-start: 0; }
  .why-grid.six .why-item:nth-child(even) { border-inline-start: 1px solid var(--c-border-dark); padding-inline-start: 28px; }
  .why-grid.six .why-item:nth-child(-n + 2) { border-top: 0; }
  .contact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values, .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .proj-list, .spec-groups, .vm-grid, .values, .goals, .contact-strip { grid-template-columns: 1fr; }
  .why-grid.six { grid-template-columns: 1fr; }
  .why-grid.six .why-item, .why-grid.six .why-item:nth-child(even) { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--c-border-dark); }
  .why-grid.six .why-item:first-child { border-top: 0; }
  .proj-card { padding: 16px 18px; }
  .value { padding: 18px 20px; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .cat-nav .chip-list { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .cat-nav .chip { flex: none; }
  .svc-more { flex-direction: column; }
  .philosophy .section-title { margin-bottom: 24px; }
}
