/* ==========================================================================
   Super Marine Holdings — 2026 landing page
   Breakpoints: mobile < 768px · tablet 768–1023px · desktop ≥ 1024px
   Desktop layout is designed at 1440px and 1920px (2K); content caps at 1440px.
   ========================================================================== */

/* ---------- Fonts (self-hosted Onest, SIL OFL 1.1 — see assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --page: #121e2c;            /* footer / page dark */
  --card: #313b44;            /* footer cards + divider */
  --heading: #233d57;         /* text/heading, button-blue */
  --grey: #8096a7;            /* text/grey (desktop) */
  --bodytext: #5b6c7c;        /* text/bodytext (sea-foam/800) */
  --grey-mobile: #8ca3b2;     /* sea-foam/500 (used on mobile) */
  --white: #ffffff;
  --mist: #d1dde1;            /* About Us overlay tint */

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Horizontal gutter: 72px at 1440, grows to 240px at 1920 so content caps at 1440px */
  --gutter: max(72px, calc((100vw - 1440px) / 2));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 28px;
  color: var(--heading);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--heading); color: var(--white);
  border-radius: 4px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Shared type styles */
.caps {
  font-weight: 600; font-size: 16px; line-height: 28px;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ==========================================================================
   Navigation (fixed, overlays the page)
   ========================================================================== */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 112px; padding: 0 var(--gutter);
  pointer-events: none;           /* only the logo and pill are clickable */
}
.site-nav > * { pointer-events: auto; }

.site-nav__logo { display: block; width: 390px; height: 52px; transition: opacity .25s ease; }
.site-nav__logo img { width: 100%; height: 100%; object-fit: contain; }
/* Colour logo is unreadable over the dark footer, so it steps aside there */
.site-nav.is-over-dark .site-nav__logo { opacity: 0; pointer-events: none; }

.nav-pill {
  display: flex; align-items: center; gap: 0;
  margin: 0; padding: 4px; list-style: none;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  border-radius: 4px;
}
.nav-pill a {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 20px; border-radius: 4px;
  color: var(--heading); text-decoration: none;
  font-weight: 600; font-size: 14px; line-height: 28px;
  letter-spacing: 1px; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}
.nav-pill a:hover { background: rgba(35, 61, 87, .08); }
.nav-pill a[aria-current="true"] { background: var(--heading); color: var(--white); }
.nav-pill a:focus-visible { outline-color: var(--heading); outline-offset: 2px; }

