/* ==========================================================================
   NEXA SOFT — Corporate Website  |  Design System & Styles
   Author: Product/Design/Front-End Team
   Stack : HTML5 + Bootstrap 5 + Vanilla CSS (Design Tokens) + JS
   Notes : Bilingual (AR/EN), RTL/LTR, Light/Dark, Accessible, Responsive
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS (CSS VARIABLES)
   ========================================================================== */
:root {
  /* Brand palette — derived from Solution Makers logo (navy + blue + orange) */
  --brand-50:  #eaf2fe;
  --brand-100: #cfe1fc;
  --brand-200: #a6c8f8;
  --brand-300: #6ea5f2;
  --brand-400: #3f86ea;
  --brand-500: #1e6fd9;   /* logo blue */
  --brand-600: #1a5fc0;
  --brand-700: #164f9e;
  --brand-800: #123c78;
  --brand-900: #0e1e42;   /* logo navy */

  --accent-400: #ff9a3d;  /* orange light */
  --accent-500: #f47b20;  /* logo orange */
  --accent-600: #db6a12;
  --accent-700: #b5540b;

  /* Status */
  --success: #16a34a;
  --warning: #d97706;
  --danger:  #dc2626;
  --info:    #1a5fc0;

  /* Semantic — LIGHT theme (default) */
  --bg:          #ffffff;
  --bg-alt:      #f3f7fc;
  --surface:     #ffffff;
  --surface-2:   #f6f9fd;
  --surface-3:   #eaf1fa;
  --text:        #16233b;
  --text-muted:  #5c6b85;
  --heading:     #0e1e42;
  --border:      #e4ebf5;
  --border-strong:#d2ddee;

  --primary:      var(--brand-600);
  --primary-hover:#14539f;
  --on-primary:   #ffffff;
  --accent:       var(--accent-500);
  --accent-ink:   #0e1e42;   /* navy — legible text on orange */

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #0e1e42 0%, #143f7e 48%, #1e6fd9 100%);
  --grad-accent: linear-gradient(135deg, #1e6fd9 0%, #f47b20 100%);
  --grad-soft: linear-gradient(180deg, #f3f7fc 0%, #ffffff 100%);

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(14, 30, 66, .06);
  --shadow-sm: 0 2px 8px rgba(14, 30, 66, .08);
  --shadow:    0 8px 24px rgba(14, 30, 66, .10);
  --shadow-lg: 0 18px 46px rgba(14, 30, 66, .15);
  --shadow-brand: 0 12px 30px rgba(26, 95, 192, .3);

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Typography */
  --font-ar: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-en: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --font: var(--font-ar);

  --fs-hero: clamp(2.1rem, 1.3rem + 3.6vw, 4rem);
  --fs-h1: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  --fs-h2: clamp(1.55rem, 1.15rem + 1.8vw, 2.4rem);
  --fs-h3: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  --fs-lead: clamp(1.05rem, .98rem + .4vw, 1.25rem);

  /* Layout */
  --container-max: 1200px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --transition: .35s var(--ease);
}

/* Semantic — DARK theme */
[data-theme="dark"] {
  --bg:          #060f24;
  --bg-alt:      #0a1730;
  --surface:     #0f2148;
  --surface-2:   #142a56;
  --surface-3:   #1a3567;
  --text:        #e6edf7;
  --text-muted:  #9db0cf;
  --heading:     #f4f8ff;
  --border:      #1f3a68;
  --border-strong:#2b4c82;

  --primary:      #4d94ff;
  --primary-hover:#6ba6ff;
  --on-primary:   #05132b;
  --accent:       var(--accent-400);

  --grad-brand: linear-gradient(135deg, #060d1e 0%, #0d2b5c 55%, #14417f 100%);
  --grad-soft: linear-gradient(180deg, #0a1730 0%, #060f24 100%);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.45);
  --shadow:    0 10px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.6);
  --shadow-brand: 0 12px 34px rgba(59, 130, 246, .35);
  color-scheme: dark;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: hidden; }

html[lang="en"] { --font: var(--font-en); }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--heading);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
}

a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary-hover); }

p { color: var(--text-muted); margin-bottom: 1rem; }

img { max-width: 100%; height: auto; }

section { position: relative; }

.container { max-width: var(--container-max); }

