/* ─── Brand Tokens ─────────────────────────────────────── */
:root {
  --blue-primary: #156AF2;
  --blue-mid:     #1540A9;
  --blue-dark:    #042F7D;
  --blue-slate:   #3A577F;
  --blue-deep:    #0F2E5D;
  --blue-navy:    #001D57;
  --white:        #FFFFFF;
  --light-gray:   #F5F8FF;
  --teal:         #156AF2;
  --purple:       #1540A9;
  --wa-green:     #1540A9;

  /* RGB triplets — for rgba() usages; override in page-specific CSS to retheme */
  --blue-primary-rgb: 21, 106, 242;
  --blue-mid-rgb:     21, 64, 169;
  --blue-slate-rgb:   58, 87, 127;
  --blue-navy-rgb:    0, 29, 87;
  --blue-navy2-rgb:   0, 20, 60;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body.menu-open { overflow: hidden; }

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-primary, var(--blue-deep));
  background: var(--page-bg, #FFFFFF);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .logo-text {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Scroll-animation base ─────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--blue-primary);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--blue-primary-rgb), 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 2px solid rgba(var(--blue-primary-rgb),0.3);
}
.btn-outline:hover {
  background: rgba(var(--blue-primary-rgb),0.06);
  border-color: var(--blue-primary);
  transform: translateY(-2px);
}

/* Hero buttons stay white-on-dark */
#hero .btn-primary {
  background: #FFFFFF;
  color: var(--blue-navy);
}
#hero .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}
#hero .btn-outline {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.2);
}
#hero .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}
#hero .section-label { color: #FFFFFF; }

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
}
.btn-wa:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--blue-mid-rgb), 0.35);
}

/* ─── Section titles ─────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  opacity: 0.7;
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Section header (shared centered layout) ────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-sub {
  margin: 0 auto;
}

/* ─── Utility classes (replace inline styles) ────────────── */
.logo-accent { color: var(--blue-primary); }
.calendly-note { opacity: 0.6; }

/* ═══════════════════════════════════════════════════════════
   1. STICKY NAVBAR
═══════════════════════════════════════════════════════════ */

/* --- Keyframes --- */
@keyframes nav-border-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes nav-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--blue-primary-rgb), 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(var(--blue-primary-rgb), 0); }
}
@keyframes nav-dot-ping {
  0%   { transform: scale(1); opacity: 1; }
  75%  { transform: scale(2.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes nav-progress-glow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 6px rgba(var(--blue-primary-rgb), 0.6)); }
  50%      { filter: brightness(1.4) drop-shadow(0 0 12px rgba(77, 142, 247, 0.9)); }
}
@keyframes nav-link-shine {
  0%   { left: -40%; }
  100% { left: 120%; }
}
@keyframes nav-shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

/* --- Outer shell (holds the animated border) --- */
#navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 1280px;
  z-index: 1000;
  padding: 1.5px;
  border-radius: 22px;
  background: transparent;
  transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animated rotating conic-gradient border */
.nav-glow {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}
#navbar:hover .nav-glow { opacity: 1; }
.nav-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 400%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--blue-primary) 60deg,
    #4d8ef7 120deg,
    transparent 180deg,
    var(--purple) 240deg,
    #4d8ef7 300deg,
    transparent 360deg
  );
  transform-origin: center;
  animation: nav-border-spin 4s linear infinite;
}

/* Inner body — the actual glass panel */
.nav-body {
  position: relative;
  z-index: 1;
  border-radius: 21px;
  background: linear-gradient(
    165deg,
    rgba(var(--blue-navy2-rgb), 0.78) 0%,
    rgba(var(--blue-navy-rgb), 0.72) 40%,
    rgba(5, 15, 50, 0.82) 100%
  );
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
#navbar.scrolled .nav-body {
  background: linear-gradient(
    165deg,
    rgba(0, 18, 55, 0.92) 0%,
    rgba(var(--blue-navy-rgb), 0.88) 40%,
    rgba(5, 12, 45, 0.95) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 48px rgba(0, 0, 0, 0.35);
}

/* Scroll progress bar */
.nav-progress {
  position: absolute;
  bottom: 3px;
  right: 8px;
  left: auto;
  height: 4px;
  width: 0%;
  z-index: 10;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple), #4d8ef7, var(--blue-primary), #67b2ff);
  animation: nav-progress-glow 2s ease-in-out infinite;
  pointer-events: none;
  transition: width 0.15s linear, opacity 0.4s ease;
}
.nav-progress::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #67b2ff;
  box-shadow: 0 0 14px 4px rgba(103, 178, 255, 0.7), 0 0 6px 2px rgba(var(--blue-primary-rgb), 0.9);
  opacity: 1;
  transition: opacity 0.3s ease;
}
#navbar:not(.scrolled) .nav-progress { opacity: 0; }
#navbar:not(.scrolled) .nav-progress::after { opacity: 0; }

