/* AESTO – felles stilark for alle sider */

:root {
  --paper: #F5F3EE;
  --paper-deep: #ECE8DF;
  --paper-light: #FAF8F4;
  --ink: #0B2A45;
  --ink-soft: #3B4D60;
  --ink-mute: #56646F;
  --line: #D8D2C6;
  --navy: #012745;
  --petrol: #02515F;
  --teal: #01B699;
  --teal-ink: #00796A;
  --teal-wash: #DDEFEB;
  --cyan: #35C9D9;
  --cyan-light: #7ADDE7;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 110px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.5rem; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.nowrap { white-space: nowrap; }

/* Signaturdetalj: den skrå tverrstreken fra A-en i logoen – brukt sparsomt */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-ink);
}
.eyebrow::before {
  content: ""; width: 30px; height: 11px; flex: none;
  background: linear-gradient(90deg, var(--teal), var(--petrol));
  clip-path: polygon(0 0, 100% 62%, 92% 100%);
}
.eyebrow.on-dark { color: var(--cyan-light); }
.eyebrow.on-dark::before { background: linear-gradient(90deg, var(--cyan), var(--teal)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: 600 1.0625rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--petrol); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #E3F5F7; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-weight: 600; color: var(--petrol); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
  transition: color .2s, gap .25s var(--ease);
}
.more:hover { color: var(--navy); gap: 12px; }

.tag {
  display: inline-block; font-size: .875rem; font-weight: 600; color: var(--petrol);
  background: var(--teal-wash); border-radius: 999px; padding: 5px 13px; line-height: 1.4;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 238, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 92px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 70px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 1.0625rem; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 9px;
}
.header-cta { display: flex; align-items: center; gap: 22px; }
.header-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; text-align: right; }
.header-phone small { font-size: .8125rem; color: var(--ink-mute); }
.header-phone strong { font-weight: 600; font-size: 1.125rem; letter-spacing: .01em; }
.icon-btn { display: none; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn.call { background: var(--navy); color: #fff; }
.icon-btn.call svg { width: 20px; height: 20px; }

/* ---------- Forside: hero ---------- */
.hero { padding: 0 clamp(8px, 1.4vw, 20px); }
.hero-frame {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius);
  min-height: clamp(560px, calc(100svh - 112px), 860px);
  display: flex; align-items: flex-end;
  background: var(--navy);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; z-index: -2; }
.hero-frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(1,39,69,.8) 0%, rgba(1,39,69,.52) 36%, rgba(1,39,69,.05) 62%, rgba(1,39,69,0) 100%),
    linear-gradient(0deg, rgba(1,39,69,.42) 0%, rgba(1,39,69,0) 36%);
}
.hero-content { position: relative; padding-top: 120px; padding-bottom: clamp(36px, 6vw, 80px); color: #fff; }
.hero h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.6rem); line-height: 1.0; letter-spacing: -0.025em;
  max-width: 11ch; margin: 0 0 28px;
}
.hero h1 em { color: var(--cyan-light); }
.hero .lead { max-width: 33rem; font-size: clamp(1.125rem, 1.4vw, 1.3125rem); line-height: 1.6; color: rgba(255,255,255,.9); }
.hero .lead strong { color: #fff; font-weight: 600; display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 1rem; color: rgba(255,255,255,.88); }
.hero-proof svg { width: 20px; height: 20px; flex: none; color: var(--cyan-light); }

section.block { padding: clamp(80px, 10vw, 136px) 0; }
section.tint { background: var(--paper-deep); }

/* ---------- Forside: fagområder ---------- */
.help-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.help-intro h2 { margin: 18px 0 20px; }
.help-intro p { color: var(--ink-soft); max-width: 30rem; }
.help-intro figure { margin: 36px 0 0; }
.help-intro img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--radius); }
.help-intro figcaption { margin-top: 12px; font-size: .9375rem; color: var(--ink-mute); }

