/* =====================================================================
   ERA TECH — STYLESHEET
   لتغيير الألوان: عدّل المتغيرات في :root و [data-theme="light"] فقط.
   ===================================================================== */

/* ----------------------------- التوكنز / Tokens ----------------------------- */
:root {
  /* الهوية */
  --era:        #E8472A;   /* برتقالي الشعار */
  --era-soft:   #FF6B49;
  --era-glow:   rgba(232, 71, 42, 0.35);

  /* الوضع الداكن (الافتراضي) */
  --bg:         #0B0E14;
  --bg-alt:     #0F131C;
  --surface:    #141926;
  --surface-2:  #1B2233;
  --text:       #EEF1F7;
  --muted:      #99A3B5;
  --line:       rgba(255, 255, 255, 0.08);
  --shadow:     0 18px 50px rgba(0, 0, 0, 0.45);
  --hero-grid:  rgba(255, 255, 255, 0.04);

  /* مقاسات */
  --radius:     18px;
  --radius-sm:  12px;
  --container:  1180px;
  --header-h:   76px;

  /* خطوط (تتبدل حسب اللغة في الأسفل) */
  --font-display: "Cairo", sans-serif;
  --font-body:    "Tajawal", sans-serif;
}

[data-theme="light"] {
  --bg:         #F6F7FA;
  --bg-alt:     #EFF1F6;
  --surface:    #FFFFFF;
  --surface-2:  #F2F4F9;
  --text:       #161B27;
  --muted:      #5C6677;
  --line:       rgba(22, 27, 39, 0.10);
  --shadow:     0 16px 40px rgba(22, 27, 39, 0.10);
  --hero-grid:  rgba(22, 27, 39, 0.05);
}

/* خطوط الإنجليزية */
html[lang="en"] {
  --font-display: "Space Grotesk", sans-serif;
  --font-body:    "Inter", sans-serif;
}

/* ----------------------------- أساسيات / Base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; }

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

/* أيقونات SVG العامة */
.ic, .vcard__icon svg, .why__icon svg, .cinfo__icon svg, .scard__icon svg,
.modal__icon svg, .pcard__icon svg {
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* عناصر منطق الثيم: الشعارات */
.brand__mark--light, .hero__mark--light { display: none; }
[data-theme="light"] .brand__mark--dark,  [data-theme="light"] .hero__mark--dark  { display: none; }
[data-theme="light"] .brand__mark--light, [data-theme="light"] .hero__mark--light { display: block; }

/* ----------------------------- مكونات عامة ----------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--era); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.5px; margin-bottom: 18px;
  padding: 7px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--era) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--era) 32%, transparent);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--era); box-shadow: 0 0 10px var(--era);
}

.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn--primary {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--era), var(--era-soft));
  color: #fff; box-shadow: 0 10px 30px var(--era-glow);
}
.btn--primary::after {
  content: ""; position: absolute; top: 0; height: 100%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  inset-inline-start: -70%; transform: skewX(-20deg);
  transition: inset-inline-start 0.55s ease;
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px var(--era-glow); }
.btn--primary:hover::after { inset-inline-start: 125%; }
.btn--ghost { border: 1.5px solid var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--era); color: var(--era); transform: translateY(-3px); }
.btn--white { background: #fff; color: var(--era); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.btn--white:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(0,0,0,0.3); }

/* ظهور عند التمرير */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------- الهيدر / Header ----------------------------- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 38px; height: auto; }
.brand__name { font-family: var(--font-display); font-weight: 600; letter-spacing: 2px; font-size: 1.05rem; }
.brand__name b { color: var(--era); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 9px 15px; border-radius: 999px; font-weight: 500; font-size: 0.98rem;
  color: var(--muted); transition: color 0.2s ease, background 0.2s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link--cta { background: linear-gradient(120deg, var(--era), var(--era-soft)); color: #fff !important; font-weight: 700; }
.nav__link--cta:hover { filter: brightness(1.08); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); transition: border-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { border-color: var(--era); color: var(--era); }
.icon-btn .ic { width: 20px; height: 20px; }
.lang-btn { width: auto; padding-inline: 14px; font-family: var(--font-display); font-weight: 700; }

/* أيقونة الثيم */
.ic-moon { display: none; }
[data-theme="light"] .ic-sun  { display: none; }
[data-theme="light"] .ic-moon { display: block; }

/* قائمة الجوال */
.burger { display: none; flex-direction: column; gap: 5px; }
.burger span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------- الهيرو / Hero ----------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 35%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.hero__glow--a { width: 480px; height: 480px; background: var(--era); inset-inline-end: -120px; top: -120px; opacity: 0.22; }
.hero__glow--b { width: 380px; height: 380px; background: #2a5ae8; inset-inline-start: -140px; bottom: -100px; opacity: 0.14; }

/* العلامة الكبيرة الدوّارة — توقيع الصفحة */
.hero__mark {
  position: absolute; width: min(46vw, 560px);
  inset-inline-end: -4%; top: 50%; translate: 0 -50%;
  opacity: 0.10; animation: markFloat 9s ease-in-out infinite;
}
[data-theme="light"] .hero__mark { opacity: 0.08; }
.hero__orbit {
  position: absolute; width: min(58vw, 720px); aspect-ratio: 1;
  inset-inline-end: calc(-4% - 6vw); top: 50%; translate: 0 -50%;
  border: 1.5px dashed color-mix(in srgb, var(--era) 35%, transparent);
  border-radius: 50%;
  animation: spin 50s linear infinite;
}
.hero__orbit::before {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--era); top: -7px; left: 50%;
  box-shadow: 0 0 18px var(--era-glow), 0 0 4px var(--era);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes markFloat { 0%, 100% { translate: 0 -52%; } 50% { translate: 0 -48%; } }

.hero__content { position: relative; max-width: 760px; }
.hero__title {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 900; margin-bottom: 22px;
}
.hero__title em {
  font-style: normal; position: relative; white-space: nowrap;
  background: linear-gradient(90deg, var(--era), #FFA071, var(--era));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 5s linear infinite;
}
@keyframes gradientShift { to { background-position: -200% 0; } }
.hero__title em::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 10px;
  background: var(--era-glow); border-radius: 6px; z-index: -1;
}
.hero__lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 620px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 58px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; width: 100%; max-width: 700px;
}
.stats li {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 22px; backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stats li:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--era) 40%, var(--line)); }
.stats li p { color: var(--muted); font-size: 0.86rem; }
.stats__num, .stats__plus {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--text);
}
.stats__plus { color: var(--era); }

