/* ==========================================================================
   Wasla Logistics Platform — Public Stylesheet
   Art Direction: Arabic-First Editorial Logistics SaaS
   Canvas: Airy White / Soft Blue (#f8fbfe), Royal Blue (#155eef), Navy (#091326), Orange (#f97316)
   Typography: Alexandria Variable Font (Bilingual Arabic + Latin)
   ========================================================================== */

@font-face {
  font-family: "Alexandria";
  src: url("/assets/fonts/Alexandria-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Colors */
  --blue: #155eef;
  --blue-hover: #0f4fd6;
  --blue-dark: #003db3;
  --blue-light: #eff5ff;
  --blue-soft: #dbe8fe;
  --blue-border: #bfd7fe;

  --navy: #091326;
  --navy-deep: #050b14;
  --navy-card: #0f1f3d;
  --navy-light: #1e293b;

  --orange: #f97316;
  --orange-light: #fff7ed;
  --orange-border: #fed7aa;

  /* Neutrals & Canvas */
  --canvas: #ffffff;
  --canvas-soft: #f8fbfe;
  --canvas-tint: #f0f6fd;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --surface-raised: #fbfdff;

  --text-ink: #0b1528;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --border-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-card: #e5edf7;

  /* Typography */
  --font-family: "Alexandria", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;

  /* Dimensions & Shapes */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Elevated Shadows */
  --shadow-xs: 0 1px 3px rgba(12, 25, 56, 0.05);
  --shadow-sm: 0 4px 16px -2px rgba(12, 25, 56, 0.04);
  --shadow-md: 0 12px 36px -6px rgba(12, 25, 56, 0.08);
  --shadow-lg: 0 24px 60px -12px rgba(12, 25, 56, 0.12);
  --shadow-frame: 0 20px 50px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.7);
  --shadow-hero: 0 30px 80px -15px rgba(21, 94, 239, 0.15), 0 0 0 1px rgba(21, 94, 239, 0.08);
}

/* ==========================================================================
   Bilingual Language Switch System
   ========================================================================== */
html[lang="ar"] .lang-en,
html[dir="rtl"] .lang-en {
  display: none !important;
}

html[lang="en"] .lang-ar,
html[dir="ltr"] .lang-ar {
  display: none !important;
}

html[lang="ar"] .lang-block-en,
html[dir="rtl"] .lang-block-en {
  display: none !important;
}

html[lang="en"] .lang-block-ar,
html[dir="ltr"] .lang-block-ar {
  display: none !important;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--text-ink);
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font: inherit;
}

.public-shell {
  min-height: 100vh;
  background-color: var(--canvas);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ==========================================================================
   Buttons & Micro-interactions
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(21, 94, 239, 0.2);
}

.btn-primary:hover {
  background-color: var(--blue-hover);
  border-color: var(--blue-hover);
  box-shadow: 0 8px 24px rgba(21, 94, 239, 0.28);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-ink);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--canvas-soft);
  border-color: var(--blue-border);
  color: var(--blue);
}

.btn-ghost-white {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-ghost-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  padding: 3px;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo-wrap {
  transform: scale(1.04);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.15s ease;
  padding: 6px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Segmented Language Toggle Pill */
.lang-switch-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--canvas-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn:hover {
  color: var(--text-ink);
}

.lang-btn.active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-v2 {
  position: relative;
  padding: 80px 0 90px;
  background: radial-gradient(ellipse 65% 55% at 75% 20%, #eaf2fd 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 20% 85%, #fff6ee 0%, transparent 50%),
              #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 580px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero-title .highlight {
  color: var(--blue);
  position: relative;
  display: inline-block;
}

.hero-lead-text {
  margin: 0 0 32px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
  color: var(--text-body);
}

.hero-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-identity-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.identity-bullet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.identity-bullet a {
  color: var(--text-body);
  font-weight: 600;
}

.identity-bullet a:hover {
  color: var(--blue);
}

.identity-sep {
  color: var(--border);
}

/* Hero Media Frame */
.hero-stage {
  position: relative;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  inset: -15px -15px -25px -15px;
  background: radial-gradient(circle, rgba(21, 94, 239, 0.12) 0%, rgba(249, 115, 22, 0.05) 50%, transparent 70%);
  filter: blur(28px);
  z-index: -1;
  border-radius: 36px;
}

.hero-media-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hero);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media-card img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 8px);
  background: #f1f5f9;
}

/* ==========================================================================
   Section Headers (Reusable)
   ========================================================================== */
.section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--blue-light);
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

/* ==========================================================================
   Factual Capabilities Strip (Replaces fabricated KPIs)
   ========================================================================== */
.capabilities-section {
  padding: 48px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cap-card {
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: var(--canvas-soft);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cap-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: var(--blue-border);
  box-shadow: var(--shadow-sm);
}

.cap-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-bottom: 6px;
}

.cap-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.cap-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Four-Step Operational Flow
   ========================================================================== */
