/* All Ports Logistics. "Manifest" design: white paper, navy rules, logo blue. */

:root {
  --navy: #183868;
  --blue: #1898d0;
  --blue-hover: #4fb3de;
  --deep: #0b1f3f;
  --white: #ffffff;
  --muted: #4a5f82;
  --on-navy-muted: #b9c6da;
  --on-navy-rule: #4a6699;
  --pad: clamp(20px, 2.6vw, 32px);
  --gap-y: clamp(56px, 7vw, 96px);
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --display: Anton, Impact, 'Arial Narrow', sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

main { flex: 1 0 auto; }

h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--deep); }
.site-footer :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--navy); color: var(--white); padding: 12px 16px; }
.skip:focus { left: var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type helpers */
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.label { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; }
.h2 { font-size: clamp(2.5rem, 6.5vw, 6rem); line-height: 0.98; }
.accent { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 20px 28px; border: 0; cursor: pointer;
  font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
}
.btn svg { flex: none; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--deep); }
.btn--blue { background: var(--blue); color: var(--deep); }
.btn--blue:hover { background: var(--blue-hover); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; border-bottom: 2px solid var(--navy); }
.brand { display: flex; align-items: center; gap: 14px; padding: 14px var(--pad); text-decoration: none; }
.brand__mark { font-family: var(--display); font-size: 40px; line-height: 1; }
.brand__name { font-family: var(--mono); font-size: 12px; line-height: 1.35; letter-spacing: 0.04em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px calc(var(--pad) - 12px); font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav a { padding: 12px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-header .btn { padding: 16px var(--pad); font-size: 14px; }
@media (max-width: 760px) {
  .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .site-nav { order: 3; flex: 1 1 100%; border-top: 1px solid var(--navy); }
}

/* Page hero */
.hero { padding: 36px var(--pad) 56px; display: flex; flex-direction: column; gap: 28px; }
.tags { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.hero h1 { font-size: clamp(3rem, 13vw, 13rem); line-height: 0.96; }
.hero__row { display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; align-items: flex-end; }
.lede { flex: 1 1 420px; max-width: 720px; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.4; text-wrap: pretty; }

/* Ruled cells: a row of boxes separated by navy lines that always fills its row */
.cells { display: flex; flex-wrap: wrap; gap: 2px; background: var(--navy); border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }
.cells > * { flex: 1 1 var(--cell, 260px); min-width: 0; background: var(--white); }
.fact { padding: 20px var(--pad); display: flex; flex-direction: column; gap: 6px; }
.fact dd { font-family: var(--display); font-size: 30px; line-height: 1.1; text-transform: uppercase; }

/* Sections */
.section { padding: var(--gap-y) var(--pad); }
.section--flush { padding-bottom: 0; }
.section__head { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section__head p { flex: 1 1 420px; max-width: 620px; }

/* Home: service manifest */
.manifest { border-top: 2px solid var(--navy); }
.manifest a { display: flex; flex-wrap: wrap; gap: 4px 32px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--navy); text-decoration: none; }
.manifest li:last-child a { border-bottom-width: 2px; }
.manifest__no { flex: 0 0 48px; font-family: var(--mono); font-size: 14px; }
.manifest__name { flex: 0 1 480px; font-family: var(--display); font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.1; text-transform: uppercase; }
.manifest__desc { flex: 1 1 320px; }
.manifest a:hover .manifest__name { color: var(--blue); }

/* Blue bands */
.band { background: var(--blue); color: var(--deep); padding: var(--gap-y) var(--pad); }
.band--quote { display: flex; flex-direction: column; gap: 32px; }
.band blockquote { font-family: var(--display); font-size: clamp(2.25rem, 6.2vw, 5.75rem); line-height: 1.04; text-transform: uppercase; max-width: 1300px; text-wrap: balance; }
.band--cta { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: flex-end; }
.band--cta h2 { flex: 1 1 520px; }

/* How we work */
.steps { --cell: 280px; }
.steps li { padding: 28px var(--pad) 40px; display: flex; flex-direction: column; gap: 12px; }
.steps__n { font-family: var(--display); font-size: 112px; line-height: 1; }
.steps h3 { font-size: 21px; font-weight: 600; }

/* People */
.people { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.people figure { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.people blockquote { font-size: clamp(1.5rem, 2.7vw, 2.375rem); line-height: 1.25; font-weight: 500; text-wrap: pretty; }
.ruled { flex: 1 1 360px; min-width: 0; border-top: 2px solid var(--navy); }
.ruled > * { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--navy); }
.ruled > *:last-child { border-bottom-width: 2px; }
.ruled a { padding: 8px 0; overflow-wrap: anywhere; }
.person__name { font-family: var(--display); font-size: 28px; line-height: 1.15; text-transform: uppercase; }

/* Services page */
.index { --cell: 190px; border-bottom: 0; }
.index a { padding: 16px 20px; display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.index a:hover .index__name { color: var(--blue); }
.index__no { font-family: var(--mono); font-size: 13px; }
.index__name { font-family: var(--display); font-size: 21px; line-height: 1.15; text-transform: uppercase; }
.service { border-top: 2px solid var(--navy); padding: 40px var(--pad) 64px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; scroll-margin-top: 12px; }
.service__no { flex: 0 0 auto; width: 170px; font-family: var(--display); font-size: clamp(4.5rem, 9vw, 9rem); line-height: 0.9; color: var(--blue); }
.service__main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.service__main h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1; }
.service__main p { max-width: 620px; font-size: 20px; line-height: 1.45; }
.service__list { flex: 1 1 360px; min-width: 0; }
.service__list ul { margin-top: 10px; border-top: 2px solid var(--navy); }
.service__list li { padding: 12px 0; border-bottom: 1px solid var(--navy); }
@media (max-width: 640px) { .service__no { width: auto; } }

/* About page */
.split { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-start; }
.split > :first-child { flex: 1 1 360px; min-width: 0; }
.split__body { flex: 999 1 520px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 20px; font-size: 20px; line-height: 1.5; }
.statements { --cell: 420px; }
.statement { padding: 40px var(--pad) 56px; display: flex; flex-direction: column; gap: 16px; }
.statement__lead { font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.3; font-weight: 500; text-wrap: pretty; }
.members { --cell: 300px; border-bottom: 0; }
.members li { padding: 24px var(--pad) 32px; display: flex; flex-direction: column; gap: 4px; }
.members__short { font-family: var(--display); font-size: 64px; line-height: 1; }

/* Contact page */
.contact { border-top: 2px solid var(--navy); padding: 56px var(--pad) var(--gap-y); display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: flex-start; }
.contact__form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact__head { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; }
.contact__head h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.contact__details { flex: 1 1 340px; }
.contact__details a, .contact__details span:not(.label) { font-size: 20px; }
.contact__details a { padding: 6px 0; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 4px; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; border: 0; border-bottom: 2px solid var(--navy); border-radius: 0;
  background: var(--white); padding: 10px 0; font: inherit; font-size: 20px; color: var(--navy);
}
.field textarea { resize: vertical; line-height: 1.4; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 28px; min-height: 48px; align-items: center; border-bottom: 2px solid var(--navy); font-size: 20px; }
.choices label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.choices input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.note { max-width: 420px; font-size: 15px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.status { padding: 32px var(--pad) 40px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.status--ok { background: var(--blue); color: var(--deep); }
.status--ok p:first-of-type { font-family: var(--display); font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1; text-transform: uppercase; }
.status--err { border: 2px solid var(--navy); font-weight: 500; }
.find { border-top: 2px solid var(--navy); padding: 40px var(--pad) 56px; display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.find > div { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.find__coords { font-family: var(--display); font-size: clamp(2.5rem, 8.4vw, 8.5rem); line-height: 0.98; text-transform: uppercase; }

/* Simple message pages (thanks, 404) */
.message { padding: var(--gap-y) var(--pad); display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.message h1 { font-size: clamp(3rem, 11vw, 10rem); line-height: 0.96; }
.message .lede { flex: none; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); padding: var(--gap-y) var(--pad) 32px; display: flex; flex-direction: column; gap: 48px; }
.site-footer a { color: var(--white); }
.footer__cta { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: flex-end; }
.footer__cta h2 { flex: 1 1 520px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px 48px; }
.footer__cta + .footer__grid { border-top: 1px solid var(--on-navy-rule); padding-top: 28px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer__grid .label { color: var(--on-navy-muted); }
.footer__grid a { font-size: 20px; padding: 6px 0; overflow-wrap: anywhere; }
.footer__word { font-family: var(--display); font-size: clamp(2.5rem, 11.2vw, 11rem); line-height: 0.9; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-navy-muted); }
.footer__legal a { color: var(--on-navy-muted); }

/* ------------------------------------------------------------------ Home v2 */

.muted { color: var(--muted); }
html:not(.js) .js-only { display: none !important; }

/* Top bar, on every page */
.topbar { background: var(--deep); color: var(--white); padding: 4px var(--pad); display: flex; flex-wrap: wrap; gap: 0 24px; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.topbar > span:first-child { padding: 8px 0; color: var(--on-navy-muted); }
.topbar__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.topbar a { color: var(--white); padding: 8px 0; }
.topbar :focus-visible { outline-color: var(--white); }

/* Navy header, used on the home page so it joins the hero */
.site-header--navy { background: var(--navy); color: var(--white); border-bottom: 1px solid var(--on-navy-rule); }
.site-header--navy a:not(.btn) { color: var(--white); }
.site-header--navy :focus-visible { outline-color: var(--white); }
@media (max-width: 760px) { .site-header--navy .site-nav { border-top-color: var(--on-navy-rule); } }

/* Buttons added for the home page */
.btn--big { padding: 22px 36px; font-size: 17px; }
.btn--deep { background: var(--deep); color: var(--white); }
.btn--deep:hover { background: var(--navy); }
.btn--outline { padding: 18px 26px; border: 2px solid currentColor; background: transparent; color: inherit; }
.linkbtn { border: 0; background: none; cursor: pointer; padding: 6px 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* Quote desk: the booking-style form in the home hero */
.desk { background: var(--navy); color: var(--white); padding: 40px var(--pad) 56px; display: flex; flex-direction: column; gap: 28px; }
.desk__head { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; justify-content: space-between; }
.desk__head h1 { flex: 999 1 560px; min-width: 0; font-size: clamp(2.75rem, 6.6vw, 6.25rem); line-height: 1; }
.desk__head p { flex: 1 1 340px; max-width: 620px; font-size: 20px; line-height: 1.4; color: #d3deec; }
.desk__card { background: var(--white); color: var(--navy); display: flex; flex-direction: column; }
.desk__tabs { display: flex; flex-wrap: wrap; gap: 2px; background: var(--navy); border-bottom: 2px solid var(--navy); }
.desk__tabs button { flex: 1 1 170px; min-height: 60px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; background: var(--white); color: var(--navy); font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.desk__tabs button[aria-pressed="true"], .desk__options button[aria-pressed="true"] { background: var(--blue); color: var(--deep); }
.desk__tabs button:focus-visible, .desk__options button:focus-visible, .desk .btn:focus-visible { outline-color: var(--deep); outline-offset: -5px; }
.desk__step { padding: 28px var(--pad) 32px; display: flex; flex-direction: column; gap: 28px; }
.js [data-desk][data-current="1"] [data-step="2"], .js [data-desk][data-current="2"] [data-step="1"] { display: none; }
html:not(.js) .desk__step + .desk__step { padding-top: 0; }
.desk__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.desk__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px 32px; align-items: end; }
.desk .field input { min-height: 52px; font-size: 22px; font-weight: 500; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.desk__foot { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.desk__options { display: flex; flex-wrap: wrap; gap: 8px; }
.desk__options button { min-height: 48px; padding: 0 20px; border: 2px solid var(--navy); cursor: pointer; background: var(--white); color: var(--navy); font: inherit; font-weight: 500; }
.desk__go { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.desk .status--err { color: var(--navy); }
.desk .status--ok:focus { outline: 0; }

/* The live "shipment so far" line under the form */
.ticket { display: flex; flex-direction: column; gap: 10px; border-top: 2px dashed var(--on-navy-rule); padding-top: 24px; }
.ticket__meta { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: 12px; letter-spacing: 0.08em; color: var(--on-navy-muted); }
.ticket__route { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(12px, 2vw, 32px); font-size: clamp(2rem, 6.2vw, 5.75rem); line-height: 1.05; }
.ticket__route span { overflow-wrap: anywhere; }
.ticket__route .is-empty { color: #8fa3c4; }
.ticket__route svg { flex: none; width: 0.8em; height: 0.8em; stroke: var(--blue); }

/* Facts strip directly under the navy hero: no top rule needed */
.cells--flush { border-top: 0; }

/* Service cards that feed the quote desk */
.lanes { --cell: 300px; }
.lane { padding: 24px var(--pad) 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lane h3 { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.05; text-transform: uppercase; }
.lane p { flex-grow: 1; }
.lane .btn { margin-top: 8px; padding: 14px 20px; font-size: 13px; }
.cells > .lane--blue { background: var(--blue); color: var(--deep); }
.lane--blue p { font-weight: 500; }
.lane--blue :focus-visible { outline-color: var(--deep); }

.steps--three { --cell: 320px; }
.steps--three .steps__n { font-size: 128px; color: var(--blue); }
.steps--three h3 { font-size: 22px; }

/* Scrolling trade lanes */
.marquee { background: var(--blue); color: var(--deep); padding: 28px 0 32px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.marquee p { padding: 0 var(--pad); }
.marquee__track { display: flex; width: max-content; white-space: nowrap; font-family: var(--display); font-size: clamp(3rem, 8vw, 7.5rem); line-height: 1.1; text-transform: uppercase; animation: marquee 46s linear infinite; }
.marquee__track span { padding-right: 0.5em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Questions and answers beside the CEO quote */
.faq { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.faq h2 { font-size: 44px; line-height: 1; }
.faq__list { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--navy); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-family: var(--mono); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; max-width: 520px; }

.footer__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Phone: one-line top bar and compact two-column tabs, so the form starts higher */
@media (max-width: 640px) {
  .topbar > span:first-child, .topbar a[href^="mailto:"] { display: none; }
  .topbar { justify-content: flex-end; }
  .desk { padding-top: 28px; }
  .desk__tabs button { flex: 1 1 calc(50% - 2px); min-height: 48px; padding: 0 8px; font-size: 12px; }
  .desk__tabs svg { display: none; }
}
