/* =========================================================
   Draft 1 – "Harbour"
   Sea blues with one signal color: container orange, used only
   for actions (buttons) and the logo. Serif headings.
   Four pages, English + Arabic.
   ========================================================= */

/* ---------- Colors, fonts, sizes (change them here) ---------- */
:root {
  --deep: #0E3A5C;        /* deep sea blue: headings and text only, never a background */
  --deep-2: #2A5578;
  --ocean: #1B78C2;       /* lively ocean blue: call-to-action panel, hero tint */
  --harbour: #1F6FA8;     /* harbour blue: links, icons, lines */
  --sky: #E4F2FB;         /* soft sky: light section backgrounds */
  --mist: #F4F9FC;
  --wave: #A9D8F5;        /* light sea blue: call-to-action band */
  --orange: #C8470B;      /* signal orange: buttons only (4.8:1 with white text) */
  --orange-hover: #B03E09;
  --white: #FFFFFF;
  --ink: #0C2236;
  --muted: #4F6478;
  --line: #D6E4EE;

  --font-brand: 'Archivo', 'Segoe UI', Arial, sans-serif;   /* same typeface as the logo */
  --font-head: 'Spectral', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --font-ar: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, sans-serif;

  --wrap: 1160px;
  --radius: 8px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--white);
}
/* Arabic pages use the Arabic font everywhere */
[dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .stat b,
[dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea {
  font-family: var(--font-ar);
}
[dir="rtl"] body { line-height: 1.8; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
/* Small line of context above some headings, in plain sentence case */
.eyebrow { font-size: 16px; font-weight: 600; color: var(--harbour); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 6px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform 160ms ease-out;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 6px 14px -8px rgba(12,34,54,.45); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--line); color: var(--deep); background: var(--white); }
.btn-outline:hover { border-color: var(--harbour); color: var(--harbour); }

/* ---------- Logo (inline SVG, colored by these variables) ---------- */
/* "Bow & Stack" logo. Its three colors can be swapped per place (see the home page header). */
.brand {
  --logo-ink: #0A2540; --logo-ocean: #0B6FB8; --logo-sky: #5BB6E8;
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--logo-ink);
}
.brand .mark { height: 40px; width: auto; flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text b { font: 800 19px/1 var(--font-brand); letter-spacing: .05em; }
.brand-text small { font: 600 11px/1 var(--font-brand); letter-spacing: .42em; color: var(--logo-ocean); margin-top: 5px; }
[dir="rtl"] .brand-text b { font-family: var(--font-ar); letter-spacing: 0; font-size: 21px; }
[dir="rtl"] .brand-text small { font-family: var(--font-ar); letter-spacing: 0; font-size: 14px; }

.mark .m-ink { fill: var(--logo-ink); }
.mark .m-ocean { fill: var(--logo-ocean); }
.mark .m-sky { fill: var(--logo-sky); }
.mark .m-line { stroke: var(--logo-ink); }   /* the crane's jib, cable and hook */

/* ---------- Header ----------
   A floating glass capsule just below the top edge, on every page. A soft highlight glides to
   the link you point at (js/main.js) and the capsule tightens a little once you scroll
   ("scrolled"). On the home page it is see-through over the video until you scroll.
   All of its colours are the --bar-* settings here. */
.site-header {
  --bar-bg: rgba(255,255,255,.82); --bar-ink: var(--ink); --bar-hover: rgba(31,111,168,.1);
  --bar-accent: var(--harbour); --bar-edge: var(--line);
  --bar-shadow: 0 10px 30px -14px rgba(14,58,92,.4), 0 0 0 1px rgba(14,58,92,.06);
  --bar-logo-ink: #0A2540; --bar-logo-ocean: #0B6FB8; --bar-logo-sky: #5BB6E8;
  position: fixed; top: 0; inset-inline: 0; z-index: 20; color: var(--bar-ink);
}
.site-header .brand { --logo-ink: var(--bar-logo-ink); --logo-ocean: var(--bar-logo-ocean); --logo-sky: var(--bar-logo-sky); }
.header-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: calc(100% - 28px); max-width: calc(var(--wrap) - 20px); min-height: 66px; margin-top: 14px;
  padding-block: 8px; padding-inline: 20px 10px; border-radius: 999px;
  background: var(--bar-bg); box-shadow: var(--bar-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  transition: max-width .4s cubic-bezier(.23,1,.32,1), min-height .4s cubic-bezier(.23,1,.32,1), background .3s ease, box-shadow .3s ease;
}
.scrolled .header-inner { max-width: calc(var(--wrap) - 140px); min-height: 60px; --bar-shadow: 0 16px 40px -16px rgba(14,58,92,.5), 0 0 0 1px rgba(14,58,92,.08); }
.brand .mark { transition: height .4s cubic-bezier(.23,1,.32,1); }
.scrolled .brand .mark { height: 36px; }
.main-nav { display: flex; align-items: center; gap: 12px; }
.main-nav ul { position: relative; display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { position: relative; z-index: 1; display: block; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--bar-ink); transition: color .2s ease; }
.main-nav ul a[aria-current="page"] { color: var(--bar-accent); }
.nav-pill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: var(--bar-hover); }
.nav-pill.glide { transition: transform .35s cubic-bezier(.23,1,.32,1), width .35s cubic-bezier(.23,1,.32,1); }
.main-nav a.lang-switch { font-weight: 700; text-decoration: none; color: var(--bar-ink); padding: 8px 12px; border-radius: 999px; transition: background .2s ease; }
.main-nav a.lang-switch:hover { background: var(--bar-hover); }
.main-nav a.btn { border-radius: 999px; padding: 10px 20px; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; place-items: center; background: var(--harbour); color: var(--white); border: 0; border-radius: 50%; cursor: pointer; transition: transform 160ms ease-out; }
.menu-btn:active { transform: scale(.95); }
/* Three bars that turn into an X while the menu is open */
.bars, .bars::before, .bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 200ms cubic-bezier(.23,1,.32,1), background-color 150ms ease;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav-open .bars { background-color: transparent; }
.nav-open .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Before scrolling: see-through over the video or blue page header, always in white */
body:not(.nav-open) .site-header:not(.scrolled) {
  --bar-bg: transparent; --bar-shadow: none; --bar-hover: rgba(255,255,255,.16);
  --bar-ink: #FFFFFF; --bar-accent: #FFFFFF;
  --bar-logo-ink: #FFFFFF; --bar-logo-ocean: #8CCBF2; --bar-logo-sky: #CDEBFC;
}
body:not(.nav-open) .site-header:not(.scrolled) .header-inner { -webkit-backdrop-filter: none; backdrop-filter: none; }   /* don't blur what is behind */

/* Phones and small tablets: the links move into a drop-down card */
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .header-inner { min-height: 60px; padding-block: 6px; padding-inline: 14px 7px; }
  .scrolled .header-inner { min-height: 60px; }
  .brand .mark, .scrolled .brand .mark { height: 34px; }
  /* Phone menu: a compact card that drops from the capsule; the page stays in view below it */
  .main-nav {
    position: absolute; inset-inline: auto 0; top: calc(100% + 8px); width: min(100%, 400px);
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 10px 10px 12px;
    background: var(--white); border-radius: 24px; box-shadow: 0 24px 48px -20px rgba(14,58,92,.5), 0 0 0 1px rgba(14,58,92,.06);
    transform-origin: top right; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97);
    transition: opacity .2s ease, transform .25s cubic-bezier(.23,1,.32,1), visibility 0s .25s;
  }
  [dir="rtl"] .main-nav { transform-origin: top left; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { grid-column: 1 / -1; flex-direction: column; }
  .main-nav ul a { padding: 13px 16px; border-radius: 14px; font-size: 18px; color: var(--ink); }
  .main-nav ul a[aria-current="page"] { background: var(--sky); color: var(--harbour); font-weight: 700; }
  .main-nav a.lang-switch { color: var(--ink); margin-inline-start: 4px; }
  .main-nav a.btn { justify-content: center; }
  .nav-pill { display: none; }
}