/* --- Nav inner layout --- */
.nav-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Logo --- */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}
.nav-logo:hover {
  transform: scale(1.06);
}
.nav-logo:hover .nav-logo-icon {
  box-shadow: 0 0 20px rgba(var(--blue-primary-rgb), 0.4), 0 0 6px rgba(77, 142, 247, 0.5);
}

.nav-logo-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(var(--blue-primary-rgb), 0.15);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
  filter: brightness(0) invert(1);
}

.nav-logo-text {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 20%, #6db3ff 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: font-size 0.3s ease;
}

/* --- Nav links (center pill) --- */
.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 5px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
}

.nav-links li { flex-shrink: 0; }
.nav-links-cta-item { display: none; }

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  position: relative;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  transition:
    color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 0.3s ease;
}

.nav-links a svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

/* Curved arc indicator */
.nav-link-dot {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 28px;
  height: 8px;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, width 0.35s ease;
  background: none;
  overflow: visible;
}
.nav-link-dot::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2.5px solid transparent;
  border-bottom-color: #34d399;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-sizing: border-box;
  filter: drop-shadow(0 2px 6px rgba(52, 211, 153, 0.5));
}
.nav-link-dot::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  width: 80%;
  height: 4px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.35);
  filter: blur(4px);
}

/* Shine sweep on hover */
.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
}

/* Hover state */
.nav-links a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
  letter-spacing: 0.5px;
}
.nav-links a:hover .nav-link-dot {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}
.nav-links a:hover::before {
  opacity: 1;
  animation: nav-link-shine 0.6s ease forwards;
}

/* Active: glowing blue pill with bright line */
.nav-links a.active {
  color: #FFFFFF;
  background: linear-gradient(
    180deg,
    rgba(var(--blue-primary-rgb), 0.22) 0%,
    rgba(77, 142, 247, 0.08) 100%
  );
  box-shadow:
    0 0 20px rgba(var(--blue-primary-rgb), 0.2),
    inset 0 1px 0 rgba(77, 142, 247, 0.15);
  border: 1px solid rgba(var(--blue-primary-rgb), 0.2);
}
.nav-links a.active .nav-link-dot {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
  width: 34px;
  height: 10px;
}
.nav-links a.active .nav-link-dot::before {
  border-bottom-color: #67b2ff;
  border-width: 3px;
  filter: drop-shadow(0 2px 8px rgba(103, 178, 255, 0.7));
}
.nav-links a.active .nav-link-dot::after {
  background: rgba(103, 178, 255, 0.4);
  filter: blur(5px);
}

/* --- CTA Button --- */
.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px !important;
  padding: 11px 26px !important;
  border-radius: 999px;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  min-width: max-content;
  overflow: hidden;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--blue-primary) 0%, #1a4fd4 50%, var(--purple) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 20px rgba(var(--blue-primary-rgb), 0.35),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease !important;
  animation: nav-cta-pulse 3s ease-in-out infinite;
}

.nav-cta-text {
  position: relative;
  z-index: 2;
  line-height: 1;
}

/* Shimmer sweep */
.nav-cta-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%) skewX(-15deg);
  z-index: 1;
}
.nav-cta:hover .nav-cta-glow {
  animation: nav-shimmer 0.8s ease forwards;
}

.nav-cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 2;
  opacity: 0.8;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 8px 32px rgba(var(--blue-primary-rgb), 0.45),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  animation: none;
}
/* RTL: arrow flips direction */
.nav-cta svg { transform: scaleX(-1); }
.nav-cta:hover svg {
  transform: scaleX(-1) translateX(3px);
  opacity: 1;
}
/* LTR: arrow stays pointing right */
[dir="ltr"] .nav-cta svg { transform: none; }
[dir="ltr"] .nav-cta:hover svg { transform: translateX(3px); }
.nav-cta:active {
  transform: translateY(0) scale(0.98);
}
.nav-cta::after { display: none !important; }

/* --- Hamburger --- */
#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1002;
  border-radius: 8px;
  transition: background 0.2s ease;
}
#menu-toggle:hover { background: rgba(255, 255, 255, 0.08); }
#menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}
#menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile menu backdrop --- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 999;
}
body.menu-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* --- Reduced motion for navbar --- */
@media (prefers-reduced-motion: reduce) {
  #navbar, #navbar *, .nav-links, .nav-cta, .nav-logo, .nav-logo-img, .nav-progress,
  .nav-glow, .nav-glow::before, .nav-cta-glow, .nav-link-dot {
    transition: none !important;
    animation: none !important;
  }
  .nav-logo:hover { transform: none; filter: none; }
  .nav-cta:hover { transform: none; }
  .nav-links a:hover { transform: none; }
  .nav-glow { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
#footer {
  background: var(--blue-navy);
  padding: 80px 24px 0;
  position: relative;
  overflow: hidden;
}
/* Mask the orb tint at the very top of the footer so it meets the
   cta-final wave divider in pure --blue-navy with no visible seam. */
#footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 220px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to top, transparent, var(--blue-navy) 75%);
}

