/* =========================================================
   Hamar Tak — stil
   Solid og ryddig håndverkerpreg: varm bakgrunn, mørke flater,
   terrakotta fra logoen som signalfarge.

   Terrakotta: #D05848  (merkefarge fra logoen)
   Blekk:      #141618  (tekst, mørke flater)
   Papir:      #F7F4EF  (sidebakgrunn)
   Sand:       #EDE7DD  (alternativ seksjon)
   ========================================================= */

:root {
  --terra: #d05848;
  --terra-hover: #bd4a3b;
  --terra-text: #a33b2a;
  --terra-soft: #f9e5e0;
  --terra-deep: #8a2f1f;

  --ink: #141618;
  --slate: #1f2427;
  --slate-2: #2a3034;

  --paper: #f7f4ef;
  --sand: #ede7dd;
  --white: #ffffff;

  --text: #1b1d1f;
  --muted: #5d5a55;
  --muted-dark: #b9b3ab;
  --line: #e2dcd2;
  --line-dark: rgba(255, 255, 255, 0.14);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(20, 22, 24, 0.05), 0 10px 28px rgba(20, 22, 24, 0.08);
  --shadow-lg: 0 2px 6px rgba(20, 22, 24, 0.06), 0 26px 56px rgba(20, 22, 24, 0.16);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }   /* height: auto, så width/height-attributtene ikke låser høyden */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white);
  font-weight: 700; padding: 10px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.6vw, 64px); }
h2 { font-size: clamp(30px, 3.8vw, 44px); }
h3 { font-size: 22px; letter-spacing: -0.012em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }

.i { width: 1.15em; height: 1.15em; flex: none; }
.nw { white-space: nowrap; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-text);
  margin-bottom: 16px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--terra); border-radius: 2px; }
