/* JLE Grunnforsterkning – stilark
   Skrifttype: Archivo (variabel, bredde + vekt), lagret lokalt i fonts/. Ingen eksterne forespørsler. */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

:root {
  --leire: #3f5864;      /* marin leire, blågrå */
  --leire-2: #2c414c;
  --dyp: #14262e;
  --sement: #eef1ee;
  --sement-2: #dde3df;
  --line: #c5cec9;
  --sand: #cdbb8e;
  --signal: #f1bd2f;
  --text: #17292f;
  --muted: #4f6169;
  --wrap: 1180px;
  --sans: "Archivo Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--sement);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--sement-2); }
p { margin: 0 0 1.1em; }
sub { font-size: .7em; line-height: 0; }

a { color: var(--leire-2); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-stretch: 66%; font-weight: 800; line-height: 1.02; letter-spacing: .004em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; font-stretch: 92%; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--dyp); color: #fff; padding: .8rem 1.1rem; }
.skip:focus { left: 0; }

/* Lagdelt grunn – gjentas som skille mellom hode og innhold, og over bunnteksten */
.strata {
  height: 20px;
  background: linear-gradient(to bottom, #cdbb8e 0 25%, #8da4af 25% 50%, #5d717b 50% 75%, #22343d 75% 100%);
}

/* ---------- Topp og meny ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--sement); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--dyp); }
.brand:hover { text-decoration: none; }
.mark { display: flex; gap: 3px; align-items: flex-start; height: 2rem; }
.mark i { display: block; width: 6px; background: var(--leire); }
.mark i:nth-child(1) { height: 60%; }
.mark i:nth-child(2) { height: 100%; background: var(--dyp); }
.mark i:nth-child(3) { height: 80%; }
.mark i:nth-child(4) { height: 100%; background: var(--signal); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-stretch: 66%; font-weight: 800; font-size: 1.75rem; letter-spacing: .02em; }
.brand-name small { font-stretch: 85%; font-weight: 500; font-size: .8rem; color: var(--muted); margin-top: .2rem; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: .15rem; }
.nav a { display: block; padding: .6rem .85rem; color: var(--dyp); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 6px; }
.nav a:hover { background: var(--sement-2); }
.nav a[aria-current="page"], .nav .has-sub.current > a { box-shadow: inset 0 -3px 0 var(--signal); border-radius: 6px 6px 0 0; }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 15rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .35rem; box-shadow: 0 12px 28px rgba(20, 38, 46, .16); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { font-weight: 500; }

.menu-btn { display: none; font: inherit; font-weight: 700; font-stretch: 90%; color: var(--dyp); background: transparent; border: 2px solid var(--dyp); border-radius: 6px; padding: .45rem .9rem; cursor: pointer; }

@media (max-width: 940px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sement); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; max-height: calc(100vh - 4.4rem); overflow: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav a { padding: .7rem .25rem; font-size: 1.05rem; border-radius: 0; }
  .nav a[aria-current="page"], .nav .has-sub.current > a { box-shadow: none; color: var(--leire-2); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; }
  .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 .4rem 1rem; background: transparent; }
  .sub a { font-size: .98rem; padding: .45rem .25rem; }
}

/* ---------- Knapper ---------- */
.btn { display: inline-block; font: inherit; font-weight: 700; font-stretch: 92%; font-size: 1.02rem; text-decoration: none; padding: .85rem 1.5rem; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-signal { background: var(--signal); color: var(--dyp); }
.btn-signal:hover { background: #ffd24f; }
.btn-line { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn-dark { background: var(--dyp); color: #fff; }
.btn-dark:hover { background: var(--leire-2); }

/* ---------- Forside: tverrsnitt ---------- */
.hero { background: var(--leire); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.9rem); margin-bottom: 1.4rem; }
.hero .lead { max-width: 33rem; color: #e6edef; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.section-profile { width: 100%; max-height: 38rem; margin-inline: auto; }
.section-profile text { font-family: var(--sans); font-stretch: 75%; font-weight: 600; font-size: 14px; fill: #eef1ee; letter-spacing: .02em; }
.section-profile .pile { transform-box: fill-box; transform-origin: 50% 0; animation: drive 1.6s cubic-bezier(.3, .6, .2, 1) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes drive { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .section-profile { max-height: 26rem; }
}

/* ---------- Generelle seksjoner ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: .8rem; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; }
.muted { color: var(--muted); }

/* Kolonner skilt av loddrette streker, som peler */
.cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.col { padding: 0 clamp(1rem, 2.2vw, 2rem); border-left: 1px solid var(--line); }
.col:first-child { padding-left: 0; border-left: 0; }
.col:last-child { padding-right: 0; }
.col img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.2rem; }
.col h3 { margin-bottom: .5rem; font-size: 1.35rem; }
.col p { color: var(--muted); }
.col .more { font-weight: 700; }
@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; }
  .col { padding: 1.6rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .col:first-child { padding-top: 0; border-top: 0; }
}

.band { background: var(--sement-2); }
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stack .col h3 { font-size: 1.5rem; font-stretch: 72%; font-weight: 800; line-height: 1.05; margin-bottom: .6rem; }
.stack .col p { color: var(--text); font-size: 1.02rem; }
@media (max-width: 980px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stack .col:nth-child(3) { border-left: 0; padding-left: 0; } .stack .col:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: 1.6rem; } }
@media (max-width: 560px) { .stack { grid-template-columns: 1fr; } .stack .col { border-left: 0; padding-left: 0; } .stack .col + .col { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: 1.6rem; } }

.future { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.future h2 { margin-bottom: 1.2rem; }
.video-teaser { display: block; position: relative; text-decoration: none; color: #fff; border-radius: 8px; overflow: hidden; background: var(--dyp); }
.video-teaser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .82; }
.video-teaser span { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.2rem 1.1rem; font-weight: 700; font-stretch: 85%; font-size: 1.25rem; background: linear-gradient(to top, rgba(20, 38, 46, .92), transparent); }
.video-teaser::before { content: ""; position: absolute; left: 50%; top: 42%; width: 4.2rem; height: 4.2rem; margin: -2.1rem 0 0 -2.1rem; border-radius: 50%; background: var(--signal); z-index: 1; }
.video-teaser::after { content: ""; position: absolute; left: 50%; top: 42%; margin: -.85rem 0 0 -.55rem; border-style: solid; border-width: .85rem 0 .85rem 1.35rem; border-color: transparent transparent transparent var(--dyp); z-index: 2; }
@media (max-width: 860px) { .future { grid-template-columns: 1fr; } }

/* ---------- Underside-hode ---------- */
.page-hero { background: var(--leire); color: #fff; }
.page-hero .wrap { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { max-width: 14em; font-size: clamp(2.6rem, 6.4vw, 4.8rem); margin-bottom: 1rem; }
.page-hero .lead { max-width: 44rem; color: #e6edef; margin: 0; }

/* ---------- Innholdsblokker: overskrift til venstre, tekst til høyre ---------- */
.block { display: grid; grid-template-columns: minmax(11rem, .36fr) minmax(0, 1fr); gap: 1.2rem clamp(2rem, 6vw, 5rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; }
.block h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.block .body { max-width: 40rem; }
.block .body > :last-child { margin-bottom: 0; }
.block figure { margin: 1.8rem 0 0; max-width: 40rem; }
.block figure img { width: 100%; }
.block figcaption { font-size: .92rem; color: var(--muted); margin-top: .5rem; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; max-width: 56rem; }
.figs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .block { grid-template-columns: 1fr; } .figs { grid-template-columns: 1fr; } }

.specs { margin: 0; display: grid; gap: 0; }
.specs > div { display: grid; grid-template-columns: minmax(8rem, .3fr) 1fr; gap: 1rem 2rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.specs > div:first-child { border-top: 0; padding-top: 0; }
.specs dt { font-stretch: 72%; font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.specs dd { margin: 0; max-width: 38rem; }
@media (max-width: 640px) { .specs > div { grid-template-columns: 1fr; gap: .3rem; } }

.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.videos video { width: 100%; aspect-ratio: 16 / 9; background: var(--dyp); object-fit: cover; border-radius: 6px; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }

.cta-band { background: var(--sement-2); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding-block: 2.2rem; }
.cta-band p { margin: 0; font-stretch: 78%; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; }

/* ---------- Kontakt ---------- */
.contact { background: var(--leire); color: #fff; }
.contact a { color: #fff; text-decoration-color: var(--signal); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3rem, 7vw, 5.5rem); }
.contact h2 { margin-bottom: 1.2rem; }
.contact address { font-style: normal; margin-top: 1.6rem; }
.contact address b { display: block; font-stretch: 85%; }
.contact .tel { font-stretch: 78%; font-weight: 800; font-size: 1.9rem; display: block; line-height: 1.2; margin-top: .6rem; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
form .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-stretch: 92%; font-size: .95rem; margin-bottom: .3rem; }
input, textarea { width: 100%; font: inherit; color: var(--dyp); background: #f7f9f7; border: 2px solid transparent; border-radius: 6px; padding: .7rem .8rem; }
input:focus, textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; }
textarea { min-height: 9rem; resize: vertical; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { form { grid-template-columns: 1fr; } }

/* ---------- Bunntekst ---------- */
.site-footer { background: var(--dyp); color: #c9d4d8; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; padding-block: 2.2rem; }
.site-footer b { color: #fff; font-stretch: 85%; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-profile .pile { animation: none; }
}
@media print {
  .site-header, .menu-btn, .strata, .cta-band, form { display: none; }
  body { background: #fff; }
}
.teaser-fig { margin: 0; } .teaser-fig img { width: 100%; border-radius: 8px; }

/* Video: lastes fra YouTube først ved klikk */
.video-wrap { max-width: 56rem; }
.yt { position: relative; aspect-ratio: 16 / 9; background: var(--dyp); border-radius: 8px; overflow: hidden; }
.yt iframe, .yt-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { padding: 0; cursor: pointer; background: transparent; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; }
.yt-icon { position: absolute; left: 50%; top: 50%; width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; border-radius: 50%; background: var(--signal); }
.yt-icon::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -1rem 0 0 -.65rem; border-style: solid; border-width: 1rem 0 1rem 1.6rem; border-color: transparent transparent transparent var(--dyp); }
.yt-play:hover .yt-icon { background: #ffd24f; }
.yt-note { margin-top: .9rem; font-size: .95rem; }
.video-item + .video-item { margin-top: 2.6rem; }
.video-item h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.video-item .yt-note { margin-top: .6rem; }
.future-videos { display: grid; gap: 1.2rem; }
.future-videos .yt-icon { width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; }
.future-videos .yt-icon::after { margin: -.8rem 0 0 -.5rem; border-width: .8rem 0 .8rem 1.3rem; }
