/* =====================================================================
   Silah Logistics — vanilla static build
   Single source of truth for design tokens + all component styles.
   Mirrors the brand spec: navy #0A2A66, red #E11D2A, gold eyebrow,
   light-gray surfaces. Full LTR/RTL support via logical properties.
   ===================================================================== */

:root {
  --navy: #0a2a66;
  --navy-dark: #071e4a;
  --navy-light: #143a85;
  --brand-red: #e11d2a;
  --brand-red-dark: #b71722;
  --ink: #1f2937;
  --muted: #4b5563;
  --surface: #f5f7fa;
  --gold-bg: #f3e9d2;
  --gold-text: #8a6d1f;
  --emerald: #10b981;
  --emerald-600: #059669;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;

  --shadow-card: 0 10px 30px -12px rgba(10, 42, 102, 0.18);
  --shadow-card-hover: 0 20px 45px -15px rgba(10, 42, 102, 0.3);
  --shadow-lg: 0 18px 40px -12px rgba(10, 42, 102, 0.28);

  --radius-lg: 0.625rem;
  --radius-xl: 0.875rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  --navbar-h: 4rem;
  --sidebar-w: 16rem;
  --drawer-w: 18rem;

  --font-sans: 'Inter', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-arabic: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* ----------------------------- Reset ------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir='rtl'] body {
  font-family: var(--font-arabic);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
  line-height: 1.15;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-red);
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

/* --------------------------- Utilities ----------------------------- */
.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}
.icon-sm {
  width: 1rem;
  height: 1rem;
}
.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--gold-bg);
  color: var(--gold-text);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.text-center {
  text-align: center;
}

.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;
}

/* Flip directional icons (arrows / chevrons) in RTL */
html[dir='rtl'] .rtl-flip {
  transform: scaleX(-1);
}

/* ---------------------------- Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s,
    transform 0.1s, box-shadow 0.2s;
  /* default size = md */
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
.btn:active {
  transform: scale(0.98);
}
.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.btn--primary:hover {
  background: var(--brand-red-dark);
}

.btn--secondary {
  background: #fff;
  color: var(--navy);
  border: 2px solid rgba(10, 42, 102, 0.2);
}
.btn--secondary:hover {
  border-color: var(--navy);
  background: var(--surface);
}

.btn--navy {
  background: var(--navy);
  color: #fff;
}
.btn--navy:hover {
  background: var(--navy-light);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
}
.btn--ghost:hover {
  background: rgba(10, 42, 102, 0.05);
}

.btn--white {
  background: #fff;
  color: var(--navy);
}
.btn--white:hover {
  background: var(--surface);
}

/* ============================= LAYOUT ============================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: var(--navbar-h);
}
.navbar__left,
.navbar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Allow the brand lockup to shrink instead of overflowing on small screens */
.navbar__left {
  min-width: 0;
}
.navbar__right {
  gap: 0.5rem;
  flex-shrink: 0;
}
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  border-radius: var(--radius-lg);
}
.hamburger:hover {
  background: var(--surface);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.brand__symbol {
  height: 2.25rem;
  width: 2.25rem;
  object-fit: contain;
  /* The wordmark already includes the chain symbol, so the standalone symbol
     stays hidden — showing both would duplicate the icon. */
  display: none;
}
/* Full logo lockup (symbol + name) shows on mobile too — same as desktop —
   sized down so it fits the header, and allowed to shrink before it overflows. */
.brand__wordmark {
  height: 1.75rem;
  width: auto;
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: left center;
  display: block;
}
html[dir='rtl'] .brand__wordmark {
  object-position: right center;
}
/* Language label is hidden on small screens (globe icon only) to make room
   for the brand name; restored at >=640px. */
.lang-toggle [data-lang-label] {
  display: none;
}
.navbar__login {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.navbar__login:hover {
  background: var(--surface);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--slate-200);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.2s, background 0.2s;
}
.lang-toggle:hover {
  border-color: rgba(10, 42, 102, 0.3);
  background: var(--surface);
}

/* shell = sidebar + content row */
.shell {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}
.shell__main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.page-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 1 auto;
}