.workflow-section {
  padding: 100px 0;
  background: var(--canvas-soft);
  border-bottom: 1px solid var(--border);
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-item {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.step-item:hover {
  transform: translateY(-3px);
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.step-glyph {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--canvas-tint);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.step-item h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.step-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ==========================================================================
   Large Dashboard / Control Section (dashboard_laptop.webp)
   ========================================================================== */
.control-section {
  padding: 100px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.control-container {
  background: radial-gradient(ellipse at 50% 0%, #edf5ff 0%, #f7faff 60%, #ffffff 100%);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-xl);
  padding: 64px 48px 48px;
  box-shadow: var(--shadow-sm);
}

.control-media-wrap {
  margin: 40px auto 48px;
  max-width: 1020px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-frame);
}

.control-media-wrap img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
  background: #0f1c33;
}

.control-bullets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.bullet-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bullet-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}

.bullet-text h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}

.bullet-text p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-body);
}

/* ==========================================================================
   Courier & Live Tracking Section (courier_tracking.webp)
   ========================================================================== */
.courier-section {
  padding: 100px 0;
  background: var(--canvas-soft);
  border-bottom: 1px solid var(--border);
}

.editorial-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.editorial-layout.reverse .editorial-media-box {
  order: 2;
}

.editorial-layout.reverse .editorial-copy-box {
  order: 1;
}

.editorial-copy-box {
  max-width: 520px;
}

.editorial-copy-box h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.editorial-copy-box > p:not(.section-tag) {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

.editorial-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 14px;
}

.editorial-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
}

.editorial-feature-list .check-pill {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.editorial-media-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-frame);
}

.editorial-media-box img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 6px);
  background: #0f1c33;
}

/* ==========================================================================
   Inter-Company Logistics Network (van_boxes.webp)
   ========================================================================== */
.network-section {
  padding: 100px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.network-media-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-frame);
}

.network-media-box img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 6px);
  background: #0f1c33;
}

/* ==========================================================================
   Restrained 4-Item Supporting Features Strip
   ========================================================================== */
.supporting-section {
  padding: 90px 0;
  background: var(--canvas-soft);
  border-bottom: 1px solid var(--border);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.support-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.support-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md);
}

.support-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.support-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.support-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-body);
}

/* ==========================================================================
   Final CTA Banner
   ========================================================================== */
.final-cta-section {
  padding: 90px 0 100px;
  background: #ffffff;
}

.cta-banner-card {
  position: relative;
  background: linear-gradient(135deg, #091326 0%, #11254a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cta-banner-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 94, 239, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.cta-banner-content .section-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-banner-content h2 {
  margin: 12px 0 16px;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.cta-banner-content p {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.75;
  color: #cbd5e1;
}

.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.cta-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.cta-footer-meta a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-col p {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 380px;
}

.footer-nav-col h4,
.footer-contact-col h4 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ink);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-nav-list a {
  font-size: 13.5px;
  color: var(--text-body);
}

.footer-nav-list a:hover {
  color: var(--blue);
}

.footer-contact-items {
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.footer-contact-items a {
  color: var(--blue);
  font-weight: 500;
}

.footer-bottom-bar {
  padding: 24px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Subpages Support (About, Features, Contact, Privacy, Terms)
   ========================================================================== */
.page-hero {
  padding: 80px 0 60px;
  background: var(--canvas-soft);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.page-hero-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 720px;
}

.section {
  padding: 80px 0;
}

.editorial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
}

.editorial-row:last-child {
  border-bottom: none;
}

.editorial-row.reverse .editorial-media {
  order: 2;
}

.editorial-row.reverse .editorial-text {
  order: 1;
}

.editorial-media-inner {
  background: var(--canvas-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.editorial-media-inner img {
  border-radius: calc(var(--radius-lg) - 4px);
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
}

.editorial-text h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}

.editorial-text p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flow-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.flow-visual {
  background: var(--canvas-soft);
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.flow-visual img {
  border-radius: var(--radius-sm);
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
}

.flow-body {
  padding: 20px;
}

.flow-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.flow-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.flow-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-body);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xs);
}

.contact-card-box h2, .contact-card-box h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.contact-card-box p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-body);
}

.contact-card-box a {
  color: var(--blue);
  font-weight: 600;
}

.legal-content {
  max-width: 840px;
  margin: 0 auto;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}

.legal-content h2, .legal-content h3 {
  color: var(--navy);
  margin: 32px 0 12px;
}

.legal-content p, .legal-content li {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.8;
}

/* ==========================================================================
   Fallback App Loader (Tenant & Login Routes)
   ========================================================================== */
.app-loading {
  display: none;
}

.app-route .public-shell,
.tenant-route .public-shell {
  display: none !important;
}

.app-route .app-loading,
.tenant-route .app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f8fafc;
  padding: 24px;
}

.app-loading-card {
  width: min(420px, 100%);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.app-loading-card strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.app-loading-card p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.native-splash-powered {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
}

#native-splash.is-tenant .native-splash-powered {
  display: block;
}

