/* =========================================================
   Meridian Transport · site styles
   Design decisions are documented in DESIGN.md (project root).
   Change colours and fonts here, in :root, not in the pages.
   ========================================================= */

:root {
  --navy: #14283D;
  --navy-2: #1C3550;
  --navy-line: #2B4762;
  --copper: #C06A30;
  --copper-ink: #A4561F;
  --copper-ink-hover: #8B4818;
  --copper-light: #E3A06C;
  --steel: #6E7B88;
  --muted: #56626E;
  --ink: #1A1F26;
  --fog: #EEF1F4;
  --line: #D8DEE4;
  --white: #FFFFFF;
  --on-navy: #F2F4F6;
  --on-navy-muted: #B9C5D1;

  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --fs-display: clamp(2.3rem, 5.5vw, 3.6rem);
  --fs-h1: clamp(2rem, 4.5vw, 3rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.2rem);
  --fs-h3: 1.3rem;
  --fs-lede: 1.15rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.78rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 2px;
  --radius: 6px;
  --content: 1160px;
  --gutter: 20px;
  --section: var(--s-8);

  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 24px; --section: var(--s-9); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0; color: var(--navy); text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3) { font-family: var(--font-ar); font-weight: 600; line-height: 1.45; }
h1 { font-size: var(--fs-h1); line-height: 1.15; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
html[lang="ar"] h3 { font-size: 1.2rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--copper-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-ink-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--copper-ink); outline-offset: 3px; border-radius: var(--radius-sm); }
.on-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--copper-light); }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; inset-inline-start: var(--s-4); top: -100px; z-index: 100;
  background: var(--white); color: var(--navy); padding: var(--s-3) var(--s-4); font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 65ch; }
.prose > * + * { margin-top: var(--s-4); }
.lede { font-size: var(--fs-lede); color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: block; font-family: var(--font-mono); font-weight: 500;
  font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink);
}
html[lang="ar"] .eyebrow { font-family: var(--font-ar); font-weight: 600; font-size: .95rem; letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--fog { background: var(--fog); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy :is(h1, h2, h3) { color: var(--white); }
.section--navy .eyebrow { color: var(--copper-light); }
.section--navy .lede, .section--navy .muted { color: var(--on-navy-muted); }
.section--navy a:not(.btn) { color: var(--copper-light); }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); max-width: 60ch; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--navy-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand img { width: 44px; height: 44px; flex: none; }
.brand-name { display: grid; line-height: 1.1; }
.brand-name b { font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; letter-spacing: .12em; text-transform: uppercase; }
.brand-name small { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; color: var(--copper-light); text-transform: uppercase; }
html[lang="ar"] .brand-name b { font-family: var(--font-ar); font-weight: 600; letter-spacing: 0; font-size: 1.1rem; }
html[lang="ar"] .brand-name small { font-family: var(--font-ar); letter-spacing: 0; font-size: .78rem; }

.nav-toggle {
  display: none; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-4); background: transparent; color: var(--white);
  border: 1px solid var(--navy-line); border-radius: var(--radius-sm); font: inherit; font-weight: 500; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: var(--s-1); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  color: var(--on-navy); text-decoration: none; font-size: .95rem; border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--white); background: var(--navy-2); }
.site-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--copper); }
.site-nav .lang a { border: 1px solid var(--navy-line); margin-inline-start: var(--s-2); font-weight: 500; }
.site-nav .lang a:lang(ar) { font-family: var(--font-ar); }
.site-nav .lang a:lang(en) { font-family: var(--font-body); }

