/* ═══════════════════════════════════════════════════════════
   CamShield — Design System
   Primary: #02b2ae (Teal)  |  Dark/Light Theme
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --primary:       #f5821f;
  --primary-dark:  #c56e22;
  --primary-light: #f5c40f;
  --primary-glow:  rgba(245, 130, 31, 0.25);

  /* Light Theme */
  --bg:            #f8fafc;
  --bg-card:       #ffffff;
  --bg-section:    #f1f5f9;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --shadow:        0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.12);
  --nav-bg:        rgba(255,255,255,0.92);
  --overlay:       rgba(0,0,0,0.45);
}

.dark {
  --bg:            #060d1a;
  --bg-card:       #0d1829;
  --bg-section:    #0a1422;
  --text:          #f0f6ff;
  --text-muted:    #8ba3c0;
  --border:        #1e3050;
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.6);
  --nav-bg:        rgba(6,13,26,0.95);
  --overlay:       rgba(0,0,0,0.65);
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  direction: rtl;
}

html, body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a, button, input, select, textarea, summary {
  touch-action: manipulation;
}

body.ltr { direction: ltr; font-family: 'Inter', 'Tajawal', sans-serif; }

/* ── Typography ────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2,178,174,0.12);
  border: 1px solid rgba(2,178,174,0.3);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.section-title span { color: var(--primary); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

/* Navbar shell: defined in layouts/app.blade.php (single source) to stay consistent with the menu. */

/* ── Section Spacing ───────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-lg { padding: 120px 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Gradient Text ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Divider ───────────────────────────────────────────── */
.divider-primary {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 999px;
  margin: 12px 0;
}

/* ── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes counter {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-up   { animation: fadeInUp 0.7s ease forwards; }
.animate-fade-left { animation: fadeInLeft 0.7s ease forwards; }
.animate-float     { animation: float 4s ease-in-out infinite; }

/* ── Intersection Observer Classes ────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Form Inputs ───────────────────────────────────────── */
.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder { color: var(--text-muted); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* ── Hero Gradient Overlay ─────────────────────────────── */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(6,13,26,0.92) 0%,
    rgba(2,178,174,0.15) 50%,
    rgba(6,13,26,0.85) 100%
  );
}

/* ── Stats Counter ─────────────────────────────────────── */
.stat-number {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

/* ── Tag / Badge ───────────────────────────────────────── */
.tag {
  display: inline-block;
  background: rgba(2,178,174,0.1);
  color: var(--primary);
  border: 1px solid rgba(2,178,174,0.25);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ── Testimonial Stars ─────────────────────────────────── */
.stars { color: #f59e0b; letter-spacing: 2px; }

/* ── Process Steps ─────────────────────────────────────── */
.step-line {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-lg { padding: 80px 0; }
  .hide-mobile { display: none !important; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
}

/* =========================================================
   Modern Landing Overrides (Home + Services)
   ========================================================= */

.landing-main {
  padding-top: 0;
  padding-bottom: 0;
  min-height: auto;
  background: #070b14;
  color: #f5f7fb;
}

.landing-hero-stage {
  width: 100%;
  margin: 0;
  perspective: 1300px;
  position: relative;
}

.landing-hero__aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 85%;
  background:
    radial-gradient(ellipse 55% 45% at 20% 25%, rgba(245, 130, 31, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 78% 35%, rgba(56, 189, 248, 0.16), transparent 52%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(16, 185, 129, 0.1), transparent 45%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

.landing-shell {
  width: min(1240px, calc(100vw - clamp(20px, 4vw, 48px)));
  margin-inline: auto;
}

.landing-hero {
  /* ارتفاع المرئي: svh ثابت نسبياً مع شريط العنوان؛ dvh يتبع الشريط الديناميكي */
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 10% 12%, rgba(245,130,31,0.2), transparent 36%),
    radial-gradient(circle at 85% 80%, rgba(16,185,129,0.14), transparent 42%),
    linear-gradient(140deg, #060b16 0%, #0a1220 55%, #0d1628 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 60% 45%, #000 30%, transparent 90%);
}

.landing-hero--compact {
  min-height: 78vh;
  min-height: 78svh;
}

/* ── Unified inner-page hero (page-hero component) ── */
.page-hero.landing-hero--compact {
  min-height: 50vh;
  min-height: 50svh;
}

.page-hero__glow {
  position: absolute;
  inset-inline: 10%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 130, 31, 0.55),
    rgba(56, 189, 248, 0.42),
    rgba(16, 185, 129, 0.35),
    transparent
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
  border-radius: 999px;
  filter: blur(0.5px);
}

.page-hero .landing-hero__overlay.page-hero__overlay {
  background: linear-gradient(
    165deg,
    rgba(3, 7, 18, 0.58) 0%,
    rgba(3, 7, 18, 0.1) 48%,
    rgba(3, 7, 18, 0.52) 100%
  );
}

.page-hero .landing-hero__content.page-hero__inner {
  grid-template-columns: 1fr;
  max-width: min(42rem, 100%);
  margin-inline: auto;
  justify-items: center;
  justify-content: center;
  align-content: center;
  text-align: center;
  padding-block: clamp(2.5rem, 6svh, 4rem) clamp(1.75rem, 4svh, 2.75rem);
}

.page-hero .page-hero__copy {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.page-hero__intro {
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(1rem, 1.75vw, 1.12rem);
  line-height: 1.75;
  color: rgba(233, 238, 250, 0.9);
  text-align: center;
}

.page-hero__actions {
  margin-top: 1.2rem;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  justify-content: center;
}

@media (min-width: 769px) {
  .page-hero .landing-hero__shape--1 {
    opacity: 0.65;
  }

  .page-hero .landing-hero__shape--2 {
    opacity: 0.55;
  }
}

.page-hero--photo .landing-hero__overlay.page-hero__overlay {
  background: linear-gradient(120deg, rgba(3, 7, 18, 0.62) 0%, rgba(3, 7, 18, 0.42) 50%, rgba(3, 7, 18, 0.58) 100%);
}

html.dark .page-hero--photo .landing-hero__copy h1,
html.dark .page-hero--photo .landing-hero__copy p,
html.dark .page-hero--photo .page-hero__intro {
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.65),
    0 1px 3px rgba(0, 0, 0, 0.9);
}

.landing-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(3, 7, 18, 0.44) 0%, rgba(3, 7, 18, 0.2) 45%, rgba(3, 7, 18, 0.32) 100%);
  z-index: 1;
}

.landing-hero__shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.landing-hero__shape--1 {
  width: min(38vw, 420px);
  height: min(38vw, 420px);
  top: -14%;
  inset-inline-start: -8%;
  background: radial-gradient(circle at 30% 30%, rgba(245,130,31,0.5), rgba(245,130,31,0));
}

.landing-hero__shape--2 {
  width: min(26vw, 320px);
  height: min(26vw, 320px);
  bottom: -16%;
  inset-inline-end: -5%;
  background: radial-gradient(circle at 50% 50%, rgba(14,165,233,0.35), rgba(14,165,233,0));
}

.landing-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(5.8rem, 9svh, 7rem) clamp(3.5rem, 8svh, 4.5rem);
}

.landing-hero__copy h1 {
  font-size: clamp(1.65rem, 3.6vw, 3.15rem);
  line-height: 1.07;
  margin: 0 0 1.05rem;
  color: #fff;
  text-shadow: 0 2px 48px rgba(0, 0, 0, 0.38);
  letter-spacing: -0.025em;
  font-weight: 800;
}

/* هيرو الشرائح: حجز ارتفاع سطرين للعنوان حتى لا يتحرك الشريط/النقاط بين شريحة بسطر واحد وأخرى بسطرين */
.landing-hero--split .landing-hero__copy h1 {
  min-height: 2lh;
  box-sizing: border-box;
}

.landing-hero__copy p {
  margin: 0;
  font-size: clamp(1.02rem, 1.85vw, 1.2rem);
  line-height: 1.82;
  color: rgba(233, 238, 250, 0.92);
  max-width: 36rem;
}

.landing-hero__media {
  display: flex;
  justify-content: center;
}

.landing-hero__media-frame {
  position: relative;
  width: min(520px, 96%);
  padding: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
}

.landing-hero__media-frame::after {
  content: none;
  display: none;
}

.landing-hero__media-wrap {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 25px;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  transform: translate3d(var(--hero-parallax-x, 0px), var(--hero-parallax-y, 0px), 0);
  transition: transform .25s ease-out;
}

/* الصورة تملأ الإطار بثبات — الارتفاع يُحدَّد من الحاوية وليس من أبعاد ملف الصورة */
.landing-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  border-radius: 18px;
  border: 0;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1), opacity 0.35s ease, filter .35s ease;
}

.landing-hero__copy {
  max-width: min(38rem, 100%);
  transition: transform .35s ease, opacity .35s ease;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
  .landing-hero__media-frame {
    animation: heroMediaFloat 7s ease-in-out infinite;
  }
}

@keyframes heroMediaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.landing-hero.is-leaving .landing-hero__image {
  opacity: 0.2;
  transform: scale(0.96) translateY(12px);
  filter: blur(1.5px);
}

.landing-hero.is-leaving .landing-hero__copy {
  opacity: .28;
  transform: translateY(10px);
}

.landing-hero.is-entering .landing-hero__image {
  opacity: 0.95;
  transform: scale(1.02);
}

.landing-hero.is-entering .landing-hero__copy {
  opacity: .9;
  transform: translateY(-4px);
}

.landing-hero__scroll {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(0.45rem, 2.5vw);
  box-sizing: border-box;
  width: fit-content;
  max-width: min(92vw, 280px);
  margin-inline: auto;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  padding: clamp(0.45rem, 2.2vw, 0.65rem) clamp(0.75rem, 4.2vw, 1.35rem)
    clamp(0.48rem, 2.4vw, 0.7rem);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(6, 10, 20, 0.55) 45%,
    rgba(6, 10, 20, 0.65) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
  transition:
    color 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.landing-hero__scroll:hover {
  color: #fff;
  border-color: rgba(245, 130, 31, 0.55);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(245, 130, 31, 0.25) inset,
    0 16px 48px rgba(245, 130, 31, 0.22),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.landing-hero__scroll:focus-visible {
  outline: 2px solid #f5821f;
  outline-offset: 3px;
}

.landing-hero__scroll-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 32px;
  height: 36px;
  flex-shrink: 0;
  margin: 0 auto;
}

.landing-hero__scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding-bottom: 2px;
}

.landing-hero__scroll-chevron {
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: 0;
  opacity: 0.95;
  box-sizing: border-box;
}

.landing-hero__scroll-chevron--2 {
  opacity: 0.45;
  margin-top: -6px;
}

.landing-hero__scroll-line {
  display: block;
  width: 2px;
  height: 14px;
  margin: 0 auto;
  flex-shrink: 0;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(245, 130, 31, 0.9));
  opacity: 0.9;
}

.landing-hero__scroll-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-width: 0;
}

.landing-hero__scroll-text {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: center;
}

html[dir="rtl"] .landing-hero__scroll-text {
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .landing-hero__scroll-chevrons {
    animation: heroScrollChevrons 2.2s ease-in-out infinite;
  }
}

@keyframes heroScrollChevrons {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(5px); opacity: 0.85; }
}

