/* Readex Pro, self-hosted variable subsets (400–600). License: fonts/OFL.txt */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/readex-pro-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/readex-pro-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #C81E1E;
  --red-deep: #A3130F;
  --ink: #121314;
  --ink-soft: #4B4E54;
  --silver: #B8B9BC;
  --silver-deep: #8E9095;
  --on-dark-soft: #C4C5C9;
  --rule: #DCDDE0;
  --paper: #F4F4F5;
  --surface: #FFFFFF;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --logo-red: var(--red);
  --logo-silver: var(--silver-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}
[dir="rtl"] body { line-height: 1.85; }
::selection { background: var(--red); color: #fff; }

a {
  color: var(--ink);
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.ltr { direction: ltr; unicode-bidi: embed; }

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 1.2rem; white-space: nowrap;
  min-height: 44px;
}
.brand-logo { flex: none; width: 44px; height: 44px; }
.header-links { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; }
.header-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding-inline: 0.25rem; font-weight: 500; white-space: nowrap;
  text-decoration: none;
}
.header-links a:hover { text-decoration: underline; text-decoration-color: var(--red); }
@media (max-width: 400px) {
  .site-header .wrap { gap: 0.5rem; }
  .brand { font-size: 1rem; gap: 0.45rem; }
  .brand .brand-logo { width: 34px; height: 34px; }
  .header-links { gap: 0.25rem; font-size: 0.9rem; }
}
/* Narrowest phones: the form sits right below, so the header keeps only the language switch. */
@media (max-width: 379px) {
  .header-links .nav-quote { display: none; }
}

/* Hero: very large headline, then lede beside the declaration form */
.hero .wrap { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem); }
h1 {
  font-size: clamp(2.9rem, 7.6vw, 6rem);
  line-height: 0.98; font-weight: 600; letter-spacing: -0.045em;
  margin: 0 0 clamp(1.5rem, 4vw, 3rem); max-width: 13ch;
  text-wrap: balance;
}
[dir="rtl"] h1 { font-size: clamp(2.6rem, 6.6vw, 5.2rem); letter-spacing: 0; line-height: 1.25; max-width: 16ch; }
/* Phones: short lede, then the form (quote-first); the full lede follows the form.
   Desktop: text column first, form beside it, map band inside the first screen. */
.lede-short { margin: 0 0 1.25rem; font-size: 1.1rem; color: var(--ink-soft); max-width: 32em; }
.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .lede-short { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
  .hero-text { order: -1; }
}
.lede { font-size: 1.2rem; color: var(--ink-soft); margin: 0; max-width: 32em; }
.hero-alt { margin: 1.5rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.hero-alt a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.9rem 1.4rem; border-radius: 6px;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 0; background: var(--red); color: #fff;
}
.btn:hover { background: var(--red-deep); color: #fff; }

/* Declaration form */
.declaration { background: var(--surface); border: 1px solid var(--ink); }
.decl-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.25rem 1rem; padding: 1rem 1rem 0.9rem; border-bottom: 1px solid var(--ink);
}
.decl-head h2 { margin: 0; font-size: 1.55rem; letter-spacing: -0.01em; }
[dir="rtl"] .decl-head h2 { letter-spacing: 0; }
.decl-title-alt { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.decl-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 1px; background: var(--ink-soft);
}
.decl-box { background: var(--surface); padding: 0.6rem 0.85rem 0.5rem; min-width: 0; }
.decl-box--wide { grid-column: 1 / -1; }
.decl-box label {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.03em;
}
[dir="rtl"] .decl-box label { text-transform: none; letter-spacing: 0; font-size: 0.85rem; line-height: 1.4; }
[dir="rtl"] .decl-head h2, [dir="rtl"] .decl-title-alt, [dir="rtl"] .route-confirm { line-height: 1.4; }
.decl-num {
  display: inline-grid; place-items: center; flex: none;
  width: 1.35rem; height: 1.35rem; border: 1.5px solid var(--red);
  color: var(--ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0;
}
.decl-alt {
  margin-inline-start: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  font-size: 0.75rem; font-weight: 400; text-transform: none; letter-spacing: 0;
}
.decl-box input, .decl-box select, .decl-box textarea {
  display: block; width: 100%; min-height: 44px; margin: 0;
  padding: 0.35rem 0 0.3rem; border: 0; border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 1.0625rem;
}
.decl-box textarea { resize: vertical; min-height: 4.6rem; line-height: 1.5; }
.decl-box ::placeholder { color: var(--ink-soft); opacity: 1; }
.decl-box select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-inline-end: 1.5rem;
  background: url("img/select-arrow.svg") no-repeat right 0.1rem center;
}
[dir="rtl"] .decl-box select { background-position: left 0.1rem center; }
.decl-box input:focus-visible, .decl-box select:focus-visible, .decl-box textarea:focus-visible { outline: none; }
.decl-box:focus-within { outline: 2px solid var(--red); outline-offset: -2px; }
.decl-box.is-invalid { outline: 3px solid var(--red); outline-offset: -3px; }
/* In-box route confirmation: always present, so choosing a route never shifts the page */
.route-confirm {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.15rem;
  font-size: 0.85rem; color: var(--ink-soft); min-height: 1.4em;
}
.route-glyph { flex: none; }
.route-glyph path { fill: none; stroke: var(--silver-deep); stroke-width: 2.5; stroke-linecap: round; }
.route-glyph circle { fill: var(--silver-deep); }
.route-confirm.is-set { color: var(--ink); font-weight: 500; }
.route-confirm.is-set .route-glyph path { stroke: var(--red); }
.route-confirm.is-set .route-glyph circle { fill: var(--red); }
.route-confirm[data-mode="sea"] .route-glyph path { stroke-dasharray: 5 3.5; }
.route-confirm[data-mode="air"] .route-glyph path { stroke-dasharray: 0.1 4.5; stroke-width: 3; }
[dir="rtl"] .route-glyph { transform: scaleX(-1); }
.decl-error { margin: 0.1rem 0 0.2rem; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.decl-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  padding: 1rem; border-top: 1px solid var(--ink);
}
.decl-note { flex: 1 1 14rem; margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 480px) {
  .decl-foot .btn { flex: 1 1 100%; }
}

