/* ═══════════════════════════════════════════════════════════
   HEEIZ DESIGN SYSTEM — BASE + COMPONENTS
   ═══════════════════════════════════════════════════════════ */

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

/* ─── Noto Kufi Arabic — Weight Hierarchy ─── */
h1 { font-weight: 900; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }
h4 { font-weight: 600; }
h5 { font-weight: 600; }
h6 { font-weight: 500; }
p, li, td, th { font-weight: 400; }
small, figcaption, .text-xs, .caption { font-weight: 300; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  overflow-x: clip; /* clip instead of hidden — doesn't break position:sticky */
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--heeiz-ink-800);
  background-color: var(--white);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* clip instead of hidden — doesn't break position:sticky */
}

body.lang-en {
  direction: ltr;
  font-family: var(--font-en-body);
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol { list-style: none; }

/* ─── Typography Scale ─── */
.display-2xl { font-size: clamp(3rem,   7vw, 6rem);   font-weight: 800; line-height: 1.1; }
.display-xl  { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; }
.display-lg  { font-size: clamp(2rem,   4vw, 3.5rem); font-weight: 700; line-height: 1.2; }
.display-md  { font-size: clamp(1.75rem,3vw, 2.75rem);font-weight: 700; line-height: 1.25;}
.display-sm  { font-size: clamp(1.5rem, 2.5vw,2.25rem);font-weight:700; line-height: 1.3; }

.text-xl   { font-size: 1.25rem; line-height: 1.6; }
.text-lg   { font-size: 1.125rem; line-height: 1.6; }
.text-base { font-size: 1rem; line-height: 1.7; }
.text-sm   { font-size: 0.875rem; line-height: 1.6; }
.text-xs   { font-size: 0.75rem; line-height: 1.5; }

.font-light    { font-weight: 300; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black    { font-weight: 900; }

/* ─── Layout Container ─── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-sm  { max-width: var(--container-sm); }
.container-md  { max-width: var(--container-md); }
.container-lg  { max-width: var(--container-lg); }
.container-2xl { max-width: var(--container-2xl); }

/* ─── Section Spacing ─── */
.section {
  padding-block: clamp(64px, 8vw, 128px);
}

.section-sm {
  padding-block: clamp(40px, 5vw, 80px);
}

.section-lg {
  padding-block: clamp(96px, 12vw, 160px);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: all var(--duration-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}

/* Primary Gold */
.btn-primary {
  background: var(--grad-gold);
  color: var(--heeiz-ink-950);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(240,165,0,.45);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary Outline */
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

/* Teal Filled */
.btn-teal {
  background: var(--heeiz-teal-700);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-teal:hover {
  background: var(--heeiz-teal-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--heeiz-teal-700);
  border-color: var(--heeiz-teal-200);
}
.btn-ghost:hover {
  background: var(--heeiz-teal-50);
  border-color: var(--heeiz-teal-400);
}

/* Button Sizes */
.btn-sm  { padding: 10px 20px; font-size: .875rem; }
.btn-lg  { padding: 18px 36px; font-size: 1.125rem; }
.btn-xl  { padding: 22px 48px; font-size: 1.25rem; }

/* WhatsApp Button */
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}
.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,.5);
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--heeiz-ink-100);
  transition: all var(--duration-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--heeiz-teal-200);
}

.card-dark {
  background: var(--heeiz-ink-900);
  border-color: rgba(255,255,255,.06);
  color: var(--white);
}

.card-teal {
  background: var(--grad-card);
  border-color: var(--heeiz-teal-100);
}

/* Shimmer on hover */
.card-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 50%, transparent 100%);
  transform: translateX(-100%);
}
.card-shimmer:hover::after {
  transform: translateX(100%);
  transition: transform .7s ease;
}

/* ─── BADGES / TAGS ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.badge-teal {
  background: var(--heeiz-teal-50);
  color: var(--heeiz-teal-700);
  border: 1px solid var(--heeiz-teal-100);
}

.badge-gold {
  background: var(--heeiz-gold-100);
  color: var(--heeiz-gold-700);
  border: 1px solid rgba(240,165,0,.2);
}

.badge-dark {
  background: rgba(255,255,255,.1);
  color: var(--heeiz-teal-300);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
}

/* ─── SECTION LABELS ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--heeiz-teal-600);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--heeiz-teal-500);
  border-radius: 2px;
}

/* ─── DIVIDERS ─── */
.divider {
  height: 1px;
  background: var(--heeiz-ink-100);
  border: none;
  margin-block: var(--space-8);
}

