/* =========================================================================
   Båtvrak – stilark
   Fargene og skriftene er samlet øverst. Endre dem her, så endres hele siden.
   ========================================================================= */

@font-face { font-family: "Bebas Neue"; src: url(/fonts/bebas-neue.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cabin"; src: url(/fonts/cabin-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cabin"; src: url(/fonts/cabin-700.woff) format("woff"); font-weight: 700; font-display: swap; }

:root {
  --mork-gronn: #2b4a44;     /* overskrifter, knapper */
  --lys-gronn: #9bbaa3;      /* sekundærknapper, hover */
  --mork-bla: #2f3350;       /* primærfarge */
  --mint: #ebf7f4;           /* bakgrunn på siden */
  --gra-gronn: #d0ded9;
  --tekst: #333333;
  --lys-tekst: #ebf7f4;
  --radius: 20px;
  --bredde: 1170px;
  --overskrift: "Bebas Neue", sans-serif;
  --brodtekst: "Cabin", sans-serif;
}

/* ---------- grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #f2f6fd; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mint); color: var(--tekst); font-family: var(--brodtekst); font-size: 120%; line-height: 1.6; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: #248442; text-decoration: none; }
a:hover { color: var(--tekst); }
p { margin: 0 0 1.3em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.3em; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.3em; }
th, td { text-align: left; padding: .5em; border-bottom: 1px solid #d0ded9; vertical-align: top; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: var(--overskrift); font-weight: 400; color: var(--heading, var(--mork-gronn));
  line-height: 1.1; margin: 0 0 .5em;
}
h1, .h1 { font-size: 27px; } h2, .h2 { font-size: 27px; } h3, .h3 { font-size: 21px; } h4, .h4 { font-size: 16px; }
@media (min-width: 48em) {
  h1, .h1 { font-size: 40px; } h2, .h2 { font-size: 35px; } h3, .h3 { font-size: 30px; } h4, .h4 { font-size: 26px; }
}
.bebas { font-family: var(--overskrift); }
.no-margin, .no-margin p { margin: 0; }
.dark-blue { color: var(--mork-bla); } .dark-green { color: var(--mork-gronn); }
.bg-dark-green { background: var(--mork-gronn); } .bg-light-green { background: var(--lys-gronn); }

/* mørke flater: lys tekst */
.dark { color: #f1f1f1; }
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6, .dark .h1, .dark .h2, .dark .h3, .dark .h4 { color: var(--heading, var(--lys-tekst)); }
.dark a:not(.button) { color: #fff; }

/* ---------- toppmeny ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--mint); }
.site-header.transparent { position: absolute; left: 0; right: 0; background: transparent; }
.header-inner { max-width: var(--bredde); margin: 0 auto; height: 90px; padding: 0 15px; display: grid; grid-template-columns: 1fr 270px 1fr; align-items: center; gap: 20px; }
.site-logo img { width: 270px; max-height: 90px; object-fit: contain; margin: 0 auto; }
.nav ul { list-style: none; display: flex; gap: 2.2em; margin: 0; padding: 0; white-space: nowrap; }
@media (max-width: 1100px) { .nav ul { gap: 1.3em; } .nav ul a { font-size: .82em; } }
.nav-left ul { justify-content: flex-end; }
.nav-right ul { justify-content: flex-start; }
.nav a, .mobile-nav a { color: var(--mork-gronn); font-size: .9em; position: relative; padding: 6px 0; }
.nav a::before { content: ""; position: absolute; left: 50%; right: 50%; top: 0; height: 3px; background: var(--lys-gronn); transition: all .3s; }
.nav a:hover, .nav a[aria-current] { color: var(--lys-gronn); }
.nav a:hover::before, .nav a[aria-current]::before { left: 0; right: 0; }
.menu-toggle { display: none; }
.mobile-nav { background: var(--mint); padding: 10px 20px 20px; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-top: 1px solid rgba(0,0,0,.08); }
.mobile-nav a { display: block; padding: 12px 0; font-size: 1em; }
@media (max-width: 849px) {
  .header-inner { grid-template-columns: 1fr auto; height: 70px; }
  .nav { display: none; }
  .site-logo { order: -1; }
  .site-logo img { width: 200px; max-height: 70px; margin: 0; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .menu-toggle span { width: 26px; height: 3px; background: var(--mork-gronn); border-radius: 2px; }
}

/* ---------- rader og kolonner (12-delt rutenett) ---------- */
.row { display: flex; flex-wrap: wrap; width: 100%; max-width: var(--bredde); margin: 0 auto; }
.row .row, .row-inner { margin: 0 -15px; width: auto; }
.col { position: relative; width: 100%; padding: 0 15px 30px;
  /* nullstill avstander slik at en kolonne inni en annen ikke arver dem */
  --pad: 0; --mar: 0; --pad-sm: initial; --mar-sm: initial; }
.row-large > .col { padding: 0 30px 30px; }
.row-large { max-width: 1200px; }
.row-small > .col { padding: 0 9.8px 19.6px; }
.row-collapse > .col { padding: 0; }
.h-center { justify-content: center; }
.v-middle { align-items: center; }
.v-bottom { align-items: flex-end; }
.v-equal > .col > .col-inner { min-height: 100%; }
.col-inner { position: relative; padding: var(--pad-sm, var(--pad, 0)); margin: var(--mar-sm, var(--mar, 0)); }
.text-center { text-align: center; } .text-right { text-align: right; }
.col-inner.dark { color: var(--lys-tekst); }
@media (min-width: 550px) {
  .col-inner { padding: var(--pad, 0); margin: var(--mar, 0); }
  .span-1 { flex-basis: 8.333%; max-width: 8.333%; } .span-2 { flex-basis: 16.666%; max-width: 16.666%; }
  .span-3 { flex-basis: 25%; max-width: 25%; } .span-4 { flex-basis: 33.333%; max-width: 33.333%; }
  .span-5 { flex-basis: 41.666%; max-width: 41.666%; } .span-6 { flex-basis: 50%; max-width: 50%; }
  .span-7 { flex-basis: 58.333%; max-width: 58.333%; } .span-8 { flex-basis: 66.666%; max-width: 66.666%; }
  .span-9 { flex-basis: 75%; max-width: 75%; } .span-10 { flex-basis: 83.333%; max-width: 83.333%; }
  .span-11 { flex-basis: 91.666%; max-width: 91.666%; } .span-12 { flex-basis: 100%; max-width: 100%; }
}
@media (max-width: 549px) {
  .sm-6 { flex-basis: 50%; max-width: 50%; }
  .sm-11 { flex-basis: 91.666%; max-width: 91.666%; }
  .hide-sm { display: none !important; }
  .text.fs-sm { font-size: var(--fs-sm) !important; }
  .text.ta-sm { text-align: var(--ta-sm) !important; }
}
@media (min-width: 550px) { .show-sm { display: none !important; } }

/* ---------- seksjoner ---------- */
.section { position: relative; padding: 30px 0; background-size: cover; background-position: center; }
.top-radius-section { border-radius: var(--radius) var(--radius) 0 0; }
.rounded-section { border-radius: 30px; }

/* ---------- innholdsbiter ---------- */
.gap { height: var(--h, 30px); }
@media (max-width: 549px) { .gap { height: var(--h-sm, var(--h, 30px)); } }
hr.divider { border: 0; height: 3px; width: 30px; max-width: 100%; background: var(--mork-gronn); margin: 1em 0; }
.text-center hr.divider, .card hr.divider { margin-left: auto; margin-right: auto; }
.dark hr.divider { background: rgba(255,255,255,.3); }
.text > :last-child { margin-bottom: 0; }

.img { margin: 0 0 1em; width: var(--w, 100%); max-width: 100%; }
.text-center .img { margin-left: auto; margin-right: auto; }
.text-right .img { margin-left: auto; }
.img:last-child, .img.no-margin { margin-bottom: 0; }
.img img { width: 100%; }
.img-radius img, .img.img-radius { border-radius: var(--radius); }
.img.cover { position: relative; padding-top: var(--ratio); }
.img.cover img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.img.cover a { position: absolute; inset: 0; }
.shadow { box-shadow: 0 3px 6px -4px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23); }
@media (max-width: 549px) { .img { width: var(--w-sm, var(--w, 100%)); } }

.stack { display: flex; flex-direction: row; align-items: flex-start; gap: 0; }
@media (max-width: 549px) { .stack-sm-col { flex-direction: column; } }
.social-stack { width: 150px; margin-left: auto; gap: 1rem; }
.social-stack .img { margin: 0; }

.logo-link { display: inline-block; padding: 10px 15px; vertical-align: middle; }
.logo-link img { display: inline-block; max-height: 100%; }
iframe[src*="google.com/maps"] { width: 100%; height: auto; aspect-ratio: 4 / 3; border: 0; border-radius: 12px; margin: 0 auto; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a { display: block; padding: 3px 0; }

.video { position: relative; padding-top: 56.25%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- knapper ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5em; padding: 0 1.2em; margin: 0 1em 1em 0;
  border: 2px solid transparent; border-radius: 13px; font-size: .97em; line-height: 1.2; letter-spacing: .03em; cursor: pointer;
  font-family: inherit; color: #fff; background: var(--mork-bla); transition: opacity .2s, transform .2s; }
.text-center .button { margin-left: .5em; margin-right: .5em; }
.button:hover { color: #fff; opacity: .9; }
.button span { display: inline-flex; align-items: center; line-height: 1.6; }
.button.secondary { background: var(--lys-gronn); color: #25473b; }
.button.secondary span::after, .but-arrow span::after { content: ""; width: 25px; height: 25px; margin-left: 10px; background: url(/bilder/arrow-right-yellow.svg) center / contain no-repeat; }
.button.success { background: var(--mork-gronn); }
.button.white { background: #fff; color: #666; }
.button.alert { background: #fd4650; }
.button.is-link { background: none; border: 0; padding: 0; min-height: 0; }
.button.is-link.white, .dark .button.is-link { color: #fff; }
.button.large { font-size: 1.15em; }
.button.expand { display: flex; width: 100%; margin-right: 0; }
.button.no-margin { margin: 0; }
.but-simple-yellow span::after { content: ""; width: 35px; height: 35px; margin-left: 10px; background: url(/bilder/arrow-right-yellow.svg) center no-repeat; }

/* ---------- ikonbokser ---------- */
.icon-box { display: flex; gap: 20px; align-items: center; color: inherit; margin-bottom: 1em; }
.icon-box-img { flex-shrink: 0; }
.icon-box-img img { width: 100%; }
.icon-box-text { flex: 1; min-width: 0; }
.icon-box-text > :last-child { margin-bottom: 0; }
.icon-box.pos-right { flex-direction: row-reverse; }
.icon-box.pos-top, .icon-box.pos-center { flex-direction: column; align-items: flex-start; }
.icon-box.pos-center { align-items: center; text-align: center; }
.icon-shadow .icon-box-img img { border-radius: 50%; box-shadow: 0 3px 6px rgba(0,0,0,.16); }
a.icon-box:hover { color: inherit; opacity: .92; }
.home-box { border-radius: var(--radius); padding: 15px 30px; }
.home-box .icon-box-img { width: 80px !important; }
@media (min-width: 48em) { .icon-right-align-top { align-items: flex-start; } }
@media (max-width: 48em) { .icon-box.icon-right-align-top { flex-direction: column-reverse; align-items: flex-start; } }

/* ---------- glidebånd (slider) ---------- */
.slider { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.slider .slide { flex: 0 0 var(--slide, 100%); max-width: 90vw; scroll-snap-align: start; }
.slider .row-inner { margin: 0; }

/* ---------- artikkelkort ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; text-align: center; }
.card { background: var(--mint); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; align-items: center; }
.card-img { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); margin-bottom: 1em; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-img:hover img { transform: scale(1.04); }
.card-title { font-family: var(--brodtekst); font-size: 1.1em; line-height: 1.3; margin: 0; }
.card-title a { color: var(--tekst); }
.card-date { font-size: .8em; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .4em; opacity: .7; }
.card hr.divider { margin: .8em auto; }
.read-more { display: inline-flex; align-items: center; color: var(--mork-bla); font-size: .9em; margin-top: auto; }
.read-more::after { content: ""; width: 35px; height: 35px; margin-left: 10px; background: url(/bilder/arrow-right-green.svg) center no-repeat; }

/* ---------- artikler ---------- */
.page-head { max-width: var(--bredde); margin: 0 auto; padding: 40px 15px 10px; text-align: center; }
.post { max-width: var(--bredde); margin: 0 auto; padding: 30px 15px 40px; }
.post-header { display: flex; flex-direction: column; gap: 30px; margin-bottom: 40px; }
@media (min-width: 48em) {
  .post-header { flex-direction: row-reverse; align-items: center; }
  .post-header-text { width: 60%; }
  .post-image { width: 40%; }
}
.post-image img { border-radius: var(--radius); width: 100%; }
.post-cats { text-transform: uppercase; font-size: .75em; letter-spacing: .05em; margin: 0 0 .5em; opacity: .7; }
.post-date { font-size: .85em; opacity: .7; }
.post-content .row { max-width: none; }
.post-content .section { padding-left: 0; padding-right: 0; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #d0ded9; padding-top: 20px; margin-top: 40px; font-size: .9em; }
.post-nav .next { text-align: right; margin-left: auto; }
.prose { max-width: 100%; }

/* ---------- kontakt (e-postknapp) ---------- */
.kontakt-epost .button { border-radius: 99px; padding: 0 30px; margin: 0; }
/* @ i Cabin-skriften ser rar ut – vis den i en vanlig skrift */
.at { font-family: Helvetica, Arial, sans-serif; font-weight: 400; }

/* ---------- skjema ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-size: 1em; color: var(--mork-gronn); }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .guide select {
  font: inherit; width: 100%; min-height: 48px; padding: 0 15px; border: 0; border-radius: 12px; background: var(--mint); color: var(--tekst); appearance: none; }
.form textarea { padding: 15px; resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: center; font-size: .8em; }
.form .consent input { width: 25px; height: 25px; flex-shrink: 0; }
.form .button { justify-self: start; border-radius: 99px; padding: 0 30px; margin: 0; }
.form .hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 700; }
.form-status.ok { color: var(--mork-gronn); }
.form-status.feil { color: #b3261e; }

/* veiviseren på «Meld inn båtvrak» */
.guide { max-width: 560px; margin: 0 auto; text-align: center; }
.guide fieldset { border: 0; margin: 0 0 30px; padding: 0; }
.guide legend, .guide-label { display: block; width: 100%; font-family: var(--overskrift); font-size: 1.8em; line-height: 1.1; color: var(--mork-gronn); margin-bottom: 20px; }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.choices input { position: absolute; opacity: 0; }
.choices span { display: block; min-width: 135px; padding: 20px 40px; border-radius: var(--radius); background: #fff; cursor: pointer; transition: background .2s; }
.choices label:hover span, .choices input:checked + span { background: var(--mork-gronn); color: #fff; }
.choices input:focus-visible + span { outline: 3px solid var(--lys-gronn); outline-offset: 2px; }
.guide select { text-align: center; background: #fff; max-width: 360px; cursor: pointer; }
.recyclers { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
@media (min-width: 48em) { .recyclers { flex-direction: row; justify-content: space-around; } }
.recycler { padding-top: 20px; }
.guide-info { margin-top: 20px; text-align: left; }
.guide-info.center { text-align: center; }
.guide-info img { margin: 0 auto 10px; }

/* ---------- bunntekst ---------- */
.site-footer .section { background-color: #2b4a44; padding: 13px 0; }
.site-footer .link-list a { color: var(--lys-tekst); }
.site-footer p { margin-bottom: .5em; }

/* ---------- landingsside (linktree) ---------- */
.landing main { padding-top: 40px; }
.landing .button.expand { margin-bottom: 12px; }

/* =========================================================================
   Egne bakgrunner og detaljer fra den gamle siden
   ========================================================================= */
.bg-home-one > .col-inner, .col.bg-home-one > .col-inner { background: url(/bilder/Artboard-13.jpg) 0 0 / cover; }
.bg-million { background: url(/bilder/Artboard-14.webp) bottom / cover no-repeat; padding: 40px 50px 140px 20px; border-radius: var(--radius); }
@media (min-width: 48em) { .bg-million { padding: 40px 20px 140px 30px; } }
.bg-hvem-henter { background: url(/bilder/bg-who-collects.svg) 0 90% / cover no-repeat; border-radius: var(--radius); }
.bg-et-prosjekt { background: url(/bilder/bg-Et-prosjekt-viktig-for-Norge.jpg) 0 90% / cover no-repeat; border-radius: var(--radius); }
.maling-og-lakk, .hva-er-materialene { background: var(--gra-gronn); border-radius: var(--radius); padding: 30px 30px 10px; }
@media (min-width: 48em) {
  .home-abs-text-bottom { position: absolute; bottom: 0; }
  .bg-boat-home > .col-inner { background: url(/bilder/boat-home-2.webp) 30% 130% no-repeat; }
}
.bg-thousand-tons { background: url(/bilder/bg-thousand-tons.webp); border-radius: var(--radius); padding: 45px 20px 35px; }
.skroget > .col-inner { padding-left: 20px; padding-right: 20px; }

.bg-om-oss-nature > .col-inner { background: url(/bilder/bg-fjerne-alle-batvrak-fra-norsk-natur.jpg) 0 80% / cover no-repeat; }
.bg-million-about { background: url(/bilder/bg-Det-er-1-million-2.jpg) 60% 0 / cover no-repeat; padding: 40px 50px 200px 20px; border-radius: var(--radius); }
@media (min-width: 48em) { .bg-million-about { background-position: 0%; padding: 40px 350px 140px 30px; } }
.bg-mikroplast { background: url(/bilder/bg-mikroplast.jpg) center / cover no-repeat; padding: 40px 20px; border-radius: var(--radius); }
@media (min-width: 48em) { .bg-mikroplast { padding: 40px 30px; } }
p.mikroplast-text { max-width: 240px; }
.bg-fjern-plast { background: url(/bilder/bg-fjern-plast.jpg) center / cover no-repeat; border-radius: var(--radius); max-width: 1140px; }
.bg-bli-partner { background: url(/bilder/bg-Prosjekteierskap.png) 0 80% / cover no-repeat; border-radius: var(--radius); max-width: 1140px; }
.bg-batopphugging { background: url(/bilder/Artboard-2.png) center / cover no-repeat; border-radius: var(--radius); max-width: 1140px; }
.bg-mer-info { background: url(/bilder/bg-les-mer-0.png) center / cover no-repeat; border-radius: var(--radius); max-width: 1140px; }
.section-radius { border-radius: var(--radius); }

/* logorekke (båtopphuggere) – alle logoer vises samtidig */
.slider.eneko-logo, .slider.logo-row { overflow: visible; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 30px; }
.slider.eneko-logo .slide, .slider.logo-row .slide { flex: 0 1 220px; max-width: 45%; }
.slider.logo-row .logo-link { padding: 0; }
.slider.logo-row img { width: 100% !important; height: auto !important; max-height: 100px; object-fit: contain; }

/* bølge nederst i toppseksjonen (som på den gamle siden) */
.section.wave { position: relative; }
.section.wave > * { position: relative; z-index: 1; }
.section.wave::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 100px; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ebf7f4' d='M321.39 63.56c58 10.79 114.16 30.13 172 41.86 82.39 16.72 168.19 17.73 250.45.39C823.78 89 906.67 48 985.66 27.17c70.05-18.48 146.53-26.09 214.34-3V120H0V92.65a600.21 600.21 0 01321.39-29.09z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
@media (max-width: 549px) { .section.wave::after { height: 60px; } }

/* artikkeloversikten (Innsikt og Nyheter): to kolonner med utdrag */
.cards.blog-list { grid-template-columns: repeat(2, 1fr); gap: 50px 45px; text-align: left; }
.blog-list .card { background: none; padding: 0; align-items: stretch; }
.blog-list .card-img { margin-bottom: 1.2em; }
.blog-list .card-title { font-family: var(--overskrift); font-size: 1.6em; font-weight: 400; line-height: 1.1; text-transform: uppercase; }
.blog-list .card-title a { color: var(--mork-gronn); }
.blog-list .card hr.divider { margin: .8em 0; }
.blog-list .card-excerpt { margin: 0; }
@media (max-width: 849px) { .cards.blog-list { grid-template-columns: 1fr; } }

/* ---------- animasjoner når elementer kommer til syne ----------
   Brukes med data-animate="fadeInLeft | fadeInRight | fadeInUp | bounceIn".
   Slås av for besøkende som har valgt redusert bevegelse. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-animate] { opacity: 0; }
  .js [data-animate].vist { animation: .9s cubic-bezier(.2,.7,.3,1) both var(--anim); }
  [data-animate="fadeInLeft"] { --anim: fadeInLeft; }
  [data-animate="fadeInRight"] { --anim: fadeInRight; }
  [data-animate="fadeInUp"] { --anim: fadeInUp; }
  [data-animate="bounceIn"] { --anim: bounceIn; }
}
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: none; } }
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(.95); } 100% { opacity: 1; transform: none; }
}