.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.area a {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: start;
  padding: 34px 0; text-decoration: none; border-bottom: 1px solid var(--line);
}
.area h3 { font-size: clamp(1.75rem, 2.4vw, 2.125rem); }
.area p { grid-column: 1; color: var(--ink-soft); max-width: 34rem; }
.area .tag { grid-column: 1; justify-self: start; margin-top: 6px; }
.area .arrow {
  grid-column: 2; grid-row: 1; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.area .arrow svg { width: 18px; height: 18px; }
.area a:hover .arrow { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateX(4px); }
.area a:hover h3 { color: var(--petrol); }

/* ---------- Steg ---------- */
.process-head { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; }
.process-head p { color: var(--ink-soft); }
.steps { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.steps.four { grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 22px; }
.steps .n { font-family: var(--serif); font-size: 1.25rem; color: var(--teal-ink); }
.steps h3 { margin: 4px 0 10px; }
.steps p { color: var(--ink-soft); }

/* ---------- Forside: om oss ---------- */
.about-grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-text h2 { margin-bottom: 24px; }
.about-text p + p { margin-top: 16px; }
.about-text p { color: var(--ink-soft); max-width: 34rem; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about-media figcaption { margin-top: 12px; font-size: .9375rem; color: var(--ink-mute); }

/* ---------- Spørsmål ---------- */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); }
.faq-grid .side p { margin-top: 20px; color: var(--ink-soft); max-width: 26rem; }
.faq-list { border-top: 1px solid #CDC6B8; }
details { border-bottom: 1px solid #CDC6B8; }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--serif); font-size: clamp(1.3125rem, 1.8vw, 1.5rem); line-height: 1.25;
}
summary::-webkit-details-marker { display: none; }
summary .pm { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1.5px solid #CDC6B8; position: relative; transition: background-color .3s; }
summary .pm::before, summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
details[open] summary .pm { background: var(--navy); border-color: var(--navy); }
details[open] summary .pm::before, details[open] summary .pm::after { background: #fff; }
details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
details .answer { padding: 0 62px 28px 0; color: var(--ink-soft); max-width: 40rem; }
details .answer p + p { margin-top: 12px; }

/* ---------- Kontaktpanel ---------- */
.visit { padding: clamp(64px, 8vw, 104px) clamp(8px, 1.4vw, 20px) 0; }
.visit.flush { padding-top: 0; }
.visit-panel {
  overflow: hidden; background: var(--navy); color: #fff; border-radius: var(--radius);
  display: grid; grid-template-columns: 7fr 5fr;
}
.visit-body { padding: clamp(36px, 6vw, 80px); }
.visit-body h2 { margin: 18px 0 20px; max-width: 14ch; }
.visit-body > p { color: rgba(255,255,255,.85); max-width: 30rem; }
.visit-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin: 44px 0 40px; padding: 0; list-style: none; }
.visit-facts small { display: block; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.66); font-weight: 600; margin-bottom: 6px; }
.visit-facts a, .visit-facts span { font-size: 1.1875rem; color: #fff; text-decoration: none; }
.visit-facts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit-body > p + .visit-actions { margin-top: 34px; }
.visit-media { position: relative; min-height: 420px; margin: 0; }
.visit-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit-panel.compact .visit-media { min-height: 340px; }

/* ---------- Undersider: sidetopp ---------- */
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 112px); }
.page-hero-grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.page-hero-grid.text-only { grid-template-columns: minmax(0, 54rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .9375rem; color: var(--ink-mute); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #A9A294; }
.crumbs a { color: var(--ink-mute); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.025em; }
.page-hero h1 em { color: var(--teal-ink); }
.page-hero .lead { margin-top: 22px; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); color: var(--ink-soft); max-width: 36rem; }
.page-hero .hero-actions { margin-top: 32px; }
.page-hero figure { margin: 0; }
.page-hero figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.jump a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.jump a:hover { border-color: var(--ink); background: var(--paper-light); }

/* ---------- Undersider: innhold ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split .side h2 + p { margin-top: 20px; color: var(--ink-soft); max-width: 26rem; }
.prose { max-width: 42rem; }
.prose > p { color: var(--ink-soft); }
.prose > * + * { margin-top: 18px; }
.prose h3 { margin-top: 40px; }
.prose h3:first-child { margin-top: 0; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.feature figure { margin: 0; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip figure { order: 2; }
.feature figure img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius); }
.feature .tag { margin-bottom: 18px; }
.feature h2 { margin-bottom: 20px; }
.feature .intro { color: var(--ink-soft); max-width: 38rem; }
.feature h3 { font-family: var(--sans); font-size: .875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 34px; }

.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%;
  background: var(--teal-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302515F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.note { margin-top: 30px; padding: 24px 26px; border-radius: 16px; background: var(--paper-deep); }
.tint .note { background: var(--paper-light); }
.note strong { display: block; font-weight: 600; margin-bottom: 6px; }
.note p { color: var(--ink-soft); }

.cards { list-style: none; margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper-light); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-soft); }
.card .tag { align-self: flex-start; margin-bottom: 18px; }
.card .more { margin-top: auto; padding-top: 22px; border-bottom: 0; align-self: flex-start; }
.card .big { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.2; color: var(--ink); text-decoration: none; margin: 4px 0 12px; overflow-wrap: anywhere; }
.card a.big:hover { color: var(--petrol); }
.card-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--teal-wash); color: var(--petrol); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 22px; height: 22px; }

.sources { margin-top: 28px; font-size: .9375rem; color: var(--ink-mute); }
.sources a { color: var(--teal-ink); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 4fr 3fr 3fr 2fr; gap: 40px; }
.footer-grid img { height: 84px; width: auto; }
.footer-grid h4 { margin: 0 0 14px; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid li, .footer-grid a { color: var(--ink-soft); font-size: 1rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-grid .claim { margin-top: 18px; color: var(--ink-soft); max-width: 22rem; font-size: 1rem; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9375rem; color: var(--ink-mute); }

/* ---------- Bevegelse ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-content > * { animation: rise 1.1s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content > * { animation: none; }
}

/* ---------- Responsivt ---------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .header-phone { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps.four { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header-cta > .btn { display: none; }
  .icon-btn { display: inline-flex; }
  .header-cta { gap: 8px; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-header.open .nav a { padding: 14px 0; font-size: 1.1875rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
  .help-grid, .about-grid, .faq-grid, .process-head, .split, .feature, .feature.flip, .page-hero-grid { grid-template-columns: 1fr; }
  .feature.flip figure { order: 0; }
  .help-intro img { aspect-ratio: 4 / 3; }
  .steps, .steps.four { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .visit-panel { grid-template-columns: 1fr; }
  .visit-media, .visit-panel.compact .visit-media { min-height: 0; aspect-ratio: 1 / 1; }
  .visit-media img { object-position: 50% 40%; }
  .page-hero figure { order: -1; }
  .page-hero figure img { aspect-ratio: 4 / 3; }
  /* Mobil: bildet øverst, teksten under på marineblått */
  .hero-frame { display: block; min-height: 0; background: var(--navy); }
  .hero-frame::before { display: none; }
  .hero-media { position: relative; inset: auto; z-index: 0; height: min(46svh, 440px); object-position: 50% 30%; }
  .hero-content {
    margin-top: -56px; padding-top: 56px;
    background: linear-gradient(180deg, rgba(1,39,69,0) 0, var(--navy) 56px);
  }
}
@media (max-width: 600px) {
  .header-inner { height: 76px; }
  .brand img { height: 56px; }
  [id] { scroll-margin-top: 90px; }
  .hero h1 { margin-bottom: 18px; font-size: 2.625rem; }
  .hero-actions { margin-top: 26px; }
  .hero-proof { margin-top: 18px; font-size: .9375rem; }
  .area a { padding: 28px 0; }
  .visit-facts { grid-template-columns: 1fr; }
  .hero-actions .btn, .visit-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  details .answer { padding-right: 0; }
}