.divider-teal {
  background: linear-gradient(90deg, transparent, var(--heeiz-teal-300), transparent);
}

/* ─── STAT BLOCKS ─── */
.stat-block {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  font-family: var(--font-ar);
}

.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  margin-top: var(--space-1);
  font-weight: 500;
}

/* ─── GRID SYSTEMS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-6); }
.grid-auto-md { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-8); }

/* ─── FLEX HELPERS ─── */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.items-center{ align-items: center; }
.gap-2       { gap: var(--space-2); }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }

/* ─── BACKGROUNDS ─── */
.bg-hero    { background: var(--grad-hero); }
.bg-dark    { background: var(--heeiz-ink-950); }
.bg-dark-2  { background: var(--heeiz-ink-900); }
.bg-light   { background: var(--off-white); }
.bg-teal-50 { background: var(--heeiz-teal-50); }
.bg-mesh    { background: var(--grad-mesh), var(--off-white); }

/* ─── TEXT COLORS ─── */
.text-white     { color: var(--white); }
.text-teal      { color: var(--heeiz-teal-700); }
.text-teal-light{ color: var(--heeiz-teal-400); }
.text-gold      { color: var(--heeiz-gold-500); }
.text-muted     { color: var(--heeiz-ink-500); }
.text-ink       { color: var(--heeiz-ink-800); }

/* ─── GRADIENT TEXT ─── */
.text-gradient-teal {
  background: linear-gradient(135deg, var(--heeiz-teal-400), var(--heeiz-teal-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── ICON WRAPPERS ─── */
.icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-wrap-teal {
  background: var(--heeiz-teal-50);
  color: var(--heeiz-teal-700);
}

.icon-wrap-gold {
  background: var(--heeiz-gold-100);
  color: var(--heeiz-gold-600);
}

.icon-wrap-dark {
  background: rgba(255,255,255,.1);
  color: var(--heeiz-teal-300);
}

/* ─── GLOW EFFECTS ─── */
.glow-teal {
  box-shadow: var(--shadow-glow);
}

.glow-gold {
  box-shadow: var(--shadow-gold);
}

/* ─── NOISE TEXTURE overlay ─── */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ─── AURORA EFFECT ─── */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: auroraFloat 12s ease-in-out infinite alternate;
}

.aurora::before {
  width: 60%;
  height: 60%;
  top: -20%;
  right: -10%;
  background: radial-gradient(ellipse, rgba(26,154,166,.25), transparent 70%);
}

.aurora::after {
  width: 50%;
  height: 50%;
  bottom: -15%;
  left: -5%;
  background: radial-gradient(ellipse, rgba(16,100,107,.2), transparent 70%);
  animation-delay: -6s;
}

@keyframes auroraFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 8%) scale(1.1); }
}

/* ─── DOT GRID PATTERN ─── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(16,100,107,.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ─── MARQUEE ─── */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  padding-inline: var(--space-8);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* RTL marquee */
[dir="rtl"] .marquee-track {
  animation-direction: reverse;
}

/* ─── PIPELINE FLOW ─── */
.pipeline-flow {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-block: var(--space-4);
  scrollbar-width: none;
}

.pipeline-flow::-webkit-scrollbar { display: none; }

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  padding: var(--space-4) var(--space-6);
  position: relative;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.pipeline-step:hover .step-icon-wrap {
  background: var(--heeiz-teal-700);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pipeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-end: -12px;
  transform: translateY(-50%);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--heeiz-teal-300), var(--heeiz-teal-500));
  animation: flowPulse 2s ease-in-out infinite;
  z-index: 1;
}

[dir="rtl"] .pipeline-step:not(:last-child)::after {
  right: auto;
  left: -12px;
}

@keyframes flowPulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--heeiz-teal-50);
  color: var(--heeiz-teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-base) var(--ease-smooth);
  font-size: 1.4rem;
}

.step-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--heeiz-ink-700);
  white-space: nowrap;
}

