/* =========================================================================
   Halifax Holland Line — design system
   Palette: institutional navy, white, ice blue, one red hairline accent.
   ========================================================================= */

:root {
  /* Brand */
  --navy-950: #05131F;
  --navy-900: #08203A;
  --navy-800: #0C2A4A;
  --navy-700: #123458;
  --navy-600: #1A4571;
  --navy-500: #26588C;
  --steel-400: #5B7FA6;
  --steel-300: #8CA6C0;
  --ice-200: #D7E2ED;
  --ice-100: #E9F0F6;
  --ice-50: #F4F8FB;
  --white: #FFFFFF;
  --red: #C8102E;
  --red-dark: #9E0C24;

  /* Semantic */
  --ink: var(--navy-900);
  --ink-2: #37516B;
  --ink-3: #6A819A;
  --line: #DCE5EE;
  --line-strong: #C3D2E0;
  --ok: #10693F;
  --ok-bg: #E4F2EA;
  --warn: #8A5A00;
  --warn-bg: #FBF0DC;
  --alert: #A11B12;
  --alert-bg: #FBE9E7;
  --info: var(--navy-600);
  --info-bg: var(--ice-100);

  /* Type */
  --font-display: 'Archivo', 'Segoe UI', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;

  /* Layout */
  --wrap: 1280px;
  --wrap-narrow: 880px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 3px;
  --radius-lg: 5px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(8, 32, 58, .06), 0 2px 8px rgba(8, 32, 58, .05);
  --sh-2: 0 2px 4px rgba(8, 32, 58, .07), 0 12px 28px rgba(8, 32, 58, .09);
  --sh-3: 0 8px 20px rgba(8, 32, 58, .10), 0 28px 60px rgba(8, 32, 58, .14);

  --header-h: 72px;
  --util-h: 36px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::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;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
:focus-visible {
  outline: 3px solid var(--navy-500);
  outline-offset: 2px;
  border-radius: 2px;
}
::selection { background: var(--navy-800); color: #fff; }

/* ---------- Type scale ---------- */
.display  { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
.h1       { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.06; letter-spacing: -.03em; }
.h2       { font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -.025em; }
.h3       { font-size: clamp(1.2rem, 1.9vw, 1.55rem); letter-spacing: -.018em; }
.h4       { font-size: 1.06rem; letter-spacing: -.012em; }
.lede     { font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--ink-2); }
.small    { font-size: .875rem; }
.tiny     { font-size: .78rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 650;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy-500); margin: 0 0 1rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--red); display: block; flex: none;
}
.eyebrow--light { color: var(--steel-300); }
.mono { font-family: var(--font-mono); font-size: .9em; letter-spacing: .02em; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(56px, 8vw, 108px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--ice { background: var(--ice-50); }
.section--line { border-top: 1px solid var(--line); }
.section--navy {
  background: var(--navy-900);
  color: var(--ice-200);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy .lede { color: var(--ice-200); }
.section--navy a { color: #fff; }
/* Buttons keep their own colour scheme inside dark sections,
   otherwise a light button renders white text on a white face. */
.section--navy .btn, .band__copy .btn, .pagehead .btn { color: var(--btn-fg); }

.grid { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }
@media (max-width: 980px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
}
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-bd: var(--navy-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.5rem;
  font-family: var(--font-body); font-size: .93rem; font-weight: 620;
  letter-spacing: .005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  cursor: pointer; text-align: center;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { --btn-bg: var(--navy-600); --btn-bd: var(--navy-600); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-1); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ice-100); --btn-bd: var(--navy-600); --btn-fg: var(--navy-800); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--ice-100); --btn-bd: var(--ice-100); --btn-fg: var(--navy-900); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; --btn-fg: #fff; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--sm { padding: .5rem .9rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .92rem; color: var(--navy-600);
}
.link-arrow::after {
  content: ''; width: 16px; height: 8px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M0 4h13M10 1l3 3-3 3' stroke='%23000' stroke-width='1.4' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M0 4h13M10 1l3 3-3 3' stroke='%23000' stroke-width='1.4' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .2s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--radius); font-weight: 600;
  transition: top .18s var(--ease);
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.utilbar {
  background: var(--navy-950); color: var(--steel-300);
  font-size: .78rem; height: var(--util-h);
  display: flex; align-items: center;
}
.utilbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.utilbar a { color: var(--ice-200); }
.utilbar a:hover { color: #fff; }
.utilbar-left, .utilbar-right { display: flex; align-items: center; gap: 1.4rem; }
.utilbar .sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.utilbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #35C07A; box-shadow: 0 0 0 3px rgba(53,192,122,.22); flex: none; }
@media (max-width: 900px) { .utilbar-left .hide-sm { display: none; } }
@media (max-width: 620px) { .utilbar { display: none; } }

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.masthead.is-stuck { box-shadow: var(--sh-1); }
.masthead .wrap {
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  letter-spacing: .11em; color: var(--navy-900); text-transform: uppercase;
}
.brand__sub {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px; font-weight: 550;
}
@media (max-width: 400px) { .brand__sub { display: none; } }

.mainnav { margin-left: auto; display: flex; align-items: center; gap: clamp(4px, 1.4vw, 18px); }
.mainnav > a, .mainnav > .navitem > button {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .1rem;
  font-size: .92rem; font-weight: 560; color: var(--ink);
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.mainnav > a::after, .mainnav > .navitem > button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.mainnav > a:hover::after, .mainnav > .navitem > button:hover::after,
.mainnav > a[aria-current="page"]::after { transform: scaleX(1); }
.mainnav > a[aria-current="page"] { color: var(--navy-900); font-weight: 650; }
.navitem { position: relative; }
.navitem > button .chev { width: 9px; height: 6px; transition: transform .2s var(--ease); }
.navitem.is-open > button .chev { transform: rotate(180deg); }
.navpanel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
  width: min(680px, 92vw); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--sh-3); padding: 1.4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.6rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.navitem.is-open .navpanel { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.navpanel a {
  display: block; padding: .7rem .8rem; border-radius: var(--radius);
  color: var(--ink); transition: background .16s var(--ease);
}
.navpanel a:hover { background: var(--ice-50); }
.navpanel .t { font-weight: 640; font-size: .93rem; color: var(--navy-900); display: block; }
.navpanel .d { font-size: .8rem; color: var(--ink-3); line-height: 1.45; display: block; margin-top: 2px; }
.navpanel__foot {
  grid-column: 1 / -1; margin-top: .6rem; padding-top: 1rem;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .84rem;
}
.nav-cta { display: flex; align-items: center; gap: .6rem; margin-left: clamp(6px, 1.4vw, 16px); }
@media (max-width: 1080px) { .mainnav, .nav-cta .btn--ghost { display: none; } }
/* Below this the quote button would push the menu toggle off screen. */
@media (max-width: 720px) { .nav-cta { display: none; } }

.navtoggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.navtoggle span { display: block; width: 20px; height: 2px; background: var(--navy-900); position: relative; transition: background .15s; }
.navtoggle span::before, .navtoggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy-900);
  transition: transform .22s var(--ease), top .22s var(--ease);
}
.navtoggle span::before { top: -6px; }
.navtoggle span::after { top: 6px; }
.navtoggle[aria-expanded="true"] span { background: transparent; }
.navtoggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.navtoggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1080px) { .navtoggle { display: flex; } }

.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: #fff; padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer a { display: block; padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.12rem; font-weight: 600; color: var(--navy-900); }
.drawer .drawer__group { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 1.8rem 0 .3rem; font-weight: 650; }
.drawer .btn { margin-top: 1.6rem; }

/* ---------- Region and language picker ---------- */
/* Lives in the utility bar, so it inherits .navitem open/close behaviour
   but needs its own small-scale typography and a right-aligned panel. */
.langpick { position: relative; display: inline-flex; }
.langpick > button {
  display: inline-flex; align-items: center; gap: .38rem;
  background: none; border: 0; cursor: pointer; padding: 0;
  font-size: .78rem; color: var(--ice-200); font-family: var(--font-body);
}
.langpick > button:hover { color: #fff; }
.langpick > button .chev { width: 8px; height: 5px; transition: transform .2s var(--ease); }
.langpick.is-open > button .chev { transform: rotate(180deg); }
.langpick__flag {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.35); border-radius: 2px;
  padding: 1px 3px; line-height: 1.2; color: #fff;
}
.langpick__panel {
  left: auto; right: 0; transform: translate(0, 8px);
  width: 300px; grid-template-columns: 1fr 1fr; padding: .5rem;
  gap: 2px;
}
.langpick.is-open .langpick__panel { transform: translate(0, 0); }
.langpick__panel a {
  display: flex; flex-direction: column; gap: 1px;
  padding: .6rem .7rem; border-radius: var(--radius); color: var(--ink);
}
.langpick__panel a[aria-current="true"] { background: var(--ice-100); box-shadow: inset 0 0 0 1px var(--line-strong); }
.langpick__region { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.langpick__lang { font-size: .92rem; font-weight: 600; color: var(--navy-900); }
@media (max-width: 620px) { .langpick { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; min-height: min(78vh, 720px); }
.hero__copy { padding: clamp(48px, 6vw, 96px) clamp(24px, 4vw, 72px) clamp(48px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.hero__copy-inner { max-width: 640px; margin-left: auto; width: 100%; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero__lede { color: #C9D9E8; font-size: clamp(1.02rem, 1.4vw, 1.22rem); max-width: 48ch; }
.hero__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--navy-950); }
.hero__pane { position: relative; overflow: hidden; }
.hero__pane img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(1.04); }
.hero__pane::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,19,31,.86) 0%, rgba(5,19,31,.16) 46%, rgba(5,19,31,.05) 100%);
}
.hero__tag {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 2px;
}
.hero__tag b { font-family: var(--font-display); font-size: .95rem; letter-spacing: .04em; color: #fff; }
.hero__tag span { font-family: var(--font-mono); font-size: .72rem; color: #A9C2D9; letter-spacing: .04em; }
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy-inner { margin-left: 0; max-width: none; }
  .hero__media { height: 320px; }
}
@media (max-width: 520px) { .hero__media { height: 240px; } }

.hero__stats {
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-bottom: 48px; /* clears the overlapping tools bar below */
}
.hero__stats div { padding: 1.15rem 1rem; border-right: 1px solid rgba(255,255,255,.14); }
.hero__stats div:last-child { border-right: 0; }
.hero__stats b { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.9rem); color: #fff; letter-spacing: -.02em; }
.hero__stats span { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #8FAAC5; }
@media (max-width: 760px) { .hero__stats { grid-template-columns: repeat(2, 1fr); } .hero__stats div:nth-child(2) { border-right: 0; } }

/* Page banner (interior pages) */
.pagehead { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.pagehead__bg { position: absolute; inset: 0; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.7); }
.pagehead::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,32,58,.96) 0%, rgba(8,32,58,.78) 48%, rgba(8,32,58,.42) 100%);
}
.pagehead .wrap { position: relative; z-index: 2; padding-block: clamp(46px, 7vw, 92px); }
.pagehead h1 { color: #fff; max-width: 20ch; }
.pagehead p { color: #C1D4E5; max-width: 60ch; margin-bottom: 0; }
.crumbs { font-size: .8rem; color: #9DB7CE; margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.crumbs a { color: #C1D4E5; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #6E8CA8; }

/* ---------- Quick tools bar ---------- */
.toolbar {
  position: relative; z-index: 5;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--sh-2);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0;
  margin-top: -38px;
}
.toolbar__cell { padding: 1.15rem 1.4rem; border-right: 1px solid var(--line); }
.toolbar__cell:last-child { border-right: 0; }
.toolbar__label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; margin-bottom: .5rem; display: block; }
.toolbar form { display: flex; gap: .5rem; }
.toolbar input { flex: 1; min-width: 0; }
.toolbar__val { font-family: var(--font-display); font-size: 1.12rem; color: var(--navy-900); font-weight: 700; letter-spacing: -.015em; }
.toolbar__meta { font-size: .8rem; color: var(--ink-3); }
@media (max-width: 900px) {
  .toolbar { grid-template-columns: 1fr; margin-top: -24px; }
  .toolbar__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .toolbar__cell:last-child { border-bottom: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 30px);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card--link:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-3px); }
