/* ==========================================================================
   ESS — East Shipping Services
   Self-contained stylesheet. No framework, no build step, no external CSS.
   Palette sampled directly from the client's logo and 2026 portfolio deck:
     cyan  #4BBFEA   the "E" in the mark        -> accent, rules, highlights
     blue  #2F8BD4   deck icon circles          -> buttons, links
     navy  #062445   deck headings              -> text, dark surfaces
     grey  #B6B6B6   the "SS" in the mark       -> muted type, borders
   ========================================================================== */

:root {
  --cyan: #4bbfea;
  --cyan-soft: #e8f7fd;
  --blue: #2f8bd4;
  --blue-dark: #1f6cb0;
  --navy: #062445;
  --navy-soft: #0d3560;
  --grey: #b6b6b6;
  --ink: #12233a;
  --body: #4a5a6d;
  --line: #e2e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;

  --wrap: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 4px rgba(6, 36, 69, .04);
  --shadow-md: 0 12px 30px rgba(6, 36, 69, .09);
  --shadow-lg: 0 26px 60px rgba(6, 36, 69, .16);

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Barlow", "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* The off-canvas nav is parked at translateX(100%) outside the viewport.
     Without this it inflates scrollWidth and the whole page scrolls sideways
     on mobile. */
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.78); }
.section--navy h2, .section--navy h3 { color: #fff; }

/* Screen-reader-only, for the skip link and icon-only buttons */
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- section heading ---------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--cyan);
}
.section--navy .eyebrow { color: var(--cyan); }

.head { max-width: 760px; margin-bottom: 54px; }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head p { font-size: 1.06rem; }
.head--center .eyebrow { justify-content: center; }

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .16s ease, background .16s ease,
                              color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--cyan); color: var(--navy); }
.btn--outline-light { border-color: rgba(255,255,255,.42); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* --- header ------------------------------------------------------------- */

.topbar {
  background: var(--navy); color: rgba(255,255,255,.72);
  font-size: .85rem; padding: 9px 0;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: var(--cyan); }
.topbar .spacer { margin-inline-start: auto; }
.topbar .tag { color: var(--cyan); font-weight: 600; letter-spacing: .05em; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px; min-height: 82px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 10px 15px; border-radius: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: var(--navy);
}
.nav a:hover { background: var(--bg-alt); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 3px; border-radius: 2px;
  background: var(--cyan); margin-top: 5px;
}
.header-cta { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
/* Login lives as a button in the header (desktop) and as a drawer link on mobile. */
.nav__login { display: none; }

.nav-toggle {
  display: none; margin-inline-start: auto; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; position: relative; width: 20px; height: 2px;
  margin: 0 auto; background: var(--navy); border-radius: 2px;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* --- hero --------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: var(--bg-alt); }
.hero__grid {
  display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 56px;
}
.hero__copy { padding: 92px 0 96px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--blue); }
.hero__lead { font-size: 1.16rem; max-width: 30em; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero__pillars { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.hero__pillars li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .86rem;
  color: var(--navy); letter-spacing: .03em; text-transform: uppercase;
}
.hero__pillars svg { width: 22px; height: 22px; stroke: var(--blue); flex: 0 0 auto; }

.hero__media { position: relative; align-self: stretch; min-height: 460px; }
.hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
}

/* --- stat band ---------------------------------------------------------- */

.band { background: var(--navy); }
.band ul {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-inline-start: 1px solid rgba(255,255,255,.12);
}
.band li {
  padding: 34px 26px; border-inline-end: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.band strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 1.05rem; color: #fff; letter-spacing: .02em;
}
.band span { display: block; font-size: .88rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* --- cards -------------------------------------------------------------- */

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfe3f5;
}
.card__icon {
  width: 58px; height: 58px; border-radius: 15px; background: var(--cyan-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; stroke: var(--blue); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .98rem; }

/* numbered feature card (3PL block) */
.card--num { position: relative; padding-top: 34px; }
.card--num .num {
  position: absolute; top: -1px; inset-inline-end: 24px;
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem;
  color: var(--cyan-soft); line-height: 1;
}

/* --- media split -------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.split--flip .split__media { order: 2; }
.split__media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.split__media--tall img { aspect-ratio: 3 / 4; }

.ticks li {
  position: relative; padding-inline-start: 34px; margin-bottom: 13px;
  font-size: 1.02rem; color: var(--ink);
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .42em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F8BD4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--navy .ticks li { color: rgba(255,255,255,.86); }

/* --- industries --------------------------------------------------------- */

.industry {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 344px; display: flex; align-items: flex-end;
  color: #fff; isolation: isolate;
}
.industry img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.industry::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(6,36,69,.93) 0%, rgba(6,36,69,.78) 34%,
              rgba(6,36,69,.28) 68%, rgba(6,36,69,.06) 100%);
}
.industry__body { padding: 26px 26px 28px; }
.industry h3 { color: #fff; margin-bottom: 6px; font-size: 1.2rem; }
.industry p { color: rgba(255,255,255,.8); font-size: .93rem; margin: 0; }

/* --- steps (shop & ship) ------------------------------------------------ */

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { position: relative; text-align: center; padding-top: 8px; }
.step__num {
  counter-increment: s; width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  position: relative; z-index: 2;
}
.step__num::before { content: counter(s); }
.step:not(:last-child)::before {
  content: ""; position: absolute; top: 34px; inset-inline-start: 50%; inset-inline-end: -50%;
  height: 2px; background: var(--line); z-index: 1;
}
.section--navy .step:not(:last-child)::before { background: rgba(255,255,255,.18); }
.step h4 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  color: var(--navy); margin: 0 0 6px;
}
.section--navy .step h4 { color: #fff; }
.step p { font-size: .92rem; margin: 0; }
.step .ar { display: block; margin-top: 6px; font-size: .95rem; color: var(--cyan); direction: rtl; }

/* store chips */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.stores li {
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  padding: 8px 17px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.9);
}