@media (max-width: 1023px) {
  .js .nav-toggle { display: inline-flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .js .site-nav { display: none; width: 100%; padding-bottom: var(--s-4); }
  .js .site-nav.is-open { display: block; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { width: 100%; padding: 0 var(--s-2); border-bottom: 1px solid var(--navy-2); }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--copper); }
  html[dir="rtl"] .site-nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--copper); }
  .site-nav .lang a { margin: var(--s-3) 0 0; justify-content: center; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  .no-js .site-nav a { width: auto; border: 0; }
}
@media (max-width: 479px) {
  .site-header .wrap { min-height: 64px; gap: var(--s-3); }
  .brand { gap: var(--s-2); }
  .brand img { width: 36px; height: 36px; }
  .brand-name b { font-size: .98rem; letter-spacing: .08em; }
  .nav-toggle { padding: 0; width: 44px; justify-content: center; }
  .nav-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* White header (chosen by the owner): navy text on white, copper marks the current page */
.site-header { background: var(--white); color: var(--navy); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 2px rgba(20, 40, 61, .06), 0 6px 18px rgba(20, 40, 61, .10); }
.site-header .brand, .site-header .brand:hover { color: var(--navy); }
.site-header .brand-name small { color: var(--copper-ink); }
.site-header .site-nav a { color: var(--navy); }
.site-header .site-nav a:hover { color: var(--navy); background: var(--fog); }
.site-header .site-nav a[aria-current="page"] { color: var(--navy); }
.site-header .site-nav .lang a, .site-header .nav-toggle { border-color: var(--line); color: var(--navy); }
.site-header :focus-visible { outline-color: var(--copper-ink); }
@media (max-width: 1023px) { .site-header .site-nav a { border-bottom-color: var(--line); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--copper-ink); color: var(--white); }
.btn--primary:hover { background: var(--copper-ink-hover); color: var(--white); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.on-navy .btn--secondary, .section--navy .btn--secondary { color: var(--on-navy); border-color: var(--on-navy-muted); }
.on-navy .btn--secondary:hover, .section--navy .btn--secondary:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
/* Buttons in a row share one width, so WhatsApp, Call and Email always match */
.btn-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-3); max-width: 780px; }
.cta-band .btn-row { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); min-width: min(100%, 460px); }
@media (max-width: 520px) { .btn-row { grid-template-columns: 1fr; } }

/* Contact items whose value is still empty in config.js (only shown on preview hosts) */
.placeholder-note { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em; opacity: .9; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  /* the meridian grid: thin lines of longitude */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: repeating-linear-gradient(90deg, transparent 0 119px, var(--navy-line) 119px 120px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero .wrap { padding-block: var(--s-8) var(--s-8); display: grid; gap: var(--s-5); }
@media (min-width: 768px) { .hero .wrap { padding-block: var(--s-9) 112px; } }
.hero .eyebrow { color: var(--copper-light); }
.hero h1 { color: var(--white); font-size: var(--fs-display); line-height: 1.1; max-width: 20ch; }
html[lang="ar"] .hero h1 { line-height: 1.4; max-width: 22ch; }
.hero .lede { color: var(--on-navy-muted); }
.hero .btn-row { margin-top: var(--s-3); }

.page-hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: repeating-linear-gradient(90deg, transparent 0 119px, var(--navy-line) 119px 120px);
  mask-image: linear-gradient(90deg, transparent 20%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); }
html[dir="rtl"] .page-hero::before { mask-image: linear-gradient(270deg, transparent 20%, #000); -webkit-mask-image: linear-gradient(270deg, transparent 20%, #000); }
.page-hero .wrap { padding-block: var(--s-8); display: grid; gap: var(--s-4); }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero .eyebrow { color: var(--copper-light); }
.page-hero .lede { color: var(--on-navy-muted); }

/* ---------- Route strip ---------- */

/* ---------- Why us ---------- */
.points { display: grid; gap: var(--s-6); counter-reset: pt; }
@media (min-width: 860px) { .points { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }
.point { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-5); border-top: 2px solid var(--navy); }
.point::before { counter-increment: pt; content: "0" counter(pt); font-family: var(--font-mono); color: var(--copper-ink); font-size: .85rem; }
.point p { color: var(--muted); }

/* ---------- Split layout ---------- */
.split { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); } }
.split--even { }
@media (min-width: 960px) { .split--even { grid-template-columns: 1fr 1fr; } }

/* ---------- Route map ---------- */
/* Route map: drawn straight onto the section background, no box */
.map-figure { margin: 0; }
.route-map { display: block; width: 100%; height: auto; overflow: visible; }
.route-map, .route-map text { direction: ltr; }
.route-map .grid line { stroke: #CDD5DD; stroke-width: 1; }
.route-map .grid text { fill: var(--muted); font-family: var(--font-mono); font-size: 15px; }
.route-map .arc { fill: none; stroke: var(--copper); stroke-width: 2.5; stroke-linecap: round; }
.route-map text { paint-order: stroke; stroke: var(--fog); stroke-width: 6px; stroke-linejoin: round; }
.route-map .dest circle { fill: var(--navy); stroke: var(--fog); stroke-width: 3; }
.route-map .dest text { fill: var(--navy); font-size: 23px; font-weight: 500; font-family: var(--font-body); }
.route-map .code { fill: var(--copper-ink); font-family: var(--font-mono); font-size: 19px; font-weight: 500; }
html[lang="ar"] .route-map :is(.dest, .origin) text { font-family: var(--font-ar); }
.route-map .origin circle.ring { fill: none; stroke: var(--copper); stroke-width: 2; }
.route-map .origin circle.dot { fill: var(--copper); }
.route-map .origin text { fill: var(--navy); font-size: 26px; font-weight: 600; }
.dest-more { margin-top: var(--s-5); margin-bottom: var(--s-2); }

.dest-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.dest-list li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.dest-list .code { font-family: var(--font-mono); color: var(--copper-ink); font-size: .9rem; white-space: nowrap; }
.dest-list .country { font-weight: 600; color: var(--navy); }

/* ---------- Audiences ---------- */
.audiences { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .audiences { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-7); } }
.audience { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); align-content: start; }
.audience p { color: var(--muted); }
.audience a { font-weight: 600; justify-self: start; }

