/* ============================================================
   EjraaSoft — Refresh layer (2026)
   طبقة تحديث فوق style.css: خط Readex Pro، لوحة حبر نيلي + أزرق الشعار
   + لمسة رملية دافئة، تبسيط الزخارف، وهيرو بـ"شفق" متحرك واحد.
   ============================================================ */
:root {
  --sand: #F2C27B;
  --sand-ink: #6B4A12;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --font: 'Readex Pro', 'Cairo', system-ui, -apple-system, sans-serif;
}
:root, :root[data-theme="dark"] {
  --bg: #0A1024;
  --bg-2: #0D1430;
  --surface: #111A38;
  --surface-2: #162146;
  --surface-3: #1C2852;
  --border: rgba(160, 182, 240, .12);
  --border-strong: rgba(160, 182, 240, .24);
  --text: #EDF1FB;
  --text-2: #BCC6DE;
  --muted: #8C99B6;
  --header-bg: rgba(10, 16, 36, .74);
}
:root[data-theme="light"] {
  --bg: #F6F7FB;
  --bg-2: #EDF0F8;
  --surface: #FFFFFF;
  --surface-2: #F3F5FB;
  --surface-3: #E8ECF7;
  --border: rgba(16, 32, 84, .10);
  --border-strong: rgba(16, 32, 84, .18);
  --text: #0C1433;
  --text-2: #36446A;
  --muted: #5D6A8B;
  --sand: #B9822C;
  --header-bg: rgba(246, 247, 251, .82);
}

/* ---------- Typography ---------- */
body, :root[dir="ltr"] body { font-family: var(--font); letter-spacing: 0; }
button, input, select, textarea { font-family: inherit; }
.hero-stat b, .exp-badge b, .project-num, .hero-chip, [data-count] { font-family: var(--font) !important; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.hero-title { font-weight: 700; letter-spacing: -.02em; line-height: 1.22; font-size: clamp(2.6rem, 5.4vw, 5rem); }
:root[dir="ltr"] .hero-title { line-height: 1.06; }
.sec-title { font-weight: 700; letter-spacing: -.015em; }
.page-title { font-weight: 700; letter-spacing: -.015em; }
.service-card h3, .project-title, .blog-body h3, .team-info h3, .cta-inner h2, .footer-col h4 { font-weight: 600; }
.cta-inner h2 { font-weight: 700; }
::selection { background: var(--blue-600); color: #fff; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 8px; }

/* شريط تقدّم القراءة (CSS فقط، يعمل في المتصفحات الحديثة) */
@supports (animation-timeline: scroll()) {
  body::before {
    content: ""; position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 2000;
    background: linear-gradient(90deg, var(--blue-500), var(--sand));
    transform-origin: right center; transform: scaleX(0);
    animation: readProgress linear both; animation-timeline: scroll(root);
  }
  :root[dir="ltr"] body::before { transform-origin: left center; }
  @keyframes readProgress { to { transform: scaleX(1); } }
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: 14px 28px; }
.btn-sm { border-radius: 999px; }
.btn-primary { background: var(--blue-600); box-shadow: 0 8px 28px rgba(43, 89, 224, .32); }
.btn-primary::before { background: var(--blue-500); }
.btn-ghost { background: transparent; backdrop-filter: none; }

/* ---------- Section headings: أقل زخرفة ---------- */
.sec-accent-line { display: none; }
.sec-badge {
  background: transparent; border: 0; padding: 0; margin-bottom: 14px;
  color: var(--sand); font-weight: 600; font-size: .95rem; gap: 10px;
}
.sec-badge::before { width: 22px; height: 2px; border-radius: 2px; background: var(--sand); box-shadow: none; animation: none; }
.sec-sub { color: var(--text-2); }

/* ---------- Hero: شفق واحد متحرك بدلاً من الشبكة والأيقونات العائمة ---------- */
.hero-grid-bg, .hero-chip, .scroll-hint { display: none !important; }
.hero { min-height: 92svh; }
.hero-bg::before {
  content: ""; position: absolute; width: 1100px; height: 1100px;
  top: -520px; inset-inline-end: -360px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(43, 89, 224, .0), rgba(43, 89, 224, .38), rgba(242, 194, 123, .20), rgba(91, 141, 239, .30), rgba(43, 89, 224, .0));
  filter: blur(90px); opacity: .9;
  animation: aurora 28s linear infinite;
}
:root[data-theme="light"] .hero-bg::before { opacity: .55; }
@keyframes aurora { to { transform: rotate(360deg); } }
.orb-3 { display: none; }
.hero-badge { background: transparent; border-color: var(--border-strong); backdrop-filter: none; }
.hero-badge .spark { color: var(--sand); animation: none; }
.hero-sub { color: var(--text-2); }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0; max-width: 760px;
  border-top: 1px solid var(--border-strong); padding-top: 26px;
}
.hero-stat {
  flex: 1 1 140px; background: none; border: 0; border-radius: 0; backdrop-filter: none;
  padding: 0 22px; border-inline-start: 1px solid var(--border);
}
.hero-stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hero-stat:hover { transform: none; background: none; }
.hero-stat b {
  background: none; -webkit-text-fill-color: currentColor; color: var(--text);
  font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2;
}
.hero-stat span { font-size: .9rem; font-weight: 500; }