.card--flush { padding: 0; overflow: hidden; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ice-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card--link:hover .card__media img { transform: scale(1.04); }
.card__body { padding: clamp(18px, 2.2vw, 26px); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 0; }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--ice-100); color: var(--navy-700);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card--navy { background: var(--navy-800); border-color: var(--navy-700); color: var(--ice-200); }
.card--navy h3 { color: #fff; }
.card--navy p { color: #B9CCDE; }

/* Service list rows */
.rowlist { border-top: 1px solid var(--line); }
.rowitem {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1.5rem; align-items: start;
  padding: 1.7rem 0; border-bottom: 1px solid var(--line);
  transition: background .18s var(--ease);
}
.rowitem:hover { background: var(--ice-50); }
.rowitem__num { font-family: var(--font-mono); font-size: .8rem; color: var(--steel-400); padding-top: .35rem; letter-spacing: .06em; }
.rowitem h3 { margin-bottom: .35rem; }
.rowitem p { margin-bottom: 0; max-width: 62ch; }
@media (max-width: 720px) { .rowitem { grid-template-columns: 40px 1fr; gap: 1rem; } .rowitem > .link-arrow { grid-column: 2; } }

/* ---------- Stats ---------- */
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.statgrid--2 { grid-template-columns: repeat(2, 1fr); }
.statgrid > div { background: #fff; padding: clamp(20px, 2.6vw, 32px); }
.statgrid b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.9rem); color: var(--navy-900); letter-spacing: -.03em; line-height: 1; }
.statgrid span { display: block; margin-top: .55rem; font-size: .84rem; color: var(--ink-3); }
.section--navy .statgrid { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.section--navy .statgrid > div { background: var(--navy-900); }
.section--navy .statgrid b { color: #fff; }
.section--navy .statgrid span { color: #8FAAC5; }
@media (max-width: 760px) { .statgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .6rem; border-radius: 100px;
  font-size: .74rem; font-weight: 650; letter-spacing: .02em;
  background: var(--info-bg); color: var(--info);
  border: 1px solid transparent;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--alert { background: var(--alert-bg); color: var(--alert); }
.badge--quiet { background: var(--ice-100); color: var(--ink-3); }
.badge--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .85rem; border: 1px solid var(--line-strong); border-radius: 100px;
  background: #fff; font-size: .84rem; font-weight: 550; color: var(--ink-2); cursor: pointer;
  transition: all .16s var(--ease);
}
.chip:hover { border-color: var(--navy-500); color: var(--navy-800); }
.chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.15rem; }
.field label, .lbl {
  display: block; font-size: .84rem; font-weight: 620; color: var(--navy-900); margin-bottom: .4rem;
}
.field .req { color: var(--red); }
.field .hint { font-size: .78rem; color: var(--ink-3); margin-top: .35rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="search"], select, textarea {
  width: 100%; padding: .74rem .9rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  font-size: .95rem;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2337516B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 10px;
  padding-right: 2.2rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(38,88,140,.16);
}
input::placeholder, textarea::placeholder { color: #93A7BC; }
textarea { min-height: 130px; resize: vertical; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--alert); }
.field .err { display: none; color: var(--alert); font-size: .78rem; margin-top: .35rem; font-weight: 550; }
.field.is-invalid .err { display: block; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; }
.checkline { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; }
.checkline input { width: 18px; height: 18px; margin-top: .18rem; flex: none; accent-color: var(--navy-700); }
.radiocards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.radiocard { position: relative; }
.radiocard input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radiocard span {
  display: block; padding: .9rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: .9rem; font-weight: 560; transition: all .16s var(--ease); background: #fff;
}
.radiocard small { display: block; font-weight: 450; color: var(--ink-3); font-size: .78rem; margin-top: .15rem; }
.radiocard input:checked + span { border-color: var(--navy-700); background: var(--ice-50); box-shadow: inset 0 0 0 1px var(--navy-700); }
.radiocard input:focus-visible + span { outline: 3px solid var(--navy-500); outline-offset: 2px; }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.dtable { min-width: 760px; font-size: .9rem; }
.dtable thead th {
  text-align: left; padding: .85rem 1rem;
  background: var(--ice-50); border-bottom: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700;
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.dtable thead th button {
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem; text-transform: inherit; letter-spacing: inherit;
}
.dtable thead th button .caret { opacity: .35; }
.dtable thead th[aria-sort] button .caret { opacity: 1; color: var(--navy-700); }
.dtable tbody td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover { background: var(--ice-50); }
.dtable .vessel { font-weight: 620; color: var(--navy-900); }
.dtable .voy { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.meter { width: 78px; height: 6px; border-radius: 100px; background: var(--ice-200); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--navy-600); border-radius: 100px; }
.meter.is-low i { background: var(--red); }

.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1.4rem; }
.filters .field { margin-bottom: 0; min-width: 170px; }
.filters .grow { flex: 1; min-width: 220px; }
.results-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0 .8rem; font-size: .85rem; color: var(--ink-3); flex-wrap: wrap; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.6rem 2.4rem; }
.timeline li::before {
  content: ''; position: absolute; left: 6px; top: 20px; bottom: -4px; width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 2px solid var(--line-strong);
}
.timeline li.is-done::after { background: var(--navy-700); border-color: var(--navy-700); }
.timeline li.is-current::after { background: #fff; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(38,88,140,.18); }
.timeline li.is-done::before { background: var(--navy-600); }
.timeline .tl-title { font-weight: 640; color: var(--navy-900); font-size: .95rem; }
.timeline .tl-meta { font-size: .82rem; color: var(--ink-3); }
.timeline .tl-note { font-size: .82rem; color: var(--ink-2); margin-top: .25rem; font-style: italic; }
.timeline li:not(.is-done) .tl-title { color: var(--ink-3); font-weight: 550; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.steps > div { background: #fff; padding: 1.5rem 1.2rem; }
.steps .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy-800); color: #fff;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: .78rem; margin-bottom: .9rem;
}
.steps h4 { margin-bottom: .3rem; font-size: .98rem; }
.steps p { font-size: .85rem; margin-bottom: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Route map ---------- */
.routemap { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #EAF2F9; }
.routemap img { width: 100%; display: block; }
.routemap__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.routemap__path { fill: none; stroke: var(--navy-800); stroke-width: 2.2; stroke-dasharray: 7 6; stroke-linecap: round; }
.routemap__ship { fill: var(--navy-800); }
.routemap__pin circle { fill: #fff; stroke: var(--navy-800); stroke-width: 2.5; }
.routemap__pin text { font-family: var(--font-body); font-size: 3.2px; font-weight: 650; fill: var(--navy-900); }
.routemap__legend {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .8rem;
  font-size: .76rem; color: var(--ink-2); backdrop-filter: blur(4px);
}
@media (prefers-reduced-motion: no-preference) {
  .routemap__path { animation: dash 26s linear infinite; }
  @keyframes dash { to { stroke-dashoffset: -260; } }
}

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-family: var(--font-display); font-weight: 650; font-size: 1.02rem; color: var(--navy-900);
  letter-spacing: -.01em;
}
.acc__btn::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 12px; height: 2px;
  background: var(--navy-700); transform: translateY(-50%);
}
.acc__btn::before {
  content: ''; position: absolute; right: 9px; top: 50%; width: 2px; height: 12px;
  background: var(--navy-700); transform: translateY(-50%);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.acc__btn[aria-expanded="true"]::before { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.acc__panel { display: none; padding: 0 0 1.4rem; max-width: 72ch; }
.acc__panel.is-open { display: block; }

/* ---------- Quote wizard ---------- */
.wizard { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .wizard { grid-template-columns: 1fr; } }
.wizard__nav { list-style: none; padding: 0; margin: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.wizard__nav li { display: flex; gap: .85rem; padding: .7rem 0; align-items: flex-start; }
.wizard__nav .n {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-strong); color: var(--ink-3); background: #fff;
  display: grid; place-items: center; font-size: .78rem; font-weight: 650;
  font-family: var(--font-mono);
}
.wizard__nav li.is-active .n { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.wizard__nav li.is-done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.wizard__nav .t { font-size: .92rem; font-weight: 600; color: var(--ink-3); }
.wizard__nav li.is-active .t, .wizard__nav li.is-done .t { color: var(--navy-900); }
.wizard__nav .d { font-size: .78rem; color: var(--ink-3); font-weight: 400; display: block; }
@media (max-width: 900px) { .wizard__nav { position: static; display: flex; overflow-x: auto; gap: 1.2rem; padding-bottom: .5rem; } .wizard__nav .d { display: none; } }
.wstep { display: none; }
.wstep.is-active { display: block; animation: fadein .28s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.progressbar { height: 3px; background: var(--ice-200); border-radius: 100px; overflow: hidden; margin-bottom: 2rem; }
.progressbar i { display: block; height: 100%; background: var(--navy-700); transition: width .35s var(--ease); }
.review-table th { text-align: left; padding: .55rem 1rem .55rem 0; color: var(--ink-3); font-weight: 550; font-size: .86rem; width: 40%; vertical-align: top; }
.review-table td { padding: .55rem 0; font-weight: 560; color: var(--navy-900); font-size: .92rem; }

/* ---------- Estimator ---------- */
.estimator { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.estimator__form { padding: clamp(22px, 3vw, 34px); }
.estimator__out { padding: clamp(22px, 3vw, 34px); background: var(--navy-900); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.estimator__out h3 { color: #fff; }
.estimator__big { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.035em; color: #fff; }
.estimator__row { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: #BED0E1; }
.estimator__row b { color: #fff; font-weight: 620; }
.estimator__row:last-of-type { border-bottom: 0; }
@media (max-width: 800px) { .estimator { grid-template-columns: 1fr; } }

/* ---------- Ports ---------- */
.portcard { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; display: grid; grid-template-columns: 200px 1fr; }
.portcard__img { position: relative; }
.portcard__img img { width: 100%; height: 100%; object-fit: cover; }
.portcard__body { padding: clamp(20px, 2.4vw, 30px); }
.speclist { display: grid; grid-template-columns: repeat(2, 1fr); gap: .1rem 1.4rem; margin-top: 1.1rem; }
.speclist div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.speclist dt, .speclist .k { color: var(--ink-3); }
.speclist dd, .speclist .v { margin: 0; font-weight: 600; color: var(--navy-900); text-align: right; }
@media (max-width: 700px) { .portcard { grid-template-columns: 1fr; } .portcard__img { height: 180px; } .speclist { grid-template-columns: 1fr; } }

/* ---------- Media band ---------- */
.band { position: relative; overflow: hidden; }
.band img { width: 100%; height: clamp(180px, 26vw, 320px); object-fit: cover; }
.band--tint::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,32,58,.86), rgba(8,32,58,.25)); }
.band__copy { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }

.figure { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.figure img { width: 100%; }
.figure figcaption { font-size: .8rem; color: var(--ink-3); padding: .7rem .9rem; background: var(--ice-50); border-top: 1px solid var(--line); }
.imgpair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: var(--radius-lg); overflow: hidden; }
.imgpair img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }

/* ---------- Quote / testimonial ---------- */
.quote-block { border-left: 3px solid var(--red); padding-left: clamp(18px, 2.5vw, 30px); }
.quote-block p {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  line-height: 1.4; color: var(--navy-900); letter-spacing: -.018em; font-weight: 600;
}
.section--navy .quote-block p { color: #fff; }
.quote-block cite { font-style: normal; font-size: .88rem; color: var(--ink-3); }
.section--navy .quote-block cite { color: #9DB7CE; }

/* ---------- News ---------- */
.newsitem { display: grid; grid-template-columns: 130px 1fr auto; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.newsitem time { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.newsitem h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.newsitem p { font-size: .9rem; margin-bottom: 0; max-width: 68ch; }
@media (max-width: 760px) { .newsitem { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #9DB7CE; padding-block: clamp(46px, 6vw, 76px) 0; font-size: .9rem; }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 650; }
.footer a { color: #B9CCDE; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: #7793AF; }
.footer__offices { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.4rem; padding-top: 2.4rem; border-top: 1px solid rgba(255,255,255,.12); }
.footer__legal {
  margin-top: 2.6rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: #7793AF;
}
.footer__legal nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__offices { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Notice / toast ---------- */
.notice {
  display: flex; gap: .85rem; padding: 1rem 1.15rem;
  border: 1px solid var(--line); border-left: 3px solid var(--navy-600);
  border-radius: var(--radius); background: var(--ice-50); font-size: .89rem;
  /* Colour is set explicitly: notices also sit inside dark panels,
     where inheriting white text would be unreadable on a light face. */
  color: var(--ink-2);
}
.notice b, .notice strong { color: var(--navy-900); }
.notice--warn { border-left-color: var(--warn); background: var(--warn-bg); color: #6B4600; }
.notice--warn b { color: #4A3000; }
.notice--ok { border-left-color: var(--ok); background: var(--ok-bg); color: #0C5433; }
.notice--ok b { color: #063D24; }
.notice--alert { border-left-color: var(--alert); background: var(--alert-bg); color: #8A170F; }
.notice--alert b { color: #63100A; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice p:last-child { margin-bottom: 0; }

.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: .6rem; }
.toast {
  background: var(--navy-900); color: #fff; padding: .9rem 1.2rem; border-radius: var(--radius);
  box-shadow: var(--sh-3); font-size: .9rem; max-width: 340px;
  animation: toastin .25s var(--ease);
}
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 250; max-width: 420px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--sh-3); padding: 1.2rem 1.3rem; font-size: .86rem;
}
.consent[hidden] { display: none; }
@media (max-width: 520px) { .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------- Reveal ---------- */
/* Scoped to .js so content is always visible when scripting is unavailable. */
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .wrapf { flex-wrap: wrap; }

.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-900); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.totop.is-vis { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--navy-700); }

@media print {
  .masthead, .utilbar, .footer, .totop, .consent, .toast-host, .btn { display: none !important; }
  body { color: #000; }
}
