/* ==========================================================================
   HS Ocean — base.css
   Maritime monochrome: white canvas, midnight-navy voice, one signal blue.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */
:root {
  /* Colour */
  --navy:       #0b3658;   /* primary text, headings, dark banner */
  --navy-deep:  #082941;   /* pressed states on navy fills */
  --blue:       #4e9ad9;   /* the single chromatic accent */
  --blue-deep:  #3b84c2;
  --slate:      #486984;   /* secondary text */
  --steel:      #688dac;   /* tertiary text, meta labels */
  --fog:        #dde7ee;   /* hairlines, borders */
  --ice:        #e6f1fa;   /* tinted washes, hover surfaces */
  --mist:       #c8d8e4;   /* secondary fills */
  --white:      #ffffff;
  --teal:       #42b3b1;   /* status/presence indicator only */

  /* Surfaces */
  --s-canvas: var(--white);
  --s-ice:    var(--ice);
  --s-card:   var(--white);
  --s-dark:   var(--navy);

  /* Type */
  --f: 'Figtree', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
       'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --t-caption: 10px;
  --t-sm:      14px;
  --t-body:    16px;
  --t-sub:     18px;
  --t-h5:      20px;
  --t-h4:      24px;
  --t-h3:      clamp(22px, 2.6vw, 32px);
  --t-h2:      clamp(28px, 3.8vw, 48px);
  --t-h1:      clamp(32px, 5vw, 56px);
  --t-hero:    clamp(38px, 7.4vw, 100px);

  --w-reg: 400;
  --w-semi: 600;
  --w-bold: 700;
  --w-x: 800;

  /* Spacing — base unit 4px */
  --s4: 4px;   --s8: 8px;   --s12: 12px; --s16: 16px; --s20: 20px;
  --s24: 24px; --s28: 28px; --s32: 32px; --s40: 40px; --s48: 48px;
  --s56: 56px; --s64: 64px; --s80: 80px;
  --sec: clamp(56px, 7vw, 96px);

  /* Shape */
  --r-card:  20px;
  --r-btn:   24px;
  --r-pill:  35px;
  --r-badge: 5px;
  --r-chip:  8px;
  --r-lg:    32px;

  /* Elevation — always navy-tinted */
  --sh-xl: rgba(11, 54, 88, .08) 0 12px 48px 0;
  --sh-2:  rgba(11, 54, 88, .08) 0 4px 32px 0;
  --sh-md: rgba(11, 54, 88, .04) 0 4px 12px 0;
  --sh-up: rgba(11, 54, 88, .08) 0 -4px 32px 0;

  /* Layout */
  --wrap: 1200px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--s-canvas);
  color: var(--navy);
  font-family: var(--f);
  font-size: var(--t-body);
  font-weight: var(--w-reg);
  line-height: 1.5;
  letter-spacing: -.08px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--blue); color: #fff; }

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

