/* ==========================================================================
   NIZAK — Smart Municipal Solutions
   Base stylesheet: reset, variables, layout, components, responsive, RTL/LTR
   ========================================================================== */

:root {
  /* Tech-forward blue palette: deep institutional navy -> bright azure/cyan */
  --color-primary: #0a2e52;      /* dark institutional blue */
  --color-primary-light: #123a66;
  --color-primary-dark: #071f38;
  --color-accent: #0ea5e9;       /* bright azure/tech blue accent */
  --color-accent-light: #38bdf8;
  --color-accent-dark: #0369a1;
  --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);

  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;       /* light neutral gray */
  --color-bg-muted: #eef2f6;
  --color-border: #dde4ea;
  --color-text: #1c2b39;
  --color-text-muted: #55677a;
  --color-text-inverse: #ffffff;

  --shadow-sm: 0 1px 3px rgba(10, 46, 82, 0.08);
  --shadow-md: 0 6px 20px rgba(10, 46, 82, 0.10);
  --shadow-lg: 0 16px 40px rgba(10, 46, 82, 0.14);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-latin: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;

  --container-width: 1180px;
  --header-container-width: 1340px;
  --header-height: 100px;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-latin);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body,
html[lang="ar"] body {
  font-family: var(--font-arabic);
}

img { max-width: 100%; display: block; }

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.25; color: var(--color-primary); }
p { margin: 0 0 1em; color: var(--color-text-muted); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Language-aware image swap: show AR version in RTL/Arabic, EN version otherwise.
   Uses !important to guarantee precedence over element-level display rules
   like `.media-figure img { display: block }`. */
.lang-ar-only { display: none !important; }
.lang-en-only { display: block !important; }
html[lang="ar"] .lang-ar-only { display: block !important; }
html[lang="ar"] .lang-en-only { display: none !important; }

/* Real-media image (replaces .placeholder-media dashed box) */
.media-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-bg-alt);
}
.media-figure img { display: block; width: 100%; height: auto; }

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-light {
  background: #fff;
  color: var(--color-primary);
}
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--header-container-width);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; height: 60px; width: auto; max-width: none; }

.main-nav { display: flex; min-width: 0; }
.main-nav ul { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
.main-nav a {
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.86rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--color-bg-alt);
  color: var(--color-accent-dark);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn-primary { padding: 10px 18px; font-size: 0.88rem; white-space: nowrap; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-primary);
  white-space: nowrap;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 170px;
  display: none;
  overflow: hidden;
  z-index: 1100;
}
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu.open { display: block; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--color-text);
}
.lang-menu button:hover { background: var(--color-bg-alt); }
.lang-menu button[aria-current="true"] { color: var(--color-accent-dark); font-weight: 700; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: calc(var(--header-height) + 64px) 0 80px;
  background: var(--gradient-brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.10), transparent 55%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.hero p.lead { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.hero-badge { font-size: 0.85rem; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 8px; }

.page-hero {
  padding: calc(var(--header-height) + 56px) 0 56px;
  background: var(--gradient-brand);
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 700px; font-size: 1.05rem; }

/* ---------------- Sections ---------------- */
section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------------- Grids & Cards ---------------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; }
.card ul { margin-top: 12px; }
.card ul li {
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.card ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Problem -> Solution layout */
.problem-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.problem-side, .solution-side { padding: 28px 32px; }
.problem-side {
  background: #fdf3f1;
  border-inline-end: 1px solid var(--color-border);
}
.solution-side { background: #eef8ff; }
.problem-side .tag, .solution-side .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 20px;
}
.problem-side .tag { background: #f6d9d3; color: #a13a26; }
.solution-side .tag { background: #cfeefd; color: var(--color-accent-dark); }
.problem-side p, .solution-side p { color: var(--color-text); margin: 0; }

/* Sector items */
.sector-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-border);
}
.sector-item:last-child { border-bottom: none; }
.sector-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
  width: 54px;
}

/* Pricing */
.pricing-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pricing-card.featured {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 30px;
  background: var(--gradient-brand);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pricing-card h3 { font-size: 1.3rem; }
.pricing-card .tier-desc { min-height: 68px; }
.pricing-card ul { margin: 20px 0; flex-grow: 1; }
.pricing-card ul li {
  position: relative;
  padding-inline-start: 26px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
}
.pricing-card ul li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-accent-dark);
  font-weight: 700;
}
.pricing-note {
  margin-top: 40px;
  padding: 26px 30px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  text-align: center;
}