/* ---------- Heritage teaser ---------- */
.heritage { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 860px) { .heritage { grid-template-columns: auto minmax(0, 1fr); gap: var(--s-8); } }
.big-year { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); line-height: .9; color: var(--copper-light); letter-spacing: .02em; }
html[lang="ar"] .big-year { font-family: var(--font-display); }

/* ---------- Contact blocks ---------- */
.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); } }
.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.section--navy .contact-list, .section--navy .contact-list li { border-color: var(--navy-line); }
.contact-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; color: var(--copper); margin-top: 3px; }
.contact-list .label { display: block; font-size: var(--fs-small); color: var(--muted); }
.section--navy .contact-list .label { color: var(--on-navy-muted); }
.contact-list .value { font-weight: 500; }
.contact-list a.value { color: inherit; }
.section--navy .contact-list a.value { color: var(--white); }
address { font-style: normal; }

/* ---------- Timeline ---------- */
/* History: then / now / next */
.eras { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .eras { grid-template-columns: repeat(3, 1fr); } }
.era { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--steel); border-radius: var(--radius); }
.era--now { border-top-color: var(--copper); }
.era--next { background: transparent; border-style: dashed; border-top-style: solid; }
.era-label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.era--now .era-label { color: var(--copper-ink); }
html[lang="ar"] .era-label { font-family: var(--font-ar); font-weight: 600; font-size: .95rem; letter-spacing: 0; }
.era p { color: var(--muted); }
.era .era-note { font-size: var(--fs-small); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.era-footnote { margin-top: var(--s-5); font-size: var(--fs-small); color: var(--muted); }

.notice { border-inline-start: 3px solid var(--copper); background: var(--fog); padding: var(--s-4) var(--s-5); max-width: 70ch; }
.notice p { color: var(--ink); }

/* ---------- Tags ---------- */
.tag { display: inline-block; justify-self: start; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--radius-sm); background: var(--fog); color: var(--navy); border: 1px solid var(--line); }
html[lang="ar"] .tag { font-size: .85rem; letter-spacing: 0; }
.tag--active { background: #E6F0E9; color: #1F5A33; border-color: #C7DCCD; }
.tag--specialty { background: #F6E8DD; color: #7E3F12; border-color: #EBD2BF; }
.tag--planned { background: var(--white); color: var(--muted); border-style: dashed; border-color: var(--steel); }

/* ---------- Services ---------- */
.services { display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .services { grid-template-columns: 1fr 1fr; } }
.service { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.service--feature { border-color: var(--copper); border-width: 2px; }
@media (min-width: 860px) { .service--feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-7); } .service--feature > .service-head { grid-row: span 3; } }
.service--planned { background: var(--fog); border-style: dashed; border-color: var(--steel); }
.service-head { display: grid; gap: var(--s-3); align-content: start; }
.service p { color: var(--muted); }
.subhead { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .subhead { font-family: var(--font-ar); letter-spacing: 0; font-size: 1rem; }
.checks { list-style: none; display: grid; gap: var(--s-2); }
.checks li { position: relative; padding-inline-start: 26px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 12px; height: 2px; background: var(--copper); }

/* ---------- Destinations ---------- */
.countries { list-style: none; display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .countries { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .countries { grid-template-columns: repeat(4, 1fr); } }
.country-card { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); border-top: 3px solid var(--navy); }
.country-card h3 { font-size: 1.25rem; }
.country-card ul { list-style: none; display: grid; gap: var(--s-1); }
.country-card li { display: flex; justify-content: space-between; gap: var(--s-3); }
.country-card .code { font-family: var(--font-mono); color: var(--copper-ink); font-size: .9rem; }
.country-card .tbc { color: var(--muted); font-size: var(--fs-small); }

/* ---------- Partner ---------- */
.steps { list-style: none; display: grid; gap: var(--s-5); counter-reset: st; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: st; display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--navy-line); }
.steps li::before { content: counter(st); font-family: var(--font-display); font-size: 2rem; color: var(--copper-light); line-height: 1; }
.steps p { color: var(--on-navy-muted); }

/* ---------- CTA band ---------- */
.cta-band { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 960px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-7); } }