/* --------------------------- Sidebar ------------------------------- */
.sidebar {
  position: fixed;
  inset-block: 0;
  top: var(--navbar-h);
  inset-inline-start: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: var(--drawer-w);
  overflow-y: auto;
  background: var(--navy-dark);
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
html[dir='rtl'] .sidebar {
  transform: translateX(100%);
}
.sidebar.is-open {
  transform: translateX(0);
}
.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0;
}
.sidebar__appname {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}
.sidebar__close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.375rem;
  border-radius: var(--radius-lg);
  display: inline-flex;
}
.sidebar__close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.sidebar__nav {
  flex: 1 1 auto;
  padding: 1.25rem 0.75rem;
}
.sidebar__group {
  margin-bottom: 1.5rem;
}
.sidebar__grouplabel {
  padding: 0 0.75rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: var(--radius-lg);
  border-inline-start: 4px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-300);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.sidebar__link.is-active {
  border-inline-start-color: var(--brand-red);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sidebar__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  top: var(--navbar-h);
  z-index: 45;
  background: rgba(7, 30, 74, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.sidebar-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------------------------- Footer ------------------------------- */
.footer {
  background: var(--navy-dark);
  color: var(--slate-300);
}
.footer__inner {
  padding-block: 3.5rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__brand img {
  height: 2.25rem;
  width: 2.25rem;
  object-fit: contain;
}
.footer__brand span {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
}
.footer__tagline {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(203, 213, 225, 0.85);
}
.footer__coltitle {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}
.footer__links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer__links a {
  font-size: 0.875rem;
  color: rgba(203, 213, 225, 0.85);
  transition: color 0.2s;
}
.footer__links a:hover {
  color: #fff;
}
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(203, 213, 225, 0.85);
}

/* Footer contact list (phone + email) — clickable, icon-led. */
.footer__contact {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  font-size: 0.875rem;
  color: rgba(203, 213, 225, 0.85);
  transition: color 0.2s;
}
.footer__contact a:hover {
  color: #fff;
}
.footer__contact a svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: var(--brand-red);
}
/* Keep phone numbers left-to-right even inside the Arabic (RTL) layout. */
.ltr-num {
  unicode-bidi: isolate;
  direction: ltr;
}

/* Footer social row — LinkedIn / Facebook / Instagram. */
.footer__social {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.625rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(203, 213, 225, 0.9);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.footer__social a:hover {
  background: var(--brand-red);
  color: #fff;
  transform: translateY(-2px);
}
.footer__social a svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ============================ SECTIONS ============================= */
.section {
  padding-block: 4rem;
}
.section--surface {
  background: var(--surface);
}
.section--white {
  background: #fff;
}
.section--navy {
  background: var(--navy);
  color: #fff;
}

.section-head {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.25rem);
  letter-spacing: -0.01em;
}
.section-head h2.invert,
.section--navy .section-head h2 {
  color: #fff;
}
.section-head__subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted);
}
.section--navy .section-head__subtitle,
.section-head.invert .section-head__subtitle {
  color: rgba(255, 255, 255, 0.8);
}
.section-head.invert h2 {
  color: #fff;
}

.mt-4 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 0.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.mt-12 {
  margin-top: 3rem;
}

/* ----------------------------- Cards ------------------------------- */
.card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-100);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
.card--hover {
  transition: transform 0.3s, box-shadow 0.3s;
}
.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: var(--radius-xl);
}
.icon-box--navy-soft {
  background: rgba(10, 42, 102, 0.05);
  color: var(--navy);
}
.icon-box--red-soft {
  background: rgba(225, 29, 42, 0.1);
  color: var(--brand-red);
}
.icon-box--navy {
  background: var(--navy);
  color: #fff;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: var(--radius-2xl);
}