/* ─── COMPARISON TABLE ─── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.compare-table th {
  padding: var(--space-4) var(--space-6);
  font-weight: 700;
  font-size: 1rem;
}

.compare-table td {
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--heeiz-ink-100);
  font-size: .95rem;
}

.compare-col-bad  { background: rgba(220,38,38,.04); color: var(--heeiz-ink-700); }
.compare-col-good { background: rgba(16,100,107,.04); color: var(--heeiz-ink-700); }
.compare-head-bad  { background: rgba(220,38,38,.08); color: #dc2626; }
.compare-head-good { background: var(--heeiz-teal-700); color: var(--white); }

.compare-icon-bad  { color: #dc2626; }
.compare-icon-good { color: var(--heeiz-teal-500); }

/* ─── PROGRESS BAR ─── */
.progress-bar {
  height: 4px;
  background: var(--heeiz-ink-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--heeiz-teal-500), var(--heeiz-teal-300));
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1s var(--ease-smooth);
}

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  font-weight: 500;
  animation: bounceScroll 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounceScroll {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%       { transform: translateY(8px); opacity: 1; }
}

/* ─── APP STORE BUTTONS ─── */
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 20px;
  background: var(--heeiz-ink-900);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  color: var(--white);
  transition: all var(--duration-base) var(--ease-smooth);
}

.app-btn:hover {
  background: var(--heeiz-ink-800);
  border-color: var(--heeiz-teal-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-btn-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.app-btn-text small {
  display: block;
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  font-weight: 400;
}

.app-btn-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
}

/* ─── TOOLTIP ─── */
.tooltip-wrap {
  position: relative;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--heeiz-ink-950);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: .8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all var(--duration-fast) var(--ease-smooth);
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-md);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--heeiz-ink-950);
}

.tooltip-wrap:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── LOADING PULSE ─── */
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--heeiz-teal-500);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .6; }
}

/* Map pulse */
.map-pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--heeiz-teal-400);
  transform: translate(-50%, -50%);
}

.map-pulse::before,
.map-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--heeiz-teal-300);
  animation: mapRipple 2s ease-out infinite;
}

.map-pulse::after {
  animation-delay: 1s;
}

@keyframes mapRipple {
  0%   { transform: scale(.8); opacity: .8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ─── NAVIGATION — Solid, consistent always ─── */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: calc(var(--z-overlay) + 10);
  padding-block: 14px;
  margin: 0;
  /* No backdrop-filter here — it would create a containing block for
     position:fixed children (.nav-menu), trapping their height to the
     header's ~70px instead of the full viewport. The blur is on ::before. */
  background: transparent;
  border-bottom: 1px solid rgba(26,154,166,0.14);
  box-shadow: 0 1px 0 rgba(26,154,166,0.08), 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.35s var(--ease-smooth);
}

/* Background + blur on a pseudo-element so it doesn't affect fixed children */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(3,14,22,0.97);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  z-index: -1;
  pointer-events: none;
}

/* Teal accent line — always visible */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; inset-inline: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(26,154,166,0.45) 30%,
    rgba(26,154,166,0.6)  50%,
    rgba(26,154,166,0.45) 70%,
    transparent 100%
  );
}

/* No change on scroll — same appearance */
.site-header.scrolled {
  padding-block: 14px;
}

.site-header.header-hidden { transform: translateY(-110%); }

/* ── Container ── */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* ── Logo ── */
.nav-logo {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

/* Logo text (fallback when no custom logo) */
.logo-text-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark-svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.logo-text-content {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.logo-ar {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-en {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(26,154,166,0.65);
  text-transform: uppercase;
}

/* Nav live-status badge (next to logo) */
.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.18);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(74,222,128,0.85);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px #4ade80;
  animation: navLivePulse 2.2s ease-in-out infinite;
}
@keyframes navLivePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 5px #4ade80; }
  50%       { opacity: 0.5; box-shadow: 0 0 2px #4ade80; }
}

/* ── Desktop Menu ── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

/* ── Nav Separator ── */
.nav-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  margin-inline: var(--space-1);
}

/* ── Nav Link — clean pill ── */
.nav-link {
  position: relative;
  padding: 7px 13px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.62);
  border-radius: var(--radius-full);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link::after { display: none; } /* Remove underline */

.nav-link:hover {
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.07);
}
.nav-link.active {
  color: var(--white);
  font-weight: 600;
  background: rgba(26,154,166,0.14);
}