/* ---------- Hidden slots (IATA, client logos) ---------- */
.slot-logos { display: flex; flex-wrap: wrap; gap: var(--s-6); align-items: center; }
.slot-logos img { height: 48px; width: auto; filter: grayscale(1); opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: var(--fs-small); border-top: 3px solid var(--copper); }
.site-footer .wrap { display: grid; gap: var(--s-6); padding-block: var(--s-7); }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-light); margin-bottom: var(--s-3); }
html[lang="ar"] .site-footer h2 { font-family: var(--font-ar); font-size: .9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: var(--s-1); }
.site-footer a { color: var(--on-navy); text-decoration: none; display: inline-flex; align-items: center; gap: .35em; min-height: 32px; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--navy-line); padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between; }
.footer-brand { display: grid; gap: var(--s-3); }
.footer-brand .brand img { width: 40px; height: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .nav-toggle, .skip-link { display: none; }
  .hero, .page-hero, .section--navy, .site-footer { background: none; color: #000; }
}


/* =============================================================
   Home page. The air waybill form appears once, in the opening
   section; the sections below alternate white and navy and end
   on a copper quote band.
   ============================================================= */

/* Opening: the air waybill */
.h-hero { background: var(--navy); padding-block: var(--s-6) var(--s-7); }
@media (min-width: 768px) { .h-hero { padding-block: var(--s-7) var(--s-8); } }
.awb { display: grid; gap: 1px; background: var(--navy-line); border: 1px solid var(--navy-line); }
.awb > * { background: var(--white); min-width: 0; margin: 0; }
.awb-strip { height: 6px; background: var(--copper) !important; }
.awb-title { padding: var(--s-6) var(--s-5) var(--s-7); }
@media (min-width: 900px) { .awb-title { padding: var(--s-8) var(--s-7); } }
.awb-title h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.06; max-width: 16ch; }
.awb-title .lede { margin-top: var(--s-5); max-width: 68ch; }
.awb-title .btn-row { margin-top: var(--s-6); }
.awb-caption { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; color: var(--navy); padding: var(--s-3) var(--s-5); }
@media (min-width: 900px) { .awb-caption { padding-inline: var(--s-7); } }
.awb-fields { display: grid; gap: 1px; background: var(--navy-line) !important; }
@media (min-width: 640px) { .awb-fields { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .awb-fields { grid-template-columns: repeat(4, 1fr); } }
.awb-field { background: var(--white); padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
@media (min-width: 900px) { .awb-field:first-child { padding-inline-start: var(--s-7); } }
.awb-lab { font-size: .8rem; color: var(--muted); }
.awb-val { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.35; color: var(--navy); }
.awb-val .code { font-family: var(--font-mono); font-size: .9rem; color: var(--copper-ink); }

/* Shared section rhythm */
.h-section { padding-block: clamp(64px, 8vw, 96px); }
.h-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; }
.h-kicker { font-weight: 600; font-size: 1rem; color: var(--copper-ink); margin-bottom: var(--s-3); }
.h-section > .wrap > .h-title { margin-bottom: var(--s-7); }

.h-cols { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .h-cols { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }
.h-item { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-5); border-top: 2px solid var(--navy); }
.h-item h3 { font-size: 1.35rem; line-height: 1.25; }
.h-item p { color: var(--muted); }
.h-item--accent { border-top-color: var(--copper); }

/* Why choose Meridian: headline and introduction side by side */
.h-intro { display: grid; gap: var(--s-5); margin-bottom: var(--s-7); }
.h-intro .h-intro-text { margin-top: var(--s-2); }
.h-intro .h-title { max-width: 22ch; }
.h-intro-text { font-size: var(--fs-lede); color: var(--text, var(--navy)); max-width: 60ch; }

/* Where we ship: navy section with the map */
.h-navy { background: var(--navy); color: var(--on-navy); }
.h-navy .h-title { color: var(--white); }
.h-navy p { color: var(--on-navy-muted); }
.h-navy a { color: var(--copper-light); }
.h-navy :focus-visible { outline-color: var(--copper-light); }
.h-routes { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) { .h-routes { grid-template-columns: 4fr 7fr; gap: var(--s-8); } }
.h-routes-text { display: grid; gap: var(--s-4); max-width: 46ch; }
.h-routes-text .h-title { margin-bottom: var(--s-2); }
.h-navy .route-map text { stroke: var(--navy); }
.h-navy .route-map .grid line { stroke: var(--navy-line); }
.h-navy .route-map .grid text { fill: #8FA1B3; }
.h-navy .route-map .dest circle { fill: var(--white); stroke: var(--navy); }
.h-navy .route-map .dest text { fill: var(--on-navy); }
.h-navy .route-map .code { fill: var(--copper-light); }
.h-navy .route-map .origin text { fill: var(--white); }
.h-navy .route-map .origin circle.ring { stroke: var(--copper-light); }

/* Map: pointing at a destination brings its route forward */
.route-map .route { transition: opacity .2s ease; }
.route-map .route .arc { transition: stroke-width .2s ease; }
.route-map:has(.route:hover) .route:not(:hover) { opacity: .3; }
.route-map .route:hover .arc { stroke-width: 4; }
.route-map .route:hover .dest circle { r: 7; }

/* Map: the routes draw out from Beirut once, when the map comes into view */
.route-map.will-draw .arc { stroke-dasharray: 1; stroke-dashoffset: 1; }
.route-map.will-draw .dest { opacity: 0; }
.route-map.is-drawn .arc { animation: h-draw 1.1s cubic-bezier(.5, 0, .2, 1) forwards; animation-delay: calc(var(--i) * 110ms); }
.route-map.is-drawn .dest { animation: h-fade .4s ease forwards; animation-delay: calc(var(--i) * 110ms + .8s); }
@keyframes h-draw { to { stroke-dashoffset: 0; } }
@keyframes h-fade { to { opacity: 1; } }

/* Request a freight quote: copper band */
.h-quote { background: var(--copper-ink); color: var(--white); padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 96px); }
.h-quote .wrap { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .h-quote .wrap { grid-template-columns: 5fr 6fr; gap: var(--s-8); align-items: start; } }
.h-quote .h-kicker { color: var(--white); }
.h-quote .h-title { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 14ch; }
.h-quote-body { display: grid; gap: var(--s-5); justify-items: start; }
.h-quote-body p { color: var(--white); font-size: var(--fs-lede); max-width: 56ch; }
.h-quote .h-quote-alt { font-size: 1rem; }
.h-quote a:not(.btn) { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.h-quote a:not(.btn):hover { text-decoration-thickness: 2px; }
.h-quote :focus-visible { outline-color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: #0C1A28; color: var(--white); border-color: #0C1A28; }
.h-quote .btn { min-width: min(100%, 280px); }

@media print { .h-hero, .h-navy, .h-quote { background: none; color: #000; } .route-map.will-draw .arc { stroke-dashoffset: 0; } .route-map.will-draw .dest { opacity: 1; } }

/* What we ship: cargo cards. A copper strip along the top echoes the air waybill in the opening section. */
.h-cargo { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .h-cargo { grid-template-columns: repeat(3, 1fr); } }
.h-card { position: relative; display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6) var(--s-5) var(--s-6); background: var(--white); border: 1px solid var(--line); border-top: 0; }
@media (min-width: 900px) { .h-card { padding: var(--s-7) var(--s-6); } }
.h-card::before { content: ""; position: absolute; inset: 0 -1px auto; height: 6px; background: var(--copper); }
.h-icon { width: 44px; height: 44px; color: var(--copper-ink); margin-bottom: var(--s-3); }
.h-card h3 { font-size: 1.45rem; line-height: 1.25; }
.h-card p { color: var(--muted); }
/* The importer card matches the others, with a navy strip instead of copper */
.h-card--alt::before { background: var(--navy); }

/* Where we ship: less space above the title */
.h-section.h-navy { padding-top: clamp(40px, 5vw, 64px); }

/* Why choose Meridian: statement on the left, the three points as rows on the right */
@media (min-width: 700px) {
  .h-why .h-cols { grid-template-columns: 1fr; gap: var(--s-6); }
  .h-why .h-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); column-gap: var(--s-6); }
}
@media (min-width: 1000px) {
  .h-why { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; }
  .h-why .h-intro { margin-bottom: 0; }
}
.nowrap { white-space: nowrap; }

/* =============================================================
   Inner pages: navy page opening, then the same section rhythm
   as the home page, ending on the copper quote band.
   ============================================================= */
.p-hero { background: var(--navy); color: var(--on-navy); padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.p-hero .h-kicker { color: var(--copper-light); }
.p-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.08; max-width: 18ch; }
.p-hero .lede { color: var(--on-navy-muted); margin-top: var(--s-5); max-width: 64ch; }
.p-hero .btn-row { margin-top: var(--s-6); }
.p-hero--map h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); max-width: none; }
@media (min-width: 960px) { .p-hero--map .h-routes { grid-template-columns: 5fr 7fr; gap: var(--s-7); } }