/* — Background effects — */
.footer-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}
.footer-orb--blue {
  width: 400px; height: 400px;
  background: rgba(var(--blue-primary-rgb), 0.15);
  top: -100px; right: -80px;
  animation: footerOrbDrift1 18s ease-in-out infinite;
}
.footer-orb--indigo {
  width: 350px; height: 350px;
  background: rgba(var(--blue-mid-rgb), 0.12);
  bottom: -80px; left: -60px;
  animation: footerOrbDrift2 22s ease-in-out infinite;
}
@keyframes footerOrbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 40px) scale(1.1); }
  66% { transform: translate(30px, -20px) scale(0.95); }
}
@keyframes footerOrbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.05); }
  66% { transform: translate(-40px, 20px) scale(0.9); }
}
.footer-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 70%);
}
.footer-particles {
  position: absolute;
  inset: 0;
}
.footer-particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(var(--blue-primary-rgb), 0.4);
  bottom: 0;
  animation: footerParticleFloat linear infinite;
}
@keyframes footerParticleFloat {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0; }
  100% { transform: translateY(-500px) scale(0.3); opacity: 0; }
}

/* — Footer main grid — */
.footer-main {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  position: relative;
  z-index: 2;
}

/* — Glassmorphism cards — */
.footer-glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.footer-glass-card:hover {
  border-color: rgba(var(--blue-primary-rgb), 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(var(--blue-primary-rgb), 0.08);
}

/* Staggered scroll-reveal */
.footer-glass-card.animate-on-scroll {
  transition-delay: var(--delay, 0ms);
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-brand-logo .nav-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.footer-brand-logo .nav-logo-text {
  font-size: 1.8rem;
}
.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.35s ease;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.footer-col ul a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue-primary);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-col ul a:hover { color: var(--white); }
.footer-col ul a:hover::after { width: 100%; }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s ease;
}
.footer-contact li:hover { color: var(--white); }
.footer-contact a { color: inherit; }

/* — Social icons — */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-link {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(var(--blue-primary-rgb),0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.social-link:hover::before { opacity: 1; }
.social-link:hover {
  border-color: rgba(var(--blue-primary-rgb), 0.5);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--blue-primary-rgb), 0.25);
}
.social-link svg {
  position: relative;
  z-index: 1;
}

/* — Newsletter CTA — */
.footer-cta {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 2;
}
.footer-cta-content h4 {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-cta-content p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}
.footer-newsletter {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.footer-newsletter:focus-within {
  border-color: rgba(var(--blue-primary-rgb), 0.5);
  box-shadow: 0 0 20px rgba(var(--blue-primary-rgb), 0.15);
}
.footer-newsletter input {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  padding: 14px 20px;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  min-width: 240px;
  direction: rtl;
  outline: none;
}
.footer-newsletter input::placeholder {
  color: rgba(255,255,255,0.35);
}
.footer-newsletter button {
  background: var(--blue-primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}
.footer-newsletter button:hover {
  background: #1a7aff;
}
.footer-newsletter button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-newsletter-msg {
  margin: 0;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: rgba(255,255,255,0.6);
}
.footer-newsletter-msg.is-success { color: #34d399; }
.footer-newsletter-msg.is-error   { color: #f87171; }
.footer-newsletter-msg.is-pending { color: rgba(255,255,255,0.55); }

/* — Animated divider — */
.footer-divider {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.footer-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--blue-primary-rgb), 0.5), rgba(255, 255, 255, 0.15), rgba(var(--blue-primary-rgb), 0.5), transparent);
  background-size: 200% 100%;
  animation: footerDividerShimmer 4s ease-in-out infinite;
}
@keyframes footerDividerShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* — Footer bottom — */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* — Back to top — */
.back-to-top {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.back-to-top:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--blue-primary-rgb), 0.3);
}

/* ═══════════════════════════════════════════════════════════
   FLOATING WHATSAPP
═══════════════════════════════════════════════════════════ */
#wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 8000;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(var(--blue-mid-rgb),0.5);
  animation: wa-pulse 2.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}