.feature-title {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.feature-desc {
  margin-top: 0.625rem;
  color: var(--muted);
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-dark);
  color: #fff;
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(7, 30, 74, 0.85),
    rgba(7, 30, 74, 0.75),
    rgba(7, 30, 74, 0.9)
  );
}
.hero__inner {
  padding-block: 6rem;
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}
.hero h1 {
  margin-top: 1.25rem;
  color: #fff;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  line-height: 1.1;
}
.hero__subtitle {
  margin-top: 1.5rem;
  margin-inline: auto;
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero__cta {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.hero__pills {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.pill .icon {
  color: #fff;
}

/* secondary page hero (image bg) */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-dark);
  color: #fff;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 30, 74, 0.8);
}
.page-hero__inner {
  padding-block: 5rem;
  text-align: center;
}
.page-hero h1 {
  margin-top: 1.25rem;
  margin-inline: auto;
  max-width: 48rem;
  color: #fff;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3rem);
  line-height: 1.1;
}
.page-hero__subtitle {
  margin-top: 1.25rem;
  margin-inline: auto;
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================== STATS ============================= */
.stats-grid {
  grid-template-columns: repeat(2, 1fr);
}
.stat-card {
  text-align: center;
}
.stat-value {
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

/* ============================== ABOUT ============================= */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.about__title {
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.25rem);
  letter-spacing: -0.01em;
}
.about__body {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--muted);
}
.checklist {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.checklist .icon {
  margin-top: 0.125rem;
  color: var(--emerald);
}
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
}
.media-frame img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* ====================== STEP / PROCESS CARDS ====================== */
.step-card {
  position: relative;
  height: 100%;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-100);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
}
.step-card__num {
  position: absolute;
  top: 1.5rem;
  inset-inline-end: 1.5rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(10, 42, 102, 0.06);
  line-height: 1;
}
.process-card {
  position: relative;
  height: 100%;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-100);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
.process-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.process-card__num {
  font-size: 2.25rem;
  font-weight: 900;
  color: rgba(10, 42, 102, 0.1);
  line-height: 1;
}
.process-card h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.process-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.why-card {
  height: 100%;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-100);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  text-align: center;
}
.why-card .icon-box {
  margin-inline: auto;
}
.why-card h3 {
  margin-top: 1rem;
  font-weight: 700;
}
.why-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ========================= NETWORK BAND ========================== */
.network {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.network__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.network__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 42, 102, 0.8);
}
.network__inner {
  padding-block: 5rem;
}
.network__metrics {
  margin-top: 3rem;
  margin-inline: auto;
  max-width: 48rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.metric-card {
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  text-align: center;
}
.metric-card .stat-value {
  color: #fff;
}
.metric-card .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

/* ========================= TESTIMONIAL =========================== */
.testimonial {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}
.testimonial .quote-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-inline: auto;
  color: rgba(225, 29, 42, 0.3);
}
.testimonial blockquote {
  margin: 1.25rem 0 0;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
}
.testimonial__name {
  margin-top: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.testimonial__role {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ============================ FINAL CTA ========================== */
.cta-block {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}
.cta-block h2 {
  margin-top: 1.25rem;
  color: #fff;
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.25rem);
}
.cta-block__subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}
.cta-block__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--brand-red);
  color: #fff;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ====================== QUICK QUOTE START ======================== */
.qstart__title {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3rem);
  letter-spacing: -0.01em;
}
.qstart__subtitle {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--muted);
}
.qstart__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.qstart__benefits-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}
.qstart__ministats {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  border-top: 1px solid var(--slate-100);
  padding-top: 1.5rem;
}
.qstart__ministat {
  text-align: center;
}
.qstart__ministat .stat-value {
  font-size: 1.5rem;
}
.qstart__ministat p {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ============================= WIZARD ============================ */
.wizard {
  background: var(--surface);
}
.wizard__inner {
  max-width: 48rem;
  margin-inline: auto;
  padding-block: 3rem;
}
.wizard__head {
  text-align: center;
}
.wizard__head h1 {
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.25rem);
}
.wizard__head p {
  margin-top: 0.75rem;
  color: var(--muted);
}
/* Stepper */
.stepper {
  margin-top: 2rem;
  display: flex;
  align-items: center;
}
.stepper__step {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.stepper__circle {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 2px solid var(--slate-300);
  background: #fff;
  color: var(--slate-400);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.stepper__label {
  font-size: 0.75rem;
  text-align: center;
  color: var(--slate-400);
}
.stepper__step.is-active .stepper__circle {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(10, 42, 102, 0.15);
}
.stepper__step.is-active .stepper__label {
  color: var(--navy);
  font-weight: 600;
}
.stepper__step.is-done .stepper__circle {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}
.stepper__step.is-done .stepper__label {
  color: var(--emerald-600);
}
.stepper__line {
  height: 2px;
  flex: 1 1 0;
  margin-inline: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--slate-200);
  transition: background 0.3s;
}
.stepper__line.is-done {
  background: var(--emerald);
}

/* Form fields */
.wizard__form {
  margin-top: 2rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.field__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.field__req {
  color: var(--brand-red);
}
.control {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  background: #fff;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--ink);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.control::placeholder {
  color: var(--slate-400);
}
.control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 42, 102, 0.2);
}
textarea.control {
  resize: none;
}
.field.has-error .control {
  border-color: var(--brand-red);
}
.field.has-error .control:focus {
  box-shadow: 0 0 0 3px rgba(225, 29, 42, 0.3);
}
.field__error {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-red);
  min-height: 1rem;
}