/* الشرائح الزجاجية العائمة */
.hero__chips { position: absolute; inset: 0; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  border: 1px solid var(--line); backdrop-filter: blur(12px);
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  box-shadow: var(--shadow);
  animation: floatY 6.5s ease-in-out infinite;
}
.chip i { font-style: normal; filter: saturate(1.2); }
.chip--1 { inset-inline-end: 6%;  top: 20%; }
.chip--2 { inset-inline-end: 19%; top: 46%; animation-delay: 1.8s; }
.chip--3 { inset-inline-end: 8%;  top: 73%; animation-delay: 3.4s; }
@keyframes floatY { 50% { translate: 0 -14px; } }

/* ----------------------------- من نحن / About ----------------------------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.about__text p { color: var(--muted); margin-bottom: 18px; font-size: 1.04rem; }
.about__text p:first-child { color: var(--text); }
.about__cards { display: grid; gap: 18px; }
.vcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; display: grid; grid-template-columns: 52px 1fr; gap: 6px 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.vcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--era) 45%, var(--line)); }
.vcard__icon {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; color: var(--era);
  background: color-mix(in srgb, var(--era) 12%, transparent);
}
.vcard__icon svg { width: 26px; height: 26px; }
.vcard h3 { font-size: 1.12rem; font-weight: 800; }
.vcard p { color: var(--muted); font-size: 0.97rem; }

/* ----------------------------- الخدمات / Services ----------------------------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scard {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  text-align: start;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.scard::after { /* لمسة السحبة أسفل البطاقة */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--era), var(--era-soft));
  transform: scaleX(0); transform-origin: var(--flow-start, left);
  transition: transform 0.35s ease;
}
[dir="rtl"] .scard::after { transform-origin: right; }
.scard:hover {
  transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--era), color-mix(in srgb, var(--era) 10%, var(--line)) 65%) border-box;
}
.scard:hover::after { transform: scaleX(1); }
.scard__icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--era), var(--era-soft));
  box-shadow: 0 10px 24px var(--era-glow);
}
.scard__icon svg { width: 28px; height: 28px; }
.scard h3 { font-size: 1.18rem; font-weight: 800; }
.scard p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.scard__more {
  color: var(--era); font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.scard__more::after { content: "←"; transition: translate 0.2s ease; }
[dir="ltr"] .scard__more::after { content: "→"; }
.scard:hover .scard__more::after { translate: -4px 0; }
[dir="ltr"] .scard:hover .scard__more::after { translate: 4px 0; }

/* ----------------------------- ERP ----------------------------- */
.erp__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.erp__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 28px 0 34px; }
.erp__list li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.98rem; }
.erp__list li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
  color: var(--era); background: color-mix(in srgb, var(--era) 14%, transparent);
}

