/* ============================================================
   CONTAINERUTLEIE BERGEN — "Fraktbrev"
   Fjordmørk stålblå + signalgul. Barlow Condensed / Barlow /
   IBM Plex Mono. Varselstripe + spec-plåt som signatur.
   ============================================================ */

:root {
  --ink: #131e26;          /* fjordmørk */
  --steel: #1b2c39;        /* mørk seksjon */
  --steel-2: #24384a;      /* kort på mørk */
  --paper: #eef1f3;        /* kjølig lys */
  --surface: #ffffff;
  --signal: #ffc400;       /* varselgul */
  --signal-deep: #e6ae00;
  --muted: #51616d;
  --muted-dark: #93a5b1;   /* tekst på mørk */
  --line: #d7dee3;
  --line-dark: #33475a;
  --sea: #24587c;          /* lenker */
  --radius: 6px;
  --stripe: repeating-linear-gradient(-45deg,
      var(--signal) 0 14px, var(--ink) 14px 28px);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- signatur: varselstripe ---------- */
.hazard { height: 8px; background: var(--stripe); }

/* ---------- typografi ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  display: block;
  margin-bottom: 0.85rem;
}
.dark .eyebrow, .eyebrow.on-dark { color: var(--signal); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.7rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.45rem; font-weight: 600; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.dark .lede { color: var(--muted-dark); }

/* ---------- knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.85rem 1.9rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.12s ease;
  min-height: 52px;
}
.btn:active { transform: scale(0.98); }
.btn svg { flex: none; }

.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-deep); }

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

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--steel-2); }

/* ---------- toppbar + nav ---------- */
.topbar {
  background: var(--ink); color: var(--muted-dark);
  font-family: var(--font-mono); font-size: 0.8rem;
  padding: 0.45rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--signal); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 42px; height: 34px; flex: none;
  background: var(--ink); border-radius: 3px;
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 9px;
  background: var(--stripe);
}
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; text-transform: uppercase; line-height: 1;
}
.brand-name small {
  display: block; font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em;
  color: var(--muted); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.08rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink); text-decoration: none;
  padding: 0.4rem 0.1rem;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--signal); }