.bg-dark .kicker, .hero .kicker { color: #f3b7ab; }
.bg-terra .kicker { color: var(--white); }
.bg-terra .kicker::before { background: var(--white); }

.lede { font-size: 19px; color: var(--muted); max-width: 600px; margin-top: 18px; text-wrap: pretty; }
.bg-dark .lede { color: var(--muted-dark); }
.bg-terra .lede { color: #fbe9e4; }

.hl { color: var(--terra); }

.text-link { color: var(--terra-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--ink); }
.bg-dark .text-link { color: #f3b7ab; }
.bg-dark .text-link:hover { color: var(--white); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px; line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--terra); color: var(--white); border-color: var(--terra); box-shadow: 0 6px 18px rgba(208, 88, 72, 0.28); }
.btn-primary:hover { background: var(--terra-hover); border-color: var(--terra-hover); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--slate-2); border-color: var(--slate-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover { background: var(--paper); }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn[disabled] { opacity: 0.65; cursor: default; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Toppstripe og meny ---------- */
.topbar { background: var(--ink); color: #d9d4cc; font-size: 14px; }
.topbar-inner { display: flex; align-items: center; gap: 26px; min-height: 40px; }
.topbar-inner > * { display: inline-flex; align-items: center; gap: 8px; }
.topbar .lead-item { margin-right: auto; color: var(--white); font-weight: 600; }
.topbar a:hover { color: var(--white); }
.topbar .i { color: var(--terra); width: 1.05em; height: 1.05em; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 80px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand svg { width: 52px; height: 34px; }
.brand span {
  font-family: var(--font-display); font-weight: 900; font-size: 24px;
  letter-spacing: 0.02em; color: var(--ink); line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: block; padding: 10px 13px; border-radius: 8px;
  font-weight: 600; font-size: 15.5px; color: var(--text);
}
.nav-links a:hover { background: var(--sand); }
.nav-links a[aria-current="page"] { color: var(--terra-text); }
.nav-cta { padding: 12px 18px; font-size: 15px; }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: var(--ink); color: var(--white); border: 0;
  padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--white);
  min-height: min(760px, 88vh);
  display: flex; align-items: center;
}
.hero.hero--sub { min-height: 460px; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 16, 18, 0.9) 0%, rgba(14, 16, 18, 0.72) 42%, rgba(14, 16, 18, 0.28) 75%, rgba(14, 16, 18, 0.12) 100%),
    linear-gradient(0deg, rgba(14, 16, 18, 0.55) 0%, rgba(14, 16, 18, 0) 40%);
}
.hero .container { width: 100%; padding-top: 88px; padding-bottom: 110px; }
.hero--sub .container { padding-top: 64px; padding-bottom: 64px; }
.hero-content { max-width: 680px; }
.hero h1 { color: var(--white); }
.hero .lede { color: #e7e2da; max-width: 560px; font-size: 20px; }
.hero--sub .lede { font-size: 19px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; font-weight: 600; font-size: 15.5px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero-facts .i { color: #f3b7ab; }
.hero .btn-outline-light { border-color: rgba(255, 255, 255, 0.55); }
.hero-caption {
  position: absolute; right: 24px; bottom: 20px; z-index: 1;
  font-size: 13px; color: rgba(255, 255, 255, 0.78);
  background: rgba(14, 16, 18, 0.45); padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
/* Forsiden: bilde av takstein som legges, med lettere toning enn undersidene */
.hero--home .hero-media img { object-position: center 55%; }
.hero-media img.pos-top { object-position: center 15%; }
.hero--home::after {
  background:
    linear-gradient(90deg, rgba(14, 16, 18, 0.82) 0%, rgba(14, 16, 18, 0.6) 40%, rgba(14, 16, 18, 0.22) 70%, rgba(14, 16, 18, 0.06) 100%),
    linear-gradient(0deg, rgba(14, 16, 18, 0.5) 0%, rgba(14, 16, 18, 0) 38%);
}

/* Løfteskilt som ligger over bunnen av heroen */
.usp-band { position: relative; z-index: 2; margin-top: -58px; }
.usp-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.usp-card > div { padding: 24px 26px; display: flex; gap: 14px; align-items: flex-start; }
.usp-card > div + div { border-left: 1px solid var(--line); }
.usp-card strong { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.usp-card p { color: var(--muted); font-size: 14.5px; margin-top: 4px; line-height: 1.45; }

.icon-bubble {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--terra-soft); color: var(--terra-text);
}
.icon-bubble .i { width: 22px; height: 22px; }
.icon-bubble.lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-bubble.lg .i { width: 28px; height: 28px; }
.icon-bubble.dark { background: var(--ink); color: var(--white); }
.icon-bubble.terra { background: var(--terra); color: var(--white); }
.icon-bubble.light { background: rgba(255, 255, 255, 0.1); color: #f3b7ab; }

/* ---------- Seksjoner ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--slate); color: var(--white); }
.bg-terra { background: var(--terra); color: var(--white); }
.bg-dark h2, .bg-dark h3, .bg-terra h2, .bg-terra h3 { color: var(--white); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: 48px;
}
.section-head .lede { margin-top: 14px; }
.section-head > .btn { flex: none; margin-bottom: 6px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Tjenestekort ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.service-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .photo img { transform: scale(1.04); }
.service-card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-card h3 { font-size: 24px; }
.service-card p { color: var(--muted); font-size: 16px; }
.tag-pill {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--terra-soft); color: var(--terra-text);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px;
  font-weight: 700; color: var(--terra-text);
}
.card-link .i { transition: transform 0.2s; }
.service-card:hover .card-link .i { transform: translateX(4px); }
.stretched::after { content: ""; position: absolute; inset: 0; }

/* Bredt kort for taksjekk */
.feature-box {
  margin-top: 26px;
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px;
  background: var(--ink); color: var(--white);
  border-radius: var(--radius); padding: 44px 48px;
  position: relative; overflow: hidden;
}
.feature-box::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(208, 88, 72, 0.45), rgba(208, 88, 72, 0) 70%);
}
.feature-box h3 { font-size: 30px; color: var(--white); }
.feature-box p { color: var(--muted-dark); margin-top: 12px; font-size: 17px; max-width: 540px; }
.feature-box .partner { display: flex; align-items: center; gap: 14px; justify-self: end; text-align: right; position: relative; }
.feature-box .partner small { display: block; color: var(--muted-dark); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.feature-box .partner strong { font-family: var(--font-display); font-size: 22px; }

/* ---------- Slik foregår det ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: steg; }
.step {
  position: relative; counter-increment: steg;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 28px;
}
.step::before {
  content: "0" counter(steg);
  display: block; font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1;
  color: var(--terra); letter-spacing: -0.04em; margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Hvorfor oss ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 30px 28px; }
.why-card h3 { margin: 18px 0 8px; font-size: 21px; }
.why-card p { color: var(--muted-dark); font-size: 15.5px; }

/* ---------- Før og etter ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.compare img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.compare figcaption {
  position: absolute; left: 18px; top: 18px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(20, 22, 24, 0.82); color: var(--white);
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.compare figure.after figcaption { background: var(--terra); }
.compare-note { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* ---------- Delt innhold (tekst + bilde) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.split.reverse > .photo { order: -1; }
.split p + p { margin-top: 14px; }
.split .lede { margin-top: 14px; }

.checklist { display: grid; gap: 12px; margin-top: 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist .i { color: var(--terra); margin-top: 3px; width: 1.25em; height: 1.25em; }
.bg-dark .checklist .i { color: #f3b7ab; }

/* ---------- Område ---------- */
.area-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.chip.accent { background: var(--terra); border-color: var(--terra); color: var(--white); }

/* ---------- Spørsmål og svar ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--terra); transition: transform 0.2s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details > div { padding: 0 22px 22px; color: var(--muted); }
.faq details > div p + p { margin-top: 10px; }

/* ---------- Oppfordring ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 720px; margin: 0 auto; }
.cta-band .lede { margin: 16px auto 0; }
.cta-band .btn-row { justify-content: center; }
.bg-terra .btn-white { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14); }

/* ---------- Innholdssider ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 48px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; margin-bottom: 8px; }
.prose p { margin-bottom: 14px; }
.prose p.lede { margin-bottom: 22px; }
.prose .checklist { margin: 18px 0 26px; }
.prose figure { margin: 30px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prose figure img { width: 100%; }
.prose figcaption { padding: 10px 16px; background: var(--white); color: var(--muted); font-size: 14px; }
.prose .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0 30px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.info-card h3 { font-size: 18px; margin: 12px 0 6px; }
.info-card p { color: var(--muted); font-size: 15px; margin: 0; }

.aside-card {
  position: sticky; top: 100px;
  background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 32px 30px;
}
.aside-card h3 { font-size: 24px; color: var(--white); }
.aside-card p { color: var(--muted-dark); margin-top: 10px; font-size: 15.5px; }
.aside-card .contact-list { margin-top: 22px; display: grid; gap: 12px; }
.aside-card .contact-list a { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.aside-card .contact-list a:hover { color: #f3b7ab; }
.aside-card .contact-list .i { color: var(--terra); }
.aside-card .btn { width: 100%; margin-top: 22px; }
.aside-card .note { font-size: 13.5px; margin-top: 14px; color: var(--muted-dark); }
.aside-links { margin-top: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.aside-links h4 { margin-bottom: 12px; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; }
.aside-links a:hover { color: var(--terra-text); }
.aside-links a .i { color: var(--terra); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-top: 26px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.contact-card small { display: block; color: var(--muted); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.contact-card strong { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; }
a.contact-card:hover { border-color: var(--terra); }
.contact-steps { margin-top: 32px; display: grid; gap: 12px; }
.contact-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.contact-steps .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

/* E-postkortet på kontaktsiden (bygger på .aside-card) */
.mail-card { padding: 40px 38px; box-shadow: var(--shadow-lg); }
.mail-card h2 { font-size: 30px; color: var(--white); margin-top: 20px; }
.mail-card > p { color: var(--muted-dark); margin-top: 10px; font-size: 16.5px; }
.mail-card .checklist { margin-top: 18px; gap: 10px; }
.mail-card .checklist li { color: #ece7df; font-size: 16px; }
.mail-card .btn { white-space: normal; text-align: center; }
.mail-card .note a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Juridisk tekst ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 26px; margin-top: 40px; margin-bottom: 10px; }
.legal p, .legal li { margin-bottom: 12px; color: var(--text); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--terra-text); text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { margin-top: 36px; color: var(--muted); font-size: 14px; }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; text-align: center; }
.notfound .lede { margin: 18px auto 0; }
.notfound .btn-row { justify-content: center; }

/* ---------- Bunntekst ---------- */
.site-footer { background: var(--ink); color: #d9d4cc; }
.footer-cta {
  padding: 72px 0 56px; border-bottom: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-cta h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); max-width: 560px; }
.footer-cta .btn-row { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 44px; }
.footer-brand .brand { margin: 0 0 16px; }
.footer-brand .brand span { color: var(--white); }
.footer-brand p { max-width: 360px; color: var(--muted-dark); font-size: 15.5px; }
.site-footer h3 { color: var(--white); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer .footer-grid a, .site-footer .footer-grid p { display: block; margin-bottom: 9px; color: #d9d4cc; font-size: 15.5px; }
.site-footer .footer-grid a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding: 22px 0 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 14px; color: var(--muted-dark);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Fast ringe-stripe på mobil ---------- */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(20, 22, 24, 0.08);
}
.mobile-bar .btn { flex: 1; padding: 14px 10px; font-size: 15px; }

/* ---------- Innfading ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Skjermbredder ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 10px 10px; font-size: 15px; }
  .usp-card > div { padding: 20px 18px; }
}

@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .nav { min-height: 72px; gap: 14px; }
  .nav-links {
    display: none; position: absolute; left: -28px; right: -28px; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    box-shadow: 0 20px 40px rgba(20, 22, 24, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 17px; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: block; margin-top: 8px; }
  .nav-cta-mobile a { background: var(--terra); color: var(--white); text-align: center; }
  .nav-toggle { display: inline-flex; }
  .hide-md { display: none !important; }

  .usp-card { grid-template-columns: 1fr 1fr; }
  .usp-card > div:nth-child(2n + 1) { border-left: 0; }
  .usp-card > div:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > .photo { order: 0; }
  .area-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-box { grid-template-columns: 1fr; padding: 36px 32px; }
  .feature-box .partner { justify-self: start; text-align: left; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .aside-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .container { padding: 0 20px; }
  .nav-links { left: -20px; right: -20px; }
  .topbar-inner { gap: 16px; font-size: 13px; justify-content: center; }
  .hide-sm { display: none !important; }
  .brand svg { width: 44px; height: 29px; }
  .brand span { font-size: 20px; }
  .hero { min-height: 0; }
  .hero .container { padding-top: 64px; padding-bottom: 96px; }
  .hero--sub .container { padding-top: 48px; padding-bottom: 48px; }
  .hero .lede { font-size: 18px; }
  .hero-caption { display: none; }
  .btn-row { margin-top: 24px; }
  .btn-row .btn { width: 100%; }
  .usp-band { margin-top: -48px; }
  .usp-card { grid-template-columns: 1fr; }
  .usp-card > div { border-left: 0; }
  .usp-card > div + div { border-top: 1px solid var(--line); }
  .card-grid, .steps, .compare { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
  .prose .info-grid { grid-template-columns: 1fr; }
  .mail-card { padding: 30px 22px; }
  .mail-card h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 32px; }
  .footer-cta { padding: 56px 0 44px; }
  .mobile-bar { display: flex; }
}