.erp__visual { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.erp__hex {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%;
  width: 132px; height: 132px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--era), var(--era-soft));
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  z-index: 2;
}
.erp__hex span { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: #fff; letter-spacing: 1px; }
.erp__ring {
  position: absolute; inset: 7%;
  border: 1.5px dashed color-mix(in srgb, var(--era) 30%, transparent);
  border-radius: 50%; animation: spin 60s linear infinite;
}
.erp__nodes { position: absolute; inset: 0; }
.erp__node {
  position: absolute; translate: -50% -50%;
  display: grid; place-items: center; text-align: center;
  width: 94px; padding: 10px 6px; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  font-size: 0.68rem; font-weight: 700; color: var(--muted); line-height: 1.35;
  box-shadow: var(--shadow);
}
.erp__node i {
  font-style: normal; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-size: 0.8rem;
  color: var(--era); background: color-mix(in srgb, var(--era) 12%, transparent);
}

/* ----------------------------- الأعمال / Portfolio ----------------------------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter__btn {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--muted); font-weight: 600; font-size: 0.93rem;
  transition: all 0.2s ease;
}
.filter__btn:hover { border-color: var(--era); color: var(--era); }
.filter__btn.is-active { background: linear-gradient(120deg, var(--era), var(--era-soft)); border-color: transparent; color: #fff; }

.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
}
.pcard.is-hidden { display: none; }
.pcard:hover {
  transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--era), color-mix(in srgb, var(--era) 10%, var(--line)) 65%) border-box;
}
.pcard__cover {
  position: relative; height: 168px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 75% 20%, var(--era-glow), transparent 55%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}
.pcard__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--era), var(--era-soft));
  box-shadow: 0 12px 28px var(--era-glow);
  transition: transform 0.3s ease;
}
.pcard:hover .pcard__icon { transform: scale(1.08) rotate(-4deg); }
.pcard__icon svg { width: 30px; height: 30px; }
.pcard__tag {
  position: absolute; top: 14px; inset-inline-start: 14px;
  font-size: 0.72rem; font-weight: 700; color: var(--era);
  background: color-mix(in srgb, var(--era) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--era) 30%, transparent);
  padding: 4px 12px; border-radius: 999px;
}
.pcard__body { padding: 22px 24px 26px; }
.pcard__body h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.pcard__body p { color: var(--muted); font-size: 0.95rem; }

/* ----------------------------- ما يميزنا / Why ----------------------------- */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why__card {
  text-align: center; padding: 38px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.why__card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--era) 40%, var(--line)); }
.why__icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: var(--era);
  background: color-mix(in srgb, var(--era) 12%, transparent);
}
.why__icon svg { width: 30px; height: 30px; }
.why__card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.why__card p { color: var(--muted); font-size: 0.97rem; }

/* ----------------------------- العملاء / Clients ----------------------------- */
.marquee { overflow: hidden; padding: 10px 0 46px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee     { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.marquee__item {
  flex: none; padding: 16px 34px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--muted); white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.marquee__item:hover { color: var(--era); border-color: color-mix(in srgb, var(--era) 45%, var(--line)); }

/* آراء العملاء */
.quotes {
  position: relative; max-width: 780px; margin: 14px auto 0; min-height: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 40px 36px; box-shadow: var(--shadow);
}
.quotes::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--era), transparent);
}
.quote {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease;
  text-align: center; padding: 0 12px;
}
.quote.is-active { opacity: 1; visibility: visible; position: relative; }
.quote__mark { font-family: var(--font-display); font-size: 3.4rem; line-height: 0.6; color: var(--era); display: block; margin-bottom: 18px; }
.quote p { font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 16px; }
.quote cite { color: var(--muted); font-style: normal; font-size: 0.95rem; font-weight: 600; }
.quotes__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.quotes__dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: all 0.25s ease; }
.quotes__dots button.is-active { width: 26px; border-radius: 999px; background: var(--era); }