.landing-hero__dots {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.18rem, 2.2vw, 0.45rem);
  margin-inline: auto;
  box-sizing: border-box;
  width: fit-content;
  max-width: min(96vw, 320px);
  padding: clamp(0.18rem, 2vw, 0.38rem) clamp(0.28rem, 3vw, 0.55rem);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 6, 16, 0.42);
  backdrop-filter: blur(10px);
}

.landing-hero__dot {
  width: 8px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255,255,255,.14);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.landing-hero__dot::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, #f6a34a 0%, #f5821f 100%);
  transition: height .35s ease;
}
.landing-hero__dot.is-active {
  height: 58px;
  border-color: #fff;
  box-shadow: none;
}

.landing-hero__dot.is-active::after {
  height: 100%;
  animation: heroDotProgress 4.5s linear;
}

@keyframes heroDotProgress {
  from { height: 0%; }
  to { height: 100%; }
}

@keyframes heroDotProgressX {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.landing-hero__arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(8, 12, 22, 0.45);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform .24s ease, background .22s ease, border-color .22s ease;
}

.landing-hero__arrow:hover {
  background: rgba(245,130,31,.32);
  border-color: rgba(245,130,31,.8);
  transform: scale(1.08) translateZ(14px);
}

/* صفحة الهوم (split): شبكة صفوف + مسافات نسبية؛ التمرير والنقاط داخل المحتوى وليسا طافيين */
.landing-hero--split .landing-hero__content {
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  align-content: center;
  column-gap: clamp(1rem, 4.5vw, 2.75rem);
  row-gap: min(6svh, 10%);
}

@media (min-width: 769px) {
  html[dir="ltr"] .landing-hero--split .landing-hero__copy {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }

  html[dir="ltr"] .landing-hero--split .landing-hero__media {
    grid-column: 2;
    grid-row: 1;
  }

  html[dir="rtl"] .landing-hero--split .landing-hero__copy {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  html[dir="rtl"] .landing-hero--split .landing-hero__media {
    grid-column: 1;
    grid-row: 1;
  }
}

.landing-hero--split .landing-hero__scroll {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  margin-block-start: min(4svh, 7%);
  margin-block-end: 0;
}

.landing-hero--split .landing-hero__dots {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  align-self: center;
  margin-block-start: min(2.5svh, 5%);
}

/* نقاط أفقية ضيقة بدل الشرائح العمودية */
.landing-hero--split .landing-hero__arrow {
  display: none;
}

.landing-hero--split .landing-hero__dot {
  width: clamp(6px, 2vw, 10px);
  height: clamp(5px, 1.5vw, 7px);
}

.landing-hero--split .landing-hero__dot.is-active {
  width: clamp(14px, 6vw, 32px);
  height: clamp(5px, 1.5vw, 7px);
}

.landing-hero--split .landing-hero__dot::after {
  inset-inline: 0;
  inset-block: 0;
  bottom: auto;
  height: 100%;
  width: 0%;
  transition: width 0.35s ease;
}

.landing-hero--split .landing-hero__dot.is-active::after {
  height: 100%;
  width: 100%;
  animation: heroDotProgressX 4.5s linear;
}

@media (max-width: 1100px) {
  .landing-hero--split .landing-hero__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-items: center;
    align-content: center;
    justify-items: center;
    row-gap: min(4.5svh, 7%);
    column-gap: 0;
    width: 100%;
    max-width: min(680px, 100%);
    margin-inline: auto;
    padding-inline: clamp(0.75rem, 3.5vw, 1.25rem);
    box-sizing: border-box;
  }

  html[dir="ltr"] .landing-hero--split .landing-hero__copy,
  html[dir="rtl"] .landing-hero--split .landing-hero__copy {
    grid-column: 1;
    grid-row: auto;
    order: 2;
    width: 100%;
    max-width: min(560px, 100%);
    justify-self: center;
  }

  html[dir="ltr"] .landing-hero--split .landing-hero__media,
  html[dir="rtl"] .landing-hero--split .landing-hero__media {
    grid-column: 1;
    grid-row: auto;
    order: 1;
    justify-self: center;
  }

  .landing-hero--split .landing-hero__scroll {
    grid-column: 1;
    grid-row: auto;
    order: 3;
    justify-self: center;
    margin-inline: auto;
    margin-block-start: min(3.5svh, 6%);
  }

  .landing-hero--split .landing-hero__dots {
    grid-column: 1;
    grid-row: auto;
    order: 4;
    justify-self: center;
    align-self: center;
    width: 100%;
    max-width: min(calc(100vw - 1.5rem), min(94vw, 320px));
    margin-block-start: min(2svh, 4%);
    margin-inline: auto;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    row-gap: min(0.35rem, 2vw);
  }
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #eef3ff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.05rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(245, 130, 31, 0.12) inset,
    0 6px 24px rgba(0, 0, 0, 0.18);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.3rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  min-height: 44px;
}

.landing-btn--primary {
  background: linear-gradient(135deg, #fb923c 0%, #f5821f 45%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 6px 28px rgba(245, 130, 31, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.landing-btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(245, 130, 31, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.landing-btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.landing-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.landing-btn--dark {
  background: #0f172a;
  color: #fff;
  border-color: #1e293b;
}

.landing-btn--dark:hover {
  background: #1e293b;
}

.landing-section {
  min-height: 72vh;
  padding: clamp(3rem, 7vw, 6.4rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1321;
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.landing-section--alt {
  background: #0f1a2b;
}

.landing-heading {
  max-width: 800px;
  margin-bottom: 2.2rem;
}

.landing-heading h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.5rem, 3.5vw, 2.7rem);
  color: #fff;
}

.landing-heading p:not(.landing-eyebrow) {
  margin: 0;
  color: #b5c3dd;
  line-height: 1.9;
}

.landing-heading .landing-eyebrow {
  margin-bottom: 1.05rem;
  line-height: 1.25;
  max-width: 100%;
  white-space: normal;
  text-wrap: balance;
}

.landing-feature-grid,
.landing-service-grid,
.landing-stat-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.landing-feature,
.landing-service,
.landing-stat {
  grid-column: span 4;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: none;
}

.landing-feature h3,
.landing-service h3 {
  margin: 0 0 0.45rem;
  color: #fff;
}

.landing-feature p,
.landing-service p {
  margin: 0;
  color: #b5c3dd;
  line-height: 1.8;
}

/* Smart Focus (home): Bento-friendly grid, spotlight cards, featured security row */
.smart-focus {
  --focus-ring: rgba(245, 130, 31, 0.45);
  --sf-radius: 20px;
}

.smart-focus__heading {
  text-align: center;
  margin-inline: auto;
  max-width: 920px;
}

.smart-focus__heading .landing-eyebrow {
  margin-inline: auto;
}

.smart-focus__intro {
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.85;
  color: #b5c3dd;
}

.smart-focus__grid {
  gap: 1.25rem;
}

.smart-focus__grid > .smart-focus__card {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .smart-focus__grid > .smart-focus__card:not([data-icon="shield-check"]) {
    grid-column: span 6;
  }
}

@media (min-width: 1200px) {
  .smart-focus__grid > .smart-focus__card:not([data-icon="shield-check"]) {
    grid-column: span 4;
  }
}

.smart-focus__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--sf-radius);
  padding: 1.15rem 1.2rem 1.2rem;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(200px 120px at var(--mx, 50%) var(--my, 50%), rgba(245, 130, 31, 0.16), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.smart-focus__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(245, 130, 31, 0.15), transparent 42%);
  transition: opacity .22s ease;
}

.smart-focus__card:hover::before,
.smart-focus__card.is-active::before {
  opacity: 1;
}

.smart-focus__card:hover,
.smart-focus__card.is-active {
  border-color: rgba(245, 130, 31, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.smart-focus__card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-color: rgba(245, 130, 31, 0.85);
}

.smart-focus__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(145deg, #fbbf77, #f5821f 55%, #ea6a0c);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 22px rgba(245, 130, 31, 0.28);
}

.smart-focus__icon svg {
  width: 22px;
  height: 22px;
}

.smart-focus__card h3 {
  margin: 0 0 .55rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.smart-focus__desc {
  margin: 0 0 .2rem;
}

.smart-focus__tags {
  margin: .55rem 0 0;
  padding: 0;
  font-size: .82rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #a8b8d4;
}

.smart-focus__empty {
  grid-column: 1 / -1;
  color: #b5c3dd;
  text-align: center;
  padding: 2rem 1rem;
}

/* Featured wide card: integrated security (matches CMS icon key) */
@media (min-width: 768px) {
  .smart-focus__card[data-icon="shield-check"] {
    grid-column: 1 / -1;
    text-align: start;
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 1.15rem;
    row-gap: 0.35rem;
    padding: 1.25rem 1.35rem 1.3rem;
    align-items: start;
  }

  .smart-focus__card[data-icon="shield-check"] .smart-focus__icon {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 52px;
    height: 52px;
    margin-bottom: 0;
    border-radius: 16px;
  }

  .smart-focus__card[data-icon="shield-check"] h3 {
    grid-column: 2;
    margin: 0 0 .35rem;
  }

  .smart-focus__card[data-icon="shield-check"] .smart-focus__desc {
    grid-column: 2;
    margin: 0;
  }

  .smart-focus__card[data-icon="shield-check"] .smart-focus__tags {
    grid-column: 2;
    margin-top: .45rem;
  }
}

.landing-service {
  overflow: hidden;
  padding: 0;
}

.landing-service__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.landing-service__body {
  padding: 1rem;
}

.landing-service__body a {
  color: inherit;
}

.landing-service__body .landing-btn {
  margin-top: 0.9rem;
}

.landing-stat {
  text-align: center;
  display: grid;
  gap: 0.2rem;
}

.landing-stat strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: #f8c260;
}

.landing-stat span {
  color: #cad5ea;
  font-size: 0.95rem;
}

/* Home: stats — KPI strip (framed bento) */
.home-stats.landing-section,
.home-services.landing-section {
  min-height: auto;
  padding: clamp(2.75rem, 6vw, 5.25rem) 0;
}

.home-stats {
  --hs-frame-a: rgba(245, 130, 31, 0.42);
  --hs-frame-b: rgba(255, 255, 255, 0.14);
  --hs-frame-c: rgba(255, 255, 255, 0.05);
  --hs-inner-bg: rgba(6, 11, 20, 0.88);
  --hs-card: rgba(255, 255, 255, 0.035);
  --hs-card-border: rgba(255, 255, 255, 0.1);
  --hs-card-hover: rgba(245, 130, 31, 0.22);
}

.home-stats__heading {
  text-align: center;
  margin-inline: auto;
  max-width: 720px;
  margin-bottom: clamp(1.35rem, 3.5vw, 2rem);
}

.home-stats__heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f8fafc;
}

.home-stats__heading::after {
  content: "";
  display: block;
  width: min(120px, 28vw);
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(245, 130, 31, 0.85), transparent);
  opacity: 0.9;
}

.home-stats__board {
  max-width: 1120px;
  margin-inline: auto;
  padding: 1px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    var(--hs-frame-a) 0%,
    var(--hs-frame-b) 38%,
    var(--hs-frame-c) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 64px rgba(0, 0, 0, 0.28);
}