/* ---------- Home hero: an aerial video of a container ship ----------
   Layers, bottom to top: the video, an ocean-blue tint (so the white text stays
   readable), then the text. The ship sits on the right; the text on the open sea. */
.hero { position: relative; overflow: hidden; color: var(--white); background: #2A8A9C; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 60%;
  background: url(../img/hero.jpg) 70% 60% / cover;   /* same picture as the poster: some phones drop the poster before the video has a frame to show */
}
[dir="rtl"] .hero-video { transform: scaleX(-1); }   /* mirror it so the ship stays clear of the Arabic text */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,74,126,.5) 0, rgba(8,74,126,0) 170px),
    linear-gradient(90deg, rgba(8,74,126,.86) 0%, rgba(14,96,158,.62) 45%, rgba(27,120,194,0) 82%);
}
[dir="rtl"] .hero::before {
  background:
    linear-gradient(180deg, rgba(8,74,126,.5) 0, rgba(8,74,126,0) 170px),
    linear-gradient(270deg, rgba(8,74,126,.86) 0%, rgba(14,96,158,.62) 45%, rgba(27,120,194,0) 82%);
}
/* extra top space because the home page menu floats over the video */
.hero-inner { position: relative; z-index: 2; padding-block: 200px 120px; }
.hero-text { max-width: 760px; }
/* Two big lines; the second in light blue */
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 500; line-height: 1.02; letter-spacing: -.015em; margin-bottom: 22px; }
/* the edge each line slides up from; the extra room below keeps descenders (g, p) uncut, the margin keeps the spacing */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .28em; margin-bottom: -.22em; }
.hero h1 .line:nth-child(2) { color: var(--wave); }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.25; }   /* Arabic letters need room above and below */
.hero .lead { font-size: 19px; color: #EEF7FD; max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Opening moment, once: each title line slides up into view, then the sentence and buttons rise in */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } }
.hero h1 .line > span { display: block; animation: line-up 1.1s cubic-bezier(.16,1,.3,1) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .18s; }
.hero-text > :not(h1) { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.hero-text > :nth-child(2) { --d: .45s; }
.hero-text > :nth-child(3) { --d: .6s; }

/* While scrolling past the hero, the text drifts up and fades and the video eases in a little
   (js/main.js sets --p from 0 to 1) */
.motion .hero-inner { transform: translateY(calc(var(--p, 0) * 90px)); opacity: calc(1 - var(--p, 0) * .9); }
.motion .hero-video { transform: scale(calc(1 + var(--p, 0) * .08)); }
[dir="rtl"].motion .hero-video { transform: scaleX(-1) scale(calc(1 + var(--p, 0) * .08)); }

/* Pause/play button for the video (moving backgrounds need a way to stop them) */
.video-toggle {
  position: absolute; inset-inline-end: 20px; bottom: 20px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.55); background: rgba(8,74,126,.35); color: var(--white);
  display: grid; place-items: center;
}
.video-toggle:hover { background: rgba(8,74,126,.6); }
.video-toggle[hidden] { display: none; }
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.video-toggle .i-play, .video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }

