:root {
  --navy: #0a2a6e;
  --navy-deep: #061a45;
  --fjord: #1a6b8a;
  --mist: #e8f1f5;
  --foam: #f5fafc;
  --ink: #142033;
  --muted: #4a5a6a;
  --accent: #2a9aad;
  --line: rgba(10, 42, 110, 0.12);
  --shadow: 0 18px 50px rgba(6, 26, 69, 0.12);
  --radius: 14px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(42, 154, 173, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(10, 42, 110, 0.12), transparent 50%),
    linear-gradient(180deg, var(--foam), #fff 40%, var(--mist));
  min-height: 100vh;
  line-height: 1.6;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--fjord);
}

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(245, 250, 252, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand img {
  width: clamp(140px, 22vw, 190px);
  height: auto;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.6rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
}

.nav-item > a:hover,
.nav-item.is-active > a {
  background: rgba(10, 42, 110, 0.08);
}

.sub-nav {
  display: none;
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 0;
  min-width: 14rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.nav-item.has-sub:hover > .sub-nav,
.nav-item.has-sub:focus-within > .sub-nav {
  display: block;
}

.sub-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.92rem;
}

.sub-nav a:hover {
  background: var(--mist);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 72vh, 640px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 26, 69, 0.35), rgba(6, 26, 69, 0.78)),
    url("../images/diverse/nordlys1920.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 42, 110, 0.55), transparent 55%);
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4rem;
  animation: rise 0.9s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: var(--mist);
  color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

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

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.4rem;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 55ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.tile {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tile-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.tile-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d7e4eb;
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tile:hover .tile-media img {
  transform: scale(1.05);
}

.tile-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.tile-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.tile-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--navy-deep);
}

.tile-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.history-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.history-item {
  text-align: center;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.history-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.history-item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--navy-deep);
}

.history-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Page chrome */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232, 241, 245, 0.8), transparent);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
  color: var(--navy-deep);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
}

.content-panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.prose {
  font-size: 1.05rem;
}

.prose h2,
.prose h3 {
  font-family: var(--serif);
  color: var(--navy-deep);
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose img {
  margin: 1rem auto;
  border-radius: 10px;
}

.prose iframe {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 360px;
  border: 0;
  border-radius: 12px;
  margin: 1rem 0;
}

.video-embed,
.video-local {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 1.25rem auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-embed iframe,
.video-local video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.stub-note {
  padding: 1rem 1.1rem;
  background: rgba(42, 154, 173, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}

.list-cards {
  display: grid;
  gap: 1rem;
}

.list-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.list-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.list-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  background: #d7e4eb;
}

.list-card h2 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  color: var(--navy-deep);
}

.list-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.list-card.no-thumb {
  grid-template-columns: 1fr;
}

/* Contact form */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(42, 154, 173, 0.45);
  border-color: var(--accent);
}

.form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.alert-ok {
  background: rgba(34, 140, 90, 0.12);
  color: #14633d;
}

.alert-err {
  background: rgba(180, 50, 50, 0.1);
  color: #8a1f1f;
}

.contact-aside {
  display: grid;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 2rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

.to-top {
  text-decoration: none;
}

.slides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.slides img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

@media (max-width: 960px) {
  .grid-3,
  .history-strip,
  .footer-grid,
  .slides {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .sub-nav {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 0.75rem;
    background: transparent;
  }

  .nav-item.has-sub.is-open > .sub-nav,
  .nav-item.has-sub:focus-within > .sub-nav {
    display: block;
  }

  .grid-3,
  .grid-2,
  .history-strip,
  .footer-grid,
  .slides,
  .list-card {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