/* Route map band: full width, continuous cargo motion */
.map-band { background: var(--surface); border-block: 1px solid var(--rule); }
.route-map { position: relative; margin: 0 auto; max-width: 1680px; padding: clamp(2rem, 4vw, 3.25rem) clamp(0.5rem, 2vw, 1.5rem) 5.5rem; }
.map { display: block; width: 100%; height: auto; direction: ltr; }
.map--wide { display: none; }
@media (min-width: 1100px) {
  .map--wide { display: block; }
  .map--compact { display: none; }
}
@media (max-width: 1099px) {
  .map--compact { max-width: 40rem; margin-inline: auto; }
}
@media (max-width: 600px) {
  .route-map { padding-inline: 0; }
}

.map .line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.map--wide .line { stroke-width: 4; }
.map .line--sea { stroke-dasharray: 10 7; }
.map .line--air { stroke-dasharray: 0.1 9; stroke-width: 4; }
.map--wide .line--air { stroke-dasharray: 0.1 12; stroke-width: 5; }
.map .track { fill: none; stroke: none; }
.map .stn { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.map .stn-dot { fill: var(--red); }
.map .org { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.map .hub { fill: var(--ink); }
.map .hub-dot { fill: #fff; }
.map .hub-pulse { fill: none; stroke: var(--red); stroke-width: 2; }
.map .cargo { fill: var(--red); }
.map text { font-family: var(--font); }
.map .lbl-stn { font-size: 19px; font-weight: 600; fill: var(--ink); transition: fill 0.3s; }
.map .lbl-hub { font-size: 18px; font-weight: 600; fill: var(--ink); }
.map .lbl-org { font-size: 16px; fill: var(--ink-soft); }
.map .lbl-note { font-size: 14px; fill: var(--ink-soft); }
.map .legend text { font-size: 14px; fill: var(--ink-soft); }
.map--wide .lbl-stn { font-size: 24px; }
.map--wide .lbl-hub { font-size: 22px; }
.map--wide .lbl-org, .map--wide .legend text { font-size: 19px; }
@media (max-width: 600px) {
  .map--compact .lbl-org, .map--compact .lbl-note, .map--compact .legend text { font-size: 17px; }
}
.map .route { transition: opacity 0.3s; }

/* The route chosen in the form turns red; the others step back. */
.route-map[data-active="latakia"] .route:not([data-route="latakia"]),
.route-map[data-active="airport"] .route:not([data-route="airport"]),
.route-map[data-active="nasib"] .route:not([data-route="nasib"]),
.route-map[data-active="yabous"] .route:not([data-route="yabous"]) { opacity: 0.28; }
.route-map[data-active="latakia"] [data-route="latakia"] .line,
.route-map[data-active="airport"] [data-route="airport"] .line,
.route-map[data-active="nasib"] [data-route="nasib"] .line,
.route-map[data-active="yabous"] [data-route="yabous"] .line { stroke: var(--red); }
.route-map[data-active="latakia"] [data-route="latakia"] .lbl-stn,
.route-map[data-active="airport"] [data-route="airport"] .lbl-stn,
.route-map[data-active="nasib"] [data-route="nasib"] .lbl-stn,
.route-map[data-active="yabous"] [data-route="yabous"] .lbl-stn { fill: var(--red); }

.motion-toggle {
  position: absolute; inset-block-end: 1.25rem; inset-inline-end: var(--gutter);
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer;
}
.motion-toggle:hover { border-color: var(--ink); }
.motion-toggle svg { fill: var(--red); }
.motion-toggle .i-play { display: none; }
.route-map.is-paused .motion-toggle .i-play { display: block; }
.route-map.is-paused .motion-toggle .i-pause { display: none; }

/* Reduced motion: no moving parts, even without JavaScript. */
@media (prefers-reduced-motion: reduce) {
  .map .cargo, .map .hub-pulse, .motion-toggle { display: none; }
  .route-map { padding-block-end: clamp(2rem, 4vw, 3.25rem); }
  .map .route, .map .line, .map .lbl-stn { transition: none; }
}

/* Stats band (dark): only verifiable figures */
.stats { background: var(--ink); color: var(--paper); }
.stats .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start;
  gap: 2rem clamp(1.5rem, 5vw, 4rem); padding-block: clamp(2.5rem, 7vw, 5rem);
}
.stat { display: flex; flex-direction: column; gap: 0.75rem; }
.stat::before { content: ""; width: 40px; height: 4px; background: var(--red); }
.stat-num {
  font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 600; line-height: 1;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--silver); font-size: 1.05rem; max-width: 22em; }
.stat-statement {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 500; line-height: 1.3;
  letter-spacing: -0.01em; max-width: 26em;
}
[dir="rtl"] .stat-statement { letter-spacing: 0; line-height: 1.6; }
@media (max-width: 700px) {
  .stats .wrap { grid-template-columns: minmax(0, 1fr); }
}
.stat-unit { font-size: 0.4em; font-weight: 500; letter-spacing: 0; margin-inline-start: 0.2em; }

/* Sections */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.9rem;
}
[dir="rtl"] h2 { letter-spacing: 0; line-height: 1.35; }
.section-intro { color: var(--ink-soft); max-width: 40em; margin: 0 0 2.5rem; }

