/*
 * The Naqliati marketing page (site/). One stylesheet for Arabic (rtl) and English (ltr): logical
 * properties only. Colours are the app's theme: navy structure, orange action. Orange is a light
 * colour — white on it is 2.6:1 — so filled orange takes navy ink, and orange as text on white
 * darkens to --orange-text first. Font: Noto Kufi Arabic, the app's own (WOFF2 subsets).
 */

@font-face { font-family: 'Kufi'; src: url('/static/fonts/NotoKufiArabic-Regular.woff2?v=ca8aedfe85') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Kufi'; src: url('/static/fonts/NotoKufiArabic-Bold.woff2?v=a711b667eb') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --navy: #041B38;
  --navy-2: #0A2A52;
  --navy-line: #1D4170;
  --navy-muted: #AFBDD0;
  --orange: #FF7E00;
  --orange-soft: #FFF3E6;
  --orange-text: #B45309;
  --ink: #041B38;
  --muted: #4B5563;
  --surface: #FFFFFF;
  --bg: #F4F6F9;
  --line: #DDE2E8;
  --font: 'Kufi', system-ui, sans-serif;
  --wide: 1140px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.85; color: var(--ink); background: var(--surface); overflow-x: clip; }
body:lang(en) { line-height: 1.65; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.45; }
body:lang(en) h1, body:lang(en) h2, body:lang(en) h3 { line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: var(--gutter); top: -100px; z-index: 10; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* the "also in English" bar, for a browser not set to Arabic */
.lang-banner { background: var(--orange-soft); color: var(--ink); font-size: 0.92rem; }
.lang-banner .wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.lang-banner a { font-weight: 700; color: var(--orange-text); }
.lang-banner button { margin-inline-start: auto; background: none; border: 0; font: inherit; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-header { background: var(--navy); color: #fff; }
.bar { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
/* the navy truck vanishes on navy: it always sits on a white tile */
.tile { display: grid; place-items: center; background: #fff; border-radius: 12px; }
.brand .tile { width: 52px; height: 40px; }
.brand .tile img { width: 44px; height: auto; }
.sections { display: flex; gap: 24px; margin-inline-start: auto; font-size: 0.95rem; }
.sections a, .other-lang { text-decoration: none; color: var(--navy-muted); }
.sections a:hover, .other-lang:hover { color: #fff; }
.other-lang { font-weight: 700; padding: 6px 12px; border: 1.5px solid var(--navy-line); border-radius: 999px; font-size: 0.92rem; }
@media (max-width: 859px) {
  .sections { display: none; }
  .other-lang { margin-inline-start: auto; }
}

/* ── hero: the words, and the fare calculator ────────────────────────────── */
.hero { background: var(--navy); color: #fff; padding-block: 36px 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; } .hero { padding-block: 56px 88px; } }
.hero h1 { font-size: clamp(1.9rem, 1.15rem + 3vw, 3.1rem); max-width: 16em; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 18px; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem); color: var(--navy-muted); max-width: 36em; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.stores .badge img { height: 52px; width: auto; }
.soon { display: inline-flex; align-items: center; min-height: 52px; padding: 6px 16px; border: 1.5px dashed var(--navy-line); border-radius: 12px; color: var(--navy-muted); font-size: 0.9rem; }
.hero .where { margin-top: 18px; font-size: 0.92rem; color: var(--navy-muted); }

.calc {
  background: var(--surface); color: var(--ink); border-radius: 22px; padding: 22px;
  box-shadow: 0 28px 60px rgb(0 0 0 / 0.35);
}
.calc h2 { font-size: 1.2rem; }
.calc fieldset { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.calc legend { font-size: 0.85rem; color: var(--muted); padding: 0; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills label { position: relative; }
.pills input, .vehicles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span { display: block; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 0.9rem; cursor: pointer; }
.pills input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pills input:focus-visible + span, .vehicles input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.vehicles { display: grid; gap: 8px; }
.vehicles span {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px;
  padding: 8px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
}
.vehicles img { width: 64px; height: 48px; object-fit: cover; border-radius: 9px; background: var(--bg); }
.vehicles b { font-size: 0.95rem; line-height: 1.4; }
.vehicles small { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.vehicles input:checked + span { border-color: var(--orange); background: var(--orange-soft); }
.distance { margin-top: 14px; }
.distance-head { display: flex; justify-content: space-between; align-items: baseline; }
.distance-head output { font-weight: 700; font-size: 1.05rem; }
.calc input[type='range'] {
  --p: 16%;
  width: 100%; height: 28px; margin: 4px 0 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.calc input[type='range']::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--orange) var(--p), var(--line) var(--p)); }
.calc input[type='range']::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--orange) var(--p), var(--line) var(--p)); }
[dir='rtl'] .calc input[type='range']::-webkit-slider-runnable-track { background: linear-gradient(to left, var(--orange) var(--p), var(--line) var(--p)); }
[dir='rtl'] .calc input[type='range']::-moz-range-track { background: linear-gradient(to left, var(--orange) var(--p), var(--line) var(--p)); }
.calc input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--navy); border: 4px solid var(--orange); }
.calc input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); border: 4px solid var(--orange); }
.result { margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.result .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.result .fare { font-size: 2rem; font-weight: 700; line-height: 1.3; }
.result .how { font-size: 0.9rem; color: var(--muted); }
.result .note { margin-top: 10px; font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

/* ── sections ───────────────────────────────────────────────────────────── */
.section { padding-block: 72px; }
.section.tint { background: var(--bg); }
.section h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.section .lead { margin-top: 10px; color: var(--muted); max-width: 44em; }

/* the order's steps are a sequence, so they are numbered, joined like a route */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 24px; margin-top: 36px; counter-reset: step; }
.steps > li { position: relative; padding-top: 56px; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; inset-inline-start: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: var(--orange); color: var(--navy);
}
.steps > li::after { content: ''; position: absolute; top: 20px; inset-inline-start: 52px; inset-inline-end: -16px; border-top: 2px dashed var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.08rem; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 767px) {
  .steps { gap: 0; }
  .steps > li { padding-top: 0; padding-inline-start: 60px; padding-bottom: 26px; }
  .steps > li::after { top: 50px; bottom: 4px; inset-inline-start: 20px; inset-inline-end: auto; border-top: 0; border-inline-start: 2px dashed var(--line); }
}

.service + .service { margin-top: 36px; }
.service h3 { font-size: 1.15rem; margin-top: 32px; }
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 14px; }
.fleet li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fleet img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.fleet div { padding: 12px 16px 16px; }
.fleet b { display: block; font-size: 1.02rem; }
.fleet .price { font-weight: 700; color: var(--orange-text); }
.fleet .min { font-size: 0.88rem; color: var(--muted); }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 26px 36px; margin-top: 32px; }
.why li { border-inline-start: 4px solid var(--orange); padding-inline-start: 16px; }
.why h3 { font-size: 1.05rem; }
.why p { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }

.captains { background: var(--navy); color: #fff; padding-block: 72px; }
.captains .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .captains .wrap { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }
.captains h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.captains .lead { margin-top: 10px; color: var(--navy-muted); }
.captains ol { margin-top: 24px; counter-reset: c; display: grid; gap: 14px; }
.captains ol li { counter-increment: c; display: flex; gap: 14px; align-items: flex-start; }
.captains ol li::before { content: counter(c); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--navy); font-weight: 700; font-size: 0.95rem; line-height: 1; margin-top: 2px; }
.captains .note { margin-top: 22px; color: var(--navy-muted); font-size: 0.92rem; }
.captains .tile { padding: 28px; border-radius: 24px; justify-self: center; width: min(100%, 320px); }

.faq { margin-top: 26px; max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; font-weight: 700; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--orange-text); transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 62ch; }
.faq details a { color: var(--orange-text); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .faq summary svg { transition: none; } }

.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.closing .stores { margin-top: 18px; }
.closing .soon { border-color: var(--line); color: var(--muted); }
.contact { display: grid; gap: 10px; }
.contact a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.contact a:hover { color: var(--orange-text); }
.contact svg { width: 22px; height: 22px; color: var(--orange-text); flex: none; }
.contact span { font-weight: 400; color: var(--muted); }

.site-footer { background: var(--navy); color: var(--navy-muted); padding-block: 28px; font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.site-footer .brand { color: #fff; font-size: 1.05rem; }
.site-footer .brand .tile { width: 44px; height: 34px; border-radius: 10px; }
.site-footer .brand .tile img { width: 38px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.site-footer .by { margin-inline-start: auto; }