.select-wrap {
  position: relative;
}
.select-wrap select.control {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.5rem;
}
.select-wrap .chevron {
  position: absolute;
  inset-inline-end: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--slate-400);
}

.form-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.form-stack {
  display: grid;
  gap: 1.25rem;
}

/* Cargo type cards */
.cargo-cards {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.cargo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-xl);
  border: 2px solid var(--slate-200);
  background: #fff;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.cargo-card:hover {
  border-color: rgba(10, 42, 102, 0.4);
}
.cargo-card .icon {
  color: var(--slate-400);
}
.cargo-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.cargo-card__desc {
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--muted);
}
.cargo-card.is-selected {
  border-color: var(--navy);
  background: rgba(10, 42, 102, 0.05);
}
.cargo-card.is-selected .icon {
  color: var(--navy);
}

/* Combobox */
.combobox {
  position: relative;
}
.combobox__field {
  position: relative;
}
.combobox__pin {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--slate-400);
}
.combobox__input {
  padding-inline-start: 2.25rem;
}
.combobox__input.has-value {
  padding-inline-end: 2.25rem;
}
.combobox__clear {
  position: absolute;
  inset-inline-end: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--slate-400);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  display: inline-flex;
}
.combobox__clear:hover {
  background: var(--slate-100);
  color: var(--navy);
}
.combobox__list {
  position: absolute;
  z-index: 30;
  margin-top: 0.375rem;
  max-height: 18rem;
  width: 100%;
  overflow: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  background: #fff;
  padding-block: 0.375rem;
  box-shadow: var(--shadow-lg);
  scrollbar-width: thin;
  scrollbar-color: #c5cbd6 transparent;
}
.combobox__list::-webkit-scrollbar {
  width: 8px;
}
.combobox__list::-webkit-scrollbar-thumb {
  background: #c5cbd6;
  border-radius: var(--radius-full);
}
.combobox__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.combobox__option.is-active {
  background: rgba(10, 42, 102, 0.05);
}
.combobox__option-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.combobox__option-name {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.combobox__option-sub {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.combobox__code {
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0.25rem 0.5rem;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}
.combobox__empty {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Wizard nav */
.wizard__nav {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Result screen */
.result__head {
  text-align: center;
}
.result__check {
  margin-inline: auto;
  display: inline-flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: #d1fae5;
  color: var(--emerald-600);
}
.result__check .icon {
  width: 2rem;
  height: 2rem;
}
.result__head h1 {
  margin-top: 1.25rem;
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.25rem);
}
.result__head p {
  margin-top: 0.75rem;
  color: var(--muted);
}
.summary {
  margin-top: 2rem;
}
.summary h2 {
  font-size: 1.125rem;
  font-weight: 700;
}
.summary__grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  font-size: 0.875rem;
}
.summary__grid dt {
  color: var(--muted);
}
.summary__grid dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}
.quotes-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-100);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
.quote-card.is-highlight {
  border-color: var(--brand-red);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(225, 29, 42, 0.3);
}
.quote-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(10, 42, 102, 0.05);
  color: var(--navy);
}
.quote-card.is-highlight .quote-tag {
  background: rgba(225, 29, 42, 0.1);
  color: var(--brand-red);
}
.quote-card__carrier {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.quote-card__price {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--navy);
}
.quote-card__transit {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.quote-card .btn {
  margin-top: 1.25rem;
}
.result__note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
.result__restart {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

/* ============================== STUBS ============================ */
.stub {
  background: var(--surface);
}
.stub__inner {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 5rem;
}
.stub__icon {
  display: inline-flex;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl);
  background: rgba(10, 42, 102, 0.05);
  color: var(--navy);
}
.stub__icon .icon {
  width: 2rem;
  height: 2rem;
}
.stub h1 {
  margin-top: 1rem;
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.25rem);
}
.stub p {
  margin-top: 0.75rem;
  max-width: 28rem;
  color: var(--muted);
}
.stub .btn {
  margin-top: 2rem;
}