::selection { background: var(--accent); color: #0e1e42; }

/* Focus visibility (accessibility) */
:focus-visible {
  outline: 3px solid var(--accent-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 2000;
  background: var(--primary);
  color: var(--on-primary);
  padding: .6rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-primary); }

/* ==========================================================================
   3. TYPOGRAPHY HELPERS & SECTIONS
   ========================================================================== */
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3.25rem); text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-600);
  background: color-mix(in srgb, var(--accent-500) 12%, transparent);
  padding: .4rem .9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
[data-theme="dark"] .eyebrow { color: var(--accent-400); }

.section-title { font-size: var(--fs-h2); margin: 0 0 .75rem; }
.section-subtitle { font-size: var(--fs-lead); color: var(--text-muted); margin: 0; }

.text-gradient {
  background: linear-gradient(90deg, #4d94ff 0%, #ff9a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead { font-size: var(--fs-lead); color: var(--text-muted); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  --bs-btn-focus-shadow-rgb: 6, 182, 212;
  font-family: var(--font);
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: .72rem 1.6rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn-brand {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-brand);
}
.btn-brand:hover { background: var(--primary-hover); color: var(--on-primary); transform: translateY(-2px); }

.btn-accent {
  background: var(--accent-500);
  color: var(--accent-ink);
  box-shadow: 0 12px 30px rgba(244, 123, 32, .32);
}
.btn-accent:hover { background: var(--accent-600); color: var(--accent-ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline-brand {
  border-color: var(--border-strong);
  color: var(--heading);
  background: transparent;
}
.btn-outline-brand:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  transform: translateY(-2px);
}

.btn-ghost { color: var(--heading); background: transparent; }
.btn-ghost:hover { color: var(--primary); background: var(--surface-2); }

.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-icon-only { width: 44px; height: 44px; padding: 0; justify-content: center; }

/* ==========================================================================
   5. NAVBAR
   ========================================================================== */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1030;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
/* Blur lives on a pseudo-element so .site-nav does NOT become a containing block
   for the fixed mobile drawer (which must span the full viewport height). */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color var(--transition);
}
.site-nav.scrolled::before { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand-logo {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: var(--shadow-brand);
}
.brand-logo-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.brand-name { font-size: 1.15rem; line-height: 1; }
.brand-name small { display: block; font-size: .68rem; font-weight: 600; color: var(--accent-600); letter-spacing: .18em; }
[data-theme="dark"] .brand-name small { color: var(--accent-400); }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text);
  font-weight: 600;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 42px; height: 42px;
  display: inline-grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all .25s var(--ease);
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

.lang-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  width: auto; padding-inline: .9rem; gap: .4rem; font-weight: 700; font-size: .9rem;
}

.nav-toggle { display: none; }