/* route pill: UAE ✈ Lebanon */
.route {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 26px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 11px 24px;
  font-family: var(--font-head); font-weight: 700; color: #fff; letter-spacing: .04em;
}
.route .dots { flex: 1; min-width: 46px; border-top: 2px dashed rgba(255,255,255,.34); }
.route svg { width: 20px; height: 20px; stroke: var(--cyan); }

/* --- network ------------------------------------------------------------ */

.hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.hub {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.hub img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hub__body { padding: 22px 24px 24px; }
.hub__tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue);
  background: var(--cyan-soft); border-radius: 6px; padding: 4px 10px; margin-bottom: 10px;
}
.hub h3 { font-size: 1.18rem; margin-bottom: 6px; }
.hub p { font-size: .95rem; margin: 0; }

/* --- contact ------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.info li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info li:first-child { padding-top: 0; }
.info li:last-child { border-bottom: 0; }
.info__icon {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px;
  background: var(--cyan-soft); display: flex; align-items: center; justify-content: center;
}
.info__icon svg { width: 22px; height: 22px; stroke: var(--blue); }
.info h4 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--navy); margin: 0 0 3px;
}
.info p, .info a { margin: 0; font-size: .99rem; color: var(--body); }
.info a { display: block; }
.info a:hover { color: var(--blue); }

form.enquiry {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; color: var(--navy); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,139,212,.16);
}
.field textarea { resize: vertical; min-height: 128px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .87rem; margin: 14px 0 0; }

/* --- CTA ---------------------------------------------------------------- */

.cta {
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-soft) 58%, var(--blue-dark) 100%);
  border-radius: var(--radius-lg); padding: 60px 56px; color: #fff;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.8); margin: 0; max-width: 46em; }
.cta__actions { display: flex; gap: 13px; flex-wrap: wrap; margin-inline-start: auto; }

/* --- footer ------------------------------------------------------------- */

.site-footer { background: var(--navy); color: rgba(255,255,255,.66); font-size: .97rem; }
.site-footer__top { padding: 68px 0 44px; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px;
}
.site-footer img { height: 46px; width: auto; margin-bottom: 18px; }
.site-footer h4 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: #fff; margin: 0 0 16px;
}
.site-footer a { color: rgba(255,255,255,.66); }
.site-footer a:hover { color: var(--cyan); }
.site-footer li { margin-bottom: 9px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0;
  font-size: .89rem; color: rgba(255,255,255,.5);
}
.site-footer__bottom .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.site-footer__bottom .spacer { margin-inline-start: auto; }

/* --- page header (inner pages) ------------------------------------------ */