.p-head { display: grid; gap: var(--s-3); max-width: 64ch; margin-bottom: var(--s-7); }
.p-head p { color: var(--muted); font-size: var(--fs-lede); }
.h-navy .p-head p { color: var(--on-navy-muted); }
.h-section--ruled { border-top: 1px solid var(--line); }
.h-section--tight { padding-block: clamp(48px, 6vw, 72px); }
.h-title--sm { font-size: clamp(1.6rem, 2.6vw, 2rem); }

/* Numbered steps on a copper line (a real sequence, so the numbers carry meaning) */
.s-steps { list-style: none; padding: 0; display: grid; gap: var(--s-6); position: relative; }
.s-steps::before { content: ""; position: absolute; inset-inline-start: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--copper); }
.s-step { position: relative; display: grid; gap: var(--s-2); align-content: start; padding-inline-start: 56px; }
.s-num { position: absolute; inset-inline-start: 0; top: -4px; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 2px solid var(--copper); display: grid; place-items: center; font-family: var(--font-display); font-size: 1rem; color: var(--copper-ink); }
.s-step h3 { font-size: 1.3rem; line-height: 1.25; }
.s-step p { color: var(--muted); }
@media (min-width: 960px) {
  .s-steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); padding-top: 56px; }
  .s-steps--3 { grid-template-columns: repeat(3, 1fr); }
  .s-steps::before { inset-inline: 16px; top: 15px; bottom: auto; width: auto; height: 2px; }
  .s-step { padding-inline-start: 0; padding-inline-end: var(--s-4); }
  .s-num { top: -56px; }
}