.nav a[aria-current="page"] { border-bottom-color: var(--signal); }
.nav .btn { font-size: 1.05rem; padding: 0.55rem 1.2rem; min-height: 44px; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    cursor: pointer; color: var(--ink);
  }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 1rem 24px 1.4rem; gap: 0.4rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--signal); }
  .nav .btn { margin-top: 0.6rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(78deg,
    rgba(19,30,38,0.96) 0%, rgba(19,30,38,0.82) 42%, rgba(19,30,38,0.25) 100%);
}
.hero .wrap { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 24px; }
.hero .eyebrow { color: var(--signal); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero p {
  margin: 1.4rem 0 2.2rem; max-width: 54ch;
  font-size: 1.18rem; color: #d4dde3;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta {
  margin-top: 2.6rem; display: flex; gap: 2rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark);
}
.hero-meta strong { color: #fff; display: block; font-size: 1rem; }

/* sub-hero (undersider) */
.hero.compact .wrap { padding: clamp(3rem, 6vw, 4.5rem) 24px; }

/* ---------- seksjoner ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section.dark { background: var(--steel); color: #fff; }
.section.white { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }

/* ---------- USP-rad ---------- */
.usps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.usp { background: var(--surface); padding: 1.6rem 1.4rem; }
.usp svg { color: var(--sea); margin-bottom: 0.8rem; }
.usp h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.usp p { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 900px) { .usps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .usps { grid-template-columns: 1fr; } }

/* ---------- prosess ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step {
  background: var(--steel-2); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 1.6rem 1.4rem 1.5rem;
  position: relative;
}
.step-num {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem;
  color: var(--ink); background: var(--signal);
  display: inline-block; padding: 0.15rem 0.55rem; border-radius: 3px;
  margin-bottom: 0.9rem; letter-spacing: 0.1em;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; color: #fff; }
.step p { font-size: 0.95rem; color: var(--muted-dark); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- spec-plåt (containerkort) ---------- */
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.plate {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.plate::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 7px;
  background: repeating-linear-gradient(180deg,
    var(--ink) 0 16px, var(--steel-2) 16px 32px);
  z-index: 2;
}
.plate img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.plate-body { padding: 1.5rem 1.5rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.plate-spec {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea);
  border: 1px solid var(--line); border-radius: 3px;
  align-self: flex-start; padding: 0.2rem 0.6rem; margin-bottom: 0.9rem;
}
.plate h3 { margin-bottom: 0.5rem; }
.plate p { font-size: 0.98rem; color: var(--muted); flex: 1; }
.plate .btn { margin-top: 1.4rem; align-self: flex-start; font-size: 1.05rem; padding: 0.55rem 1.3rem; min-height: 46px; }
@media (max-width: 900px) { .plates { grid-template-columns: 1fr; } }

/* ---------- tjenester ---------- */
.services { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.service-item { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.service-item:last-child { border-bottom: 1px solid var(--line); }
.service-item h3 { margin-bottom: 0.4rem; }
.service-item p { color: var(--muted); font-size: 1rem; }
.services figure { position: sticky; top: 100px; }
.services figure img { border-radius: var(--radius); }
.services figcaption {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
  margin-top: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } .services figure { position: static; } }

/* ---------- SEO-tekst ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1.1rem; color: #33424d; }
.prose ul { margin: 0 0 1.1rem 1.3rem; color: #33424d; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 0.8rem;
}
.faq summary {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  padding: 1.05rem 3rem 1.05rem 1.3rem; cursor: pointer; list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--sea);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- skjema ---------- */
.form-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.form-panel .hazard { height: 6px; }
.form-inner { padding: clamp(1.6rem, 4vw, 2.6rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.field label b { color: #b3261e; font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.8rem 0.9rem; background: var(--paper);
  min-height: 50px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sea); background: #fff;
}
.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.9rem; }
.contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* kontaktliste */
.contact-list { list-style: none; }
.contact-list li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--line-dark);
}
.contact-list svg { flex: none; color: var(--signal); margin-top: 3px; }
.contact-list a { color: #fff; }
.contact-list .label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-dark); display: block;
}
.contact-list .value { font-size: 1.1rem; font-weight: 600; }

/* ---------- CTA-band ---------- */
.cta-band { background: var(--signal); position: relative; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; padding-top: 2.6rem; padding-bottom: 2.6rem;
}
.cta-band h2 { margin: 0; color: var(--ink); }
.cta-band p { color: #4a3d00; font-weight: 500; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--muted-dark); }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding: 3.2rem 0 2.4rem;
}
.foot-grid h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.9rem; }
.foot-grid a { color: var(--muted-dark); text-decoration: none; }
.foot-grid a:hover { color: var(--signal); }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 0.45rem; }
.foot-certs { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.foot-certs img { height: 54px; width: auto; background: #fff; border-radius: 4px; padding: 4px; }
.foot-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.1rem 0 5.5rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em;
}
@media (min-width: 861px) { .foot-bottom { padding-bottom: 1.1rem; } }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- sticky ring-bar (mobil CRO) ---------- */
.call-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  display: none; gap: 1px; background: var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}
.call-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.95rem 0.5rem; text-decoration: none; min-height: 54px;
}
.call-bar .call { background: var(--signal); color: var(--ink); }
.call-bar .quote { background: var(--ink); color: #fff; }
@media (max-width: 860px) { .call-bar { display: flex; } }

/* ---------- diverse ---------- */
.phone-inline {
  font-family: var(--font-mono); font-weight: 600; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--signal); color: var(--ink); padding: 0.7rem 1.2rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* synlig som default – .pre settes kun av JS på elementer under folden */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.pre { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) { .reveal.pre { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .topbar .wrap span:first-child { display: none; }
  .brand-name { font-size: 1.25rem; }
}


/* ---------- sosiale medier ---------- */
.social-row { display: flex; gap: 0.8rem; padding: 0 0 1.5rem; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius);
  color: inherit; border: 1px solid rgba(255,255,255,0.22);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.social-row a:hover { color: var(--signal); border-color: var(--signal); }
.social-row a:active { transform: scale(0.95); }
