/* ==========================================================================
   SW Marine Services — site styles
   Palette: harbour navy, international-orange signal, chart-paper grey
   Type: Barlow Condensed (display) + Barlow (text)
   ========================================================================== */

:root {
  --navy: #04224a;
  --navy-2: #0a3470;
  --navy-3: #0b4aa8;
  --signal: #00c6f4;      /* brand cyan — accents on dark */
  --signal-d: #004ec0;
  --brand: #0060e8;       /* brand royal blue — buttons, links */
  --brand-d: #004ec0;
  --grad: linear-gradient(120deg, #00d8f8 0%, #0060e8 100%); /* logo gradient */
  --chart: #eef5fc;
  --chart-2: #e1ecf8;
  --steel: #5b7180;
  --teal: #0060e8;
  --ink: #04224a;
  --body: #33495a;
  --line: #d3e0ee;
  --white: #ffffff;
  --ok: #1d7a4f;
  --err: #b42318;

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r-sm: 4px;
  --r-md: 8px;
  --shadow: 0 1px 2px rgba(14, 42, 59, .06), 0 8px 24px -12px rgba(14, 42, 59, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--f-text);
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.05; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
[hidden] { display: none !important; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.4em;
  font: 600 1rem/1 var(--f-text); text-decoration: none; letter-spacing: .01em;
  border: 2px solid transparent; border-radius: var(--r-sm); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--brand); color: #fff; }
.btn--signal:hover { background: var(--brand-d); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); color: #fff; }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--navy); }
.link-arrow .ico { transition: transform .15s; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Ops bar ---------- */
.opsbar { background: var(--navy); color: #c9d6dd; font-size: .875rem; }
.opsbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.opsbar p { margin: 0; max-width: none; }
.opsbar__live { display: flex; align-items: center; gap: 8px; }
.opsbar .dot { width: 8px; height: 8px; border-radius: 50%; background: #00d8f8; box-shadow: 0 0 0 3px rgba(0,216,248,.2); }
.opsbar__links { display: flex; gap: 22px; }
.opsbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.opsbar a:hover { color: var(--signal); }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.masthead.is-stuck { box-shadow: 0 6px 20px -14px rgba(14,42,59,.45); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__mark { width: 44px; height: 44px; }
.brand__logo { height: 56px; width: auto; max-width: 220px; object-fit: contain; }
.footer .brand__logo { height: 56px; }
@media (max-width: 640px) { .brand__logo { height: 42px; max-width: 170px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--f-display); }
.brand__text b { font-size: 1.55rem; font-weight: 700; letter-spacing: .01em; }
.brand__text small { font-size: .95rem; font-weight: 500; color: var(--steel); letter-spacing: .32em; margin-top: 2px; }
.brand--light { color: #fff; }
.brand--light .brand__text small { color: #9fb3bf; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; list-style: none; gap: 4px; }
.nav ul a { display: block; padding: 10px 12px; text-decoration: none; color: var(--navy); font-weight: 500; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 28px; height: 28px; }
.nav-toggle .ico--close { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #d7e2e8; overflow: hidden; isolation: isolate; }
.hero__chart { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 6.4vw, 5.25rem); line-height: .95; letter-spacing: -.015em; margin-bottom: .35em; }
.hero h1 span { display: block; color: #9fb3bf; font-weight: 500; }
.hero__lede { font-size: 1.2rem; color: #c9d6dd; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.14); list-style: none; }
.hero__facts li { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.hero__facts .ico { color: var(--signal); }

/* Route graphic inside hero */
.route { position: relative; margin-top: 8px; }
.route svg { width: 100%; height: auto; }
.route .dash { stroke-dasharray: 6 8; animation: route 1.4s linear infinite; }
@keyframes route { to { stroke-dashoffset: -28; } }

/* Quick quote card */
.qcard { background: #fff; color: var(--body); border-radius: var(--r-md); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); overflow: hidden; }
.qcard__head { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.qcard__head h2 { font-size: 1.75rem; margin: 0; }
.qcard__head p { margin: 0; font-size: .875rem; color: var(--steel); }
.qcard form { padding: 18px 24px 24px; display: grid; gap: 14px; }
.qcard .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qcard__note { font-size: .875rem; color: var(--steel); margin: 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--chart { background: var(--chart); }
.section--navy { background: var(--navy); color: #c9d6dd; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { margin: 0; max-width: 16ch; }
.section__head p { margin: 0; font-size: 1.125rem; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem/1 var(--f-display); color: var(--teal); letter-spacing: .04em; margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--grad); }
.section--navy .kicker { color: #00d8f8; }

/* Services list — manifest style rows */
.manifest { list-style: none; border-top: 2px solid var(--navy); }
.manifest li { border-bottom: 1px solid var(--line); }
.manifest a { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr) 32px; gap: 24px; align-items: center; padding: 26px 8px; text-decoration: none; color: inherit; transition: background .15s; }
.manifest a:hover { background: var(--chart); }
.manifest .ico-tile { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--navy); color: #fff; }
.manifest .ico-tile .ico { width: 26px; height: 26px; }
.manifest h3 { margin: 0; font-size: 1.75rem; }
.manifest p { margin: 0; }
.manifest .go { color: var(--brand); width: 24px; height: 24px; transition: transform .15s; }
.manifest a:hover .go { transform: translateX(4px); }
.section--chart .manifest a:hover { background: #fff; }

/* Steps — a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; counter-reset: step; position: relative; }
.steps li { position: relative; padding: 0 28px 0 0; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--signal); color: #fff; font: 700 1.5rem/1 var(--f-display); background: var(--navy); position: relative; z-index: 1; margin-bottom: 22px; }
.steps li::after { content: ""; position: absolute; top: 26px; left: 52px; right: 0; border-top: 2px dashed rgba(255,255,255,.25); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.5rem; }
.steps p { margin: 0; font-size: 1rem; }

/* About split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.figure-panel { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--navy); aspect-ratio: 5 / 4; }
.figure-panel svg { width: 100%; height: 100%; }
.badge-years { position: absolute; left: 20px; bottom: 20px; background: var(--grad); color: #fff; padding: 14px 18px; border-radius: var(--r-sm); line-height: 1; }
.badge-years b { display: block; font: 700 2.6rem/1 var(--f-display); }
.badge-years span { font-weight: 600; font-size: .9rem; }
.ticks { list-style: none; display: grid; gap: 12px; margin: 24px 0 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { color: var(--teal); margin-top: 4px; }
.section--navy .ticks .ico { color: var(--signal); }

/* Charter cards */
.charters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.charter { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.charter__art { aspect-ratio: 16 / 10; background: var(--navy-2); }
.charter__art svg { width: 100%; height: 100%; }
.charter__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.charter__body h3 { font-size: 1.75rem; margin-bottom: .25em; }
.charter__body .ticks { margin: 16px 0 24px; gap: 8px; font-size: .975rem; }
.charter__body .btn { margin-top: auto; align-self: flex-start; }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: #c9d6dd; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .hero__chart { opacity: .7; }
.page-hero__in { padding-block: clamp(48px, 7vw, 88px); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { font-size: 1.15rem; max-width: 56ch; }
.crumbs { display: flex; gap: 8px; list-style: none; font-size: .9rem; margin-bottom: 18px; color: #9fb3bf; }
.crumbs a { color: #c9d6dd; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* Service detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail__lead { font-size: 1.25rem; color: var(--ink); }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; background: #fff; }
.aside-box--navy { background: var(--navy); border-color: var(--navy); color: #c9d6dd; }
.aside-box--navy h3 { color: #fff; }
.aside-box h3 { font-size: 1.4rem; }
.aside-list { list-style: none; }
.aside-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 500; }
.aside-list a[aria-current] { color: var(--brand); }
.aside-list li:last-child a { border-bottom: 0; }

/* Contact strip */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 48px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card .ico-tile { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--chart); color: var(--navy); flex: none; }
.contact-card .ico-tile .ico { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: .2em; }
.contact-card p, .contact-card a { margin: 0; font-weight: 500; color: var(--navy); word-break: break-word; }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.fieldset legend { font: 600 1.5rem/1.1 var(--f-display); color: var(--ink); margin-bottom: 18px; padding: 0; display: flex; align-items: center; gap: 12px; }
.fieldset legend .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--steel); }
.field .hint { font-size: .85rem; color: var(--steel); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 1rem/1.4 var(--f-text); color: var(--ink);
  background: #fff; border: 1.5px solid #b9c7cb; border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304224a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--steel); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,96,232,.2); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: .875rem; margin: 0; font-weight: 500; }

/* Segmented radio (urgency / charter type) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid #b9c7cb; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s; }
.seg label small { font-weight: 400; color: var(--steel); font-size: .825rem; }
.seg label:hover { border-color: var(--steel); }
.seg input:checked + label { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg input:checked + label small { color: #c9d6dd; }
.seg input[value="critical"]:checked + label { border-color: var(--brand); background: var(--brand); color: #fff; }
.seg input[value="critical"]:checked + label small { color: #d8f6fd; }
.seg input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; }

/* File drop */
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed #9fb0b5; border-radius: var(--r-sm); background: var(--chart); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--teal); background: #e3effc; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ico { width: 28px; height: 28px; color: var(--teal); }
.drop strong { color: var(--ink); display: block; }
.drop span { font-size: .875rem; color: var(--steel); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
.form-foot p { margin: 0; font-size: .9rem; color: var(--steel); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm); margin-bottom: 24px; font-weight: 500; }
.alert p { margin: 0; }
.alert--ok { background: #e7f5ee; color: #135c3a; border-left: 4px solid var(--ok); }
.alert--err { background: #fdecea; color: #8a1c13; border-left: 4px solid var(--err); }
.alert .ico { margin-top: 3px; }

.done { text-align: left; padding: 8px 0; }
.done .ico-tile { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #e7f5ee; color: var(--ok); margin-bottom: 18px; }
.done .ico-tile .ico { width: 30px; height: 30px; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--grad); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 44px; }
.cta-band h2 { margin: 0 0 .15em; font-size: clamp(2rem, 4vw, 2.75rem); }
.cta-band p { margin: 0; font-weight: 500; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--signal { background: var(--navy); color: #fff; }
.cta-band .btn--signal:hover { background: var(--navy-3); }
.cta-band .btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.cta-band .btn--ghost-light:hover { background: rgba(255,255,255,.12); }

.footer { background: #021936; color: #9fb3bf; padding-top: 72px; font-size: .975rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.footer h3 { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: #c9d6dd; text-decoration: none; }
.footer a:hover { color: var(--signal); }
.footer__brand p { margin-top: 18px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ico { margin-top: 4px; color: var(--signal); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #163f78; border-radius: var(--r-sm); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid #0b2c58; font-size: .875rem; }
.footer__base p { margin: 0; }

.float-call { display: none; }

/* ---------- 404 ---------- */
.lost { text-align: left; padding-block: 120px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .charters { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps li:nth-child(2)::after { display: none; }
  .detail, .form-shell { grid-template-columns: 1fr; }
  .aside { position: static; }
}

@media (max-width: 900px) {
  .opsbar__links a:nth-child(2) { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 116px 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gut) 32px; background: #fff;
    transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s;
    overflow-y: auto;
  }
  .masthead.is-stuck .nav { top: 76px; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .25s; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 16px 0; font-size: 1.25rem; font-family: var(--f-display); font-weight: 600; border-bottom: 1px solid var(--line); }
  .nav ul a::after { display: none; }
  .nav ul a[aria-current] { color: var(--brand); }
  .nav__cta { margin-top: 24px; }
  body.nav-open { overflow: hidden; }
  .nav-open .nav-toggle .ico--open { display: none; }
  .nav-open .nav-toggle .ico--close { display: block; }

  .hero__in, .split, .section__head { grid-template-columns: 1fr; }
  .section__head { align-items: start; }
  .manifest a { grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 8px 18px; }
  .manifest .ico-tile { width: 48px; height: 48px; grid-row: span 2; align-self: start; }
  .manifest h3 { font-size: 1.5rem; }
  .manifest p { grid-column: 2; }
  .manifest .go { grid-row: 1; grid-column: 3; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .opsbar__links { display: none; }
  .charters, .steps, .footer__grid, .grid-2, .grid-3, .qcard .row-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .steps li::after { display: none; }
  .seg { grid-auto-flow: row; }
  .hero__actions .btn, .cta-band__actions .btn { flex: 1 1 100%; }
  .float-call { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); }
  .float-call .ico { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .opsbar, .masthead, .cta-band, .footer, .float-call { display: none; }
}

/* ==========================================================================
   Catalogue / provision list
   ========================================================================== */
.cat-bar { position: sticky; top: 77px; z-index: 20; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 14px 0; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.cat-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.cat-search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--steel); }
.cat-search .input { padding-left: 42px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.chip { min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; color: var(--navy); font: 500 .925rem var(--f-text); cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat-print { min-height: 40px; }
.cat-hint { color: var(--steel); margin: 18px 0 8px; }
.cat-group { padding-top: 32px; }
.cat-group h2 { font-size: 2.25rem; padding-bottom: 10px; border-bottom: 2px solid var(--navy); margin-bottom: 0; }
.cat-sub h3 { font-size: 1.2rem; color: var(--steel); margin: 22px 0 6px; font-weight: 600; }
.cat-items { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.cat-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cat-item__name { color: var(--ink); font-weight: 500; }
.cat-item__name small { display: block; color: var(--steel); font-weight: 400; font-size: .85rem; }
.cat-item.is-added .cat-add { background: var(--brand); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #b9c7cb; border-radius: var(--r-sm); overflow: hidden; height: 40px; }
.qty button { width: 34px; height: 100%; border: 0; background: var(--chart); color: var(--navy); font-size: 1.1rem; cursor: pointer; }
.qty button:hover { background: var(--chart-2); }
.qty input { width: 56px; height: 100%; border: 0; text-align: center; font: 500 1rem var(--f-text); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cat-add { min-height: 40px; padding: 0 16px; }
.cat-empty { padding: 32px 0; font-size: 1.1rem; }

/* Request list (basket) */
.basket-btn { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--navy); color: #fff; font: 600 1rem var(--f-text); cursor: pointer; box-shadow: 0 14px 30px -10px rgba(4,34,74,.55); }
.basket-btn .ico { width: 22px; height: 22px; color: var(--signal); }
.basket-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: var(--grad); font-size: .85rem; }
.basket { position: fixed; inset: 0; z-index: 90; }
.basket__scrim { position: absolute; inset: 0; background: rgba(2,25,54,.5); }
.basket__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -20px 0 40px -20px rgba(0,0,0,.4); }
.basket__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.basket__head h2 { margin: 0; font-size: 1.75rem; }
.basket__x { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--navy); }
.basket__x .ico { width: 24px; height: 24px; margin: auto; }
.basket__list { list-style: none; overflow-y: auto; flex: 1; padding: 6px 22px; }
.basket__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.basket__list .nm { font-weight: 500; color: var(--ink); line-height: 1.3; }
.basket__list .nm small { display: block; color: var(--steel); font-weight: 400; }
.basket__list .rm { border: 0; background: none; color: var(--err); cursor: pointer; width: 34px; height: 34px; }
.basket__empty { padding: 24px 22px; color: var(--steel); }
.basket__foot { display: grid; gap: 10px; padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 95; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font-weight: 500; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
body.has-basket .float-call { bottom: 84px; }

@media (max-width: 900px) {
  .cat-bar { top: 76px; }
  .cat-items { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-print { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { white-space: nowrap; }
  .cat-item { grid-template-columns: minmax(0, 1fr) auto; }
  .cat-add { grid-column: 1 / -1; width: 100%; }
  .basket-btn { left: 16px; right: 84px; bottom: 16px; justify-content: center; }
}
@media print {
  .cat-bar, .cat-hint, .qty, .cat-add, .basket-btn, .basket, .page-hero .hero__chart { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
  .cat-items { grid-template-columns: 1fr 1fr; }
  .cat-item { grid-template-columns: 1fr; padding: 4px 0; }
}

/* ==========================================================================
   Quote: line items, agency, summary
   ========================================================================== */
.lines { margin-top: 22px; }
.lines__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.lines__import { min-height: 40px; }
.lines__cols, .line { display: grid; grid-template-columns: 170px minmax(0, 1fr) 90px 90px 36px; gap: 8px; align-items: center; }
.lines__cols { font-size: .825rem; color: var(--steel); font-weight: 600; padding: 0 0 6px; }
.lines__rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: line; }
.line .input, .line .select { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.line__rm { width: 36px; height: 44px; border: 0; background: none; color: var(--err); cursor: pointer; font-size: 1rem; border-radius: var(--r-sm); }
.line__rm:hover { background: #fdecea; }
.lines__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }
.lines__foot .btn { min-height: 42px; }
.lines.has-error .lines__rows .input { border-color: var(--err); }

.agent-box { padding: 18px; border-radius: var(--r-md); background: var(--chart); margin-top: 6px; }
.agent-row { display: flex; gap: 8px; }
.agent-row .input { max-width: 260px; text-transform: uppercase; }
.agent-row .input[readonly] { background: #fff; color: var(--brand); font-weight: 600; }
.agent-box .hint.is-ok, .agent-box .hint:first-letter { }
.hint.is-ok { color: var(--ok); font-weight: 600; }
.trade { margin-top: 14px; display: grid; gap: 6px; }

.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 18px; font-size: .95rem; }
.summary dt { color: var(--steel); }
.summary dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; word-break: break-word; }
.summary [data-s="draft"] { font-family: var(--f-display); letter-spacing: .04em; color: var(--brand); }

@media (max-width: 760px) {
  .lines__cols { display: none; }
  .line { grid-template-columns: 1fr 1fr 40px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--chart); }
  .line .select { grid-column: 1 / 3; }
  .line [name$="[name]"] { grid-column: 1 / -1; grid-row: 2; }
  .line__rm { grid-column: 3; grid-row: 1; }
  .line [name$="[qty]"] { grid-row: 3; grid-column: 1; }
  .line [name$="[unit]"] { grid-row: 3; grid-column: 2 / -1; }
}

/* ==========================================================================
   Agency portal + shared tables
   ========================================================================== */
.login-card { display: grid; gap: 16px; max-width: 520px; }
.portal-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 2fr; gap: 16px; }
.portal-stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.portal-stats b { display: block; font: 700 2.6rem/1 var(--f-display); color: var(--navy); }
.portal-stats span { color: var(--steel); font-size: .925rem; }
.portal-stats .portal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.portal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.dl-grid { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; margin: 0; }
.dl-grid dt { color: var(--steel); }
.dl-grid dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--chart-2); font-weight: 600; color: var(--ink); white-space: nowrap; }
.tbl tbody tr:hover td { background: #f6fafe; }
.tbl a { font-weight: 600; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: var(--chart-2); color: var(--navy); white-space: nowrap; }
.pill--new { background: #d8f6fd; color: #004ec0; }
.pill--in-progress { background: #fff1d6; color: #7a4b00; }
.pill--quoted { background: #e7f5ee; color: #135c3a; }
.pill--closed { background: #eceff3; color: #56626e; }
.pill--critical { background: var(--brand); color: #fff; }
.pill--off { background: #fdecea; color: #8a1c13; }
@media (max-width: 900px) {
  .portal-stats { grid-template-columns: repeat(3, 1fr); }
  .portal-stats .portal-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .portal-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .portal-stats > div { padding: 14px; }
  .portal-stats b { font-size: 2rem; }
  .portal-stats .portal-actions .btn { flex: 1 1 100%; }
  .dl-grid { grid-template-columns: 1fr; gap: 2px; }
  .dl-grid dd { margin-bottom: 10px; }
  .tbl .hide-sm { display: none; }
}

/* ==========================================================================
   Home: stats band, why-us, certifications, port coverage
   ========================================================================== */
.ports { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.ports__map { min-height: 480px; border-radius: var(--r-md); overflow: hidden; background: var(--navy-2); border: 1px solid var(--line); z-index: 1; }
.ports__map.is-off { display: none; }
.ports__list { display: grid; gap: 18px; align-content: start; }
.ports__region h3 { font-size: 1.15rem; color: var(--steel); margin: 0 0 6px; }
.ports__region ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ports__region button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; color: var(--navy); font: 500 .95rem var(--f-text); cursor: pointer; }
.ports__region button .ico { color: var(--brand); width: 16px; height: 16px; }
.ports__region button:hover { border-color: var(--brand); }
.ports__region button.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ports__region button.is-on .ico { color: var(--signal); }
.ports__note { color: var(--steel); font-size: .95rem; margin: 0; }
.pm { border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.pm--port { background: var(--brand); }
.pm--hq { background: var(--signal); border-color: var(--navy); }
.leaflet-popup-content { font: 500 .95rem/1.45 var(--f-text); }
.leaflet-popup-content strong { font-family: var(--f-display); font-size: 1.15rem; color: var(--navy); }

/* Coming-soon services */
.soon { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 99px; font: 600 .75rem/1.6 var(--f-text); background: var(--grad); color: #fff; vertical-align: middle; letter-spacing: .02em; }

@media (max-width: 900px) {
  .ports { grid-template-columns: 1fr; }
  .ports__map { min-height: 360px; }
}
@media (max-width: 640px) {
}

/* ==========================================================================
   Existing site photography (used when assets/img files are present)
   ========================================================================== */
[data-photo] { position: relative; isolation: isolate; }
[data-photo]::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--photo) center / cover no-repeat; }
[data-photo]::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); opacity: var(--photo-ov, .82); }
[data-photo] .hero__chart { opacity: .35; }
.cta-band[data-photo]::after { background: linear-gradient(120deg, #00a8e8, #0060e8); opacity: var(--photo-ov, .78); }
.hero__img { width: 100%; height: auto; margin: 6px 0 4px; border-radius: var(--r-md); }
.figure-panel:has(.collage) { background: none; overflow: visible; aspect-ratio: auto; }
.collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; padding-bottom: 40px; }
.collage img { width: 100%; aspect-ratio: 9 / 17; object-fit: cover; border-radius: 999px; box-shadow: 0 18px 36px -22px rgba(4,34,74,.55); }
.collage img:nth-child(2) { margin-top: 64px; }
.collage img:nth-child(3) { margin-top: 20px; }
.figure-panel:has(.collage) .badge-years { left: auto; right: 0; bottom: 0; border-radius: 999px; padding: 16px 26px; text-align: center; }
.charter__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .collage { gap: 8px; } .collage img:nth-child(2) { margin-top: 32px; } .collage img:nth-child(3) { margin-top: 10px; } }