/* Mobile drawer */
@media (max-width: 991.98px) {
  .nav-toggle { display: inline-grid; }
  .nav-menu {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(84vw, 340px);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    padding: calc(var(--nav-h) + 1rem) 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1035;
    overflow-y: auto;
  }
  html[dir="rtl"] .nav-menu { transform: translateX(-100%); }
  .nav-menu.open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-links a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-links a.active { background: var(--surface-2); }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(4, 12, 26, .5);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease); z-index: 1034;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: var(--grad-brand);
  color: #eaf2ff;
  overflow: hidden;
}
.hero h1 { color: #fff; font-size: var(--fs-hero); margin-bottom: 1.25rem; }
.hero p { color: #c6d7f5; font-size: var(--fs-lead); max-width: 560px; }
html[dir="rtl"] .hero p { margin-inline: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #dbeafe;
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .9rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.25); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.code-window { border-radius: var(--radius); overflow: hidden; background: #0a1730; border: 1px solid rgba(255,255,255,.12); }
.code-bar { display: flex; gap: .4rem; padding: .8rem 1rem; background: rgba(255,255,255,.05); }
.code-bar span { width: 12px; height: 12px; border-radius: 50%; }
.code-bar span:nth-child(1){ background:#ff5f56; }
.code-bar span:nth-child(2){ background:#ffbd2e; }
.code-bar span:nth-child(3){ background:#27c93f; }
.code-body { padding: 1.2rem 1.3rem; font-family: "Cascadia Code", Consolas, monospace; font-size: .9rem; line-height: 1.9; direction: ltr; text-align: left; }
.code-body .c-key { color: #7dd3fc; }
.code-body .c-str { color: #86efac; }
.code-body .c-fn { color: #c4b5fd; }
.code-body .c-com { color: #64748b; }

/* Decorative blobs / grid */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
}
.hero-blob.b1 { background: #f47b20; top: -120px; inset-inline-end: -80px; }
.hero-blob.b2 { background: #1e6fd9; bottom: -160px; inset-inline-start: -60px; opacity:.4; }

.hero-wave { position: absolute; inset-inline: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; display: block; }
.hero-wave path { fill: var(--bg); }

/* ==========================================================================
   7. CARDS
   ========================================================================== */
.card-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.card-surface:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

/* Service card */
.service-card { padding: 1.9rem 1.6rem; position: relative; overflow: hidden; }
.service-card .s-icon {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 16px;
  font-size: 1.7rem;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  margin-bottom: 1.2rem;
  transition: all var(--transition);
}
.service-card:hover .s-icon { background: var(--grad-accent); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.service-card p { margin-bottom: 1rem; font-size: .97rem; }
.service-link { font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: .4rem; }
.service-link .bi { transition: transform .25s var(--ease); }
html[dir="rtl"] .service-link .bi { transform: scaleX(-1); }
.service-card:hover .service-link .bi { transform: translateX(4px); }
html[dir="rtl"] .service-card:hover .service-link .bi { transform: scaleX(-1) translateX(4px); }

/* Value / feature card */
.value-card { padding: 1.7rem 1.5rem; }
.value-card .v-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; color: #fff; background: var(--grad-accent); margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.value-card p { font-size: .95rem; margin: 0; }

/* Project card */
.project-card {
  padding: 1.8rem 1.4rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.project-logo {
  width: 110px; height: 110px;
  display: grid; place-items: center;
  border-radius: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 2.6rem;
  color: var(--primary);
  transition: all var(--transition);
  overflow: hidden;
}
.project-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.project-card:hover .project-logo { transform: translateY(-4px) scale(1.04); box-shadow: var(--shadow); border-color: var(--primary); }
.project-name { font-size: 1.08rem; font-weight: 800; color: var(--heading); margin: 0; }
.project-cat { font-size: .85rem; color: var(--text-muted); margin: 0; }
.project-tag {
  font-size: .74rem; font-weight: 700; color: var(--accent-700);
  background: color-mix(in srgb, var(--accent-500) 14%, transparent);
  padding: .2rem .7rem; border-radius: var(--radius-pill);
}
[data-theme="dark"] .project-tag { color: var(--accent-400); }

/* Stat card */
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat .num { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; color: var(--heading); line-height: 1; }
.stat .num .suffix { color: var(--accent-500); }
.stat .label { color: var(--text-muted); font-weight: 600; margin-top: .5rem; }
.stat-on-brand .num, .stat-on-brand .label { color: #fff; }
.stat-on-brand .num .suffix { color: var(--accent-400); }

/* ==========================================================================
   8. FORMS
   ========================================================================== */
.form-label { font-weight: 700; color: var(--heading); margin-bottom: .4rem; }
.form-control, .form-select {
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-family: var(--font);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
/* Keep the native select arrow visible and on the trailing (inline-end) side */
.form-select { padding-inline-end: 2.5rem; padding-inline-start: 1rem; }
html[dir="rtl"] .form-select { background-position: left 1rem center; }
html[dir="ltr"] .form-select { background-position: right 1rem center; }
.form-control::placeholder { color: color-mix(in srgb, var(--text-muted) 75%, transparent); }
.form-control:focus, .form-select:focus {
  background-color: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text);
}
.input-group-text { background: var(--surface-2); border: 1.5px solid var(--border); color: var(--text-muted); }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.6rem);
  box-shadow: var(--shadow);
}

.info-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.info-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--primary); }
.info-item .i-icon {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem;
  color: #fff; background: var(--grad-accent);
}
.info-item .i-label { font-size: .82rem; color: var(--text-muted); margin: 0; }
.info-item .i-value { font-weight: 700; color: var(--heading); margin: 0; direction: ltr; }
html[dir="rtl"] .info-item .i-value { text-align: right; }

/* ==========================================================================
   9. TABLES
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
table.styled {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  min-width: 640px;
}
table.styled thead th {
  background: var(--surface-3);
  color: var(--heading);
  font-weight: 700;
  padding: 1rem 1.2rem;
  text-align: start;
  white-space: nowrap;
}
table.styled tbody td { padding: 1rem 1.2rem; border-top: 1px solid var(--border); color: var(--text); }
table.styled tbody tr { transition: background-color .2s var(--ease); }
table.styled tbody tr:hover { background: var(--surface-2); }
.badge-soft {
  display: inline-block; font-size: .78rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
}
.badge-success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }

/* ==========================================================================
   10. PROCESS / STEPS
   ========================================================================== */
.steps { display: grid; gap: 1.25rem; }
.step {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}
.step:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.step .step-num {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.3rem; color: #fff;
  background: var(--grad-brand);
}
.step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { margin: 0; font-size: .95rem; }

/* ==========================================================================
   11. PAGE HEADER (inner pages)
   ========================================================================== */
.page-header {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  background: var(--grad-brand);
  color: #fff;
  overflow: hidden;
}
.page-header h1 { color: #fff; font-size: var(--fs-h1); margin-bottom: .5rem; }
.page-header p { color: #c6d7f5; margin: 0; }
.breadcrumbs { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: #a9c2ef; margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumbs a { color: #dbeafe; }
.breadcrumbs .sep { opacity: .6; }
.page-header .hero-blob { opacity: .35; }

/* ==========================================================================
   12. CTA BAND
   ========================================================================== */
.cta-band {
  background: var(--grad-brand);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0fb; }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer { background: var(--brand-900); color: #cbd8ee; padding-top: clamp(3rem, 5vw, 4.5rem); }
[data-theme="dark"] .site-footer { background: #050b17; border-top: 1px solid var(--border); }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer a { color: #b7c7e3; }
.site-footer a:hover { color: var(--accent-400); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-about { color: #9fb2d4; max-width: 340px; }
.social-row { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.15rem;
  background: rgba(255,255,255,.08); color: #dbe6f8;
  transition: all .25s var(--ease);
}
.social-btn:hover { background: var(--grad-accent); color: #fff; transform: translateY(-3px); }
.footer-bottom {
  margin-top: 2.5rem; padding: 1.4rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .9rem; color: #94a8cb;
}

/* ==========================================================================
   14. FLOATING BUTTONS
   ========================================================================== */
.fab-wa {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 1040;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem; color: #fff;
  background: #25d366; box-shadow: 0 10px 26px rgba(37,211,102,.5);
  transition: transform .3s var(--ease);
  animation: wa-pulse 2.6s infinite;
}
.fab-wa:hover { transform: scale(1.1); color: #fff; }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}
.back-top {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 1040;
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s var(--ease); cursor: pointer; border: none;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--primary-hover); transform: translateY(-3px); }

/* ==========================================================================
   15. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal].in-view { transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }

.float-anim { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ==========================================================================
   16. LANGUAGE VISIBILITY HELPERS
   ========================================================================== */
html[lang="ar"] .lang-en-only { display: none !important; }
html[lang="en"] .lang-ar-only { display: none !important; }

/* ==========================================================================
   17. ACCESSIBILITY — REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   18. RESPONSIVE FINE-TUNING
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero { text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-badge { margin-inline: auto; }
}
@media (max-width: 575.98px) {
  .btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
  .fab-wa { width: 52px; height: 52px; font-size: 1.5rem; bottom: 16px; inset-inline-end: 16px; }
  .back-top { bottom: 16px; inset-inline-start: 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Utility */
.divider { height: 1px; background: var(--border); border: 0; margin-block: 2rem; }
.text-muted-soft { color: var(--text-muted) !important; }
.bg-surface { background: var(--surface) !important; }
.rounded-xl { border-radius: var(--radius) !important; }
.shadow-soft { box-shadow: var(--shadow) !important; }

/* ==========================================================================
   19. RICH CONTENT (CMS advanced editor output)
   ========================================================================== */
.rich-content { color: var(--text); line-height: 1.9; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { color: var(--heading); margin: 1.4rem 0 .75rem; }
.rich-content h2 { font-size: var(--fs-h3); }
.rich-content p { color: var(--text-muted); margin-bottom: 1rem; }
.rich-content ul, .rich-content ol { color: var(--text-muted); padding-inline-start: 1.4rem; margin-bottom: 1rem; }
.rich-content li { margin-bottom: .4rem; }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.rich-content a { color: var(--primary); text-decoration: underline; }
.rich-content blockquote { border-inline-start: 4px solid var(--accent-500); padding-inline-start: 1rem; color: var(--text-muted); margin: 1rem 0; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.rich-content table td, .rich-content table th { border: 1px solid var(--border); padding: .6rem .8rem; }