/* Two lists side by side: what we prepare, what the client provides */
.s-roles { display: grid; gap: var(--s-7); }
@media (min-width: 860px) { .s-roles { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.s-roles h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; padding-bottom: var(--s-3); border-bottom: 2px solid var(--copper); }
.s-list { list-style: none; padding: 0; }
.s-list li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.h-navy .s-roles h3 { color: var(--white); border-color: var(--copper-light); }
.h-navy .s-list li { border-color: var(--navy-line); color: var(--on-navy); }
.s-note { margin-top: var(--s-7); }

/* Label and text side by side */
.d-layout { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .d-layout { grid-template-columns: 4fr 7fr; gap: var(--s-8); align-items: start; } .d-layout .p-head { margin-bottom: 0; } }
.d-text { font-size: var(--fs-lede); max-width: 62ch; }
.d-list { margin: 0; border-top: 2px solid var(--navy); }
.d-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.d-list dt { font-weight: 600; color: var(--navy); }
.d-list dd { margin: 0; }
.d-list address { font-style: normal; }
.d-list .code { font-family: var(--font-mono); font-size: .9rem; color: var(--copper-ink); }

/* History: eras as rows */
.p-rows { display: grid; gap: var(--s-6); }
@media (min-width: 700px) { .p-rows .h-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: var(--s-7); } }
.p-when { font-size: var(--fs-small); font-weight: 600; color: var(--copper-ink); margin-bottom: var(--s-2); }
.p-body { display: grid; gap: var(--s-3); }
.p-rows .h-item { padding-top: var(--s-5); }
.h-section > .wrap > .h-title + .p-rows { margin-top: 0; }