.page-head {
  background: var(--navy); color: rgba(255,255,255,.76);
  padding: 68px 0 72px; position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; top: 0; inset-inline-end: -8%; width: 46%; height: 100%;
  background: linear-gradient(120deg, transparent 0 34%, rgba(75,191,234,.16) 34% 52%, transparent 52%);
  pointer-events: none;
}
.page-head h1 { color: #fff; margin-bottom: 12px; }
.page-head p { max-width: 46em; margin: 0; font-size: 1.06rem; }
.crumbs { display: flex; gap: 9px; font-size: .88rem; margin-bottom: 16px; color: rgba(255,255,255,.5); }
.crumbs a { color: var(--cyan); }

/* --- reveal on scroll (progressive; visible without JS) ------------------ */

.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .step:not(:last-child)::before { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset-block: 0; inset-inline-end: 0; width: min(320px, 84vw);
    background: #fff; padding: 92px 24px 30px; z-index: 70;
    border-inline-start: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .26s ease, visibility .26s;
    overflow-y: auto; visibility: hidden;
  }
  .nav[data-open="true"] { transform: none; visibility: visible; }

  /* the panel slides in from the left once the page is mirrored */
  [dir="rtl"] .nav { transform: translateX(-100%); }
  [dir="rtl"] .nav[data-open="true"] { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 13px 14px; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav__login { display: block; }
  .nav__login a { color: var(--blue); font-weight: 700; }

  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__copy { padding: 62px 0 54px; }
  .hero__media { min-height: 340px; order: -1; }
  .hero__media img { position: static; height: 340px; }

  .split, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .split--flip .split__media { order: 0; }
  .band ul { grid-template-columns: repeat(2, 1fr); }
  .hubs { grid-template-columns: 1fr; }
  .cta { padding: 44px 30px; }
  .cta__actions { margin-left: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 66px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .topbar .spacer { margin-left: 0; }
  .topbar .hide-sm { display: none; }
  form.enquiry { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .nav-toggle, .cta__actions { display: none; }
  body { color: #000; }
}

/* ==========================================================================
   Air · Sea · Land feature cards
   The client's own strapline is "AIR · SEA · LAND", so the three modes get a
   section of their own rather than sitting as three of six service cards.
   The photograph gets its own frame rather than a scrim over the whole card —
   these are landscape shots, and cropping them into a tall panel buried the
   aircraft/ship/truck under the gradient.
   ========================================================================== */

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.mode {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.mode:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfe3f5;
}

.mode__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.mode__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.mode:hover .mode__media img { transform: scale(1.06); }

/* just enough wash at the top for the badge to sit on any photo */
.mode__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,36,69,.42) 0%, rgba(6,36,69,.08) 30%,
              rgba(6,36,69,0) 55%);
  pointer-events: none;
}

.mode__badge {
  position: absolute; top: 18px; inset-inline-start: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: rgba(6,36,69,.62); border: 1px solid rgba(255,255,255,.34);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 7px 15px;
}
.mode__badge svg { width: 16px; height: 16px; stroke: var(--cyan); }

.mode__body {
  padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1;
}
.mode h3 { font-size: 1.42rem; margin-bottom: 9px; }
.mode p { font-size: .98rem; margin-bottom: 16px; }

.mode__facts { margin-bottom: 20px; }
.mode__facts li {
  position: relative; padding-inline-start: 20px; font-size: .93rem;
  color: var(--body); line-height: 1.75;
}
.mode__facts li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .66em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
}

.mode__link {
  margin-top: auto;
  font-family: var(--font-head); font-weight: 700; color: var(--blue);
  display: inline-flex; align-items: center; gap: 8px;
}
.mode__link svg { width: 18px; height: 18px; stroke: currentColor; transition: transform .16s ease; }
.mode__link:hover svg { transform: translateX(3px); }
[dir="rtl"] .mode__link svg { transform: scaleX(-1); }
[dir="rtl"] .mode__link:hover svg { transform: scaleX(-1) translateX(3px); }

@media (max-width: 1080px) {
  .modes { grid-template-columns: 1fr; }
  .mode__media { aspect-ratio: 16 / 8; }
}

/* ==========================================================================
   Arabic / RTL
   The layout is flexbox + grid + logical properties, so direction mostly
   mirrors itself. These are the pieces that need a human decision.
   ========================================================================== */

/* language switch in the top bar */
.lang {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: 3px 13px 4px;
}
.lang:hover { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.lang svg { width: 15px; height: 15px; stroke: currentColor; }

[dir="rtl"] {
  --font: "Tajawal", "Segoe UI", sans-serif;
  --font-head: "Cairo", "Tajawal", sans-serif;
}

/* Arabic letters join — any tracking breaks the word. */
[dir="rtl"] body { line-height: 1.95; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5 { letter-spacing: 0; line-height: 1.4; }
[dir="rtl"] .eyebrow,
[dir="rtl"] .hero__pillars li,
[dir="rtl"] .mode__badge,
[dir="rtl"] .hub__tag,
[dir="rtl"] .band strong,
[dir="rtl"] .stores li,
[dir="rtl"] .route { letter-spacing: 0; }

/* Arabic has no case; uppercasing only mangles Latin runs inside the string. */
[dir="rtl"] .eyebrow,
[dir="rtl"] .hero__pillars li,
[dir="rtl"] .mode__badge,
[dir="rtl"] .hub__tag { text-transform: none; }

/* Latin runs (phone numbers, e-mail, brand words) inside Arabic copy. */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* The hero photo's diagonal wedge and the page-head wedge both point the
   other way once the page is mirrored. */
[dir="rtl"] .hero__media img { object-position: center left; transform: scaleX(-1); }
[dir="rtl"] .page-head::after { transform: scaleX(-1); }

/* Numerals and figures read left-to-right even inside Arabic text. */
[dir="rtl"] .step__num,
[dir="rtl"] .card--num .num { direction: ltr; }