/* Flexible-pricing note directly below pricing cards */
.pricing-flex {
  margin-top: 36px;
  text-align: center;
}
.pricing-flex p { margin: 4px 0; color: var(--color-text); }
.pricing-flex .flex-lead {
  font-size: 1.05rem;
  color: var(--color-primary);
  font-weight: 600;
}
.pricing-flex .flex-sub {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* Premium value strip between pricing and training */
.value-strip {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.value-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.14), transparent 55%);
  pointer-events: none;
}
.value-strip > * { position: relative; z-index: 1; }
.value-strip .strip-main {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin: 0;
  padding-inline-end: 40px;
  border-inline-end: 1px solid rgba(255,255,255,0.28);
}
.value-strip .strip-body h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.value-strip .strip-body p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .value-strip {
    grid-template-columns: 1fr;
    padding: 32px 26px;
    gap: 18px;
  }
  .value-strip .strip-main {
    padding-inline-end: 0;
    padding-bottom: 18px;
    border-inline-end: none;
    border-bottom: 1px solid rgba(255,255,255,0.28);
  }
}

/* Training & support cards (5 cards, 3+2 on desktop) */
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.training-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.training-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
}
.training-card .t-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.training-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--color-primary);
}
.training-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
/* Desktop: 3 + 2 balanced layout (last two cards centered on their own row) */
@media (min-width: 1025px) {
  .training-grid { grid-template-columns: repeat(6, 1fr); }
  .training-card:nth-child(1),
  .training-card:nth-child(2),
  .training-card:nth-child(3) { grid-column: span 2; }
  .training-card:nth-child(4) { grid-column: 2 / span 2; }
  .training-card:nth-child(5) { grid-column: 4 / span 2; }
}
/* Tablet: 2 columns, cards flow naturally (2 + 2 + 1) */
@media (max-width: 1024px) {
  .training-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile: 1 column */
@media (max-width: 600px) {
  .training-grid { grid-template-columns: 1fr; }
}

/* Key marketing message inside training/support section */
.key-message {
  margin-top: 44px;
  padding: 34px 40px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border-inline-start: 4px solid var(--color-accent);
  text-align: start;
}
.key-message p {
  margin: 0;
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.55;
}

/* "All packages include" three-column benefits block */
.includes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.includes-col {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.includes-col .inc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.includes-col .inc-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.includes-col h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--color-primary);
}
.includes-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.includes-col ul li {
  position: relative;
  padding-inline-start: 26px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}
.includes-col ul li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--color-accent-dark);
  font-weight: 700;
}
@media (max-width: 900px) {
  .includes-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Why NIZAK page-specific components
   ========================================================================== */

/* Global text-start alignment for all why-nizak card/section content
   (safeguards against inherited center/right-alignment quirks in RTL) */
.why-hero, .why-hero *,
.outcome-card, .outcome-card *,
.compare-col, .compare-col *,
.flow-step h4, .flow-arrow-note,
.key-message, .key-message *,
.split-media h3, .split-media p,
.kpi-card, .kpi-label,
.training-card, .training-card *,
.includes-col, .includes-col *,
.impact-placeholder h3 {
  text-align: start;
}

/* Executive hero with side image */
.why-hero {
  padding: calc(var(--header-height) + 56px) 0 72px;
  background: linear-gradient(180deg, #f0f6fb 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.why-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.why-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.why-hero .lead {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 14px;
}
.why-hero .support {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
}
.why-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.why-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.why-hero-media img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .why-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Value-statement callout */
.why-callout {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.why-callout::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}
.why-callout > * { position: relative; z-index: 1; }
.why-callout h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.35;
  margin: 0 0 18px;
}
.why-callout p {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.8;
}
@media (max-width: 600px) { .why-callout { padding: 36px 24px; } }

/* Six executive outcome cards */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.outcome-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.outcome-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
}
.outcome-card .o-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.outcome-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--color-primary);
}
.outcome-card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 0.98rem;
}
@media (max-width: 1024px) { .outcomes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .outcomes-grid { grid-template-columns: 1fr; } }