/* Contact page */
.c-grid { display: grid; gap: var(--s-7); }
@media (min-width: 860px) { .c-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.c-grid .h-title { margin-bottom: var(--s-5); }
.c-map { margin-top: var(--s-4); }

/* =============================================================
   Forms: quote page and contact page.
   Built like the air waybill on the home page: a ruled sheet with
   a copper strip, small labels and the answer written in each cell.
   ============================================================= */
.p-hero--compact { padding-block: clamp(40px, 5vw, 64px); }
.h-section--form { background: var(--fog); padding-block: clamp(40px, 5vw, 72px) var(--section); }
.f-layout { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) { .f-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-7); } }

.f-form { display: grid; gap: 1px; background: var(--navy-line); border: 1px solid var(--navy-line); }
.f-form > * { background: var(--white); margin: 0; min-width: 0; }
.f-strip { height: 6px; background: var(--copper) !important; }
.f-head { padding: var(--s-5) var(--s-5) var(--s-4); display: grid; gap: var(--s-2); }
.f-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; }
.f-head p { color: var(--muted); font-size: var(--fs-small); }
.f-grid { display: grid; gap: 1px; background: var(--navy-line) !important; }
@media (min-width: 640px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-field:not(.f-field--half) { grid-column: 1 / -1; } }