.skip {
  position: absolute;
  left: -9999px;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: var(--w-semi);
}
.skip:focus { left: 16px; top: 16px; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------- 3. TYPOGRAPHY */
.hero-t {
  font-size: var(--t-hero);
  line-height: 1.02;
  letter-spacing: -.5px;
  font-weight: var(--w-x);
  color: var(--navy);
}
.h1 { font-size: var(--t-h1); line-height: 1.08; letter-spacing: -.3px; font-weight: var(--w-x); color: var(--navy); }
.h2 { font-size: var(--t-h2); line-height: 1.14; letter-spacing: -.24px; font-weight: var(--w-x); color: var(--navy); }
.h3 { font-size: var(--t-h3); line-height: 1.22; letter-spacing: -.16px; font-weight: var(--w-bold); color: var(--navy); }
.h4 { font-size: var(--t-h4); line-height: 1.3; letter-spacing: -.12px; font-weight: var(--w-bold); color: var(--navy); }
.h5 { font-size: var(--t-h5); line-height: 1.3; letter-spacing: -.1px; font-weight: var(--w-bold); color: var(--navy); }

.lede { font-size: var(--t-sub); line-height: 1.55; letter-spacing: -.09px; color: var(--slate); font-weight: var(--w-reg); }
.body { font-size: var(--t-body); line-height: 1.62; color: var(--slate); }
.body + .body { margin-top: var(--s16); }
.small { font-size: var(--t-sm); line-height: 1.5; color: var(--slate); }
.meta { font-size: var(--t-sm); line-height: 1.45; color: var(--steel); }
.strong { font-weight: var(--w-bold); color: var(--navy); }
.center { text-align: center; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
  color: var(--blue);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.tlink:hover { gap: 10px; color: var(--blue-deep); }
.tlink .ico { width: 16px; height: 16px; }
.tlink--navy { color: var(--navy); }
.tlink--navy:hover { color: var(--blue); }
.tlink--light { color: var(--fog); }
.tlink--light:hover { color: #fff; }

/* ---------------------------------------------------------------- 4. ICONS */
.ico {
  width: 20px; height: 20px;
  flex: none;
  fill: currentColor;
  vertical-align: middle;
}
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 28px; height: 28px; }
.ico--xl { width: 32px; height: 32px; }

/* --------------------------------------------------------------- 5. LAYOUT */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap--tight { max-width: 960px; }
.wrap--text  { max-width: 800px; }

.section { padding-block: var(--sec); position: relative; }
.section--canvas { background: var(--s-canvas); }
.section--ice    { background: var(--s-ice); }
.section--dark   { background: var(--s-dark); color: var(--fog); }
.section--tight  { padding-block: clamp(40px, 5vw, 64px); }
.section--flush-top { padding-top: 0; }

.section--dark .h1, .section--dark .h2, .section--dark .h3,
.section--dark .h4, .section--dark .h5 { color: #fff; }
.section--dark .lede, .section--dark .body, .section--dark .small { color: var(--fog); }
.section--dark .meta { color: var(--mist); }

.stack-8  > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }

.grid { display: grid; gap: var(--s24); }
.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;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--45 { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
.split--55 { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
.split--top { align-items: start; }

.sec-head { max-width: 720px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head .lede { margin-top: var(--s16); }
.sec-head + .grid,
.sec-head + .split,
.sec-head + .steps,
.sec-head + .acc,
.sec-head + .spec { margin-top: clamp(32px, 4vw, 56px); }

.rule { height: 1px; background: var(--fog); border: 0; margin: 0; }

/* -------------------------------------------------------------- 6. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-btn);
  font-family: var(--f);
  font-size: var(--t-body);
  font-weight: var(--w-semi);
  letter-spacing: -.08px;
  padding: 13px 22px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .ico { width: 18px; height: 18px; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); box-shadow: var(--sh-md); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); box-shadow: var(--sh-md); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--fog); }
.btn--ghost:hover { background: var(--ice); border-color: var(--mist); }

.btn--plain { background: transparent; color: var(--navy); padding: 10px 16px; }
.btn--plain:hover { background: var(--ice); }

.btn--onDark { background: #fff; color: var(--navy); }
.btn--onDark:hover { background: var(--fog); }

.btn--outlineDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.34); }
.btn--outlineDark:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--sm { padding: 9px 16px; font-size: var(--t-sm); }
.btn--wide { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------- 7. BADGES / CHIPS / PILLS */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ice);
  color: var(--blue);
  border-radius: var(--r-badge);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: var(--w-semi);
  letter-spacing: 0;
}
.badge--teal { color: var(--teal); background: rgba(66, 179, 177, .1); }
.badge--navy { background: var(--navy); color: #fff; }
.badge--onDark { background: rgba(255,255,255,.12); color: #fff; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--fog);
  border-radius: var(--r-chip);
  padding: 9px 16px;
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
  color: var(--navy);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.chip .ico { width: 17px; height: 17px; color: var(--slate); }
a.chip:hover { border-color: var(--blue); background: var(--ice); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row--center { justify-content: center; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--fog);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 13px;
  font-weight: var(--w-semi);
  color: var(--slate);
}
.tag--onDark { border-color: rgba(255,255,255,.28); color: var(--fog); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------- 8. NAV / HEADER */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.nav.is-stuck { background: #fff; box-shadow: var(--sh-md); }

.nav__in {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
}
.brand__mark {
  font-size: 26px;
  font-weight: var(--w-x);
  letter-spacing: -.6px;
  color: var(--blue);
  line-height: 1;
}
.brand__sub {
  font-size: 12px;
  font-weight: var(--w-semi);
  color: var(--steel);
  line-height: 1;
  letter-spacing: 0;
}
.brand--light .brand__sub { color: var(--mist); }

.nav__menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 13px;
  border-radius: var(--r-btn);
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
  color: var(--slate);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: var(--navy); background: var(--ice); }
.nav__link.is-active { color: var(--navy); background: var(--ice); }

.nav__cta { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 12px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--fog);
  border-radius: var(--r-btn);
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex: none;
  margin-left: auto;
}
.burger:hover { background: var(--ice); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__veil {
  position: absolute; inset: 0;
  background: rgba(11, 54, 88, .4);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 88vw);
  background: #fff;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding-inline: 20px;
  border-bottom: 1px solid var(--fog);
  flex: none;
}
.drawer__close {
  width: 42px; height: 42px;
  border: 1px solid var(--fog);
  border-radius: var(--r-btn);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.drawer__close:hover { background: var(--ice); }
.drawer__nav { padding: 12px 14px 20px; }
.drawer__item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  border-radius: var(--r-chip);
  font-size: 17px;
  font-weight: var(--w-semi);
  color: var(--navy);
}
.drawer__item .ico { color: var(--steel); width: 16px; height: 16px; }
.drawer__item:hover { background: var(--ice); }
.drawer__item.is-active { color: var(--blue); }
.drawer__item.is-active .ico { color: var(--blue); }
.drawer__foot { padding: 20px; margin-top: auto; border-top: 1px solid var(--fog); }
.drawer__foot .btn { width: 100%; }
.drawer__foot p { margin-top: 14px; font-size: 14px; color: var(--slate); }

/* --------------------------------------------------------- 9. BACK TO TOP */
.totop {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), background-color .2s var(--ease);
}
.totop.is-on { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--blue); }

/* -------------------------------------------------------------- 10. FOOTER */
.foot { background: #fff; border-top: 1px solid var(--fog); }
.foot__in { padding-block: clamp(48px, 6vw, 72px) 0; }
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: var(--s48);
}
.foot__blurb { font-size: var(--t-sm); line-height: 1.7; color: var(--slate); max-width: 320px; margin-top: 16px; }
.foot__contact { margin-top: 20px; display: grid; gap: 10px; }
.foot__contact a, .foot__contact span {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: var(--t-sm); line-height: 1.5; color: var(--slate);
}
.foot__contact .ico { width: 17px; height: 17px; color: var(--blue); margin-top: 2px; }
.foot__contact a:hover { color: var(--navy); }
.foot__h { font-size: var(--t-body); font-weight: var(--w-bold); color: var(--navy); margin-bottom: 16px; }
.foot__list li + li { margin-top: 9px; }
.foot__list a { font-size: var(--t-sm); line-height: 1.8; color: var(--slate); }
.foot__list a:hover { color: var(--blue); }

.foot__bar {
  border-top: 1px solid var(--fog);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; justify-content: space-between;
}
.foot__bar p, .foot__bar a { font-size: 13px; color: var(--steel); }
.foot__bar a:hover { color: var(--navy); }
.foot__links { display: flex; flex-wrap: wrap; gap: 18px; }

.foot__disc {
  border-top: 1px solid var(--fog);
  padding-block: 22px 40px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--steel);
  max-width: 960px;
}
.foot__disc p + p { margin-top: 10px; }

/* ------------------------------------------------------- 11. COOKIE NOTICE */
.cookie {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 110;
  max-width: 560px;
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--sh-xl);
  padding: 20px 22px;
  display: none;
  gap: 16px;
  align-items: flex-start;
}
.cookie.is-on { display: flex; }
.cookie__body p { font-size: 14px; line-height: 1.6; color: var(--slate); }
.cookie__body a { color: var(--blue); font-weight: var(--w-semi); }
.cookie__acts { display: flex; gap: 8px; flex: none; align-items: center; }

/* ---------------------------------------------------- 12. RESTRAINED REVEAL */
[data-rv] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
[data-rv].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- 13. RESPONSIVE */
@media (max-width: 1080px) {
  .nav__link { padding: 0 10px; font-size: 13.5px; }
}
@media (max-width: 960px) {
  .nav__menu, .nav__cta { display: none; }
  .burger { display: inline-flex; }
  .split, .split--45, .split--55 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --nav-h: 68px; }
  .wrap { padding-inline: 18px; }
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .foot__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot__bar { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; min-width: 180px; }
  .cookie { flex-direction: column; left: 12px; right: 12px; bottom: 12px; }
  .cookie__acts { width: 100%; }
  .cookie__acts .btn { flex: 1; }
  .totop { right: 12px; bottom: 12px; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
  .btn-row .btn { min-width: 100%; }
}

/* ------------------------------------------------------------- 14. MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-rv] { opacity: 1 !important; transform: none !important; }
}

/* -------------------------------------------------------------- 15. PRINT */
@media print {
  .nav, .drawer, .totop, .cookie { display: none !important; }
  .section { padding-block: 20px; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
}