/* Before / With NIZAK comparison */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-col {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.compare-col.before { background: #fcf7f5; border-color: #ecd6cf; }
.compare-col.with {
  background: linear-gradient(180deg, #f2fbff 0%, #ffffff 100%);
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
  box-shadow: 0 12px 32px rgba(14,165,233,0.12);
  position: relative;
}
.compare-col .compare-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.compare-col .compare-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-primary);
}
.compare-col.before .compare-head { color: #a13a26; }
.compare-col.before .compare-head h3 { color: #a13a26; }
.compare-col ul { margin: 0; padding: 0; list-style: none; }
.compare-col li {
  position: relative;
  padding-inline-start: 30px;
  margin-bottom: 12px;
  color: var(--color-text);
  line-height: 1.65;
  font-size: 0.98rem;
}
.compare-col.before li::before {
  content: "✕";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: #c26246;
  font-weight: 700;
}
.compare-col.with li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--color-accent-dark);
  font-weight: 800;
}
.compare-badge {
  position: absolute;
  top: -12px;
  inset-inline-start: 28px;
  background: var(--gradient-brand);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
@media (max-width: 800px) { .compare-grid { grid-template-columns: 1fr; } }

/* Management loop / flow diagram */
.flow-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.flow-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.flow-step .num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.flow-step h4 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-primary);
  font-weight: 700;
}
.flow-arrow-note {
  margin-top: 26px;
  padding: 22px 26px;
  background: var(--color-bg-alt);
  border-inline-start: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.7;
}
.flow-diagram.seven { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 1100px) { .flow-diagram.seven { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .flow-diagram.seven { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .flow-diagram.seven { grid-template-columns: 1fr; } }
@media (max-width: 900px)  { .flow-diagram { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .flow-diagram { grid-template-columns: 1fr; } }

/* Command center KPI mini-cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.kpi-card .kpi-label {
  display: flex; align-items: center; gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.kpi-card .kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}
.kpi-card .kpi-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  font-style: italic;
}
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; } }

/* Asset chips */
.asset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}
.asset-chip {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.asset-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.asset-props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.asset-prop {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 600;
}
@media (max-width: 900px) { .asset-props { grid-template-columns: repeat(2, 1fr); } }

/* Two-column image + text section */
.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split-media img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.split-media h3 { font-size: 1.4rem; margin: 0 0 14px; color: var(--color-primary); text-align: start; }
.split-media p { color: var(--color-text-muted); line-height: 1.75; text-align: start; }
.split-media > div > * { text-align: start; }
@media (max-width: 900px) { .split-media { grid-template-columns: 1fr; gap: 24px; } }

/* Result / KPI category chips (with icon) */
.result-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.result-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.5;
}
.result-item .r-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
@media (max-width: 1024px) { .result-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .result-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .result-grid { grid-template-columns: 1fr; } }

/* Placeholder impact-numbers block */
.impact-placeholder {
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
}
.impact-placeholder h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.impact-placeholder p { margin: 0; line-height: 1.7; }

/* Final "value bundle" section */
.value-bundle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 8px auto 32px;
  max-width: 900px;
}
.value-bundle .vb-item {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: var(--shadow-sm);
}
.value-bundle .vb-plus {
  color: var(--color-accent-dark);
  font-weight: 800;
  font-size: 1.2rem;
}
.value-bundle-headline {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto;
}

/* Security section uses a 4-in-a-row grid (4 cards, avoid the 3+1 awkwardness of .outcomes-grid) */
section[aria-labelledby="security-heading"] .outcomes-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
  section[aria-labelledby="security-heading"] .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  section[aria-labelledby="security-heading"] .outcomes-grid { grid-template-columns: 1fr; }
}

/* Illustrative note (e.g. above KPI grid) */
.illust-note {
  margin: 8px 0 18px;
  padding: 10px 16px;
  background: var(--color-bg-alt);
  border-inline-start: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: start;
}

/* ---------------- Why-NIZAK additions: problem-first + FAQ + founding partner ---------------- */

/* Problem tags row (clickable-looking chips) */
.problem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 8px 0 32px;
}
.p-tag {
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.p-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-accent) 60%, var(--color-border));
}

/* Methodology pipeline (5 steps: Problem → Pilot → Result → Trust → Expansion) */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 8px 0 32px;
}
.pipe-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 18px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.pipe-step .pn {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
}
.pipe-step h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.4;
}
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }

/* Problem-first quote */
.pf-quote {
  margin: 8px auto 0;
  max-width: 860px;
  padding: 26px 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #eef8ff 0%, #ffffff 100%);
  border-inline-start: 4px solid var(--color-accent);
  text-align: center;
}
.pf-quote p {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  font-weight: 600;
  line-height: 1.7;
  font-style: italic;
}

/* FAQ cards */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.faq-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: start;
}
.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
}
.faq-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 12px;
  padding-inline-start: 30px;
  position: relative;
  line-height: 1.4;
  text-align: start;
}
.faq-card h3::before {
  content: "?";
  position: absolute;
  inset-inline-start: 0;
  top: -2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 0.98rem;
  text-align: start;
}
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }

/* Founding-partner band */
.founding-band {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.founding-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 30%, rgba(255,255,255,0.14), transparent 55%);
  pointer-events: none;
}
.founding-band > * { position: relative; z-index: 1; }
.founding-band .eyebrow { color: rgba(255,255,255,0.85); }
.founding-band h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  margin: 8px 0 14px;
  line-height: 1.35;
}
.founding-band p {
  color: rgba(255,255,255,0.94);
  line-height: 1.75;
  margin: 0;
}
.fp-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fp-bullet {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.18);
}
.fp-bullet span[aria-hidden] {
  font-size: 1.35rem;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .founding-band { grid-template-columns: 1fr; padding: 36px 28px; gap: 24px; }
}

/* Resource cards */
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.resource-card .file-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--color-bg-muted);
  color: var(--color-primary);
}

/* Forms */
.form-grid { display: grid; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: 0.9rem; color: var(--color-primary); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-text);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 10px; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: #e6f6fe;
  color: var(--color-accent-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.form-success.show { display: block; }

/* Contact channels */
.contact-channels { display: grid; gap: 18px; margin-top: 10px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.contact-channel .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-channel div h4 { margin-bottom: 2px; font-size: 1rem; }
.contact-channel div p { margin: 0; font-size: 0.9rem; }

/* CTA band */
.cta-band {
  background: var(--gradient-brand);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary); }

/* Placeholder image blocks */
.placeholder-media {
  background: var(--color-bg-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  min-height: 220px;
  text-align: center;
  padding: 20px;
}

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 2rem; font-weight: 800; color: var(--color-accent-dark); }
.stat-item .label { font-size: 0.88rem; color: var(--color-text-muted); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo-chip {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 14px;
}
.footer-brand img { display: block; height: 56px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-col a:hover { color: var(--color-accent-light); }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------------- Scroll reveal animation ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Nav collapses to hamburger well before the 8-item Arabic nav bar
   runs out of room (measured minimum ~1266px for the full RTL label set). */
@media (max-width: 1340px) {
  :root { --header-height: 88px; }
  .brand img { height: 56px; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    inset-inline-start: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1050;
  }
  .main-nav.open { max-height: 520px; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .main-nav a { display: block; padding: 12px 10px; font-size: 0.95rem; }
  .nav-toggle { display: block; order: 3; flex-shrink: 0; }
  .header-actions { gap: 6px; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .problem-item { grid-template-columns: 1fr; }
  .problem-side { border-inline-end: none; border-bottom: 1px solid var(--color-border); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  :root { --header-height: 76px; }
  .container { padding: 0 16px; }
  .brand img { height: 42px; }
  .lang-toggle { padding: 8px 10px; gap: 4px; }
  .lang-toggle .lang-label { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding-top: calc(var(--header-height) + 40px); padding-bottom: 56px; }
  .page-hero { padding-top: calc(var(--header-height) + 36px); padding-bottom: 36px; }
  .sector-item { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .pricing-card { padding: 28px 22px; }
}

@media (max-width: 400px) {
  .brand img { height: 36px; }
  .header-actions { gap: 4px; }
  .lang-toggle { padding: 7px 8px; }
  .nav-toggle { padding: 6px; }
}

/* ---------------- Accessibility: focus-visible -------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn:focus-visible { outline-offset: 3px; }
.main-nav a:focus-visible { outline-offset: -2px; }

/* Ensure images used as backgrounds don't overflow */
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s ease; }
img[loading="lazy"].loaded, img[loading="lazy"][complete] { opacity: 1; }

/* High-contrast mode support */
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .card { border: 1px solid ButtonText; }
}
