/* REROUTE — website. Design tokens match the company profile (colours sampled from the logo). */
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("assets/fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("assets/fonts/Tajawal-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("assets/fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --navy: #1E5079;
  --navy-deep: #0E3F66;
  --navy-night: #0B3355;
  --sky: #1A8BD7;
  --sky-soft: #6DB5E6;
  --ink: #15334E;
  --ink-2: #435E77;
  --muted: #7489A0;
  --line: #D3DFEA;
  --line-soft: #E6EEF5;
  --mist: #F3F7FB;
  --white: #fff;
  --wrap: 1120px;
  --gutter: 28px;
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
  --latin: "Montserrat", "Segoe UI", Arial, sans-serif;
  --track: .14em;
}
html[lang="ar"] { --font: "Tajawal", "Segoe UI", Tahoma, sans-serif; --track: 0; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { line-height: 1.85; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ol, ul { list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lat { font-family: var(--latin); }
html[dir="rtl"] .dir { transform: scaleX(-1); }

.ico { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line-soft); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
/* Logo used as supplied; the frame only trims the surrounding white space. */
/* Frame = the logo's own bounds in the 630×618 file plus a white margin (x 126–509, y 196–417), so it fits inside the header. */
.logo { display: block; width: 120px; aspect-ratio: 383 / 221; position: relative; overflow: hidden; }
.logo img { position: absolute; width: calc(630 / 383 * 100%); height: auto; max-width: none; left: calc(-126 / 383 * 100%); top: calc(-196 / 221 * 100%); }
.lang { font: 500 14px/1 var(--font); color: var(--navy); background: var(--white); border: 1px solid var(--navy); border-radius: 999px; padding: 9px 20px; cursor: pointer; transition: background .15s, color .15s; }
.lang[lang="ar"] { font-family: "Tajawal", sans-serif; }
.lang[lang="en"] { font-family: var(--latin); }
.lang:hover, .lang:focus-visible { background: var(--navy); color: var(--white); outline: none; }

/* ---------- Shared type ---------- */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--sky); }
html[lang="ar"] .kicker { font-size: 15px; text-transform: none; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-2); }
html[lang="ar"] .eyebrow { font-size: 15px; text-transform: none; }
.eyebrow .n { font-family: var(--latin); color: var(--sky); font-weight: 600; }
.eyebrow .r { width: 40px; border-top: 1.5px solid var(--sky); position: relative; }
.eyebrow .r::after { content: ""; position: absolute; inset-inline-end: -2px; top: -4px; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
h2 { margin-top: 20px; max-width: 18em; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18; font-weight: 600; color: var(--navy); letter-spacing: -.012em; text-wrap: balance; }
html[lang="ar"] h2 { line-height: 1.45; letter-spacing: 0; }
h3 { font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--navy); }
p { color: var(--ink-2); text-wrap: pretty; }
.lead { margin-top: 18px; max-width: 46em; font-size: clamp(17px, 1.6vw, 19px); }
.num { font-family: var(--latin); font-weight: 300; color: var(--sky); }
.num.big { font-size: 30px; line-height: 1; display: block; margin-bottom: 14px; }

/* Route rule: dot — line — arrow (arrow follows reading direction) */
.route-rule { display: inline-flex; align-items: center; width: 56px; color: var(--sky); flex: none; }
.route-rule i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.route-rule s { flex: 1; border-top: 1.5px solid currentColor; }
.route-rule b { border-block: 5px solid transparent; border-inline-start: 8px solid currentColor; }

.statement { display: flex; align-items: center; gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.statement p { font-size: clamp(18px, 2vw, 22px); font-weight: 500; color: var(--navy); }

/* ---------- Sections ---------- */
.block { padding: 96px 0; }
.block.alt { background: var(--mist); }

/* Hero */
.hero, .closing { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(162deg, var(--navy) 0%, var(--navy-deep) 46%, var(--navy-night) 100%); }
/* Artwork sits in its own band above the text so lines never run behind it. */
.hero .art, .closing .art { position: absolute; top: 0; left: 0; width: 100%; height: var(--art-h); }
.hero { --art-h: clamp(170px, 41vw, 500px); }
.hero-in { position: relative; padding-top: calc(var(--art-h) + 24px); padding-bottom: 72px; }
.hero .kicker { color: var(--sky-soft); }
.hero h1 { margin-top: 14px; max-width: 16em; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.12; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
html[lang="ar"] .hero h1 { line-height: 1.4; letter-spacing: 0; }
.hero .tag { margin-top: 22px; color: #D6E6F3; font-size: clamp(17px, 1.9vw, 21px); }

/* About */
.rows { margin-top: 48px; border-bottom: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.rows p { font-size: 17px; max-width: 44em; }
.pos { margin-top: 48px; background: var(--mist); padding: 32px 36px; }
.nots { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 16px; }
.nots span { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.nots svg { width: 20px; height: 20px; flex: none; }
.pos .stm { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 600; color: var(--navy); }

/* Card grids (hairline-separated, no boxes) */
.cards { display: grid; column-gap: 48px; margin-top: 48px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards > div { padding: 26px 0; border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.item h3 { margin-bottom: 6px; }
.svc ul li { position: relative; padding-inline-start: 18px; margin-top: 6px; color: var(--ink-2); }
.svc ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 9px; border-top: 1.5px solid var(--sky); }

/* Solution */
.converge { display: block; width: 100%; height: auto; max-height: 180px; margin-top: 48px; }
.flow { margin-top: 40px; }
.ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); letter-spacing: var(--track); text-transform: uppercase; }
html[lang="ar"] .ends { font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 12px; padding-top: 28px; border-top: 2px solid var(--sky); position: relative; }
.steps::after { content: ""; position: absolute; inset-inline-end: -2px; top: -7px; border-block: 6px solid transparent; border-inline-start: 10px solid var(--sky); }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; top: -36px; inset-inline-start: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--sky); }
.steps li:last-child::before { background: var(--sky); }
.steps .num { font-size: 30px; display: block; line-height: 1; margin-bottom: 12px; }
.steps h3 { font-size: 16px; margin-bottom: 6px; }
.steps p { font-size: 15px; }
.value { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.value blockquote { margin-top: 12px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; font-weight: 600; color: var(--navy); }
html[lang="ar"] .value blockquote { line-height: 1.6; }

/* Passenger journey */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 48px; margin-top: 48px; }
.journey li { position: relative; padding-inline-start: 52px; }
.journey .dot { position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--sky); color: var(--sky); display: grid; place-items: center; font: 600 14px/1 var(--latin); }
.journey li:last-child .dot { background: var(--sky); color: var(--white); }
.journey h3 { margin-bottom: 4px; }
.prin { display: flex; flex-wrap: wrap; gap: 18px 48px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.prin span { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }

/* Control centre */
.legend { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; margin-top: 48px; }
.legend > div { display: grid; grid-template-columns: 44px 1fr; padding: 20px 0; border-top: 1px solid var(--line); }
.legend b { font-family: var(--latin); color: var(--sky); font-weight: 600; }
.legend h3 { margin-bottom: 2px; }

/* 24/7 */
.ops-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; margin-top: 48px; }
.ring { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .big { font: 600 54px/1 var(--latin); color: var(--navy); }
.ring .small { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--sky); letter-spacing: var(--track); text-transform: uppercase; }
html[lang="ar"] .ring .small { font-size: 16px; }
.ops-grid .cards { grid-template-columns: 1fr 1fr; margin-top: 0; }
.it .num { font-weight: 600; font-size: 13px; display: block; margin-bottom: 6px; }
.it h3 { margin-bottom: 4px; }

/* Network */
.hub { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; margin-top: 48px; }
.core { width: 220px; height: 220px; border-radius: 50%; background: var(--navy-deep); color: var(--white); display: grid; place-content: center; text-align: center; padding: 24px; box-shadow: 0 0 0 14px rgba(109, 181, 230, .12), 0 0 0 15px rgba(109, 181, 230, .35); }
.core b { font: 600 22px/1 var(--latin); letter-spacing: .06em; }
.core small { margin-top: 10px; font-size: 12px; color: var(--sky-soft); letter-spacing: var(--track); text-transform: uppercase; }
html[lang="ar"] .core small { font-size: 15px; }
.nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.nodes li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.disc { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; }
.disc .ico { width: 24px; height: 24px; }
.ben { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.ben > div { border-top: 2px solid var(--sky); padding-top: 16px; }
.ben h3 { margin-bottom: 6px; }
.note { display: flex; align-items: center; gap: 16px; margin-top: 40px; font-size: 15px; color: var(--muted); }
.note.box { background: var(--mist); padding: 22px 26px; color: var(--ink-2); }

/* Value */
.v h3 { margin-bottom: 6px; }
.parties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 48px; background: var(--mist); padding: 32px 36px; }
.parties > div { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.parties h3 { margin-bottom: 4px; }

/* Flexibility & control */
.loop { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; }
.loop li { padding: 14px 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 600; color: var(--navy); }
.loop li.mid { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.loop li + li::before { content: ""; display: inline-block; width: 0; height: 0; margin-inline-end: 18px; margin-inline-start: -30px; vertical-align: middle; border-block: 5px solid transparent; border-inline-start: 8px solid var(--sky); }
.loop li + li { margin-inline-start: 18px; }
.table-wrap { margin-top: 40px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: start; padding: 0 0 12px; font-size: 12px; font-weight: 600; color: var(--sky); letter-spacing: var(--track); text-transform: uppercase; border-bottom: 2px solid var(--navy); }
html[lang="ar"] th { font-size: 15px; }
td { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
td:first-child { width: 40%; font-weight: 600; color: var(--navy); padding-inline-end: 24px; }
td .num { font-size: 13px; font-weight: 600; display: inline-block; width: 36px; }

/* Getting started */
.phases { margin-top: 48px; }
.phases li { position: relative; display: grid; grid-template-columns: 120px 300px 1fr; gap: 24px; align-items: baseline; padding: 22px 0 22px 0; padding-inline-start: 48px; border-bottom: 1px solid var(--line-soft); }
.phases li::before { content: ""; position: absolute; inset-inline-start: 9px; top: 0; bottom: 0; border-inline-start: 1.5px dashed var(--sky-soft); }
.phases li:first-child::before { top: 50%; }
.phases li:last-child::before { bottom: 50%; }
.phases .nd { position: absolute; inset-inline-start: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--white); border: 2px solid var(--sky); z-index: 1; }
.phases li:last-child .nd { background: var(--sky); }
.block.alt .phases .nd { background: var(--mist); }
.block.alt .phases li:last-child .nd { background: var(--sky); }
.phases .k { font-size: 12px; color: var(--muted); letter-spacing: var(--track); text-transform: uppercase; }
html[lang="ar"] .phases .k { font-size: 14px; }
.phases .k .lat { color: var(--sky); font-weight: 600; }

/* Closing */
.closing { --art-h: clamp(150px, 44vw, 460px); }
.closing .wrap { position: relative; padding-top: calc(var(--art-h) - 8px); padding-bottom: 96px; }
.closing-h { max-width: 18em; color: var(--white); font-size: clamp(28px, 3.8vw, 44px); line-height: 1.25; font-weight: 600; text-wrap: balance; }
html[lang="ar"] .closing-h { line-height: 1.55; }

/* Contact (only shown once details are provided) */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cta { margin-top: 12px; font-size: 20px; color: var(--navy); font-weight: 500; }
.contact li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact li:last-child { border-bottom: 1px solid var(--line); }
.contact li span { color: var(--muted); min-width: 130px; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--navy); color: var(--navy); }
.contact .ico { width: 22px; height: 22px; }

/* Footer */
.foot { border-top: 1px solid var(--line-soft); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; }
.foot-brand { font-family: var(--latin); font-weight: 600; letter-spacing: .14em; color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
  .steps li:nth-child(n+4)::before { display: none; }
  .ops-grid, .hub { grid-template-columns: 1fr; }
  .core { margin: 0 auto; }
  .ben { grid-template-columns: 1fr 1fr; }
  .cards.three, .journey { grid-template-columns: 1fr 1fr; }
  .phases li { grid-template-columns: 110px 1fr; }
  .phases li p { grid-column: 2; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .top-row { height: 64px; }
  .logo { width: 104px; }
  .block { padding: 64px 0; }
  .hero-in { padding-bottom: 52px; }
  .rows > div, .cards.two, .cards.three, .legend, .journey, .value, .parties, .contact-grid, .ops-grid .cards, .nodes { grid-template-columns: 1fr; }
  .rows > div { gap: 6px; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-inline-start: 2px solid var(--sky); padding-top: 0; padding-inline-start: 28px; row-gap: 28px; }
  .steps::after { display: none; }
  .steps li::before, .steps li:nth-child(n+4)::before { display: block; top: 4px; inset-inline-start: -36px; }
  .ben { grid-template-columns: 1fr; gap: 24px; }
  .core { width: 190px; height: 190px; }
  .phases li { grid-template-columns: 1fr; gap: 4px; padding-inline-start: 40px; }
  .phases li p { grid-column: auto; }
  .pos, .parties { padding: 24px 22px; }
  .loop li + li { margin-inline-start: 0; }
  .loop li + li::before { display: none; }
  .statement { gap: 14px; }
}
