/* Sleipner Maritime – main stylesheet */

:root {
  --navy: #004071;
  --navy-deep: #002a4d;
  --navy-ink: #001a30;
  --blue: #0a5aa0;
  --red: #ed1c24;
  --red-dark: #c8121a;
  --ink: #14212e;
  --muted: #5b6b7b;
  --line: #e2e8ee;
  --tint: #f3f6f9;
  --white: #fff;
  --ok: #19a974;
  --warn: #f5a623;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(0, 42, 77, .25);
  --shadow-lg: 0 30px 60px -20px rgba(0, 26, 48, .45);
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; color: var(--navy); }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons & small elements ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; white-space: nowrap;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--small { padding: .5em 1.2em; font-size: .9rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.eyebrow--light { color: #ff8a8f; }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 40em; }
.lead--dark { color: var(--muted); }

/* ---------- Navigation ---------- */

/* Brand: logo (white on dark, colour on light header) */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { display: block; height: 36px; width: auto; }
.brand__logo--color { display: none; }
.nav.is-scrolled .brand__logo--light, .nav.is-open .brand__logo--light { display: none; }
.nav.is-scrolled .brand__logo--color, .nav.is-open .brand__logo--color { display: block; }
.brand--footer .brand__logo { height: 30px; }
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) {
  color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem; font-weight: 500;
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .2s;
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

/* Language switch */
.lang { display: flex; margin-left: 20px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); }
.lang a {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-decoration: none;
  color: rgba(255,255,255,.8); padding: .35em .8em; border-radius: 999px; transition: background .2s, color .2s;
}
.lang a:hover { color: var(--white); }
.lang a[aria-current] { background: var(--white); color: var(--navy); }
.nav.is-scrolled .lang, .nav.is-open .lang { border-color: var(--line); }
.nav.is-scrolled .lang a, .nav.is-open .lang a { color: var(--muted); }
.nav.is-scrolled .lang a[aria-current], .nav.is-open .lang a[aria-current] { background: var(--navy); color: var(--white); }

.nav.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled .nav__links a:not(.btn) { color: var(--ink); }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 55%, var(--navy-ink) 100%);
  color: var(--white);
  padding: 150px 0 110px;
  min-height: 92vh; display: flex; align-items: center;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,26,48,.88) 0%, rgba(0,42,77,.6) 50%, rgba(0,42,77,.3) 100%),
    linear-gradient(0deg, rgba(0,26,48,.5) 0%, rgba(0,26,48,0) 40%);
}

.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero__facts { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hero__facts li {
  font-size: .88rem; font-weight: 500; padding: .35em .9em .35em 1.9em; border-radius: 999px;
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23ff8a8f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") .7em center/.95em no-repeat;
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px);
}
.hero__shot { margin: 0; justify-self: end; width: 100%; max-width: 520px; }
.hero__shot .frame { transform: perspective(1400px) rotateY(-8deg) rotateX(2deg); box-shadow: var(--shadow-lg); }
.hero__shot figcaption { margin-top: 16px; font-size: .9rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 10px; }