.home-stats__board-inner {
  border-radius: 23px;
  background: var(--hs-inner-bg);
  padding: clamp(0.7rem, 2vw, 1rem);
  backdrop-filter: blur(12px);
}

.home-stats__grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .home-stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.home-stats__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 128px;
  padding: 1.35rem 0.85rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--hs-card-border);
  background:
    radial-gradient(120px 80px at 50% 0%, rgba(245, 130, 31, 0.12), transparent 65%),
    var(--hs-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease;
}

.home-stats__item:hover {
  border-color: rgba(245, 130, 31, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 16px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.home-stats__mark {
  display: block;
  width: 2.25rem;
  height: 3px;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  background: linear-gradient(90deg, #fcd34d, #f5821f 55%, #ea580c);
  box-shadow: 0 0 16px rgba(245, 130, 31, 0.35);
}

.home-stats__body {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  width: 100%;
}

.home-stats__value {
  margin: 0;
  font-size: clamp(1.7rem, 3.8vw, 2.45rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.08;
  background: linear-gradient(180deg, #fff8e7 0%, #fde68a 18%, #fbbf24 45%, #f5821f 78%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .home-stats__value {
    color: #fbbf24;
  }
}

.home-stats__label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #b4c4df;
  max-width: 15rem;
  margin-inline: auto;
  text-wrap: balance;
}

.home-stats--inview .home-stats__item {
  animation: homeStatsRise 0.68s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.home-stats--inview .home-stats__item:nth-child(1) { animation-delay: 0.04s; }
.home-stats--inview .home-stats__item:nth-child(2) { animation-delay: 0.1s; }
.home-stats--inview .home-stats__item:nth-child(3) { animation-delay: 0.16s; }
.home-stats--inview .home-stats__item:nth-child(4) { animation-delay: 0.22s; }

@keyframes homeStatsRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-stats--inview .home-stats__item {
    animation: none;
  }

  .home-stats__item:hover {
    transform: none;
  }
}

/* Home: services preview — 4 cards per row on laptop (span 3 on 12-col grid) */
.home-services__heading {
  text-align: center;
  margin-inline: auto;
  max-width: 760px;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.home-services__heading .landing-eyebrow {
  margin-inline: auto;
}

.home-services__heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f8fafc;
}

.home-services__heading::after {
  content: "";
  display: block;
  width: min(120px, 28vw);
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(245, 130, 31, 0.85), transparent);
  opacity: 0.9;
}

.home-services__intro {
  margin: 0.65rem auto 0;
  max-width: 640px;
  color: #b5c3dd;
  line-height: 1.85;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.home-services__grid {
  gap: clamp(0.75rem, 2vw, 1.1rem);
  margin-top: 0.25rem;
}

/* يتجاوز .landing-service { span 4 } الافتراضي (3 في الصف) → 4 في الصف */
.home-services__grid.landing-service-grid > .home-services__card {
  grid-column: span 3;
}

.home-services__card {
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  overflow: hidden;
  min-height: 308px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition:
    border-color 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.home-services__card:hover {
  border-color: rgba(245, 130, 31, 0.42);
  transform: translateY(-5px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 52px rgba(0, 0, 0, 0.32);
}

.home-services__card-link {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 308px;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  border-radius: 19px;
  overflow: hidden;
}

.home-services__card-link:focus-visible {
  outline: 2px solid rgba(245, 130, 31, 0.65);
  outline-offset: 3px;
}

.home-services__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.03);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-services__card:hover .home-services__img {
  transform: scale(1.08);
}

.home-services__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
}

.home-services__glow {
  position: absolute;
  inset: auto -25% -45%;
  height: 58%;
  z-index: 1;
  background: radial-gradient(ellipse 72% 58% at 50% 100%, rgba(245, 130, 31, 0.42), transparent 72%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.home-services__card:hover .home-services__glow {
  opacity: 0;
}

.home-services__content {
  position: relative;
  z-index: 2;
  padding: 1.2rem 1.25rem 1.35rem;
  display: grid;
  gap: 0.5rem;
  align-content: end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, transparent, rgba(2, 6, 14, 0.35));
}

.home-services__content h3 {
  margin: 0;
  font-size: clamp(1.06rem, 2.1vw, 1.28rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.22;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 18px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}

.home-services__content p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.62;
  color: rgba(241, 245, 249, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-services__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.42rem 0.85rem 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffedd5;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(245, 130, 31, 0.12);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.home-services__card:hover .home-services__cta {
  border-color: rgba(253, 186, 116, 0.45);
  background: rgba(245, 130, 31, 0.18);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(245, 130, 31, 0.25);
}

.home-services__cta-text {
  line-height: 1.2;
}

.home-services__cta-icon {
  font-size: 0.95em;
  transition: transform 0.2s ease;
}

.home-services__card:hover .home-services__cta-icon {
  transform: translateX(4px);
}

.home-services__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #b5c3dd;
  padding: 2.5rem 1.25rem;
  margin: 0;
  font-size: 0.95rem;
}

.home-services__foot {
  margin-top: clamp(1.75rem, 4vw, 2.35rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-services__actions {
  justify-content: center;
  margin-top: 0;
}

html[dir="rtl"] .home-services__cta-icon {
  display: inline-block;
  transform: scaleX(-1);
}

html[dir="rtl"] .home-services__card:hover .home-services__cta-icon {
  transform: scaleX(-1) translateX(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .home-services__card:hover .home-services__img {
    transform: scale(1.03);
  }

  .home-services__card:hover {
    transform: none;
  }

  .home-services__card:hover .home-services__glow {
    opacity: 0;
  }

  html[dir="rtl"] .home-services__card:hover .home-services__cta-icon {
    transform: scaleX(-1);
  }
}

/* ── Home: Why us / Projects / Testimonials / Blog (shared rhythm) ── */
.home-why.landing-section,
.home-projects.landing-section,
.home-testimonials.landing-section,
.home-blog.landing-section {
  min-height: auto;
  padding: clamp(2.65rem, 6vw, 5.25rem) 0;
}

.home-why__heading,
.home-projects__heading,
.home-testimonials__heading,
.home-blog__heading {
  text-align: center;
  margin-inline: auto;
  max-width: 760px;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.home-why__heading .landing-eyebrow,
.home-projects__heading .landing-eyebrow,
.home-testimonials__heading .landing-eyebrow,
.home-blog__heading .landing-eyebrow {
  margin-inline: auto;
}

.home-why__heading h2,
.home-projects__heading h2,
.home-testimonials__heading h2,
.home-blog__heading h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.3rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.home-why__heading h2::after,
.home-projects__heading h2::after,
.home-testimonials__heading h2::after,
.home-blog__heading h2::after {
  content: "";
  display: block;
  width: min(104px, 26vw);
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(245, 130, 31, 0.85), transparent);
}

.home-why__intro,
.home-projects__intro,
.home-testimonials__intro,
.home-blog__intro {
  margin: 0.55rem 0 0;
  color: #b5c3dd;
  line-height: 1.82;
  font-size: clamp(0.95rem, 1.5vw, 1.04rem);
}

.home-testimonials__empty {
  text-align: center;
  color: #b5c3dd;
  padding: 2rem 1rem;
  margin: 0;
}

/* Why us — feature cards */
.home-why__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-why__card {
  grid-column: span 12;
  position: relative;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(140px 90px at 50% 0%, rgba(245, 130, 31, 0.1), transparent 62%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.home-why__card:hover {
  border-color: rgba(245, 130, 31, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.home-why__mark {
  display: block;
  width: 2rem;
  height: 3px;
  border-radius: 999px;
  margin-bottom: 0.65rem;
  background: linear-gradient(90deg, #fcd34d, #f5821f 55%, #ea580c);
}

.home-why__card h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.02rem, 1.9vw, 1.14rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.home-why__card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #c5d2e8;
}

@media (min-width: 768px) {
  .home-why__card {
    grid-column: span 6;
  }
}

@media (min-width: 1100px) {
  .home-why__card {
    grid-column: span 4;
  }
}

.home-projects__grid > .home-projects__empty,
.home-blog__grid > .home-blog__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #b5c3dd;
  padding: 2rem 1rem;
  margin: 0;
}

/* Projects + blog — 3 equal columns (vs 4-col services) */
.home-projects__grid,
.home-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.6rem);
  align-items: stretch;
}

@media (max-width: 900px) {
  .home-projects__grid,
  .home-blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .home-projects__grid,
  .home-blog__grid {
    grid-template-columns: 1fr;
  }
}

.home-showcase-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 28px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-showcase-card:hover {
  border-color: rgba(245, 130, 31, 0.38);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 16px 40px rgba(0, 0, 0, 0.28);
}

.home-showcase-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.home-showcase-card__link:focus-visible {
  outline: 2px solid rgba(245, 130, 31, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

.home-showcase-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: transparent;
}

.home-showcase-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.home-showcase-card:hover .home-showcase-card__img {
  transform: scale(1.03);
}

.home-showcase-card__body {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    rgba(15, 23, 42, 0.72);
}

.home-showcase-card__title {
  margin: 0;
  font-size: clamp(0.97rem, 1.35vw, 1.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.38;
  color: #f8fafc;
}

.home-showcase-card__meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fb923c;
}

/* Testimonials — carousel */
.home-testimonials__carousel {
  --testimonials-count: 1;
  position: relative;
  max-width: min(920px, 100%);
  margin-inline: auto;
}

.home-testimonials__viewport-wrap {
  display: flex;
  align-items: stretch;
  gap: clamp(0.35rem, 2vw, 0.85rem);
}

.home-testimonials__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  outline: none;
}

/*
  Keep slide order + translateX() math stable: document is rtl (ar) but flex row
  would mirror slides. Isolate LTR on viewport/track; restore rtl on each card.
*/
.home-testimonials__viewport,
.home-testimonials__track {
  direction: ltr;
}

.home-testimonials__viewport:focus-visible {
  outline: 2px solid rgba(245, 130, 31, 0.75);
  outline-offset: 3px;
}

.home-testimonials__track {
  display: flex;
  width: calc(100% * var(--testimonials-count));
  will-change: transform;
  backface-visibility: hidden;
}

.home-testimonials__slide {
  flex: 0 0 calc(100% / var(--testimonials-count));
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
}

.home-testimonials__nav {
  flex-shrink: 0;
  align-self: center;
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: #f8fafc;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.home-testimonials__nav:hover {
  border-color: rgba(245, 130, 31, 0.45);
  color: #fdba74;
  transform: translateY(-1px);
}

.home-testimonials__nav:focus-visible {
  outline: 2px solid rgba(245, 130, 31, 0.75);
  outline-offset: 3px;
}

.home-testimonials__pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: clamp(1rem, 2.5vw, 1.35rem);
}

.home-testimonials__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    width 0.25s ease;
}

.home-testimonials__dot:hover {
  background: rgba(251, 146, 60, 0.55);
}

.home-testimonials__dot:focus-visible {
  outline: 2px solid rgba(245, 130, 31, 0.75);
  outline-offset: 2px;
}

.home-testimonials__dot.is-active {
  width: 22px;
  background: linear-gradient(90deg, #fb923c, #f97316);
  transform: translateY(-1px);
}

.home-testimonial-card {
  margin: 0;
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(245, 130, 31, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.65) 48%, rgba(5, 9, 16, 0.92) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 48px rgba(0, 0, 0, 0.28);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.home-testimonial-card:hover {
  border-color: rgba(245, 130, 31, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 22px 56px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.home-testimonial-card__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
  padding: clamp(1.15rem, 3vw, 1.65rem);
}

.home-testimonial-card__avatar-wrap {
  position: relative;
  width: clamp(4.25rem, 12vw, 5.25rem);
  height: clamp(4.25rem, 12vw, 5.25rem);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(245, 130, 31, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.home-testimonial-card__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-testimonial-card__main {
  position: relative;
  min-width: 0;
}

.home-testimonial-card__quote-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 3.25rem);
  line-height: 0.85;
  font-weight: 700;
  color: rgba(245, 130, 31, 0.35);
  margin-bottom: 0.15rem;
  user-select: none;
}

.home-testimonial-card__quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: clamp(0.92rem, 1.45vw, 1.02rem);
  line-height: 1.72;
  color: #e2e8f0;
  font-weight: 500;
}

.home-testimonial-card__quote p {
  margin: 0;
}

.home-testimonial-card__stars {
  display: flex;
  gap: 0.2rem;
  margin: 0.65rem 0 0.85rem;
}

.home-testimonial-card__star {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-block;
  background: linear-gradient(145deg, #fcd34d, #f97316);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  opacity: 0.95;
}

.home-testimonial-card__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
  text-align: start;
}

.home-testimonial-card__name {
  font-style: normal;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: inherit;
  unicode-bidi: plaintext;
}

.home-testimonial-card__role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fdba74;
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: inherit;
  unicode-bidi: plaintext;
}

/* Arabic / RTL: اتجاه النص والمحاذاة (البطاقة داخل مسار كاروسيل بـ direction: ltr) */
html[dir="rtl"] .home-testimonial-card {
  direction: rtl;
  unicode-bidi: isolate;
}

html[dir="rtl"] .home-testimonial-card__inner {
  direction: rtl;
}

html[dir="rtl"] .home-testimonial-card__main {
  direction: rtl;
  text-align: start;
}

html[dir="rtl"] .home-testimonial-card__quote-mark {
  text-align: start;
}

html[dir="rtl"] .home-testimonial-card__quote {
  direction: rtl;
  text-align: start;
}

html[dir="rtl"] .home-testimonial-card__quote p {
  unicode-bidi: plaintext;
}

html[dir="rtl"] .home-testimonial-card__stars {
  /* ترتيب النجوم ★←★←★ كما اعتياد التقييم؛ المحاذاة مع يمين النص العربي */
  direction: ltr;
  justify-content: flex-end;
}

html[dir="rtl"] .home-testimonial-card__footer {
  direction: rtl;
  text-align: start;
}

/* إنجليزي / LTR — نفس المنطق مع اتجاه صريح (البطاقة داخل مسار الكاروسيل بـ ltr) */
html[dir="ltr"] .home-testimonial-card {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="ltr"] .home-testimonial-card__inner {
  direction: ltr;
}

html[dir="ltr"] .home-testimonial-card__main {
  direction: ltr;
  text-align: start;
}

html[dir="ltr"] .home-testimonial-card__quote-mark {
  text-align: start;
}

html[dir="ltr"] .home-testimonial-card__quote {
  text-align: start;
}

html[dir="ltr"] .home-testimonial-card__stars {
  justify-content: flex-start;
}

html[dir="ltr"] .home-testimonial-card__footer {
  direction: ltr;
  text-align: start;
}

/* النقطة 1 إلى يمين القارئ في RTL */
html[dir="rtl"] .home-testimonials__pager {
  flex-direction: row-reverse;
}

@media (max-width: 560px) {
  .home-testimonials__viewport-wrap {
    flex-direction: column;
    gap: 0.65rem;
  }

  html[dir="rtl"] .home-testimonials__viewport-wrap {
    flex-direction: column;
  }

  .home-testimonials__nav {
    display: none;
  }

  .home-testimonial-card__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .home-testimonial-card__avatar-wrap {
    margin-inline: auto;
  }

  .home-testimonial-card__stars {
    justify-content: center;
  }

  .home-testimonial-card__footer {
    align-items: center;
    text-align: center;
  }

  html[dir="rtl"] .home-testimonial-card__stars {
    justify-content: center;
  }

  html[dir="rtl"] .home-testimonial-card__main,
  html[dir="rtl"] .home-testimonial-card__quote-mark,
  html[dir="rtl"] .home-testimonial-card__quote {
    text-align: center;
  }

  .home-testimonial-card__name,
  .home-testimonial-card__role {
    text-align: center;
  }
}

.home-projects__foot,
.home-blog__foot {
  margin-top: clamp(1.5rem, 3.5vw, 2.1rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-projects__actions,
.home-blog__actions {
  justify-content: center;
  margin-top: 0;
}

.landing-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(21rem, 65svh, 40rem);
  padding: clamp(2.85rem, 7vw, 4.25rem) 0;
  border-top: none;
  background: var(--footer-bg);
}

.landing-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--cta-bg-dark, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.12);
}

/* طبقة موحدة بلون الفوتر (--footer-bg من التخطيط) — قوة الشفافية من overlay */
.landing-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--footer-bg);
  opacity: clamp(0.18, calc((var(--cta-overlay, 38) / 100) * 0.92), 0.88);
  pointer-events: none;
}

.landing-cta__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-cta h2 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: clamp(1.55rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.landing-cta p {
  margin: 0;
  color: #fff;
  max-width: 40rem;
  margin-inline: auto;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.75;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.landing-cta__actions {
  margin-top: 1.35rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

body:has(> main.landing-main) .site-footer {
  margin-top: 0;
}

.landing-main .footer {
  margin-top: 0;
}

html:not(.dark) .landing-main {
  background: #f3f6fb;
  color: #0f172a;
}

html:not(.dark) .landing-hero {
  background:
    radial-gradient(circle at 10% 12%, rgba(245,130,31,0.14), transparent 36%),
    radial-gradient(circle at 85% 80%, rgba(14,165,233,0.1), transparent 42%),
    linear-gradient(140deg, #f9fbff 0%, #eef3fb 55%, #e7eef9 100%);
}

html:not(.dark) .landing-hero::before {
  opacity: .14;
}

html:not(.dark) .landing-hero-stage {
  filter: none;
}

html:not(.dark) .landing-hero__overlay {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0.3) 100%);
}

html:not(.dark) .landing-hero__copy h1 {
  color: #0b1324;
  text-shadow: 0 1px 28px rgba(255, 255, 255, 0.55);
}

html:not(.dark) .landing-hero__copy p {
  color: #334155;
}

html:not(.dark) .landing-eyebrow {
  border-color: rgba(15, 23, 42, 0.18);
  color: #334155;
  background: rgba(255, 255, 255, 0.7);
}

html:not(.dark) .landing-hero__media-frame {
  background: transparent;
  box-shadow: none;
}

html:not(.dark) .landing-hero__media-wrap {
  background: transparent;
}

html:not(.dark) .landing-hero__scroll {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.88) 50%,
    rgba(241, 245, 249, 0.92) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 10px 32px rgba(15, 23, 42, 0.08);
}

html:not(.dark) .landing-hero__scroll:hover {
  color: #0b1324;
  border-color: rgba(245, 130, 31, 0.45);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(245, 130, 31, 0.15) inset,
    0 14px 40px rgba(245, 130, 31, 0.12);
}

html:not(.dark) .landing-hero--split .landing-hero__scroll:hover {
  transform: translateY(-2px);
}

html:not(.dark) .landing-hero__scroll-line {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(245, 130, 31, 0.75));
}

/* هوم split — عرض ≥1101px فقط: تخطيط قديم؛ النقاط عمودية على جانب الشاشة؛ «استكشف» أسفل المركز؛ إطار الصورة. لا يغيّر ≤1100px (موبايل/تابلت مكدّس). */
@media (min-width: 1101px) {
  /*
   * السبب التقني لظهور «اكتشف المزيد» تحت الأزرار وليس أسفل الهيرو:
   * العنصر كان position:absolute بالنسبة لـ .landing-hero__content (مرتفع = صف الشبكة فقط)، وليس بالنسبة لكامل الـ section.
   * جعل الحاوية position: static يجعل الزر والنقاط يقيّدان بـ .landing-hero { position: relative } فيغطيان أسفل/وسط الشاشة المرئية.
   */
  .landing-hero--split .landing-shell.landing-hero__content {
    position: static;
    z-index: auto;
    grid-template-rows: auto;
    row-gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
    align-content: center;
    width: min(1240px, calc(100vw - clamp(20px, 4vw, 48px)));
    margin-inline: auto;
  }

  .landing-hero--split .landing-hero__scroll {
    position: absolute;
    z-index: 4;
    bottom: clamp(1.15rem, 3.5svh, 2rem);
    left: 50%;
    right: auto;
    inset-inline: unset;
    transform: translate(-50%, 0);
    grid-column: unset;
    grid-row: unset;
    margin-block-start: 0;
    margin-inline: 0;
  }

  .landing-hero--split .landing-hero__scroll:hover {
    transform: translate(-50%, -3px);
  }

  .landing-hero--split .landing-hero__dots {
    position: absolute;
    z-index: 3;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 0.65rem;
    width: auto;
    max-width: none;
    margin-inline: unset;
    margin-block: unset;
    margin: 0;
    padding: 0.75rem 0.55rem;
    flex-direction: unset;
    flex-wrap: nowrap;
    justify-content: unset;
    align-content: unset;
    margin-block-start: 0;
    min-height: 0;
    grid-column: unset;
    grid-row: unset;
    justify-self: unset;
    align-self: unset;
    order: unset;
    /* لا تمركز أفقي — يحدد الجانب قواعد dir أدناه */
    inset-inline-start: unset;
    inset-inline-end: unset;
    left: unset;
    right: unset;
  }

  /* LTR: يسار الهيرو (طرف الشاشة للاتجاه الإنجليزي) */
  html[dir="ltr"] .landing-hero--split .landing-hero__dots {
    left: clamp(8px, 1.4vw, 22px);
    right: auto;
    inset-inline-start: clamp(8px, 1.4vw, 22px);
    inset-inline-end: auto;
  }

  /* RTL: يمين الهيرو (= بداية القراءة للعربية) */
  html[dir="rtl"] .landing-hero--split .landing-hero__dots {
    right: clamp(8px, 1.4vw, 22px);
    left: auto;
    inset-inline-end: clamp(8px, 1.4vw, 22px);
    inset-inline-start: auto;
  }

  .landing-hero--split .landing-hero__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .landing-hero--split .landing-hero__dot {
    width: 8px;
    height: 26px;
    min-width: 0;
    min-height: 0;
  }

  .landing-hero--split .landing-hero__dot.is-active {
    width: 8px;
    height: 58px;
    min-width: 0;
    min-height: 0;
  }

  .landing-hero--split .landing-hero__dot::after {
    inset-inline: 0;
    inset-block: unset;
    bottom: 0;
    top: auto;
    height: 0%;
    width: auto;
    transition: height 0.35s ease;
  }

  .landing-hero--split .landing-hero__dot.is-active::after {
    height: 100%;
    width: auto;
    animation: heroDotProgress 4.5s linear;
  }

  /* إطار أوضح قليلاً من min(520px) ليعطي إحساس «طفو» داخل العمود */
  .landing-hero--split .landing-hero__media-frame {
    width: min(560px, 100%);
    padding: 3px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(245, 130, 31, 0.55), rgba(56, 189, 248, 0.35), rgba(16, 185, 129, 0.35));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 24px 80px rgba(0, 0, 0, 0.45),
      0 0 60px rgba(245, 130, 31, 0.12);
  }

  html[dir="ltr"] .landing-hero--split .landing-hero__media {
    justify-content: flex-end;
  }

  html[dir="rtl"] .landing-hero--split .landing-hero__media {
    justify-content: flex-start;
  }

  .landing-hero--split .landing-hero__media-frame::after {
    content: "";
    display: block;
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.06));
    pointer-events: none;
    z-index: 1;
  }

  .landing-hero--split .landing-hero__media-wrap {
    background: rgba(6, 10, 20, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  html:not(.dark) .landing-hero--split .landing-hero__media-frame {
    background: linear-gradient(135deg, rgba(245, 130, 31, 0.35), rgba(14, 165, 233, 0.28), rgba(16, 185, 129, 0.22));
    box-shadow:
      0 0 0 1px rgba(15, 23, 42, 0.06) inset,
      0 20px 60px rgba(15, 23, 42, 0.12),
      0 0 40px rgba(245, 130, 31, 0.08);
  }

  html:not(.dark) .landing-hero--split .landing-hero__media-wrap {
    background: rgba(255, 255, 255, 0.55);
  }

  html:not(.dark) .landing-hero--split .landing-hero__scroll:hover {
    transform: translate(-50%, -3px);
  }
}

html:not(.dark) .landing-btn--ghost {
  border-color: rgba(15, 23, 42, 0.28);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.78);
}

html:not(.dark) .landing-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.95);
}

html:not(.dark) .landing-section {
  background: #f8fbff;
  border-top-color: rgba(15, 23, 42, 0.08);
}

html:not(.dark) .landing-section--alt {
  background: #eef3fb;
}

html:not(.dark) .landing-heading h2,
html:not(.dark) .landing-feature h3,
html:not(.dark) .landing-service h3 {
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

html:not(.dark) .landing-heading p,
html:not(.dark) .landing-feature p,
html:not(.dark) .landing-service p,
html:not(.dark) .landing-stat span {
  color: #475569;
}

html:not(.dark) .landing-cta h2,
html:not(.dark) .landing-cta p {
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

html:not(.dark) .landing-cta .landing-btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

html:not(.dark) .landing-cta .landing-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

html:not(.dark) .landing-feature,
html:not(.dark) .landing-service,
html:not(.dark) .landing-stat {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

html:not(.dark) .home-stats {
  --hs-frame-a: rgba(245, 130, 31, 0.55);
  --hs-frame-b: rgba(148, 163, 184, 0.35);
  --hs-frame-c: rgba(255, 255, 255, 0.65);
  --hs-inner-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  --hs-card: rgba(255, 255, 255, 0.72);
  --hs-card-border: rgba(15, 23, 42, 0.1);
  --hs-card-hover: rgba(245, 130, 31, 0.18);
}

html:not(.dark) .home-stats__heading h2 {
  color: #0f172a;
}

html:not(.dark) .home-stats__board {
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 22px 48px rgba(15, 23, 42, 0.1);
}

html:not(.dark) .home-stats__item {
  background:
    radial-gradient(120px 80px at 50% 0%, rgba(245, 130, 31, 0.1), transparent 65%),
    var(--hs-card);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

html:not(.dark) .home-stats__item:hover {
  border-color: rgba(245, 130, 31, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 32px rgba(15, 23, 42, 0.08);
}

html:not(.dark) .home-stats__label {
  color: #64748b;
}

html:not(.dark) .home-services__heading h2 {
  color: #0f172a;
}

html:not(.dark) .home-services__intro {
  color: #64748b;
}

html:not(.dark) .home-services__card {
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 32px rgba(15, 23, 42, 0.06);
}

html:not(.dark) .home-services__card:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 22px 48px rgba(15, 23, 42, 0.1);
}

html:not(.dark) .home-services__card.landing-service {
  background: transparent;
}

html:not(.dark) .home-services__content {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, transparent, rgba(2, 6, 14, 0.42));
}

html:not(.dark) .home-services__content h3 {
  color: #fff;
}

html:not(.dark) .home-services__content p {
  color: rgba(248, 250, 252, 0.92);
}

html:not(.dark) .home-services__cta {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.38);
}

html:not(.dark) .home-services__card:hover .home-services__cta {
  background: rgba(245, 130, 31, 0.22);
  border-color: rgba(253, 186, 116, 0.5);
}

html:not(.dark) .home-services__foot {
  border-top-color: rgba(15, 23, 42, 0.1);
}

html:not(.dark) .home-services__empty {
  color: #64748b;
}

html:not(.dark) .home-why__intro,
html:not(.dark) .home-projects__intro,
html:not(.dark) .home-testimonials__intro,
html:not(.dark) .home-blog__intro {
  color: #64748b;
}

html:not(.dark) .home-why__heading h2,
html:not(.dark) .home-projects__heading h2,
html:not(.dark) .home-testimonials__heading h2,
html:not(.dark) .home-blog__heading h2 {
  color: #0f172a;
}

html:not(.dark) .home-why__card {
  border-color: rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(140px 90px at 50% 0%, rgba(245, 130, 31, 0.08), transparent 62%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

html:not(.dark) .home-why__card h3 {
  color: #0f172a;
}

html:not(.dark) .home-why__card p {
  color: #475569;
}

html:not(.dark) .home-testimonials__empty {
  color: #64748b;
}

html:not(.dark) .home-testimonial-card {
  border-color: rgba(15, 23, 42, 0.1);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(245, 130, 31, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 40px rgba(15, 23, 42, 0.08);
}

html:not(.dark) .home-testimonial-card__quote-mark {
  color: rgba(245, 130, 31, 0.28);
}

html:not(.dark) .home-testimonial-card__quote {
  color: #475569;
}

html:not(.dark) .home-testimonial-card__name {
  color: #0f172a;
}

html:not(.dark) .home-testimonial-card__role {
  color: #c2410c;
}

html:not(.dark) .home-testimonial-card__footer {
  border-top-color: rgba(15, 23, 42, 0.08);
}

html:not(.dark) .home-testimonials__nav {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

html:not(.dark) .home-testimonials__nav:hover {
  border-color: rgba(245, 130, 31, 0.45);
  color: #c2410c;
}

html:not(.dark) .home-testimonials__dot {
  background: rgba(100, 116, 139, 0.35);
}

html:not(.dark) .home-testimonials__dot:hover {
  background: rgba(251, 146, 60, 0.45);
}

html:not(.dark) .home-showcase-card {
  border-color: rgba(15, 23, 42, 0.1);
  background: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 36px rgba(15, 23, 42, 0.08);
}

html:not(.dark) .home-showcase-card:hover {
  border-color: rgba(245, 130, 31, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 22px 48px rgba(15, 23, 42, 0.12);
}

html:not(.dark) .home-showcase-card__title {
  color: #0f172a;
}

html:not(.dark) .home-showcase-card__meta {
  color: #c2410c;
}

html:not(.dark) .home-showcase-card__media {
  background: transparent;
}

html:not(.dark) .home-showcase-card__body {
  border-top-color: rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

html:not(.dark) .home-projects__foot,
html:not(.dark) .home-blog__foot {
  border-top-color: rgba(15, 23, 42, 0.1);
}

html:not(.dark) .smart-focus__card {
  border-color: rgba(15, 23, 42, 0.16);
  background:
    radial-gradient(160px 90px at var(--mx, 50%) var(--my, 50%), rgba(245,130,31,0.12), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.98), rgba(255,255,255,0.9));
}

html:not(.dark) .smart-focus__card h3 {
  color: #0f172a;
}

html:not(.dark) .smart-focus__card p,
html:not(.dark) .smart-focus__empty {
  color: #475569;
}

html:not(.dark) .smart-focus__intro {
  color: #64748b;
}

html:not(.dark) .smart-focus__tags {
  color: #64748b;
}

html:not(.dark) .landing-btn--dark {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

html:not(.dark) .landing-btn--dark:hover {
  background: #1e293b;
}

html:not(.dark) .landing-hero__dot {
  border-color: rgba(15, 23, 42, 0.5);
  background: rgba(15, 23, 42, 0.12);
}

html:not(.dark) .landing-hero__dot.is-active {
  border-color: #0f172a;
}

html:not(.dark) .landing-hero__arrow {
  border-color: rgba(15, 23, 42, 0.24);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
}

html:not(.dark) .landing-hero__arrow:hover {
  background: rgba(255, 255, 255, 1);
}

html:not(.dark) .landing-cta {
  background: var(--footer-bg);
  border-top: none;
}

html:not(.dark) .landing-cta__bg {
  background-image: var(--cta-bg-light, var(--cta-bg-dark));
  background-size: cover;
  background-position: center center;
}

@media (max-width: 1100px) {
  .landing-hero-stage {
    width: 100%;
  }
  .landing-hero__content {
    grid-template-columns: 1fr;
    gap: min(6svh, 9%);
    padding-top: clamp(5.65rem, min(12svh, 15vmin), 7rem);
    padding-inline: clamp(.8rem, 3vw, 1.2rem);
  }
  /* نفس نسبة 4:3 على الحاوية — لا نغيّر النسبة هنا لتفادي قفز المساحة بين نقاط الكسر */
  .landing-hero__media-frame {
    max-width: min(640px, 100%);
  }
  .landing-feature,
  .landing-service,
  .landing-stat {
    grid-column: span 6;
  }

  .home-services__grid.landing-service-grid > .home-services__card {
    grid-column: span 6;
  }

  .smart-focus__card {
    text-align: center;
    padding: 1rem;
  }
  .smart-focus__tags {
    text-align: start;
  }
}

@media (max-width: 720px) {
  /* Mobile hero: full-bleed; svh+dvh يخفّف قصّ المحتوى مع اختلاف أطوال الشاشات والشريط */
  .landing-hero {
    border-radius: 0;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }
  .landing-hero__content {
    padding-top: clamp(5.25rem, min(11svh, 18vmin), 6.75rem);
    padding-bottom: clamp(3.35rem, min(8svh, 14vmin), 5.65rem);
  }

  .landing-hero--split .landing-hero__scroll {
    flex-direction: row;
    align-items: center;
    max-width: min(152px, 42vw);
    padding: clamp(0.2rem, 2vw, 0.28rem) clamp(0.45rem, 4vw, 0.55rem);
  }

  .landing-hero--split .landing-hero__dots {
    width: 100%;
    max-width: min(calc(100% - 0.75rem), min(92vw, 300px));
    min-height: clamp(2.05rem, 7vmin, 2.75rem);
    margin-inline: auto;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    gap: clamp(0.2rem, 3vmin, 0.42rem);
    row-gap: min(0.32rem, 2.5vmin);
    padding-block: clamp(0.28rem, 3vmin, 0.45rem);
    padding-inline: clamp(0.32rem, 4vmin, 0.55rem);
    box-sizing: border-box;
  }

  .landing-hero--split .landing-hero__dot {
    width: clamp(8px, 2.6vmin, 11px);
    height: clamp(8px, 2.6vmin, 11px);
    min-width: 8px;
    min-height: 8px;
  }

  .landing-hero--split .landing-hero__dot.is-active {
    width: clamp(26px, 14vmin, 42px);
    height: clamp(8px, 2.6vmin, 11px);
    min-width: 26px;
  }

  .landing-hero__arrow {
    width: 44px;
    height: 44px;
  }
  .landing-section {
    min-height: auto;
  }
  .landing-feature,
  .landing-service,
  .landing-stat {
    grid-column: span 12;
  }
  .landing-btn {
    width: 100%;
  }

  .landing-hero--split .landing-actions .landing-btn {
    width: auto;
    max-width: min(288px, 88vw);
  }

  .landing-hero__copy {
    overflow-wrap: anywhere;
  }

  .landing-hero:not(.landing-hero--split) .landing-hero__copy h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
    line-height: 1.2;
  }

  .landing-hero:not(.landing-hero--split) .landing-hero__copy p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .landing-hero--split .landing-hero__copy h1 {
    font-size: clamp(1.28rem, 6.5vw, 1.78rem);
    line-height: 1.17;
  }

  .landing-hero--split .landing-hero__copy p {
    font-size: 0.88rem;
    line-height: 1.65;
  }
  .landing-heading p:not(.landing-eyebrow),
  .landing-feature p,
  .landing-service p {
    font-size: .98rem;
    line-height: 1.75;
  }

  .landing-heading .landing-eyebrow {
    font-size: 0.72rem;
    padding: 0.42rem 0.8rem;
    margin-bottom: 0.85rem;
  }
  .landing-service__image {
    height: 200px;
  }

  .home-services__card,
  .home-services__card-link {
    min-height: 272px;
  }

  .home-services__foot {
    padding-top: 1.25rem;
    margin-top: 1.5rem;
  }

  .home-stats__item {
    min-height: 118px;
    padding: 1.15rem 0.7rem 1.2rem;
  }

  .home-stats__value {
    font-size: clamp(1.55rem, 6vw, 2.1rem);
  }

  .smart-focus__icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-bottom: .55rem;
  }
  .smart-focus__card h3 {
    font-size: 1rem;
  }
  .smart-focus__card p {
    font-size: .95rem;
    line-height: 1.65;
  }
  .smart-focus__tags {
    font-size: .8rem;
  }
}

@media (max-width: 768px) {
  /* Home split hero: المحتوى متمركز أفقياً وعمودياً داخل مساحة الهيرو */
  .landing-hero--split {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .landing-hero--split .landing-hero__content {
    width: 100%;
    max-width: min(680px, 100%);
    margin-inline: auto;
    min-height: min-content;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    align-content: center;
    justify-items: center;
    text-align: center;
    /* min(svh, vmin): يهدّئ الحشو على الشاشات المنخفضة جداً والعرض الأفقي */
    padding-top: clamp(4.35rem, min(10svh, 17vmin), 6rem);
    /* مساحة آمنة أسفل المحتوى حتى لا يغطي شريط التمرير والنقاط على أزرار الـ CTA */
    padding-bottom: clamp(3.15rem, min(11svh, 15vmin), 6rem);
    box-sizing: border-box;
  }

  .landing-hero--split .landing-hero__media {
    order: 1 !important;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .landing-hero--split .landing-hero__media-frame {
    margin-inline: auto;
    width: min(100%, 520px);
  }

  .landing-hero--split .landing-hero__image {
    display: block;
    margin-inline: auto;
  }

  .landing-hero--split .landing-hero__copy {
    order: 2 !important;
    width: 100%;
    max-width: 560px;
    display: grid;
    justify-items: center;
    align-items: center;
    text-align: center !important;
  }

  .landing-hero--split .landing-hero__media-wrap {
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .landing-actions {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .landing-actions .landing-btn {
    max-width: 360px;
  }

  .landing-hero--split .landing-actions {
    gap: 0.55rem;
    margin-top: 1.15rem;
  }

  .landing-hero--split .landing-actions .landing-btn {
    width: auto;
    min-width: 0;
    max-width: min(300px, 90vw);
    padding: 0.52rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 40px;
  }

  .landing-hero--split .landing-hero__copy .landing-eyebrow {
    font-size: 0.72rem;
    padding: 0.38rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  .landing-hero--split .landing-hero__copy h1 {
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
    line-height: 1.18;
    margin-bottom: 0.85rem;
  }

  .landing-hero--split .landing-hero__copy p {
    font-size: 0.92rem;
    line-height: 1.68;
    max-width: 34rem;
  }

  /* شريط «استكشف المزيد»: أفقي داخل التدفق — لا يُبقى كطافٍ */
  .landing-hero--split .landing-hero__scroll {
    order: 3;
    justify-self: center;
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: min(0.35rem, 2.5vw);
    min-width: 0;
    width: auto;
    max-width: min(168px, 46vw);
    padding: clamp(0.22rem, 2.3vw, 0.32rem) clamp(0.45rem, 4vw, 0.6rem);
    margin-block-start: min(3.5svh, 6%);
    transform: none;
  }

  .landing-hero--split .landing-hero__scroll-graphic {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .landing-hero--split .landing-hero__scroll-chevrons {
    flex-direction: row;
    gap: 2px;
    padding-bottom: 0;
  }

  .landing-hero--split .landing-hero__scroll-chevron--2 {
    display: none;
  }

  .landing-hero--split .landing-hero__scroll-chevron {
    width: 6px;
    height: 6px;
    margin-top: 0;
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
  }

  .landing-hero--split .landing-hero__scroll-line {
    display: none;
  }

  .landing-hero--split .landing-hero__scroll-label {
    width: auto;
  }

  .landing-hero--split .landing-hero__scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  html[dir="rtl"] .landing-hero--split .landing-hero__scroll-text {
    font-size: 0.67rem;
    letter-spacing: 0.02em;
  }

  html[dir="rtl"] .landing-hero--split .landing-hero__scroll {
    flex-direction: row-reverse;
  }

  .landing-hero--split .landing-hero__scroll:hover {
    transform: translateY(-2px);
  }

  .landing-hero--split .landing-hero__scroll-chevrons {
    animation: none;
  }

  .landing-hero--split .landing-hero__dots {
    order: 4;
    grid-column: 1 / -1;
    justify-self: center;
    align-self: center;
    width: 100%;
    max-width: min(calc(100% - 1rem), min(94vw, 300px));
    min-height: clamp(2.15rem, 7.5vmin, 2.85rem);
    margin-inline: auto;
    margin-block-start: min(2svh, 4%);
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    gap: clamp(0.22rem, 3vmin, 0.45rem);
    row-gap: min(0.35rem, 2.5vmin);
    padding-block: clamp(0.32rem, 3vmin, 0.5rem);
    padding-inline: clamp(0.35rem, 4.5vmin, 0.65rem);
    transform: none;
    inset-inline: auto;
    box-sizing: border-box;
  }

  /* أبعاد موحّدة للموبايل: نقطة صغيرة مربّعة تقريباً، والنشطة شريط عريض بنفس الارتفاع */
  .landing-hero--split .landing-hero__dot {
    box-sizing: border-box;
    flex-shrink: 0;
    width: clamp(8px, 2.6vmin, 11px);
    height: clamp(8px, 2.6vmin, 11px);
    min-width: 8px;
    min-height: 8px;
    border-radius: 999px;
  }

  .landing-hero--split .landing-hero__dot.is-active {
    width: clamp(26px, 15vmin, 44px);
    height: clamp(8px, 2.6vmin, 11px);
    min-width: 26px;
    min-height: clamp(8px, 2.6vmin, 11px);
  }
}

@media (max-width: 480px) {
  /* Extra-small phones (320-480): reduce visual noise and keep controls touch-friendly */
  .landing-hero__content {
    gap: min(1.1rem, 4vmin);
    padding-inline: .85rem;
    padding-bottom: clamp(3.75rem, min(13vmin, 11svh), 5.75rem);
  }

  .landing-hero--split .landing-hero__content {
    padding-bottom: clamp(3.5rem, min(13vmin, 12svh), 6rem);
  }

  .landing-hero__media-wrap {
    width: min(96vw, 420px);
    max-height: clamp(10.5rem, min(36svh, 42vmin), 22rem);
  }

  .landing-hero--split .landing-hero__media-wrap {
    margin-inline: auto;
    width: min(94vw, 400px);
  }

  .landing-hero--split .landing-hero__dots {
    width: 100%;
    max-width: min(calc(100% - 0.5rem), min(94vw, 280px));
    min-height: clamp(2rem, 8vmin, 2.65rem);
    margin-inline: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: min(0.2rem, 3.2vmin);
    row-gap: min(0.3rem, 3.5vmin);
    padding-block: clamp(0.28rem, 3.2vmin, 0.48rem);
    padding-inline: clamp(0.3rem, 4vmin, 0.55rem);
    box-sizing: border-box;
  }

  .landing-hero--split .landing-hero__dot {
    width: clamp(8px, 3vmin, 12px);
    height: clamp(8px, 3vmin, 12px);
    min-width: 8px;
    min-height: 8px;
  }

  .landing-hero--split .landing-hero__dot.is-active {
    width: clamp(28px, 16vmin, 46px);
    height: clamp(8px, 3vmin, 12px);
    min-width: 28px;
  }

  .landing-hero--split .landing-hero__scroll {
    max-width: min(148px, 44vw);
  }

  .landing-hero__dots {
    gap: min(0.3rem, 2.5vw);
    padding: min(0.26rem, 3vw) min(0.36rem, 4vw);
  }
  .landing-hero__arrow {
    display: none;
  }
  .landing-hero__dot {
    width: 12px;
    height: 6px;
  }
  .landing-hero__dot.is-active {
    width: 24px;
    height: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .landing-hero__image,
  .landing-hero__copy,
  .landing-hero__dot,
  .landing-hero__arrow,
  .landing-hero__media-wrap,
  .landing-hero__media-frame,
  .landing-hero__scroll-chevrons {
    transition: none !important;
    animation: none !important;
  }
}

/* ═══ About page (من نحن) — أقسام أوضاح + تباين داكن/فاتح ═══ */
.about-page .landing-section:not(.home-stats) {
  min-height: auto;
  contain-intrinsic-size: auto;
  padding-block: clamp(2.45rem, 5vw, 4.1rem);
}

/* عناوين موحّدة (شارة + عنوان + خط تحتية) */
.about-page .about-page__block-head {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(1.35rem, 2.8vw, 2.05rem);
}

.about-page .about-page__block-head .landing-eyebrow {
  margin-inline: auto;
}

.about-page .about-page__block-head h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.22rem, 2.7vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f8fafc;
}

.about-page .about-page__block-head h2::after {
  content: "";
  display: block;
  width: min(104px, 26vw);
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(245, 130, 31, 0.88), transparent);
}

/* هيرو: مكوّن page-hero الموحّد */

/* قصتنا */
.about-page__story-head {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.85rem);
}

.about-page__story-grid {
  display: grid;
  gap: clamp(1.35rem, 2.8vw, 2.25rem);
  align-items: stretch;
}

@media (min-width: 900px) {
  .about-page__story-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.about-page__story-panel {
  padding: clamp(1.1rem, 2.2vw, 1.45rem);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(245, 130, 31, 0.08), transparent 55%),
    rgba(6, 11, 20, 0.55);
}

.about-page__founded {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 130, 31, 0.38);
  background: rgba(245, 130, 31, 0.12);
  font-size: 0.9rem;
  color: #fdba74;
}

.about-page__founded strong {
  font-size: 1.32rem;
  font-weight: 800;
  color: #fff;
}

.about-page__richtext {
  color: #c5d2e8;
  font-size: clamp(0.94rem, 1.35vw, 1.02rem);
  line-height: 1.88;
}

.about-page__richtext p {
  margin: 0 0 1rem;
}

.about-page__richtext p:last-child {
  margin-bottom: 0;
}

.about-page__richtext strong {
  color: #f1f5f9;
}

.about-page__richtext a {
  color: #fb923c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-page__richtext a:hover {
  color: #fdba74;
}

.about-page__story-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.about-page__story-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.about-page__story-caption {
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* رسالة / رؤية */
.about-page__mv {
  padding: clamp(2.45rem, 5vw, 4.1rem) 0;
}

.about-page__mv-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 768px) {
  .about-page__mv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-page__mv-card {
  padding: 1.4rem 1.35rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(140px 90px at 10% 0%, rgba(245, 130, 31, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.about-page__mv-card:hover {
  border-color: rgba(245, 130, 31, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.about-page__mv-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: rgba(245, 130, 31, 0.16);
  color: #fb923c;
}

.about-page__mv-icon-svg {
  width: 1.5rem;
  height: 1.5rem;
}

.about-page__mv-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
}

.about-page__mv-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #b5c3dd;
}

.about-page__stats {
  padding: clamp(2.45rem, 5vw, 4rem) 0;
}

.about-page__values {
  padding: clamp(2.45rem, 5vw, 4.1rem) 0;
}

.about-page__values-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .about-page__values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .about-page__values-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.about-page__value-card {
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    rgba(15, 23, 42, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.about-page__value-card:hover {
  border-color: rgba(245, 130, 31, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.about-page__value-icon {
  display: flex;
  margin-bottom: 0.65rem;
  color: #fb923c;
}

.about-page__value-icon-svg {
  width: 1.4rem;
  height: 1.4rem;
}

.about-page__value-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
}

.about-page__value-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.68;
  color: #94a3b8;
}

.about-page__team {
  padding: clamp(2.45rem, 5vw, 4.1rem) 0;
}

.about-page__team-intro {
  margin: 0.75rem auto 0;
  max-width: 640px;
  color: #b5c3dd;
  line-height: 1.82;
  font-size: clamp(0.94rem, 1.4vw, 1.02rem);
}

.about-page__team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .about-page__team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.about-page__team-card {
  padding: 1.05rem 0.85rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 45%),
    rgba(2, 6, 14, 0.58);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-page__team-card:hover {
  border-color: rgba(245, 130, 31, 0.32);
  transform: translateY(-2px);
}

.about-page__team-avatar {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(245, 130, 31, 0.4);
}

.about-page__team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page__team-body h3 {
  margin: 0 0 0.28rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}

.about-page__team-body p {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}

.about-page__team-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fb923c;
}

.about-page__team-photo {
  margin: clamp(1.65rem, 3.5vw, 2.35rem) 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

.about-page__team-photo img {
  width: 100%;
  display: block;
  max-height: min(400px, 46vw);
  object-fit: cover;
}

.about-page__partners {
  padding: clamp(2.45rem, 5vw, 4rem) 0;
}

.about-page__partners-head p {
  margin: 0.55rem auto 0;
  max-width: 640px;
  color: #b5c3dd;
  line-height: 1.78;
}

.about-page__partners-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .about-page__partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .about-page__partners-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.about-page__partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 104px;
  padding: 0.85rem 0.6rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.about-page__partner-card:hover {
  border-color: rgba(245, 130, 31, 0.35);
  background: rgba(245, 130, 31, 0.06);
}

.about-page__partner-brand {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-page__partner-img {
  max-width: 100%;
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.2);
  opacity: 0.9;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.about-page__partner-card:hover .about-page__partner-img {
  filter: grayscale(0.15) brightness(1.05);
  opacity: 1;
}

.about-page__partner-fallback {
  font-size: 0.76rem;
  font-weight: 800;
  color: #e2e8f0;
  text-align: center;
  line-height: 1.25;
}

.about-page__partner-type {
  font-size: 0.66rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}

.about-page__certs {
  padding: clamp(2.45rem, 5vw, 4rem) 0;
}

.about-page__certs-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .about-page__certs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .about-page__certs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.about-page__cert-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.05rem 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(245, 130, 31, 0.06), transparent 55%),
    rgba(15, 23, 42, 0.45);
  transition: border-color 0.2s ease;
}

.about-page__cert-card:hover {
  border-color: rgba(245, 130, 31, 0.3);
}

.about-page__cert-icon {
  flex-shrink: 0;
  color: #fb923c;
}

.about-page__cert-icon-svg {
  width: 1.35rem;
  height: 1.35rem;
}

.about-page__cert-title {
  margin: 0 0 0.22rem;
  font-size: 0.87rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.38;
}

.about-page__cert-year {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

/* ── فاتح: عناوين + نصوص + بطاقات ── */
html:not(.dark) .about-page .about-page__block-head h2 {
  color: #0f172a;
  text-shadow: none;
}

html:not(.dark) .about-page__story-panel {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

html:not(.dark) .about-page__founded {
  color: #9a3412;
  border-color: rgba(245, 130, 31, 0.45);
  background: rgba(255, 237, 213, 0.85);
}

html:not(.dark) .about-page__founded strong {
  color: #7c2d12;
}

html:not(.dark) .about-page__richtext {
  color: #475569;
}

html:not(.dark) .about-page__richtext strong {
  color: #0f172a;
}

html:not(.dark) .about-page__story-media {
  border-color: rgba(15, 23, 42, 0.1);
  background: transparent;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

html:not(.dark) .about-page__story-caption {
  color: #64748b;
  border-top-color: rgba(15, 23, 42, 0.08);
}

html:not(.dark) .about-page__mv-card {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

html:not(.dark) .about-page__mv-card h3 {
  color: #0f172a;
}

html:not(.dark) .about-page__mv-card p {
  color: #64748b;
}

html:not(.dark) .about-page__mv-icon {
  background: rgba(245, 130, 31, 0.14);
  color: #c2410c;
}

html:not(.dark) .about-page__value-card {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html:not(.dark) .about-page__value-card h3 {
  color: #0f172a;
}

html:not(.dark) .about-page__value-card p {
  color: #64748b;
}

html:not(.dark) .about-page__team-intro,
html:not(.dark) .about-page__partners-head p {
  color: #64748b;
}

html:not(.dark) .about-page__team-card {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

html:not(.dark) .about-page__team-body h3 {
  color: #0f172a;
}

html:not(.dark) .about-page__team-body p {
  color: #64748b;
}

html:not(.dark) .about-page__partner-card {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
}

html:not(.dark) .about-page__partner-img {
  filter: grayscale(0.25) opacity(0.92);
}

html:not(.dark) .about-page__partner-card:hover .about-page__partner-img {
  filter: none;
  opacity: 1;
}

html:not(.dark) .about-page__partner-fallback {
  color: #0f172a;
}

html:not(.dark) .about-page__partner-type {
  color: #64748b;
}

html:not(.dark) .about-page__cert-card {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

html:not(.dark) .about-page__cert-title {
  color: #0f172a;
}

html:not(.dark) .about-page__cert-year {
  color: #94a3b8;
}

html:not(.dark) .about-page__cert-icon {
  color: #c2410c;
}

/* ── Services page (CMS + catalog) ── */
.services-page__block-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: #f8fafc;
}

.services-page__block-head p {
  margin: 0;
  max-width: 52rem;
  color: #94a3b8;
  font-size: 0.98rem;
}

.services-page__empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #94a3b8;
}

.services-page__process-head .landing-eyebrow {
  margin-bottom: 0.5rem;
}

.services-page__process-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .services-page__process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .services-page__process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.services-page__process-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.42);
}

.services-page__process-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(245, 130, 31, 0.12);
  color: #fb923c;
}

.services-page__process-icon-svg {
  width: 1.35rem;
  height: 1.35rem;
}

.services-page__process-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.services-page__process-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.services-page__process-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
}

.services-page__brands-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.services-page__brand-card {
  margin: 0;
}

.services-page__brand-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.services-page__brand-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.services-page__brand-link:hover .services-page__brand-inner,
.services-page__brand-link:focus-visible .services-page__brand-inner {
  border-color: rgba(245, 130, 31, 0.35);
  transform: translateY(-2px);
}

.services-page__brand-img {
  max-width: 100%;
  max-height: 2.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.35) brightness(1.05);
  opacity: 0.9;
}

.services-page__brand-fallback {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  text-align: center;
}

/* ── Projects page ── */
.projects-page__block-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: #f8fafc;
}

.projects-page__block-head p {
  margin: 0;
  max-width: 48rem;
  color: #94a3b8;
  font-size: 0.98rem;
}

/* تصفية المشاريع/المدونة — select موحّد */
.projects-page__filter {
  margin-top: 1.5rem;
  max-width: min(22rem, 100%);
  margin-inline: auto;
}

.projects-page__select {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  padding-block: 0.65rem;
  padding-inline: 0.9rem 2.75rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #e2e8f0;
  color-scheme: dark;
  background-color: rgba(15, 23, 42, 0.75);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[dir="rtl"] .projects-page__select {
  background-position: left 0.75rem center;
}

.projects-page__select:hover {
  border-color: rgba(245, 130, 31, 0.38);
}

.projects-page__select:focus {
  outline: none;
  border-color: rgba(245, 130, 31, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 130, 31, 0.22);
}

.projects-page__select:focus-visible {
  outline: none;
}

@media (max-width: 640px) {
  .projects-page__select {
    font-size: 1rem;
  }
}

html.dark .projects-page__select option {
  background-color: #0f172a;
  color: #e2e8f0;
}

.projects-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.projects-page__grid--dense {
  margin-top: 1.25rem;
}

.projects-page__card {
  height: 100%;
}

.projects-page__empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #94a3b8;
}

.projects-page__pagination {
  margin-top: 2rem;
}

.projects-page__pagination nav {
  display: flex;
  justify-content: center;
}

.projects-page__pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.projects-page__pagination .pagination li a,
.projects-page__pagination .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.5rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.4);
  color: #e2e8f0;
}

.projects-page__pagination .pagination li.active span {
  border-color: rgba(245, 130, 31, 0.55);
  background: rgba(245, 130, 31, 0.15);
  color: #fdba74;
}

.projects-page__pagination .pagination li.disabled span {
  opacity: 0.45;
  cursor: default;
}

.projects-page__pagination .pagination li a:hover {
  border-color: rgba(245, 130, 31, 0.45);
  color: #fff;
}

/* Light theme: services + projects */
html:not(.dark) .services-page__block-head h2,
html:not(.dark) .projects-page__block-head h2 {
  color: #0f172a;
  text-shadow: none;
}

html:not(.dark) .services-page__block-head p,
html:not(.dark) .projects-page__block-head p {
  color: #64748b;
}

html:not(.dark) .page-hero .landing-hero__overlay.page-hero__overlay {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.48) 0%,
    rgba(255, 255, 255, 0.05) 48%,
    rgba(255, 255, 255, 0.4) 100%
  );
}

html:not(.dark) .page-hero__intro {
  color: #334155;
}

html:not(.dark) .page-hero--photo .landing-hero__copy h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

html:not(.dark) .page-hero--photo .landing-hero__copy p,
html:not(.dark) .page-hero--photo .page-hero__intro {
  color: rgba(255, 255, 255, 0.92);
}

html:not(.dark) .page-hero--photo .landing-eyebrow {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.25);
}

html:not(.dark) .services-page__process-item {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

html:not(.dark) .services-page__process-body h3 {
  color: #0f172a;
}

html:not(.dark) .services-page__process-body p {
  color: #64748b;
}

html:not(.dark) .services-page__process-num {
  color: #94a3b8;
}

html:not(.dark) .services-page__process-icon {
  background: rgba(245, 130, 31, 0.12);
  color: #c2410c;
}

html:not(.dark) .services-page__brand-inner {
  border-color: rgba(15, 23, 42, 0.1);
  background: transparent;
  box-shadow: none;
}

html:not(.dark) .services-page__brand-fallback {
  color: #0f172a;
}

html:not(.dark) .projects-page__select {
  color: #0f172a;
  color-scheme: light;
  background-color: #fff;
  border-color: rgba(15, 23, 42, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

html:not(.dark) .projects-page__select option {
  background-color: #fff;
  color: #0f172a;
}

html:not(.dark) .projects-page__pagination .pagination li a,
html:not(.dark) .projects-page__pagination .pagination li span {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}

html:not(.dark) .projects-page__pagination .pagination li.active span {
  color: #9a3412;
  border-color: rgba(245, 130, 31, 0.45);
  background: rgba(255, 237, 213, 0.85);
}

/* ── Contact page: form + aside ── */
.contact-page__layout {
  display: grid;
  gap: clamp(1.35rem, 4vw, 2.25rem);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-page__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.75rem);
  }

  .contact-page__form-wrap .page-form-card {
    margin-inline: 0;
    max-width: none;
    width: 100%;
  }
}

.contact-page__aside {
  padding: clamp(1.2rem, 3vw, 1.65rem);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

html:not(.dark) .contact-page__aside {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.contact-page__aside-title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

html:not(.dark) .contact-page__aside-title {
  color: #0f172a;
}

.contact-page__aside-block + .contact-page__aside-block {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

html:not(.dark) .contact-page__aside-block + .contact-page__aside-block {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.contact-page__aside-heading {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fb923c;
}

.contact-page__aside-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.contact-page__aside-text + .contact-page__aside-text {
  margin-top: 0.35rem;
}

html:not(.dark) .contact-page__aside-text {
  color: #475569;
}

.contact-page__channel {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}

.contact-page__channel:last-child {
  margin-bottom: 0;
}

.contact-page__channel-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

html:not(.dark) .contact-page__channel-label {
  color: #64748b;
}

.contact-page__channel-value {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

.contact-page__channel-value:hover {
  color: #fdba74;
}

html:not(.dark) .contact-page__channel-value {
  color: #0f172a;
}

html:not(.dark) .contact-page__channel-value:hover {
  color: #c2410c;
}

.contact-page__channel-value--whatsapp {
  color: #86efac;
}

html:not(.dark) .contact-page__channel-value--whatsapp {
  color: #15803d;
}

html:not(.dark) .contact-page__channel-value--whatsapp:hover {
  color: #166534;
}

/* ── Shared form card (quote, contact) + blog article ── */
.page-form-card {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(1.2rem, 3vw, 1.65rem);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

html:not(.dark) .page-form-card {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.page-form__field {
  margin-bottom: 1rem;
}

.page-form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #cbd5e1;
}

html:not(.dark) .page-form__label {
  color: #334155;
}

.page-form__control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.page-form__control:not(.page-form__control--select) {
  background: rgba(3, 7, 18, 0.45);
}

.page-form__control:focus {
  outline: none;
  border-color: rgba(245, 130, 31, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 130, 31, 0.18);
}

html:not(.dark) .page-form__control {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

html:not(.dark) .page-form__control:not(.page-form__control--select) {
  background: #fff;
}

.page-form__control--textarea {
  min-height: 7rem;
  resize: vertical;
}

.page-form__control--select {
  display: block;
  min-height: 2.75rem;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-block: 0.65rem;
  padding-inline: 0.9rem 2.75rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  color-scheme: dark;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E")
      no-repeat right 0.75rem center / 1.1rem 1.1rem,
    rgba(15, 23, 42, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-form__control--select::-ms-expand {
  display: none;
}

html.dark[dir="rtl"] .page-form__control--select {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E")
      no-repeat left 0.75rem center / 1.1rem 1.1rem,
    rgba(15, 23, 42, 0.75);
}

.page-form__control--select:hover {
  border-color: rgba(245, 130, 31, 0.38);
}

html.dark .page-form__control--select option {
  background-color: #0f172a;
  color: #e2e8f0;
}

html:not(.dark) .page-form__control--select {
  color-scheme: light;
  border-color: rgba(15, 23, 42, 0.14);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E")
      no-repeat right 0.75rem center / 1.1rem 1.1rem,
    #fff;
}

html:not(.dark)[dir="rtl"] .page-form__control--select {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E")
      no-repeat left 0.75rem center / 1.1rem 1.1rem,
    #fff;
}

html:not(.dark) .page-form__control--select option {
  background-color: #fff;
  color: #0f172a;
}

@media (max-width: 640px) {
  .page-form__control--select {
    font-size: 1rem;
  }
}

.page-form__actions {
  margin-top: 1.25rem;
}

.page-form__error {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #fca5a5;
}

html:not(.dark) .page-form__error {
  color: #b91c1c;
}

.page-form__success {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

html:not(.dark) .page-form__success {
  color: #166534;
  background: rgba(220, 252, 231, 0.95);
  border-color: rgba(34, 197, 94, 0.35);
}

.blog-page__article {
  max-width: min(720px, 100%);
}

.blog-page__figure {
  margin: 0 0 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.blog-page__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-page__content {
  font-size: 1rem;
  line-height: 1.75;
  color: #cbd5e1;
}

html:not(.dark) .blog-page__content {
  color: #334155;
}

.blog-page__content > *:first-child {
  margin-top: 0;
}

.blog-page__content p {
  margin: 0 0 1rem;
}

.blog-page__content ul,
.blog-page__content ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
}

.blog-page__content a {
  color: #fdba74;
  text-decoration: underline;
  text-underline-offset: 2px;
}

html:not(.dark) .blog-page__content a {
  color: #c2410c;
}

/* ── Detail pages: breadcrumb, meta, surfaces (blog / services / projects) ── */
.detail-breadcrumb {
  padding-block: 0.85rem 0.15rem;
}

.detail-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.detail-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.detail-breadcrumb a:hover {
  color: #fdba74;
}

.detail-breadcrumb__sep {
  color: #64748b;
  user-select: none;
}

.detail-breadcrumb__current span {
  display: inline-block;
  max-width: min(70vw, 28rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: #e2e8f0;
}

html:not(.dark) .detail-breadcrumb a {
  color: #64748b;
}

html:not(.dark) .detail-breadcrumb a:hover {
  color: #c2410c;
}

html:not(.dark) .detail-breadcrumb__sep {
  color: #94a3b8;
}

html:not(.dark) .detail-breadcrumb__current span {
  color: #0f172a;
}

.detail-section {
  padding-top: 0.35rem;
}

.detail-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: min(52rem, 100%);
  margin-inline: auto;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.detail-chip--link {
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.detail-chip--link:hover {
  border-color: rgba(245, 130, 31, 0.45);
  color: #fff;
  background: rgba(245, 130, 31, 0.12);
}

html:not(.dark) .detail-chip {
  color: #334155;
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

html:not(.dark) .detail-chip--link:hover {
  color: #9a3412;
  border-color: rgba(245, 130, 31, 0.4);
  background: rgba(255, 237, 213, 0.65);
}

.detail-surface {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  max-width: min(48rem, 100%);
  margin-inline: auto;
}

.detail-surface--pad {
  padding: clamp(1.25rem, 3vw, 2rem);
}

html:not(.dark) .detail-surface {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.detail-article.blog-page__article {
  max-width: min(48rem, 100%);
}

.detail-article .blog-page__figure:first-child {
  margin-top: 0;
}

.detail-section-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.detail-section-head__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: #f8fafc;
}

.detail-section-head__lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #94a3b8;
}

html:not(.dark) .detail-section-head__title {
  color: #0f172a;
}

html:not(.dark) .detail-section-head__lead {
  color: #64748b;
}

.service-detail__body {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #cbd5e1;
}

html:not(.dark) .service-detail__body {
  color: #334155;
}

.service-detail__body + .service-detail__long {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

html:not(.dark) .service-detail__body + .service-detail__long {
  border-top-color: rgba(15, 23, 42, 0.1);
}

.service-detail__feature-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .service-detail__feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-detail__feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.42);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: #e2e8f0;
}

.service-detail__feature-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 0 0 3px rgba(245, 130, 31, 0.2);
}

html:not(.dark) .service-detail__feature {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.service-detail__packages {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-detail__package {
  position: relative;
  padding: 1.25rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
}

.service-detail__package--featured {
  border-color: rgba(245, 130, 31, 0.45);
  background: linear-gradient(160deg, rgba(245, 130, 31, 0.12), rgba(15, 23, 42, 0.55));
  box-shadow: 0 12px 32px rgba(245, 130, 31, 0.08);
}

.service-detail__package-badge {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fdba74;
}

.service-detail__package-name {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

.service-detail__package-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #94a3b8;
}

.service-detail__package-price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fdba74;
}

html:not(.dark) .service-detail__package {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

html:not(.dark) .service-detail__package--featured {
  border-color: rgba(245, 130, 31, 0.4);
  background: linear-gradient(160deg, rgba(255, 237, 213, 0.9), #fff);
}

html:not(.dark) .service-detail__package-name {
  color: #0f172a;
}

html:not(.dark) .service-detail__package-desc {
  color: #64748b;
}

html:not(.dark) .service-detail__package-price {
  color: #c2410c;
}

.service-detail__faq {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-detail__faq-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.42);
  padding: 0.15rem 1rem 0.85rem;
}

.service-detail__faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: #f1f5f9;
  padding: 0.85rem 0;
  list-style: none;
}

.service-detail__faq-item summary::-webkit-details-marker {
  display: none;
}

.service-detail__faq-item p {
  margin: 0;
  padding-bottom: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

html:not(.dark) .service-detail__faq-item {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

html:not(.dark) .service-detail__faq-item summary {
  color: #0f172a;
}

html:not(.dark) .service-detail__faq-item p {
  color: #64748b;
}

.project-detail__body {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #cbd5e1;
}

html:not(.dark) .project-detail__body {
  color: #334155;
}

.project-detail__body + .project-detail__long {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

html:not(.dark) .project-detail__body + .project-detail__long {
  border-top-color: rgba(15, 23, 42, 0.1);
}

.project-detail__gallery {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 0.25rem;
}

.project-detail__gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
}

.project-detail__gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

html:not(.dark) .project-detail__gallery-item {
  border-color: rgba(15, 23, 42, 0.1);
  background: transparent;
}
