/* 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); }