#wa-float:hover { transform: scale(1.1); }
#wa-float svg { width: 28px; height: 28px; fill: var(--white); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(var(--blue-mid-rgb),0.5); }
  50%       { box-shadow: 0 4px 32px rgba(var(--blue-mid-rgb),0.85), 0 0 0 12px rgba(var(--blue-mid-rgb),0.12); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Shared breakpoints
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-cta {
    flex-direction: column;
    text-align: center;
  }
  .footer-newsletter {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  /* Hamburger visible */
  #menu-toggle { display: flex; }
  #navbar { top: 10px; left: 12px; right: 12px; width: auto; transform: none; border-radius: 16px; padding: 1px; }
  .nav-glow { border-radius: 16px; }
  .nav-body { border-radius: 15px; }
  .nav-inner { height: 60px; padding: 0 18px; }
  .nav-logo-icon { width: 34px; height: 34px; border-radius: 10px; }
  .nav-logo-text { font-size: 1.3rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 88px 24px 32px;
    background: linear-gradient(180deg, rgba(0, 18, 55, 0.96) 0%, rgba(var(--blue-navy-rgb), 0.94) 100%);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    border: none;
    border-left: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1001;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
  }
  .nav-links a::before { display: none; }
  .nav-links a:hover { transform: none; letter-spacing: 0.2px; }
  .nav-link-dot { display: none; }
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(var(--blue-primary-rgb), 0.2);
    box-shadow: none;
    border: none;
  }
  .nav-cta {
    justify-content: center;
    margin-top: 16px;
  }
  .nav-cta-glow { display: none; }
  .nav-cta--desktop { display: none !important; }
  .nav-links-cta-item { display: block; margin-top: 12px; }
  .nav-links-cta-item .nav-cta {
    width: 100%;
    min-height: 48px;
    font-size: 1.05rem !important;
    border-radius: 999px !important;
    justify-content: center;
    margin-top: 0;
  }
  .nav-links-cta-item .nav-cta:hover,
  .nav-links-cta-item .nav-cta.active {
    background: linear-gradient(135deg, var(--blue-primary) 0%, #1a4fd4 50%, var(--purple) 100%);
  }

  .footer-main     { grid-template-columns: 1fr; gap: 24px; }
  .footer-glass-card { padding: 24px; }
  .footer-brand { grid-column: auto; }
  .footer-cta { flex-direction: column; text-align: center; padding: 32px 0; }
  .footer-newsletter { width: 100%; max-width: 100%; }
  .footer-newsletter input { min-width: 0; flex: 1; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .footer-orb { opacity: 0.5; }

}

@media (prefers-reduced-motion: reduce) {
  .footer-orb, .footer-particle, .footer-divider-line {
    animation: none !important;
    transition: none !important;
  }
}

/* ─── Navbar actions cluster ────────────────────────────────
   Groups the theme toggle, language toggle, CTA, and hamburger
   into a single flex unit so .nav-inner's space-between only
   pushes the logo and the cluster apart (not the cluster's
   internal items into the centered .nav-links pill).
─────────────────────────────────────────────────────────────── */
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* ─── Theme toggle (light/dark mode button) ─────────────────── */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(76, 207, 193, 0.75);
  background: rgba(76, 207, 193, 0.10);
  color: var(--text-primary, currentColor);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-inline-start: 8px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover {
  background: rgba(76, 207, 193, 0.22);
  border-color: rgba(76, 207, 193, 0.95);
  transform: scale(1.06);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
#navbar .theme-toggle,
#navbar .lang-toggle { color: #ffffff; }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
  .theme-toggle:hover { transform: none; }
}

/* ─── Language toggle (AR | EN pill) ────────────────────────── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  border: 1.5px solid rgba(var(--blue-primary-rgb), 0.75);
  background: rgba(var(--blue-primary-rgb), 0.10);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1;
  color: var(--text-primary, currentColor);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lang-toggle:hover {
  border-color: var(--blue-primary);
  background: rgba(var(--blue-primary-rgb), 0.18);
}
.lang-toggle:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}
.lang-toggle-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  color: inherit;
  opacity: 0.9;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.lang-toggle[data-active="ar"] .lang-toggle-opt[data-lang="ar"],
.lang-toggle[data-active="en"] .lang-toggle-opt[data-lang="en"] {
  background: var(--blue-primary);
  color: var(--white);
  opacity: 1;
}

/* Desktop toggle lives inside .nav-actions; hide its mobile twin there. */
.lang-toggle--mobile { display: none; }
.nav-links-lang-item { display: none; }

@media (max-width: 900px) {
  .lang-toggle--desktop { display: none !important; }
  .nav-links-lang-item {
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }
  .nav-links-lang-item .lang-toggle--mobile {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-toggle, .lang-toggle-opt { transition: none; }
}