/* Entry points */
.entries { list-style: none; margin: 0; padding: 0; }
.entry {
  display: grid; gap: 0.5rem 2.5rem;
  padding-block: 1.5rem; border-top: 1px solid var(--rule);
}
.entry:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) {
  .entry { grid-template-columns: 20rem minmax(0, 1fr); align-items: baseline; }
}
.entry-name { display: flex; gap: 0.75rem; align-items: flex-start; }
.entry-name svg { flex: none; margin-top: 0.3rem; }
.entry h3 { font-size: 1.2rem; font-weight: 600; margin: 0; line-height: 1.3; }
.entry .mode { display: block; font-size: 0.95rem; color: var(--ink-soft); font-weight: 400; margin-top: 0.15rem; }
.entry p { margin: 0; max-width: 38em; }

/* Partner band (dark) */
.partner { background: var(--ink); color: var(--paper); }
.partner .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .partner .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.partner p { margin: 0 0 1rem; max-width: 34em; color: var(--on-dark-soft); }
.partner .partner-action { margin-block: 1.75rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 1.1rem;
  padding-block: 0.8rem; border-bottom: 1px solid rgba(184, 185, 188, 0.25);
}
.checklist li:first-child { padding-top: 0; }
.checklist li::before {
  content: ""; flex: none; width: 0.45rem; height: 0.85rem;
  margin-block-start: 0.3em; margin-inline-start: 0.2rem;
  border: solid var(--red); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* About + contact */
.about .wrap { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .about .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
}
.about p { margin: 0 0 1rem; max-width: 36em; }
.contact h2 { margin-bottom: 1rem; }
.contact dl { margin: 0; }
.contact dl > div { padding-block: 0.6rem; border-top: 1px solid var(--rule); }
.contact dl > div:last-child { border-bottom: 1px solid var(--rule); }
.contact dt { font-size: 0.9rem; color: var(--ink-soft); }
.contact dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact dd a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-links { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }

/* Operations photo slot: hidden until real photos exist (see DESIGN.md) */
.ops-photo { margin: 2rem 0 0; }
.ops-photo img { display: block; width: 100%; height: auto; }
.ops-photo figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.75rem; padding-block: 1.25rem;
  font-size: 0.9rem; color: var(--ink-soft);
}
.site-footer p { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
