/* =========================================================
   Halcyon Logistics — styles
   Change the brand by editing the variables below.
   ========================================================= */
:root {
  --ink: #0f2a4f;          /* deep navy: text + dark sections */
  --ink-2: #173a68;
  --paper: #f7f8f5;        /* warm off-white background */
  --tint: #e9eff1;
  --line: #d5dde2;
  --muted: #5d6878;
  --accent: #2e7d32;       /* logo green, darkened for 5.1:1 contrast with white text */
  --accent-bright: #6cc674; /* green for text and lines on navy */
  --accent-ink: #ffffff;
  --ok: #2f9e6b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,42,79,.06), 0 8px 24px rgba(15,42,79,.08);
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #2c7a34; margin-bottom: .8em;
}
.section-dark .eyebrow { color: var(--accent-bright); }
.muted { color: #b9c3d1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .98rem/1 var(--font-body);
  padding: .95em 1.5em; border-radius: 10px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #276b2b; box-shadow: 0 6px 18px rgba(63,158,71,.35); }
.btn-sm { padding: .65em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 4px 2px; min-height: 24px; font: inherit; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
/* Top contact strip (scrolls away; the header below stays) */
.topbar { background: var(--ink); color: #c9d6e6; font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-bright); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; padding: 4px 0; }
.topbar a:hover { color: var(--accent-bright); }
.topbar .sep { color: #6f86a3; }

/* Header: fixed height so the page never jumps; only the badge changes size */
.site-header {
  --header-h: 84px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,245,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(15,42,79,.08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* The logo badge. The artwork fills 1070x1100 of the 1600px image; these numbers
   crop away the blank margin so the whole logo, tagline included, fills the circle. */
.logo-badge {
  position: relative; display: block; overflow: hidden; border-radius: 50%;
  width: var(--badge, 168px); height: var(--badge, 168px); flex: none;
  background: #fef8f3;
}
.logo-badge img {
  position: absolute; max-width: none; height: auto;
  width: 140.35%; left: -19.9%; top: -21.6%;
}

.brand {
  --badge: 168px;
  position: relative; display: flex; align-items: center; align-self: stretch;
  padding-left: calc(var(--badge) + 18px);
  text-decoration: none; color: var(--ink);
  transition: padding-left .3s ease;
}
.brand .logo-badge {
  position: absolute; left: 0; top: 10px; z-index: 1;
  box-shadow: 0 0 0 5px #fff, 0 14px 34px rgba(15,42,79,.22);
  transition: width .3s ease, height .3s ease, top .3s ease, box-shadow .3s ease;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
  font: 700 1.15rem var(--font-head);
  opacity: 0; transform: translateX(-8px); transition: opacity .25s ease, transform .25s ease;
}
.brand-text small { font: 500 .72rem var(--font-body); color: var(--muted); letter-spacing: .02em; margin-top: 3px; }

/* Compact state after scrolling (and while the phone menu is open) */
.site-header.compact .brand { --badge: 60px; padding-left: calc(60px + 12px); }
.site-header.compact .brand .logo-badge { top: 12px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.site-header.compact .brand-text { opacity: 1; transform: none; }

/* Footer logo */
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--accent); transition: width .2s; }
.main-nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Dark glass header (matches the hero) ----------
   Overrides the light header above: navy frosted glass, white links with a
   green glow underline, and a slightly more solid bar once you scroll. */
.topbar { background: #071630; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header {
  background: linear-gradient(180deg, rgba(8,26,54,.92), rgba(10,34,70,.82));
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header::after { /* thin green accent line along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,198,116,.55) 30%, rgba(108,198,116,.55) 70%, transparent);
}
.site-header.scrolled { background: rgba(7,22,48,.94); box-shadow: 0 10px 30px -10px rgba(0,0,0,.55); }
.brand { color: #fff; }
.brand-text small { color: #9fb4cc; }
.brand .logo-badge { box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 0 0 9px rgba(108,198,116,.25), 0 18px 40px rgba(0,0,0,.45); }
.site-header.compact .brand .logo-badge { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(108,198,116,.35); }
.main-nav { gap: 6px; }
.main-nav a:not(.btn) {
  color: #d6e1ee; font-weight: 500; padding: 8px 14px; border-radius: 10px;
  transition: color .2s, background-color .2s;
}
.main-nav a:not(.btn)::after {
  left: 14px; right: 14px; bottom: 2px; width: auto; height: 2px; border-radius: 2px;
  background: var(--accent-bright); box-shadow: 0 0 10px rgba(108,198,116,.8);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a:not(.btn):hover::after { width: auto; transform: scaleX(1); }
.main-nav .btn-accent {
  margin-left: 10px; background: linear-gradient(135deg, #3fa64a, #2e7d32);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 8px 22px -6px rgba(63,166,74,.7);
}
.main-nav .btn-accent:hover { background: linear-gradient(135deg, #4cb857, #2e7d32); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 10px 28px -6px rgba(63,166,74,.9); }
.nav-toggle span { background: #fff; }
.main-nav :focus-visible { outline-color: var(--accent-bright); }
/* Menu typography: compact uppercase Montserrat with wide letter-spacing */
.main-nav a:not(.btn), .main-nav .btn {
  font-family: "Montserrat", var(--font-body); font-weight: 600; font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.main-nav .btn { font-weight: 700; padding: .95em 1.5em; border-radius: 999px; }
@media (max-width: 820px) {
  .site-header .main-nav { background: #071630; border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
  .site-header .main-nav a:not(.btn) { border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; padding: 14px 4px; }
  .site-header .main-nav a:not(.btn)::after { display: none; }
  .site-header .main-nav .btn-accent { margin-left: 0; }
}

/* ---------- Hero ---------- */
/* Full-width ocean banner. The photo sits to the right (ship on the right),
   is colour-graded navy, and fades into solid navy behind the text. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #0a2246; color: #fff;
  min-height: clamp(560px, 74vh, 720px);
  display: flex; align-items: center;
  padding: 150px 0 90px;
}
.hero-bg {
  position: absolute; top: 0; right: 0; width: 78%; height: 100%;
  object-fit: cover; object-position: 70% 55%; z-index: -3;
  filter: saturate(1.1) contrast(1.08);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.hero::before { /* navy colour grade over the photo */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #0a2246 0%, #1a4a86 60%, #0a2246 100%); mix-blend-mode: multiply; opacity: .72;
}
.hero::after { /* extra depth behind the text and at the bottom edge */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,22,48,.9) 0%, rgba(6,22,48,.55) 38%, rgba(6,22,48,0) 62%),
    linear-gradient(0deg, rgba(6,22,48,.55) 0%, rgba(6,22,48,0) 30%);
}
/* Scroll-controlled video fills the whole hero; script.js sets --hero-p (0 → 1)
   as the hero scrolls away, which drives the slow zoom. */
.hero-video {
  left: 0; width: 100%; object-position: center 40%;
  -webkit-mask-image: none; mask-image: none;
  transform: scale(calc(1.04 + var(--hero-p, 0) * .1)); transform-origin: 60% 50%;
  will-change: transform;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(3rem, 6.6vw, 5.4rem); font-weight: 800; line-height: .95;
  letter-spacing: -.035em; margin: 0 0 28px; text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero-sub {
  display: block; margin-top: 14px;
  font: 600 clamp(1.25rem, 2.4vw, 1.9rem)/1.2 var(--font-head); letter-spacing: -.01em;
}
.hero-note {
  max-width: 34em; margin-bottom: 34px;
  font-size: .86rem; font-weight: 600; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase;
  color: #d5e2f1;
}
.hero .btn-outline { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.wa-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- Moving banner under the hero ----------
   Two tilted bands scroll in opposite directions. Each track holds the list twice
   and slides by exactly one copy (-50%), so the loop is seamless. */
/* Pulled up over the bottom of the hero so the tilted bands never leave a light
   wedge above them at either edge, however wide the screen is. */
.hero-after { position: relative; z-index: 2; overflow: hidden; padding: 64px 0 46px; margin-top: -84px; }
.mq-band { position: relative; width: 108%; margin-left: -4%; overflow: hidden; }
.mq-front { transform: rotate(-1.1deg); background: var(--ink); box-shadow: 0 18px 40px -18px rgba(15,42,79,.55); padding: 18px 0; z-index: 1; }
/* Green word band. The extra bottom padding and gentler tilt keep every word
   clear of the navy band at both ends, even on wide screens. */
.mq-back { transform: rotate(0.9deg); background: var(--accent); margin-bottom: -44px; padding: 16px 0 86px; }
.mq-track { display: flex; width: max-content; animation: mq-slide 38s linear infinite; }
.mq-reverse { animation-duration: 46s; animation-direction: reverse; }
.mq-front:hover .mq-track { animation-play-state: paused; }
@keyframes mq-slide { to { transform: translateX(-50%); } }

.mq-list { list-style: none; margin: 0; padding: 0; display: flex; }
.mq-list li { display: flex; align-items: center; gap: 14px; padding: 0 30px; position: relative; white-space: nowrap; }
.mq-list li::after { /* green diamond between items */
  content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px;
  background: var(--accent-bright); transform: translateY(-50%) rotate(45deg); border-radius: 2px;
}
.mq-icon {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 15px;
  background: linear-gradient(140deg, #7fd487 0%, #2e9e44 55%, #1f6b2a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -6px rgba(63,180,80,.6);
}
.mq-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mq-icon svg .d { fill: #fff; fill-opacity: .28; stroke: none; }
.mq-text strong { display: block; font: 700 1.05rem/1.2 var(--font-head); color: #fff; }
.mq-text small { display: block; font-size: .85rem; color: #b9c6d6; margin-top: 2px; }

.mq-words { display: flex; }
.mq-words span {
  font: 800 1.35rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: #fff;
  padding: 0 22px; white-space: nowrap; display: flex; align-items: center; gap: 44px;
}
.mq-words span::after { content: "✦"; font-size: .9rem; color: #d7f3da; }

@media (max-width: 600px) {
  .mq-icon { width: 44px; height: 44px; border-radius: 12px; }
  .mq-icon svg { width: 24px; height: 24px; }
  .mq-list li { padding: 0 22px; }
  .mq-words span { font-size: 1.05rem; }
}
/* Respect "reduce motion": stop the scroll and let the items wrap instead */
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; width: auto; }
  .mq-front .mq-list { flex-wrap: wrap; justify-content: center; row-gap: 16px; }
  .mq-list[aria-hidden="true"], .mq-words + .mq-words { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-dark { background: var(--ink); color: #e8edf4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head > p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-head.left { text-align: left; margin: 0; }

/* ---------- Scroll colour change ----------
   script.js sets --page-bg and data-tone on <body> from the section in the middle
   of the screen; sections are transparent so the whole page fades between colours.
   Without JavaScript the sections keep their own backgrounds (rules above). */
body { --fg: var(--ink); --fg-muted: var(--muted); --rule: var(--line); --eyebrow: #2c7a34; }
body[data-tone="dark"] { --fg: #e8edf4; --fg-muted: #b9c6d6; --rule: rgba(255,255,255,.16); --eyebrow: var(--accent-bright); }
.js-bg body {
  background: var(--page-bg, var(--paper)); color: var(--fg);
  transition: background-color .7s ease, color .7s ease;
}
.js-bg .hero-after, .js-bg .section, .js-bg .section-dark, .js-bg .section-tint { background: transparent; }
.js-bg .section-dark { color: var(--fg); }
.js-bg .section-dark h2, .js-bg .section-dark h3 { color: inherit; }
.js-bg .eyebrow { color: var(--eyebrow); transition: color .7s ease; }
.js-bg .section-head > p:last-child, .js-bg .regions span,
.js-bg .faq details p, .js-bg .muted { color: var(--fg-muted); transition: color .7s ease; }
.js-bg .faq details { border-color: var(--rule); }
.js-bg .industry-grid { background: var(--rule); border-color: var(--rule); }
/* Cards keep their own light or dark look whatever the page colour */
.service, .industry, .card { color: var(--ink); }
.steps li { color: #e8edf4; }
.steps li h3 { color: #fff; }
.js-bg .contact-list li { border-color: var(--rule); }
.js-bg .person strong { color: var(--fg); }
.js-bg .contact-list span, .js-bg .person .mail { color: var(--fg-muted); }
@media (prefers-reduced-motion: reduce) { .js-bg body, .js-bg .eyebrow { transition: none; } }

/* services */
/* Featured fleet card above the grid */
.fleet-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  margin-bottom: 22px; padding: 36px 40px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%); color: #dbe5f0;
}
.fleet-stat { padding-right: 40px; border-right: 1px solid rgba(255,255,255,.15); }
.fleet-stat strong { display: block; font: 800 clamp(3.6rem, 7vw, 5.4rem)/1 var(--font-head); color: var(--accent-bright); letter-spacing: -.03em; }
.fleet-stat span { display: block; margin-top: 6px; font-weight: 600; color: #fff; }
.fleet-body { position: relative; z-index: 1; }
.fleet-body h3 { color: #fff; font-size: 1.45rem; }
.fleet-body p { max-width: 46em; }
.fleet-body ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.fleet-body li { font-size: .8rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: .35em .85em; border-radius: 99px; }
/* The same card inside the hero: frosted glass over the ship photo */
.hero-fleet {
  margin: 56px 0 0;
  background: rgba(8, 28, 60, .55);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6);
}
.fleet-icon { position: absolute; right: -30px; bottom: -40px; width: 240px; height: 240px; fill: none; stroke: #fff; stroke-width: 1; opacity: .06; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Service cards: green glow that follows the pointer, lift on hover,
   floating icon tile, and a "Learn more" arrow. The whole card is the link. */
.service {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.service::before { /* soft green light under the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(108,198,116,.20), transparent 65%);
}
.service:hover, .service:focus-within {
  transform: translateY(-8px); border-color: rgba(76,184,87,.65);
  box-shadow: 0 0 0 1px rgba(108,198,116,.35), 0 22px 44px -18px rgba(15,42,79,.35), 0 0 34px -6px rgba(108,198,116,.45);
}
.service:hover::before, .service:focus-within::before { opacity: 1; }
.service > * { position: relative; }
.service h3 { margin-top: 4px; }
.service p { color: var(--muted); font-size: .96rem; }
.service ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.service li { font-size: .78rem; font-weight: 600; background: var(--tint); padding: .35em .8em; border-radius: 99px; }
.card-link { color: inherit; text-decoration: none; }
.service h3 { position: static; }  /* so the link's overlay below covers the whole card */
.service .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service .card-link:focus-visible { outline: none; }
.service:has(.card-link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font: 700 .78rem "Montserrat", var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #2e7d32;
}
.more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.service:hover .more svg { transform: translateX(6px); }

/* Glossy green icon tile with a white duotone icon */
.svc-icon {
  position: relative; overflow: hidden; width: 56px; height: 56px; flex: none; margin-bottom: 18px;
  display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(140deg, #7fd487 0%, #2e9e44 55%, #1f6b2a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -8px rgba(46,158,68,.65);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.svc-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-icon svg .d { fill: #fff; fill-opacity: .28; stroke: none; }
.svc-icon::after { /* shine that sweeps across the tile on hover */
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg);
}
.service .svc-icon svg { animation: icon-float 4s ease-in-out infinite; }
.service:nth-child(2n) .svc-icon svg { animation-delay: -1.3s; }
.service:nth-child(3n) .svc-icon svg { animation-delay: -2.6s; }
.service:hover .svc-icon { transform: rotate(-8deg) scale(1.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 30px -8px rgba(46,158,68,.85); }
.service:hover .svc-icon::after, .svc-related a:hover .svc-icon::after { left: 130%; transition: left .7s ease; }
@keyframes icon-float { 50% { transform: translateY(-3px); } }

/* Rise into view as you scroll (only once script.js has set it up) */
.rise-ready .rise { opacity: 0; transform: translateY(28px); }
.rise-ready .rise.in { opacity: 1; transform: none; transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.rise-ready .service.rise.in:hover { transform: translateY(-8px); transition-delay: 0ms; }

/* ---------- Service detail pages ---------- */
.svc-hero {
  position: relative; overflow: hidden; color: #fff; padding: 160px 0 80px;
  background: linear-gradient(90deg, rgba(6,22,48,.94) 0%, rgba(6,22,48,.78) 55%, rgba(6,22,48,.55) 100%), url("images/hero-video-poster.jpg") center / cover;
}
.svc-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 0 0 18px; letter-spacing: -.03em; }
.svc-lead { font-size: 1.15rem; color: #d5e2f1; max-width: 40em; margin-bottom: 30px; }
.svc-hero .btn-outline { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); }
.svc-hero .btn-outline:hover { background: #fff; color: var(--ink); }
.svc-icon-lg { width: 72px; height: 72px; border-radius: 20px; }
.svc-icon-lg svg { width: 38px; height: 38px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #9fb4cc; margin-bottom: 26px; }
.crumbs a { color: #d6e1ee; text-decoration: none; }
.crumbs a:hover { color: var(--accent-bright); }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.svc-main h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 44px; }
.svc-main h2:first-child { margin-top: 0; }
.svc-main > p { color: var(--fg-muted, var(--muted)); font-size: 1.05rem; }
.svc-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-steps li { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.svc-steps h3 { font-size: 1.05rem; margin: 0 0 6px; }
.svc-steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.svc-docs { padding-left: 1.2em; }
.svc-docs li { margin-bottom: .4em; }
.svc-aside { position: sticky; top: 110px; }
.svc-aside h2 { font-size: 1.35rem; }
.muted-dark { color: var(--muted); }
.svc-person { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.svc-person strong { flex-basis: 100%; font-family: var(--font-head); }
.svc-person span { flex-basis: 100%; font-size: .85rem; color: var(--muted); }
.svc-person a { font-weight: 600; color: var(--ink); text-decoration: none; }
.svc-person a:hover { color: #2e7d32; }
.svc-hours { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.svc-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.svc-related a {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 22px;
  border-radius: 16px; text-decoration: none; color: #fff; font: 700 1.05rem var(--font-head);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s, background .35s;
}
.svc-related a::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(108,198,116,.25), transparent 65%);
}
.svc-related a:hover { transform: translateY(-6px); border-color: rgba(108,198,116,.6); box-shadow: 0 0 30px -6px rgba(108,198,116,.5); }
.svc-related a:hover::before { opacity: 1; }
.svc-related .svc-icon { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 12px; }
.svc-related .svc-icon svg { width: 24px; height: 24px; }
.svc-related .arrow { width: 18px; height: 18px; margin-top: 8px; fill: none; stroke: var(--accent-bright); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.svc-related a:hover .arrow { transform: translateX(6px); }
@media (max-width: 980px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
}
@media (max-width: 600px) {
  .svc-hero { padding: 120px 0 56px; }
  .svc-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .service .svc-icon svg { animation: none; }
  .service, .svc-icon, .svc-related a { transition: none; }
}

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid #24497a; }
.steps p { color: #b9c3d1; font-size: .95rem; margin: 0; }
.step-num { display: inline-block; font: 800 .9rem var(--font-head); color: var(--accent-ink); background: var(--accent); padding: .35em .7em; border-radius: 8px; margin-bottom: 18px; }

/* quote */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.5em 0 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: .7em; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .72rem; display: grid; place-items: center; margin-top: 3px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); color: var(--ink); }

.mode-pick { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode-pick legend { font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.mode-pick label { cursor: pointer; }
.mode-pick input { position: absolute; opacity: 0; }
.mode-pick span { display: block; text-align: center; padding: .7em; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; transition: all .15s; }
.mode-pick input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.mode-pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 16px; }
.field > span, .field > label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 400 1rem var(--font-body); color: var(--ink);
  padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfb;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(61,143,209,.3); }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .84rem; font-weight: 500; margin: 6px 0 0; }
.field-error:empty { display: none; }
.req { color: #b3261e; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }

.toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; font-weight: 500; }
.toggle input { width: 18px; height: 18px; accent-color: var(--ink); }

.quote-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; padding: 18px; background: var(--tint); border-radius: 12px; }
.quote-out small { display: block; color: var(--muted); font-size: .8rem; }
.quote-out strong { font: 800 1.5rem var(--font-head); }
.fine { font-size: .8rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* industries */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.industry { background: var(--paper); padding: 28px; }
.industry p { color: var(--muted); margin: 0; font-size: .95rem; }
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.regions strong { display: block; font-family: var(--font-head); }
.regions span { font-size: .88rem; color: var(--muted); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid #24497a; display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact-list span { color: #8a9ab0; font-size: .88rem; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent-bright); }
.contact-list address { font-style: normal; }
.people { display: grid; gap: 12px; }
.person { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.person strong { flex-basis: 100%; color: #fff; font-weight: 600; }
.person .wa { font-size: .8rem; font-weight: 600; color: #7fd487; border: 1px solid rgba(127,212,135,.45); padding: .15em .65em; border-radius: 99px; }
.person .wa:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.person .mail { flex-basis: 100%; overflow-wrap: break-word; font-size: .94rem; color: #c9d6e6; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status a { color: inherit; font-weight: 600; }
.form-status { margin: 12px 0 0; font-weight: 500; font-size: .92rem; text-align: center; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #c4473a; }

/* ---------- Footer ----------
   Quote banner on top, then four even columns (brand, services, company,
   contact), then a thin bottom bar. A green light runs along the top edge. */
.site-footer {
  position: relative; overflow: hidden; background: #0a1f3b; color: #a9bfd8;
  padding: 72px 0 96px; font-size: .94rem; /* bottom room so the floating WhatsApp button never covers the last line */
}
.site-footer::before { /* moving green line along the top edge */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #6cc674, transparent) 0 0 / 40% 100% no-repeat, rgba(108,198,116,.15);
  animation: ft-line 6s linear infinite;
}
.site-footer::after { /* soft glow in the corner */
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,198,116,.10), transparent 65%); pointer-events: none;
  animation: ft-glow 9s ease-in-out infinite alternate;
}
.site-footer .container { position: relative; z-index: 1; }
@keyframes ft-line { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }
@keyframes ft-glow { to { transform: translate(-60px, 40px) scale(1.15); } }

/* Quote banner */
.ft-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: 30px 36px; margin-bottom: 56px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(46,125,50,.28), rgba(23,58,104,.55));
  border: 1px solid rgba(108,198,116,.25); box-shadow: 0 24px 50px -28px rgba(0,0,0,.6);
}
.ft-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 6px; }
.ft-cta p { margin: 0; color: #c9d6e6; }
.ft-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* Columns */
.footer-grid { display: grid; grid-template-columns: 1.25fr .9fr .8fr 1.35fr; gap: 40px; align-items: start; }
.footer-grid h4 {
  color: #fff; margin: 0 0 18px; font: 700 .78rem "Montserrat", var(--font-head); letter-spacing: .16em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.footer-grid h4::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent-bright); }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 16px; text-decoration: none; }
.logo-badge-footer { --badge: 84px; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 7px rgba(108,198,116,.2); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.footer-brand:hover .logo-badge-footer { transform: rotate(-8deg) scale(1.05); }
.ft-name { display: flex; flex-direction: column; color: #fff; font: 800 1.25rem/1.1 var(--font-head); }
.ft-name small { font: 600 .68rem "Montserrat", var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--accent-bright); margin-top: 4px; }
.ft-brand p { margin-bottom: 24px; line-height: 1.65; }
.ft-brand h4 { margin-bottom: 12px; }

.ft-links a {
  position: relative; display: block; width: fit-content; margin-bottom: 11px; padding-left: 0;
  color: #c3d2e3; text-decoration: none; transition: color .25s, padding-left .25s;
}
.ft-links a::before { /* arrow that slides in on hover */
  content: "›"; position: absolute; left: -2px; top: -1px; opacity: 0; color: var(--accent-bright); font-weight: 700;
  transition: opacity .25s, left .25s;
}
.ft-links a:hover { color: #fff; padding-left: 16px; }
.ft-links a:hover::before { opacity: 1; left: 0; }

.ft-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.ft-row address { font-style: normal; line-height: 1.6; }
.ft-row a { display: block; color: #c3d2e3; text-decoration: none; overflow-wrap: anywhere; line-height: 1.6; transition: color .2s; }
.ft-row a:hover { color: var(--accent-bright); }
.ft-ico {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #7fd487 0%, #2e9e44 55%, #1f6b2a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -6px rgba(46,158,68,.7);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.ft-ico svg { width: 16px; height: 16px; fill: #fff; }
.ft-row:hover .ft-ico { transform: translateY(-3px) rotate(-6deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 20px -6px rgba(46,158,68,.9); }

.mini-form { display: flex; gap: 6px; }
.mini-form input { flex: 1; min-width: 0; padding: .7em .9em; border-radius: 10px; border: 1px solid #24497a; background: #0e1a2b; color: #fff; font: inherit; transition: border-color .2s, box-shadow .2s; }
.mini-form input:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(108,198,116,.25); }

/* Bottom bar */
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem;
}
.to-top { display: inline-flex; align-items: center; gap: 10px; color: #c3d2e3; text-decoration: none; }
.to-top svg {
  width: 34px; height: 34px; padding: 8px; border-radius: 50%; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  border: 1px solid rgba(255,255,255,.2); transition: background .25s, border-color .25s, transform .25s;
}
.to-top:hover { color: #fff; }
.to-top:hover svg { background: var(--accent); border-color: var(--accent); animation: to-top-bob .8s ease-in-out infinite; }
@keyframes to-top-bob { 50% { transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .site-footer::before, .site-footer::after, .to-top:hover svg { animation: none; }
}

/* ---------- Skip link + WhatsApp button ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wa-float {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 99px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 24px rgba(15,42,79,.25); transition: background .2s ease, transform .2s ease;
}
.wa-float:hover { background: #276b2b; transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- Motion ---------- */
/* content is visible at rest; no scroll-triggered fade */

@keyframes dash { to { stroke-dashoffset: -16; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47,158,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,158,107,0); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }

  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .quote-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .services-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .regions { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Narrow screens: text on top, the ship scene sits below it instead of behind it */
  .hero {
    --scene-h: clamp(240px, 66vw, 460px);
    min-height: 0; display: block; padding-bottom: calc(var(--scene-h) - 30px);
  }
  .hero::after { background: linear-gradient(180deg, rgba(6,22,48,.6) 0%, rgba(6,22,48,0) 60%); }
  .hero-bg {
    top: auto; bottom: 0; width: 100%; height: var(--scene-h); object-position: 65% 55%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
  }
  /* The video sits behind the whole hero on phones too, with a stronger shade for the text */
  .hero:has(.hero-video) { padding-bottom: 110px; }
  .hero:has(.hero-video)::after { background: linear-gradient(180deg, rgba(6,22,48,.78) 0%, rgba(6,22,48,.55) 55%, rgba(6,22,48,.8) 100%); }
  .hero-video { top: 0; height: 100%; object-position: 50% 40%; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 820px) {
  .site-header { --header-h: 68px; }
  .brand { --badge: 108px; padding-left: calc(108px + 14px); }
  .brand .logo-badge { top: 8px; box-shadow: 0 0 0 4px #fff, 0 10px 26px rgba(15,42,79,.22); }
  .site-header.compact .brand { --badge: 50px; padding-left: calc(50px + 10px); }
  .site-header.compact .brand .logo-badge { top: 9px; }
  .hero { padding-top: 108px; }
  .topbar-inner { justify-content: center; }
  .topbar-item:first-child { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 2; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-120%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: 0 12px 24px rgba(15,42,79,.08);
  }
  .main-nav.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .services-grid, .industry-grid, .steps, .regions, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .site-footer { padding-bottom: 96px; }
  .wa-float { padding: 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ft-cta { padding: 24px 22px; margin-bottom: 44px; }
  .ft-cta-btns, .ft-cta-btns .btn { width: 100%; }
  .footer-grid { gap: 34px; }
  .track-row { flex-direction: column; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .fleet-card { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .fleet-stat { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .contact-list li { grid-template-columns: 1fr; gap: 6px; }
}