/* Screenshot frame */
.frame { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(0,42,77,.08); }
.frame img { width: 100%; height: auto; }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #eef2f6; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd8e1; }
.frame__bar i:first-child { background: #ff8a8f; }
.frame__bar span { margin-left: 10px; font-size: .75rem; font-weight: 600; color: var(--muted); }

.tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: .25em .7em; border-radius: 999px; vertical-align: middle; }
.tag--ai { background: var(--red); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--compact { padding: 60px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy-deep); color: var(--white); }
.section--dark h2 { color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* About */
.feature { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s, transform .25s, border-color .25s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.feature p { color: var(--muted); margin: 0; }
.feature__icon { width: 52px; height: 52px; border-radius: 12px; background: #e8f0f7; display: grid; place-items: center; margin-bottom: 20px; }
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: .45em 1.1em; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; }
.chips--dark li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.88); }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app {
  display: block; padding: 30px 28px; border-radius: var(--radius-lg); text-decoration: none; color: var(--white);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background .25s, transform .25s, border-color .25s;
}
a.app:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); transform: translateY(-4px); }
.app p { color: rgba(255,255,255,.72); margin: 0; }
.app__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--red); display: grid; place-items: center; margin-bottom: 20px; }
.app__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app__more { display: inline-block; margin-top: 16px; font-size: .88rem; font-weight: 600; color: #ff8a8f; }
.usecases { margin-top: 56px; }
.usecases__title { font-weight: 650; margin-bottom: 16px; }

/* Deep dives */
.dive { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.dive--reverse .dive__text { order: 2; }
.dive__media { position: relative; padding-bottom: 48px; }
.frame--small { position: absolute; width: 55%; right: -24px; bottom: 0; box-shadow: var(--shadow-lg); }
.dive--reverse .frame--small { right: auto; left: -24px; }
.benefits { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.benefits li {
  padding-left: 34px; position: relative; color: #3c4a58;
}
.benefits li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #e8f0f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23004071' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Technology */
.mini { padding: 28px; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); transition: box-shadow .25s, transform .25s; }
.mini:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.mini h3 { color: var(--navy); }
.mini p { margin: 0; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__img img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about .chips { margin-top: 24px; }


/* Partners */
.partners { text-align: center; }
.partners__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 56px; }
.partner img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.partner img:hover { filter: none; opacity: 1; }
.partner--text span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.partner--text img { max-height: 36px; }
.partner--text strong { font-size: 1.2rem; color: var(--navy); }

/* Jobs */
.jobs { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.jobs__box { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.jobs__box p { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.contact__cta { margin-top: 12px; }
.contact__cards { font-style: normal; display: grid; gap: 14px; }
.contact__card {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 24px; border-radius: var(--radius); background: var(--tint);
  color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.5;
  border: 1px solid transparent; transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.contact__card:hover { border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-2px); background: var(--white); }
.contact__card small { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }
/* Contact map background */
.contact-section { position: relative; overflow: hidden; }
.contact-section .contact { position: relative; z-index: 1; grid-template-columns: 1fr 1fr; column-gap: 136px; }
.contact__map { position: absolute; inset: 0; pointer-events: none; }
.contact__map > img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.contact__map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--tint) 0%, rgba(243,246,249,.55) 30%, rgba(243,246,249,0) 50%, rgba(243,246,249,.35) 100%); }
.contact__pin {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 8px; box-shadow: 0 8px 20px -6px rgba(227, 6, 19, .6);
}
.contact__pin img { width: 100%; height: 100%; border-radius: 8px; }
.contact__pin::before {
  content: ""; position: absolute; inset: -2px; border-radius: 10px; border: 2px solid #e30613; z-index: -1;
  animation: pin-pulse 2.4s ease-out infinite;
}
.contact__map { isolation: isolate; }
@keyframes pin-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.2); opacity: 0; } }
.contact-section .contact__card { background: rgba(255,255,255,.82); backdrop-filter: blur(6px); border-color: rgba(0,42,77,.06); }
.map-credit { position: absolute; right: 12px; bottom: 8px; margin: 0; z-index: 1; font-size: .7rem; color: var(--muted); }
.map-credit a { color: inherit; }
.contact__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Footer */
.footer { background: var(--navy-ink); color: rgba(255,255,255,.6); padding: 40px 0; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 24px; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer a:hover { color: var(--white); }

/* Legal pages */
.legal { padding: 140px 0 90px; }
.legal .container { max-width: 800px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1rem; color: var(--navy); margin-top: 1.4em; }
.legal p, .legal li { color: #3c4a58; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-page .nav { background: var(--navy-deep); }
.legal__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; background: var(--tint); border-radius: var(--radius-lg); padding: 12px 32px 20px; margin: 24px 0 16px; }
@media (max-width: 640px) { .legal__facts { grid-template-columns: 1fr; padding: 8px 20px 16px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__shot .frame { transform: none; }
  .hero__video { display: none; }
  .contact__pin::before { animation: none; display: none; }
}

/* ---------- Responsive ---------- */
/* Header switches to the burger menu earlier, since it carries two buttons */
@media (max-width: 1100px) {
  .nav__toggle { display: block; }
  .lang { margin-left: auto; margin-right: 8px; }
  .nav__links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); padding: 12px 24px 24px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav__links a:not(.btn) { color: var(--ink) !important; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; }
  .nav.is-open { background: var(--white); }
  .nav.is-open .nav__toggle span { background: var(--ink); }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .2s, transform .2s; }
}

@media (max-width: 1000px) {
  .hero__inner, .jobs, .contact, .dive, .about { grid-template-columns: 1fr; gap: 48px; }
  .contact-section .contact { grid-template-columns: 1fr; gap: 48px; }
  .section.contact-section { padding-bottom: 340px; }
  .contact__map { top: auto; height: 300px; }
  .contact__map::after { background: linear-gradient(180deg, var(--tint) 0%, rgba(243,246,249,0) 35%); }
  .grid--4, .apps { grid-template-columns: repeat(2, 1fr); }
  .hero__shot { justify-self: start; }
  .hero__shot .frame { transform: none; }
  .dive--reverse .dive__text { order: 0; }
}

@media (max-width: 820px) {
  .grid--3, .apps { grid-template-columns: 1fr; }
  .frame--small { display: none; }
  .dive__media { padding-bottom: 0; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .grid--4 { grid-template-columns: 1fr; }
  .jobs__box { padding: 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}


/* Header buttons: white "Contact" + red link to the Maritime Digital Assistant app */
.btn--white { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--white:hover { background: #e8eef4; border-color: #e8eef4; }
.nav.is-scrolled .btn--white, .nav.is-open .btn--white { border-color: var(--line); }
.nav__links .btn + .btn { margin-left: -1.2rem; }
@media (min-width: 1101px) and (max-width: 1240px) { .nav__links { gap: 1.4rem; } .nav__links .btn + .btn { margin-left: -.8rem; } }
@media (max-width: 1100px) { .nav__links .btn + .btn { margin-left: 0; margin-top: 10px; } }