/* ============================= LEGAL ============================ */
.legal {
  background: var(--surface);
}
/* Legal copy is English-only — keep it LTR even when the site is in RTL. */
.legal__inner {
  max-width: 56rem;
  margin-inline: auto;
  padding-block: 3rem;
  direction: ltr;
  text-align: left;
}
.legal__title {
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);
}
.legal__date {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.legal__toc {
  margin-top: 2rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-100);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
.legal__toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.legal__toc ol {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem 1.5rem;
  grid-template-columns: 1fr;
  list-style: none;
}
.legal__toc a {
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.2s;
}
.legal__toc a:hover {
  color: var(--brand-red);
}
.legal__article {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.legal__section {
  scroll-margin-top: calc(var(--navbar-h) + 1rem);
}
.legal__section h2 {
  font-size: 1.25rem;
  color: var(--navy);
}
.legal__section p {
  margin-top: 0.75rem;
  color: var(--muted);
  line-height: 1.75;
}
.legal__list {
  margin-top: 0.75rem;
  list-style: disc;
  padding-inline-start: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal__list li {
  color: var(--muted);
  line-height: 1.7;
}
.legal__list li strong {
  color: var(--navy);
  font-weight: 700;
}
.legal__note {
  font-weight: 600;
  color: var(--navy);
}
/* Inline, icon-led, clickable contact link inside legal copy. */
.legal__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: var(--navy);
  vertical-align: middle;
  transition: color 0.2s;
}
.legal__contact:hover {
  color: var(--brand-red);
}
.legal__contact svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: var(--brand-red);
}
.legal__back {
  margin-top: 2.5rem;
}

/* ============================= TOAST ============================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(1rem);
  background: var(--navy-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 60;
  max-width: 90vw;
  text-align: center;
}
.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===================== SCROLL-REVEAL ANIMATION =================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal--left {
  transform: translateX(24px);
}
.reveal--right {
  transform: translateX(-24px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:active {
    transform: none;
  }
}

/* ============================ RESPONSIVE ========================= */
@media (min-width: 480px) {
  .stats-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
  .brand__symbol {
    display: none;
  }
  .brand__wordmark {
    display: block;
    height: 2.25rem;
  }
  .lang-toggle [data-lang-label] {
    display: inline;
  }
  .navbar__login {
    display: inline-flex;
  }
  .hero__cta,
  .cta-block__actions,
  .qstart__actions {
    flex-direction: row;
  }
  .footer__bottom {
    flex-direction: row;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .cargo-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .network__metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .summary__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .legal__toc ol {
    grid-template-columns: 1fr 1fr;
  }
  .stepper__step {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 0.75rem;
  }
  .stepper__label {
    font-size: 0.875rem;
  }
  .stepper__line {
    margin-inline: 1rem;
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quotes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
  .section {
    padding-block: 6rem;
  }
  .hero__inner {
    padding-block: 9rem;
  }
  .page-hero__inner {
    padding-block: 7rem;
  }
  .network__inner {
    padding-block: 6rem;
  }
  .wizard__inner {
    padding-block: 4rem;
  }

  .stats-grid,
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .split,
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Hamburger hidden, sidebar becomes a sticky in-flow column */
  .hamburger {
    display: none;
  }
  .sidebar {
    position: sticky;
    top: var(--navbar-h);
    inset-inline-start: auto;
    z-index: 1;
    height: calc(100vh - var(--navbar-h));
    width: var(--sidebar-w);
    transform: none !important;
  }
  html[dir='rtl'] .sidebar {
    transform: none !important;
  }
  .sidebar__head {
    display: none;
  }
  .sidebar-overlay {
    display: none;
  }
}

@media (min-width: 1280px) {
  .split {
    gap: 4rem;
  }
}