/* ---------- Key numbers: one white card on a soft band right under the hero ---------- */
.stats { background: var(--mist); padding-block: 32px; }
.stats-card {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line);
}
.stat { padding: 30px 26px; border-inline-start: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.stat:first-child { border-inline-start: 0; }
.stat-text { display: grid; gap: 4px; }
.stat b { justify-self: start; font: 600 36px/1 var(--font-head); color: var(--deep); font-variant-numeric: tabular-nums; }
.stat-text span { color: var(--muted); font-size: 15px; line-height: 1.35; }
.stat-icon { width: 30px; height: 30px; fill: none; stroke: var(--harbour); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon .acc { stroke: var(--orange); }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section-alt { background: var(--mist); }
.section-head { display: grid; gap: 12px; max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; color: var(--deep); }
.section-head p { color: var(--muted); font-size: 18px; }

/* Service cards: both white, so they read as calm, equal choices. The colour lives in
   the blue icon tile and a thin blue line along the top that turns orange on hover.
   The whole card is one link (the "stretched" link covers it). */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 18px;
  display: flex; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 24px 44px -34px rgba(14,58,92,.45);
  transition: transform 200ms cubic-bezier(.23,1,.32,1), box-shadow 200ms ease, border-color 200ms ease;
}
.service-card-body { padding: 44px 40px 40px; display: grid; gap: 12px; align-content: start; max-width: 540px; }
.service-icon {
  width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(145deg, #2585CC 0%, #1A6198 100%);
  box-shadow: 0 14px 26px -16px rgba(27,120,194,.9), inset 0 1px 0 rgba(255,255,255,.25);
}
.service-icon svg { width: 48px; height: 48px; fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .service-icon svg { transform: scaleX(-1); }
.service-card h3 { font-size: clamp(30px, 3vw, 38px); font-weight: 600; color: var(--deep); }
.service-line { font-size: 19px; font-weight: 600; color: var(--harbour); }
.service-card p { color: var(--muted); }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0 4px; }
.service-tags li {
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--deep); background: var(--mist); border: 1px solid var(--line);
}
.service-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; font-weight: 700; color: var(--deep); text-decoration: none; justify-self: start; }
.service-cta::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* makes the whole card clickable */
.service-cta .arrow {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); transition: transform 200ms cubic-bezier(.23,1,.32,1);
}
.service-cta .arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .service-cta .arrow svg { transform: scaleX(-1); }
.service-cta:focus-visible { outline: none; }
.service-card:has(.service-cta:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Hover lifts only for a real mouse or trackpad: on touch screens a tap would leave them stuck */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-5px); border-color: #BFDDF1; box-shadow: 0 32px 54px -32px rgba(14,58,92,.5); }
  .service-card:hover .service-cta .arrow { transform: translateX(6px); }
  [dir="rtl"] .service-card:hover .service-cta .arrow { transform: translateX(-6px); }
  .choice:hover { transform: translateY(-3px); border-color: var(--harbour); box-shadow: 0 18px 32px -24px rgba(14,58,92,.5); }
}