.f-field { position: relative; background: var(--white); padding: var(--s-3) var(--s-5) var(--s-3); display: grid; gap: 2px; align-content: start; transition: background-color .15s; }
.f-field::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: transparent; transition: background-color .15s; }
.f-field:focus-within { background: #F7F9FB; }
.f-field:focus-within::before { background: var(--copper); }
.f-field label { font-size: .8rem; color: var(--muted); font-weight: 500; cursor: pointer; }
.f-opt { color: var(--steel); font-weight: 400; margin-inline-start: var(--s-1); }
.f-opt::before { content: "· "; }
.f-hint { color: var(--muted); font-size: .8rem; }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; min-height: 40px; padding: 4px 0; margin: 0;
  font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; color: var(--navy);
  background: transparent; border: 0; border-bottom: 1px dashed transparent; border-radius: 0;
}
.f-field textarea { font-family: var(--font-body); font-size: 1.05rem; min-height: 112px; resize: vertical; line-height: 1.55; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; }
.f-field select { appearance: none; padding-inline-end: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A4561F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 0 center; }
[dir="rtl"] .f-field select { background-position: left 0 center; }
.f-field select:invalid { color: var(--steel); }
.f-field [aria-invalid="true"] { border-bottom-color: #B42318; }
.f-field:has([aria-invalid="true"])::before { background: #B42318; }
.f-error { color: #B42318; font-size: .8rem; font-weight: 500; padding-top: 2px; }

.f-foot { padding: var(--s-5); display: grid; gap: var(--s-4); justify-items: start; }
.f-foot .btn { min-width: 240px; }
.f-foot .btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 520px) { .f-foot .btn { width: 100%; } .f-foot { justify-items: stretch; } }
.f-status:empty { display: none; }
.f-status { font-size: var(--fs-small); padding: var(--s-3) var(--s-4); border-inline-start: 3px solid var(--copper); background: var(--fog); }
.f-status.is-error { border-color: #B42318; }
.f-done { display: grid; gap: var(--s-3); padding: var(--s-6) var(--s-5); background: var(--white); border: 1px solid var(--navy-line); border-top: 6px solid var(--copper); }
.f-done h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.f-done:focus { outline: none; }
.f-trap { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.f-aside { background: var(--white); border: 1px solid var(--line); padding: var(--s-5); }
.f-aside .h-title { margin-bottom: var(--s-4); font-size: clamp(1.4rem, 2vw, 1.6rem); }
.f-aside .d-list > div { grid-template-columns: 1fr; gap: 2px; padding: var(--s-3) 0; }
.f-aside .d-list dt { font-size: .8rem; color: var(--muted); font-weight: 500; }
.f-aside .d-list dd { color: var(--navy); }
@media (min-width: 960px) { .f-aside { position: sticky; top: 104px; } }

/* "Get a Quote" in the main menu */
.site-nav .nav-cta a, .site-header .site-nav .nav-cta a { background: var(--copper-ink); color: var(--white); font-weight: 600; padding: 0 var(--s-4); margin-inline-start: var(--s-2); }
.site-nav .nav-cta a:hover, .site-header .site-nav .nav-cta a:hover { background: var(--copper-ink-hover); color: var(--white); }
.site-header .site-nav .nav-cta a[aria-current="page"] { box-shadow: none; }
@media (max-width: 1023px) { .site-nav .nav-cta a, .site-header .site-nav .nav-cta a { margin: var(--s-3) 0 0; justify-content: center; border-bottom: 0; } }

/* About page */
.a-sub { margin-top: var(--s-5); font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; color: var(--copper-light); }
.a-intro { display: grid; gap: var(--s-5); align-items: start; }
.a-year { font-family: var(--font-display); font-size: clamp(4rem, 11vw, 8.5rem); line-height: .9; color: var(--copper); letter-spacing: -.01em; }
.a-intro-text { display: grid; gap: var(--s-4); font-family: var(--font-display); font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.45; color: var(--navy); max-width: 40ch; }
@media (min-width: 960px) { .a-intro { grid-template-columns: 4fr 7fr; gap: var(--s-8); } .a-intro-text { padding-top: var(--s-3); } }
.a-lead { font-family: var(--font-display); color: var(--copper-ink) !important; font-size: clamp(1.2rem, 2vw, 1.4rem) !important; }
.a-body { display: grid; gap: var(--s-4); font-size: var(--fs-lede); max-width: 62ch; }
.a-cta { background: var(--fog); padding-block: clamp(40px, 5vw, 64px); }
.a-cta .btn-row { max-width: 560px; }

/* Arabic: the display face (Marcellus) has no Arabic letters, so Arabic text uses Plex Sans Arabic */
html[lang="ar"] :is(.awb-val, .a-sub, .a-intro-text, .a-lead, .f-field input, .f-field select, .f-done h2) { font-family: var(--font-ar); }
html[lang="ar"] .awb-title h1 { line-height: 1.35; max-width: 20ch; }
html[lang="ar"] .p-hero h1 { line-height: 1.35; }
html[lang="ar"] .h-title { line-height: 1.4; }
html[lang="ar"] :is(.h-item h3, .h-card h3, .s-step h3) { line-height: 1.5; }
html[lang="ar"] .awb-val { font-weight: 500; font-size: 1.1rem; line-height: 1.6; }
html[lang="ar"] .a-intro-text { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.8; font-weight: 500; }
html[lang="ar"] .a-sub { font-weight: 500; line-height: 1.6; }
html[lang="ar"] .f-field input, html[lang="ar"] .f-field select { font-size: 1.05rem; }
html[lang="ar"] .f-field input[type="email"], html[lang="ar"] .f-field input[type="tel"] { direction: ltr; text-align: right; }
html[lang="ar"] .f-opt::before { content: "· "; }
html[lang="ar"] .h-kicker { font-family: var(--font-ar); }