/* ----------------------------- التواصل / Contact ----------------------------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.cform {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; display: grid; gap: 18px;
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-weight: 600; font-size: 0.93rem; }
.field input, .field textarea {
  font: inherit; color: var(--text);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; transition: border-color 0.2s ease; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--era); }
.cform .btn { justify-self: start; }
.cform__note { color: var(--muted); font-size: 0.85rem; }

.cinfo { display: grid; gap: 24px; }
.cinfo__list { display: grid; gap: 20px; }
.cinfo__list li { display: flex; gap: 16px; align-items: flex-start; }
.cinfo__icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; color: var(--era);
  background: color-mix(in srgb, var(--era) 12%, transparent);
}
.cinfo__icon svg { width: 24px; height: 24px; }
.cinfo__list h4 { font-size: 1.02rem; font-weight: 800; margin-bottom: 2px; }
.cinfo__list p { color: var(--muted); font-size: 0.95rem; }
.cinfo__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 240px; }
.cinfo__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.9); }
[data-theme="dark"] .cinfo__map iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.7); }

/* ----------------------------- دعوة للتواصل / CTA Band ----------------------------- */
.cta-band { padding: 20px 0 100px; }
.cta-band__panel {
  position: relative; overflow: hidden; text-align: center;
  padding: 76px 36px; border-radius: 30px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.18), transparent 45%),
    linear-gradient(135deg, #D63A1F, #FF7A4D);
  color: #fff; box-shadow: 0 24px 60px var(--era-glow);
}
.cta-band__mark {
  position: absolute; width: 360px; inset-inline-start: -70px; bottom: -110px;
  opacity: 0.14; pointer-events: none;
}
.cta-band__panel h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; margin-bottom: 12px; position: relative; }
.cta-band__panel p { opacity: 0.92; max-width: 560px; margin: 0 auto 30px; position: relative; }

/* ----------------------------- زر واتساب العائم ----------------------------- */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 95;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse { to { transform: scale(1.55); opacity: 0; } }

/* ----------------------------- الفوتر / Footer ----------------------------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer__brand p { color: var(--muted); margin-top: 16px; max-width: 320px; font-size: 0.97rem; }
.footer h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 16px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--muted); transition: color 0.2s ease; font-size: 0.97rem; }
.footer__links a:hover { color: var(--era); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding: 20px 0;
  color: var(--muted); font-size: 0.9rem;
}
.footer__top {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1.5px solid var(--line); transition: all 0.2s ease;
}
.footer__top:hover { border-color: var(--era); color: var(--era); transform: translateY(-3px); }

/* ----------------------------- نافذة الخدمة / Modal ----------------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 10, 16, 0.65); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s ease; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(620px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px; box-shadow: var(--shadow);
  transform: translateY(24px) scale(0.97); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close {
  position: absolute; top: 16px; inset-inline-end: 16px;
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line);
  display: grid; place-items: center; transition: all 0.2s ease;
}
.modal__close:hover { border-color: var(--era); color: var(--era); }
.modal__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--era), var(--era-soft));
  margin-bottom: 18px;
}
.modal__icon svg { width: 30px; height: 30px; }
.modal__panel h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 10px; }
.modal__panel > p { color: var(--muted); margin-bottom: 20px; }
.modal__features { display: grid; gap: 12px; margin-bottom: 28px; }
.modal__features li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.97rem; }
.modal__features li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 3px;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 800;
  color: var(--era); background: color-mix(in srgb, var(--era) 14%, transparent);
}

/* ===================================================================
   التجاوب / RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .services__grid, .portfolio__grid, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .erp__grid { grid-template-columns: 1fr; gap: 48px; }
  .erp__visual { max-width: 420px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__mark, .hero__orbit { opacity: 0.06; }
  .hero__chips { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .section { padding: 72px 0; }

  /* قائمة جوال */
  .burger { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all 0.28s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 12px 16px; font-size: 1.02rem; }
  .nav__link--cta { text-align: center; margin-top: 8px; }

  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .services__grid, .portfolio__grid, .why__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats li { padding: 14px 16px; }
  .cform { padding: 24px 20px; }
  .cform__row { grid-template-columns: 1fr; }
  .erp__list { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .hero__mark { width: 80vw; inset-inline-end: -30%; opacity: 0.05; }
  .hero__orbit { display: none; }
  .erp__node { width: 80px; font-size: 0.62rem; padding: 8px 4px; }
  .modal__panel { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .cta-band__panel { padding: 52px 24px; border-radius: 22px; }
  .quotes { padding: 32px 22px 26px; }
  .wa-float { width: 52px; height: 52px; bottom: 18px; inset-inline-end: 18px; }
}

/* تقليل الحركة لمن يفضل ذلك */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