@media (min-width: 1800px) {
  .site-nav__logo { width: 420px; height: 56px; }   /* 2K frame */
  .nav-pill a { padding: 10px 28px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;                    /* 16:9 */
  min-height: 640px;
  background: var(--heading);              /* fallback while image loads */
  color: var(--white);
}
.hero__media, .hero__media img, .hero::after { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scaleX(-1);                   /* flip the image horizontally */
}
.hero::after {
  content: ""; pointer-events: none;
  background: linear-gradient(to bottom, rgba(18,30,44,0) 50%, rgba(18,30,44,.5) 100%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 134px;
  padding: 60px var(--gutter);
}
.hero__title {
  flex: 1 1 auto; max-width: 948px;
  font-weight: 500; font-size: 92px; line-height: 96px; letter-spacing: 0;
}
.hero__intro { flex: 0 0 auto; width: 306px; font-weight: 400; }

@media (min-width: 1800px) {
  .hero__content { padding-block: 120px; }
  .hero__intro { width: 333px; }
  .footer-card { min-height: 188px; gap: 24px; }
}

/* ==========================================================================
   About Us
   ========================================================================== */
.about {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; min-height: 640px;
  background: var(--mist);
}
.about__media, .about__media img, .about::after { position: absolute; inset: 0; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about::after {
  content: ""; pointer-events: none;
  background: linear-gradient(to bottom, var(--mist) 20.192%, rgba(209,221,225,0) 65%);
}
.about__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 36px;
  max-width: 948px; margin: 0 auto; padding: 120px 24px 0;
  text-align: center;
}
.about__eyebrow { color: var(--grey); }
.about__body { font-weight: 500; font-size: 28px; line-height: 40px; color: var(--heading); }
.about__body p { max-width: 852px; margin-inline: auto; }
@media (min-width: 1800px) { .about__body p { max-width: none; } }

/* ==========================================================================
   Footer / Contact
   ========================================================================== */
.site-footer { background: var(--page); color: var(--white); }

.footer-cards {
  display: flex; gap: 8px;
  padding: 36px var(--gutter);
}
.footer-card {
  flex: 1 1 0; min-width: 108px; min-height: 232px;
  display: flex; flex-direction: column; gap: 36px;
  padding: 36px; background: var(--card); border-radius: 4px;
}
.footer-card__label { color: var(--grey); }
.nowrap { white-space: nowrap; }
.footer-card__value {
  font-weight: 500; font-size: 24px; line-height: 32px;
  font-style: normal;                      /* <address> is italic by default */
  text-decoration: none;
}
a.footer-card__value:hover { text-decoration: underline; }

.footer-brand {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  row-gap: 20px; padding: 36px var(--gutter);
}
.footer-brand__logo { width: 356px; height: 56px; }
.footer-brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand__dpo {
  display: flex; flex-direction: column; align-items: flex-end; gap: 16px;
  text-align: right;
}
.footer-brand__dpo-label { color: var(--grey); }
.footer-brand__dpo a { color: var(--white); }

.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  row-gap: 20px; padding: 36px var(--gutter);
  border-top: 1px solid var(--card);
}
.footer-legal__text { display: flex; flex-wrap: wrap; gap: 0 40px; }
.footer-legal__copy { color: var(--grey); }
.footer-legal__links { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; }
.footer-legal__links a { color: var(--grey); }
.footer-legal__links a:hover { color: var(--white); }

/* ==========================================================================
   Tablet (768–1023px): desktop structure, scaled type
   ========================================================================== */
@media (max-width: 1023px) {
  :root { --gutter: 40px; }
  .site-nav__logo { width: 330px; height: 44px; }
  .hero, .about { aspect-ratio: auto; height: 810px; min-height: 0; }
  .hero__content { flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 48px; }
  .hero__title { font-size: 64px; line-height: 68px; max-width: 680px; }
  .hero__intro { width: auto; max-width: 480px; }
  .about__content { padding-top: 140px; }
  .about__body { font-size: 24px; line-height: 36px; }
  .footer-card { padding: 24px; gap: 24px; min-height: 200px; }
  .footer-card__value { font-size: 20px; line-height: 30px; }
}

/* ==========================================================================
   Mobile (< 768px) — 360px-wide layout
   ========================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 20px; --grey: var(--grey-mobile); }

  .site-nav {
    flex-direction: column; justify-content: flex-start; gap: 16px;
    height: auto; padding: 20px;
  }
  .site-nav__logo { width: 240px; height: 32px; }
  .site-nav > nav { width: auto; }
  .nav-pill { width: auto; }
  .nav-pill li { flex: 0 0 auto; }
  .nav-pill a { padding: 6px 14px; font-size: 13px; }

  .hero__content { padding: 36px 20px; }
  .hero__title { font-size: 40px; line-height: 48px; }
  .hero__intro { max-width: none; }

  .about__content { gap: 24px; padding: 60px 20px 0; }  /* nav overlays the top 140px */
  .about__body { font-size: 20px; line-height: 32px; }
  .about__body p + p { margin-top: 8px; }

  .footer-cards { flex-direction: column; padding: 20px; }
  .footer-card { flex: 0 0 auto; min-height: 0; padding: 16px; gap: 20px; }
  .footer-card__value { font-size: 16px; line-height: 28px; }
  .footer-card--link .footer-card__value { text-decoration: underline; }

  .footer-brand { flex-direction: column; align-items: stretch; padding: 36px 20px; }
  .footer-brand__logo { width: 100%; height: auto; aspect-ratio: 356 / 56; }
  .footer-brand__dpo { align-items: center; gap: 20px; text-align: center; }

  .footer-legal { flex-direction: column; justify-content: center; gap: 36px; padding: 36px 20px; }
  .footer-legal__text { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
  .footer-legal__links { justify-content: center; gap: 36px; }
}

/* ==========================================================================
   Policy pages (privacy / cookie) — simple readable document layout
   Type mapped to the Text Style Guide (Onest):
     h1 → Heading 2   desktop 48/64 · mobile 32/40
     h2 → Heading 4   desktop 28/40 · mobile 20/32
     h3 → Heading 5   desktop 24/32 · mobile 16/28
     p / li → Body/Reg 16/28, links → Body/Underlined
   Colour: headings Text/Heading #233D57, body Text/Bodytext #5B6C7C,
   meta Text/Grey #8096A7.
   ========================================================================== */
.policy-page { background: var(--white); min-height: 100vh; display: flex; flex-direction: column; }
.policy-page .policy { flex: 1 0 auto; width: 100%; }   /* keeps footer at the bottom on short pages */
.policy-page .site-nav { position: sticky; background: var(--mist); }
.policy {
  max-width: 760px; margin: 0 auto; padding: 80px 24px 120px;
  color: var(--bodytext);
}
.policy h1, .policy h2, .policy h3 { color: var(--heading); font-weight: 500; letter-spacing: 0; }
.policy h1 { font-size: 48px; line-height: 64px; margin-bottom: 16px; }
.policy h1 + p:not(.policy__meta) { margin-top: 32px; }
.policy h2 { font-size: 28px; line-height: 40px; margin: 48px 0 16px; }
.policy h3 { font-size: 24px; line-height: 32px; margin: 36px 0 16px; }
.policy .policy__meta { color: var(--grey); margin-bottom: 48px; }
.policy p, .policy li { font-weight: 400; font-size: 16px; line-height: 28px; }
.policy p + p, .policy p + ul, .policy ul + p, .policy h3 + ul { margin-top: 16px; }
.policy ul { margin: 0; padding-left: 24px; }
.policy li + li { margin-top: 8px; }
.policy hr { border: 0; border-top: 1px solid #e6ecee; margin: 60px 0; }   /* Outline Light */
.policy strong { font-weight: 600; }   /* Onest 700 not self-hosted; 600 avoids faux-bold */
.policy a { color: var(--heading); text-decoration: underline; }
.policy a:focus-visible { outline-color: var(--heading); }
@media (max-width: 767px) {
  .policy { padding: 48px 20px 80px; }
  .policy h1 { font-size: 32px; line-height: 40px; }
  .policy h2 { font-size: 20px; line-height: 32px; margin-top: 36px; }
  .policy h3 { font-size: 16px; line-height: 28px; margin-top: 24px; }
}