.loader {
  width: 36px;
  height: 36px;
  margin: 22px auto 0;
  border: 3px solid #e2e8f0;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-color-scheme: dark) {
  .app-route, .tenant-route {
    background: #151b26;
  }
  .app-loading-card {
    background: #151b26;
    border-color: #263244;
    color: #f8fafc;
  }
  .app-loading-card strong {
    color: #f8fafc;
  }
  .app-loading-card p {
    color: #94a3b8;
  }
  .loader {
    border-color: #263244;
    border-top-color: var(--blue);
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid-v2 {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-content {
    max-width: 100%;
  }
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .control-bullets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-layout, .editorial-layout.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .editorial-layout.reverse .editorial-media-box {
    order: initial;
  }
  .editorial-layout.reverse .editorial-copy-box {
    order: initial;
  }
  .editorial-copy-box {
    max-width: 100%;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .steps-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-strip {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .nav {
    height: 68px;
  }
  .brand-tagline {
    display: none;
  }
  .hero-v2 {
    padding: 48px 0 60px;
  }
  .hero-title {
    font-size: 34px;
    line-height: 1.2;
  }
  .hero-lead-text {
    font-size: 15px;
    line-height: 1.7;
  }
  .hero-actions-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-actions-row .btn {
    width: 100%;
  }
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .control-section {
    padding: 60px 0;
  }
  .control-container {
    padding: 36px 20px 24px;
    border-radius: var(--radius-lg);
  }
  .control-media-wrap {
    margin: 24px 0;
    padding: 6px;
    border-radius: var(--radius-md);
  }
  .control-bullets-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .editorial-media-box, .network-media-box {
    padding: 6px;
    border-radius: var(--radius-lg);
  }
  .support-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cta-banner-card {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
  }
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .brand-name {
    font-size: 18px;
  }
  .hero-title {
    font-size: 30px;
  }
  .cap-grid {
    grid-template-columns: 1fr;
  }
}


/* WASLA_ARABIC_RESPONSIVE_INTEGRITY_V1 */
.public-shell :where(h1,h2,h3,h4,p,li,a,button,span,strong,small) {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  min-width: 0;
}
html[lang="ar"] .public-shell :where(h1,h2,h3,h4,p,li,a,button,span,strong,small) {
  letter-spacing: 0;
}
.hero-title,
.section-head h2,
.editorial-copy-box h2,
.cta-banner-content h2,
.page-hero h1 {
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}
.hero-lead-text,
.section-head p,
.editorial-copy-box p,
.cta-banner-content p,
.page-hero-lead,
.cap-desc,
.step-item p,
.support-card p {
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
}
.hero-content,
.hero-stage,
.cap-card,
.step-item,
.control-container,
.bullet-card,
.editorial-layout > *,
.editorial-row > *,
.support-card,
.flow-card,
.flow-body,
.flow-strip > *,
.contact-grid > *,
.contact-card-box,
.cta-banner-content,
.footer-top-grid > *,
.footer-main > *,
.nav-actions,
.hero-identity-inline > *,
.identity-card {
  min-width: 0;
}
.flow-body h3,
.contact-card-box h2,
.contact-card-box h3,
.identity-header strong {
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}
.flow-body p,
.contact-card-box p,
.identity-card p {
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
}
.identity-card {
  margin-top: 36px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--navy);
  box-shadow: var(--shadow-xs);
}
.identity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.identity-header strong {
  font-size: 18px;
}
.identity-badge {
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
}
.identity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}
.identity-links a {
  color: var(--blue);
}
@media (max-width: 980px) {
  .flow-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .btn {
    white-space: normal;
    height: auto;
    min-height: 46px;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.45;
    text-align: center;
  }
  .btn-lg { min-height: 50px; }
  .hero-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.5;
  }
  .hero-identity-inline {
    gap: 8px 12px;
  }
  .identity-sep { display: none; }
}
@media (max-width: 768px) {
  .flow-strip {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .editorial-row,
  .editorial-row.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .editorial-row.reverse .editorial-media {
    order: 1;
  }
  .editorial-row.reverse .editorial-text {
    order: 2;
  }
}
@media (max-width: 700px) {
  .section-head h2,
  .editorial-copy-box h2,
  .cta-banner-content h2,
  .page-hero h1 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.28;
  }
  .hero-title {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.22;
  }
  .hero-lead-text,
  .section-head p,
  .editorial-copy-box p,
  .cta-banner-content p {
    line-height: 1.75;
  }
  .cap-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 24px); }
  .nav-actions { gap: 8px; }
  .lang-btn { padding-inline: 9px; }
  .login-link { padding-inline: 14px; }
  .hero-v2 { padding-top: 38px; }
  .hero-actions-row,
  .cta-actions { gap: 10px; }
  .flow-body { padding: 18px 16px; }
  .contact-card-box { padding: 24px 18px; }
  .identity-card { padding: 18px 16px; }
  .hero-identity-inline {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .identity-bullet {
    width: 100%;
    white-space: normal;
  }
}

.identity-bullet a,
.footer-contact-items a,
.cta-footer-meta a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