/* Photos on the services page */
.svc-photo { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 50px -36px rgba(14,58,92,.7); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Small drawings used in the "which service do you need?" chooser */
.a-hull { fill: #0E3A5C; }
.a-box1 { fill: #2E8FD6; } .a-box2 { fill: #5BB6E8; } .a-boxo { fill: var(--orange); }
.a-reserve { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 8 6; stroke-linecap: round; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { padding-inline-start: 26px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em;
  width: 12px; height: 7px; border-left: 2px solid var(--harbour); border-bottom: 2px solid var(--harbour);
  transform: rotate(-45deg);
}


/* Why us */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-item { border-top: 3px solid var(--wave); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.why-item h3 { font-size: 21px; font-weight: 600; color: var(--deep); }
.why-item p { color: var(--muted); font-size: 16px; }

/* Call to action: a solid ocean-blue panel with soft wave lines in one corner.
   Text on one side; the quote button and a direct phone line on the other. */
.cta { padding-block: 8px 96px; }
.cta-panel {
  position: relative; overflow: hidden;
  background: var(--ocean); color: var(--white); border-radius: 16px;
  padding: 56px clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
  box-shadow: 0 24px 48px -28px rgba(27,120,194,.8);
}
.cta-panel::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 60%);
  pointer-events: none; opacity: .18;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='28' viewBox='0 0 120 28'%3E%3Cpath d='M0 14Q15 4 30 14T60 14T90 14T120 14' fill='none' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E") repeat 0 0 / 120px 28px;
  -webkit-mask-image: linear-gradient(270deg, #000 20%, transparent);
  mask-image: linear-gradient(270deg, #000 20%, transparent);
}
[dir="rtl"] .cta-panel::before { -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent); mask-image: linear-gradient(90deg, #000 20%, transparent); }
.cta-text, .cta-actions { position: relative; }
.cta-text { display: grid; gap: 10px; }
.cta-text h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; }
.cta-text p { color: var(--white); font-size: 18px; max-width: 46ch; }
.cta-actions { display: grid; justify-items: end; }
.cta-actions .btn { padding: 16px 32px; font-size: 17px; }

/* ---------- Inner page header ---------- */
/* Medium-dark "harbour" blue: strong enough to anchor the page, lighter than navy */
.page-hero {
  color: var(--white); padding-block: 152px 72px;   /* top: room for the floating menu */
  background: linear-gradient(120deg, #144F7E 0%, #1A6198 55%, #1F6FA8 100%);
}
[dir="rtl"] .page-hero { background: linear-gradient(240deg, #144F7E 0%, #1A6198 55%, #1F6FA8 100%); }
.page-hero .eyebrow { color: #BFE3F8; }
.page-hero h1 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 600; margin-block: 10px 14px; }
.page-hero p { color: #EAF4FB; font-size: 19px; max-width: 60ch; }
.page-hero .choice { border-color: transparent; }
.page-hero .choice:hover { border-color: #9FD3F5; box-shadow: 0 18px 36px -20px rgba(4,30,52,.6); }

/* Header with a small ship gliding slowly along a dotted route past three ports.
   The ship crosses the full width of any screen; on Arabic pages it sails right to left. */
.page-hero.has-route { position: relative; overflow: hidden; padding-bottom: 136px; }
.route-strip { position: absolute; inset-inline: 0; bottom: 48px; border-top: 2px dotted rgba(159,211,245,.55); pointer-events: none; container-type: inline-size; }
.route-strip .port {
  position: absolute; inset-inline-start: var(--x); top: -7px; width: 12px; height: 12px; margin-inline-start: -6px;
  border-radius: 50%; background: #144F7E; border: 2px solid #BFE3F8;
}
.route-ship { position: absolute; left: 0; bottom: -3px; width: 72px; height: 34px; animation: glide 24s linear infinite; }
[dir="rtl"] .route-ship { animation-direction: reverse; }
[dir="rtl"] .route-ship g { transform: scaleX(-1); transform-origin: 36px 0; }
@keyframes glide { from { transform: translateX(-80px); } to { transform: translateX(calc(100vw + 80px)); } }

/* Contact page: the ship sails in once and docks beside an orange pin (the office), which
   then pulses gently three times. cqw = a share of the route's width. */
.office-pin { position: absolute; inset-inline-start: 88%; bottom: 4px; width: 26px; height: 34px; margin-inline-start: -13px; }
.office-pin svg { width: 100%; height: 100%; display: block; overflow: visible; }
.office-pin::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 34px; height: 12px; margin-left: -17px;
  border-radius: 50%; border: 2px solid #FFB58A; opacity: 0; animation: pulse 1.6s ease-out 5.3s 3;
}
@keyframes pulse { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
.dock-ship { position: absolute; left: 0; bottom: -3px; width: 72px; height: 34px; animation: dock 5s cubic-bezier(.3,0,.2,1) .3s both; }
@keyframes dock { from { transform: translateX(-80px); } to { transform: translateX(calc(88cqw - 91px)); } }
[dir="rtl"] .dock-ship { left: auto; right: 0; animation-name: dock-rtl; }
[dir="rtl"] .dock-ship g { transform: scaleX(-1); transform-origin: 36px 0; }
@keyframes dock-rtl { from { transform: translateX(80px); } to { transform: translateX(calc(-88cqw + 91px)); } }

/* ---------- Services page ---------- */
/* Headline: the three phrases rise in one after another, then the last one gets an orange
   underline. The hidden start lives only in the keyframes, so with motion off it simply shows. */
.phrase { display: inline-block; animation: phrase-in 1.2s cubic-bezier(.16,1,.3,1) both; }
.phrase:nth-child(2) { animation-delay: .55s; }
.phrase:nth-child(3) { animation-delay: 1.1s; position: relative; }
.phrase:nth-child(3)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .02em; height: 4px; border-radius: 2px;
  background: var(--orange); transform-origin: left; animation: underline .9s cubic-bezier(.16,1,.3,1) 2.1s both;
}
/* low enough to clear Arabic letters with tails (ج، ل) in both the web font and the fallback font */
[dir="rtl"] .phrase:nth-child(3)::after { transform-origin: right; bottom: -.28em; }
/* On narrow screens each phrase gets its own line, so nothing jumps between lines while the
   web font loads ("table" keeps each line only as wide as its words, for the underline) */
@media (max-width: 600px) { .phrase { display: table; } }
@keyframes phrase-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes underline { from { transform: scaleX(0); } }

/* "Which one do you need?" chooser at the top: two big links that jump to each service */
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; max-width: 900px; }
.choice {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  background: var(--white); border: 1px solid #C7E2F4; border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: transform 200ms cubic-bezier(.23,1,.32,1), box-shadow 200ms ease, border-color 200ms ease;
}
.choice-icon { flex: none; width: 68px; height: 68px; border-radius: 16px; display: grid; place-items: center; }
.choice-icon svg { width: 48px; height: auto; }
.choice--charter .choice-icon { background: #FDEBDD; }
.choice--liner .choice-icon { background: var(--sky); }
.choice small { display: block; color: var(--muted); font-size: 15px; }
.choice b { display: block; font: 600 24px/1.2 var(--font-head); color: var(--deep); }
[dir="rtl"] .choice b { font-family: var(--font-ar); }

/* Each service gets its own full-width band, so the two never blur together */
.svc { padding-block: 96px; scroll-margin-top: 90px; }
.svc--liner { background: var(--sky); border-block: 1px solid #C7E2F4; }
.svc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.svc-tag { display: inline-block; justify-self: start; font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px; }
.svc--charter .svc-tag { background: #FDEBDD; color: #A43F08; }
.svc--liner .svc-tag { background: var(--white); color: var(--harbour); }
.svc-head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.svc-body { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.best-for { display: grid; gap: 14px; }
.best-for h3 { font: 700 18px var(--font-body); color: var(--deep); }
[dir="rtl"] .best-for h3 { font-family: var(--font-ar); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.svc--charter .chips li { background: #FFF7F1; border-color: #F6D3BD; }

/* Two-column text + side block */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.split + .split { margin-top: 88px; }
.prose { display: grid; gap: 16px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; color: var(--deep); }
.prose p { color: var(--muted); max-width: 62ch; }

/* Specs table */
.specs { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.specs caption { text-align: start; font-weight: 700; padding-bottom: 10px; color: var(--deep); }
.specs th, .specs td { text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--muted); font-weight: 600; background: var(--mist); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

/* Cargo types */
.cargo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cargo-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.cargo-item h3 { font-size: 22px; font-weight: 600; color: var(--deep); }
.cargo-item p { color: var(--muted); font-size: 16px; }

/* Numbered steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sky); color: var(--harbour);
  font: 600 20px var(--font-head); border: 2px solid var(--harbour);
}
.steps h3 { font-size: 20px; font-weight: 600; color: var(--deep); }
.steps p { color: var(--muted); font-size: 16px; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.values div { display: grid; gap: 8px; align-content: start; }
.values h3 { font-size: 22px; font-weight: 600; color: var(--deep); }
.values p { color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-card h2 { font-size: 30px; font-weight: 600; margin-bottom: 6px; color: var(--deep); }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
form { display: grid; gap: 18px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
legend { font-weight: 700; font-size: 17px; color: var(--harbour); margin-bottom: 4px; padding: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid #BFD2E0; border-radius: 6px; padding: 11px 13px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--harbour); border-color: var(--harbour); }
/* A field that still needs fixing turns warning yellow, but only after the visitor types in it or presses Send */
.field :user-invalid, .field :user-invalid:focus { border-color: #B8860B; outline-color: #B8860B; background: #FFF8E1; }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); }
form button:disabled { opacity: .6; cursor: progress; }
/* Send button at its natural width, with any problem written beside it (js/main.js) */
.form-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-error { flex: 1 1 220px; margin: 0; color: #B42318; font-weight: 600; font-size: 15px; }
.form-error:empty { display: none; }
/* Sent: the form card turns into a confirmation that stays (js/main.js adds "is-sent") */
.form-done { display: none; justify-items: start; gap: 14px; scroll-margin-top: 120px; }
.form-done:focus { outline: none; }
.form-card.is-sent > :not(.form-done) { display: none; }
.form-card.is-sent .form-done { display: grid; animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.form-done p { color: var(--muted); }
.form-done b { color: var(--ink); overflow-wrap: anywhere; }
.done-summary { font-weight: 600; color: var(--deep) !important; background: var(--mist); border-radius: 10px; padding: 10px 14px; }
/* A green tick: the circle draws itself, then the check mark */
.done-tick { width: 56px; height: 56px; fill: none; stroke: #1E8E5A; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done-tick circle { fill: #E7F6EE; stroke-dasharray: 158; animation: draw .6s ease-out .1s both; --len: 158; }
.done-tick path { stroke-dasharray: 34; animation: draw .4s ease-out .6s both; --len: 34; }
@keyframes draw { from { stroke-dashoffset: var(--len); } }

.contact-aside { display: grid; gap: 20px; }
.info-card { background: var(--sky); color: var(--ink); border: 1px solid #C7E2F4; border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.info-card h2 { font-size: 24px; font-weight: 600; color: var(--deep); }
.info-card dl { margin: 0; display: grid; gap: 14px; }
.info-card dt { font-size: 14px; color: var(--harbour); font-weight: 600; }
.info-card dd { margin: 2px 0 0; overflow-wrap: anywhere; }   /* long email addresses may break on narrow phones */
.info-card a { text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.office-map { display: block; width: 100%; height: 280px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); }

/* ---------- Footer ---------- */
/* Blue-slate footer: deep enough to close the page firmly, with a blue undertone so it
   belongs to the sea palette. A soft wave of the same colour rises into whatever sits above. */
.site-footer { position: relative; background: #284360; color: #C0CDDA; padding-block: 64px 28px; font-size: 16px; }
.site-footer::before {
  content: ""; position: absolute; inset-inline: 0; bottom: calc(100% - 1px); height: 40px; background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V28C240 4 480 2 720 18S1200 44 1440 10V40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V28C240 4 480 2 720 18S1200 44 1440 10V40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.site-footer .brand { --logo-ink: #FFFFFF; --logo-ocean: #3A9BE0; --logo-sky: #7FC1EE; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-grid h3 { font: 700 17px var(--font-body); color: var(--white); margin-bottom: 14px; }
[dir="rtl"] .footer-grid h3 { font-family: var(--font-ar); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--wave); text-decoration: underline; }
.footer-about p { margin-top: 16px; max-width: 34ch; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #3A5675; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #A9BCCD; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 960px) {
  .split, .contact-grid, .svc-head, .svc-body { grid-template-columns: 1fr; }
  .svc-head { gap: 32px; }
  .why, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-card { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .services, .cargo, .values, .chooser { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { justify-items: start; }
  /* On narrow screens the text covers the whole video, so tint it evenly */
  .hero::before, [dir="rtl"] .hero::before { background: rgba(8,74,126,.72); }
  .hero-inner { padding-block: 150px 84px; }
}
@media (max-width: 560px) {
  .section { padding-block: 64px; }
  .why, .steps, .row-2, .footer-grid { grid-template-columns: 1fr; }
  .service-card-body, .form-card { padding: 24px; }
  .svc { padding-block: 64px; }
  .stat { padding: 22px 16px; }
  .stat b { font-size: 30px; }
}

/* ---------- Reveal on scroll: blocks fade and rise gently into place, once ----------
   Only for blocks that start below the screen (js/main.js), so nothing visible on arrival
   ever flickers. Items in a row follow one another (--rd). */
.motion .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--rd, 0s);
}
.motion .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Phone menu: links slide in one after another ---------- */
@media (max-width: 960px) {
  .motion .main-nav li, .motion .main-nav > a { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
  .motion.nav-open .main-nav li, .motion .nav-open .main-nav li,
  .motion .nav-open .main-nav > a { opacity: 1; transform: none; }
  .motion .main-nav li:nth-child(2) { transition-delay: .05s; }
  .motion .main-nav li:nth-child(3) { transition-delay: .1s; }
  .motion .main-nav li:nth-child(4) { transition-delay: .15s; }
  .motion .main-nav > a { transition-delay: .2s; }
}

/* Smooth scrolling (Lenis library): the settings it needs */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* People who ask their device for less motion get a calm, still page */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock-ship { transform: translateX(calc(88cqw - 91px)); }
  [dir="rtl"] .dock-ship { transform: translateX(calc(-88cqw + 91px)); }
  /* the About ship rests between the first two ports, as if under way */
  .route-ship { transform: translateX(calc(31cqw - 36px)); }
  [dir="rtl"] .route-ship { transform: translateX(calc(69cqw - 36px)); }
  * { transition: none !important; animation: none !important; }
}