/* ---------- Clients ---------- */
.clients { background: transparent; }
.client-item { filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; }
.client-item:hover { filter: none; opacity: 1; }

/* ---------- Portfolio ---------- */
.project-card { border-radius: var(--radius-xl); }
.project-num { color: var(--sand); border-color: rgba(242, 194, 123, .35); font-weight: 600; letter-spacing: 1px; }
.project-tags span { font-weight: 500; }

/* ---------- Services: بطاقات أهدأ، لا شريط علوي متحرك ---------- */
.service-card { border-radius: var(--radius-lg); padding: 30px 26px 26px; }
.service-card::after { display: none; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--border-strong); }
.service-icon { width: 54px; height: 54px; border-radius: 16px; background: rgba(61, 110, 240, .10); border-color: rgba(91, 141, 239, .22); }
.service-card:hover .service-icon { transform: none; box-shadow: none; background: var(--blue-600); color: #fff; }
.service-icon svg { width: 26px; height: 26px; }

/* ---------- Feature / process / blog / team: حركة أقل ---------- */
.feature-card, .blog-card, .team-card { border-radius: var(--radius-lg); }
.blog-card:hover, .team-card:hover { transform: translateY(-4px); }
.tst-stars { color: var(--sand); }
.exp-badge { background: var(--sand); color: #2A1C04; box-shadow: 0 14px 40px rgba(242, 194, 123, .25); }

/* ---------- CTA ---------- */
.cta-inner { background: linear-gradient(150deg, #13258A, var(--blue-700) 60%, #3A63E6); }
.cta-inner::before { opacity: .25; }

/* ---------- Footer ---------- */
.footer-col h4 { padding-bottom: 0; margin-bottom: 18px; }
.footer-col h4::after { display: none; }
.footer-col ul a::before { content: none; }
.socials a:hover { background: var(--blue-600); box-shadow: none; transform: translateY(-2px); }

/* ---------- Page hero (الصفحات الداخلية) ---------- */
.page-hero .hero-bg::before { width: 900px; height: 900px; top: -480px; opacity: .7; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before, body::before { animation: none !important; }
}
@media (max-width: 640px) {
  .hero-stat { padding: 0 14px; flex-basis: 45%; margin-bottom: 14px; }
  .hero-stat:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .hero-bg::before { width: 700px; height: 700px; top: -360px; inset-inline-end: -320px; }
}
.hero-stat b span { font-size: inherit; font-weight: inherit; color: inherit; }
.breadcrumb span[aria-current] { color: var(--text-2); }
.page-hero .hero-bg { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