/* ── Nav Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 1px;
}
.lang-btn {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  cursor: pointer;
  transition: all 0.18s;
  background: none;
  border: none;
  font-family: var(--font-primary);
  line-height: 1;
}
.lang-btn.active {
  background: var(--heeiz-teal-500);
  color: var(--white);
  box-shadow: 0 1px 8px rgba(26,154,166,0.4);
}
.lang-btn:hover:not(.active) {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

/* ── Mobile Toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.11); }
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: rgba(255,255,255,0.88);
  border-radius: 2px;
  transition: all 0.28s var(--ease-smooth);
}

/* ── Mobile-only elements — hidden on desktop ── */
.mobile-nav-header,
.mobile-nav-footer { display: none; }

/* ═══════════════════════════════════════════════
   FOOTER v2 — Seamless continuation of CTA
   ═══════════════════════════════════════════════ */
.site-footer {
  /* Same bg as CTA section → seamless blend */
  background: #020709;
  color: rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
}

/* Top teal separator — visual connection from CTA */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; inset-inline: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(26,154,166,0.55) 25%,
    rgba(26,154,166,0.8)  50%,
    rgba(26,154,166,0.55) 75%,
    transparent 100%
  );
}

/* Subtle radial glow — low-key brand presence */
.site-footer::after {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(26,154,166,0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Footer inner layout ── */
.footer-inner {
  padding-top: var(--space-20);
  padding-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

/* ─── FOOTER GRID ─── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.055);
}

/* ── Brand column ── */
.footer-brand { display: flex; flex-direction: column; }

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
  text-decoration: none;
}
.footer-logo-wrap .logo-mark-svg { width: 30px; height: 30px; flex-shrink: 0; }

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.footer-logo-text .logo-ar {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
}
.footer-logo-text .logo-en {
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(26,154,166,0.6);
  text-transform: uppercase;
}

.footer-brand-tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--heeiz-teal-500);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-brand-tagline::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1.5px;
  background: var(--heeiz-teal-500);
  border-radius: 2px;
  flex-shrink: 0;
}

.footer-brand-desc {
  font-size: 0.865rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.78;
  max-width: 290px;
  margin-bottom: var(--space-5);
}

/* Trust signals */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.footer-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
}
.footer-trust-item::before {
  content: '✓';
  color: var(--heeiz-teal-500);
  font-size: 0.65rem;
  font-weight: 800;
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s;
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(26,154,166,0.14);
  border-color: rgba(26,154,166,0.3);
  color: var(--heeiz-teal-300);
  transform: translateY(-2px);
}

/* App buttons in footer */
.footer-app-btns {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.footer-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
}
.footer-app-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}
.footer-app-btn-icon {
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,0.65);
  flex-shrink: 0;
}
.footer-app-btn-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}
.footer-app-btn-text small {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
}
.footer-app-btn-text strong {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
}

/* ── Link columns ── */
.footer-col { display: flex; flex-direction: column; }
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: var(--space-5);
}
.footer-col-title::before {
  content: '';
  width: 3px;
  height: 12px;
  background: var(--heeiz-teal-600);
  border-radius: 2px;
  flex-shrink: 0;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}
.footer-col-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s, gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.footer-col-links a::before {
  content: '←';
  font-size: 0.7rem;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.2s, width 0.2s;
  color: var(--heeiz-teal-500);
}
[dir="ltr"] .footer-col-links a::before { content: '→'; }
.footer-col-links a:hover { color: rgba(255,255,255,0.9); }
.footer-col-links a:hover::before { opacity: 1; width: 16px; }

.footer-contact-block {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.055);
}
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-3);
  transition: color 0.2s;
  text-decoration: none;
}
.footer-contact-link:hover { color: var(--heeiz-teal-300); }
.footer-contact-link svg { flex-shrink: 0; color: var(--heeiz-teal-500); }

/* ── Footer Bottom bar ── */
.footer-bottom {
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}
.footer-copy p { margin: 0; }
.footer-copy-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.18);
  margin-top: 3px !important;
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  align-items: center;
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
  text-decoration: none;
}
.footer-legal a:hover { color: var(--heeiz-teal-400); }
.footer-legal-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

/* Back-to-top button */
.footer-back-top {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(26,154,166,0.1);
  border: 1px solid rgba(26,154,166,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heeiz-teal-400);
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
  flex-shrink: 0;
}
.footer-back-top:hover {
  background: rgba(26,154,166,0.2);
  border-color: rgba(26,154,166,0.4);
  transform: translateY(-3px);
}

/* ── Legacy aliases (keep old class names working) ── */
.footer-top { display: none; } /* replaced by footer-bottom */
.footer-links { display: none; }
.social-links { flex-wrap: wrap; }
