/* =========================================================
   Best-Bygg AS — designsystem
   Marineblå (#001f5b) og messing hentet rett fra logoen, satt mot kjølige
   gråtoner. Space Grotesk til overskrifter, IBM Plex Sans til brødtekst.
   ========================================================= */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212;
}

:root {
  /* Merkefargen fra logoen – skal ikke endres */
  --blue: #001f5b;
  --blue-900: #001238;
  --blue-700: #002b7a;
  --blue-500: #0b46b0;
  --blue-050: #eaf0fb;

  --brass-700: #7a6534;
  --brass-600: #967a37;
  --brass-500: #bd9847;
  --brass-400: #d7b466;
  --brass-050: #faf4e6;

  --ink: #0d1522;
  --ink-2: #465469;
  --ink-3: #748093;

  --bg: #ffffff;
  --bg-2: #f2f5fa;
  --bg-3: #e6ecf5;
  --line: #dbe2ee;
  --line-2: #c3ceE0;

  --container: 1240px;
  --gutter: 20px;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;

  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 92px;
  --logo-h: 60px;

  --shadow-sm: 0 1px 2px rgba(0, 18, 56, .06), 0 4px 12px rgba(0, 18, 56, .05);
  --shadow: 0 2px 6px rgba(0, 18, 56, .07), 0 16px 40px rgba(0, 18, 56, .10);
  --shadow-lg: 0 4px 12px rgba(0, 18, 56, .09), 0 32px 72px rgba(0, 18, 56, .18);
}

/* ---------- Grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--blue-500); text-underline-offset: 3px; }
a:hover { color: var(--brass-600); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--blue);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 7.5vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4.8vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 3px solid var(--brass-500); outline-offset: 3px; border-radius: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 840px; }
.section { padding-block: 68px; }
.section--tight { padding-block: 46px; }
.section--grey { background: var(--bg-2); }
.section--blue { background: var(--blue); color: rgba(255, 255, 255, .8); }
.section--blue h2, .section--blue h3 { color: #fff; }
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding-block: 112px; }
  .section--tight { padding-block: 68px; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--blue); color: #fff; padding: 14px 20px;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typografiske hjelpere ---------- */
.label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-600); margin: 0 0 18px;
}
.label::before {
  content: ""; width: 26px; height: 3px; background: var(--brass-500); flex: none;
}
.section--blue .label { color: var(--brass-400); }
.section--blue .label::before { background: var(--brass-400); }
.lead { font-size: 1.16rem; line-height: 1.6; max-width: 62ch; color: var(--ink-2); }
.section--blue .lead { color: rgba(255, 255, 255, .82); }
.section-head { max-width: 64ch; margin-bottom: 46px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .label { justify-content: center; }
.muted { color: var(--ink-3); }
.small { font-size: .92rem; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--display);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brass-500); color: var(--blue-900); }
.btn--primary:hover { background: var(--brass-400); color: var(--blue-900); box-shadow: var(--shadow-sm); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-700); color: #fff; }
.btn--outline { border-color: var(--line-2); color: var(--blue); background: transparent; }
.btn--outline:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn--onDark { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--onDark:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .87rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  color: var(--blue-500); text-decoration: none;
}
.textlink::after { content: "→"; transition: transform .18s ease; }
.textlink:hover { color: var(--brass-600); }
.textlink:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 120;
  background: var(--blue);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
body.is-scrolled .header { box-shadow: 0 4px 20px rgba(0, 18, 56, .28); }
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: height .25s cubic-bezier(.4, 0, .2, 1);
}
.brand { display: block; flex: none; line-height: 0; }
.brand img {
  height: var(--logo-h); width: auto;
  transition: height .25s cubic-bezier(.4, 0, .2, 1);
}
body.is-scrolled { --header-h: 66px; --logo-h: 44px; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: 10px 13px;
  font-family: var(--display);
  font-size: .92rem; font-weight: 500; color: rgba(255, 255, 255, .82); text-decoration: none;
  transition: color .18s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--brass-400); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__cta { display: none; }
@media (min-width: 1040px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger { display: none !important; }
}

.burger {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
}
.burger span { display: block; width: 18px; height: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobilenav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--blue-900);
  padding: 22px var(--gutter) 40px;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
  overflow-y: auto;
}
.mobilenav[hidden] { display: none; }
.mobilenav.is-open { opacity: 1; pointer-events: auto; }
.mobilenav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.mobilenav__top img { height: 48px; width: auto; }
.mobilenav__close {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-size: 1.5rem; line-height: 1;
}
.mobilenav__list { list-style: none; margin: 0 0 32px; padding: 0; }
.mobilenav__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 0;
  font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: #fff;
  text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.mobilenav__list a::after { content: "→"; color: var(--brass-400); font-size: 1rem; }
.mobilenav__foot { margin-top: auto; color: rgba(255, 255, 255, .74); font-size: .95rem; }
.mobilenav__foot a { color: #fff; }
.mobilenav__foot dt {
  font-family: var(--display); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass-400); margin-bottom: 4px;
}
.mobilenav__foot dd { margin: 0 0 16px; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--blue-900); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 18, 56, .72) 0%, rgba(0, 18, 56, .5) 40%, rgba(0, 18, 56, .95) 100%),
    linear-gradient(90deg, rgba(0, 31, 91, .82) 0%, rgba(0, 31, 91, .12) 70%);
}
.hero__inner { position: relative; padding-block: 76px 40px; }
.hero__title { color: #fff; max-width: 14ch; margin-bottom: 22px; }
.hero__title span { color: var(--brass-400); }
.hero__text { font-size: 1.14rem; color: rgba(255, 255, 255, .88); max-width: 54ch; margin-bottom: 32px; }
.hero .label { color: var(--brass-400); }
.hero .label::before { background: var(--brass-400); }

.hero__badges {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin-top: 56px; background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .2);
}
.hero__badge { background: rgba(0, 18, 56, .62); padding: 20px 20px; }
.hero__badge b {
  display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  color: #fff; line-height: 1.1;
}
.hero__badge span {
  display: block; margin-top: 4px; font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .68);
}
@media (min-width: 768px) {
  .hero__inner { padding-block: 120px 60px; }
  .hero__badges { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) { .hero__inner { padding-block: 156px 72px; } }

/* ---------- Intro ---------- */
.intro { display: grid; gap: 32px; }
.intro__figure { position: relative; }
.intro__figure img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r);
}
.intro__figure::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 120px; height: 120px;
  border-left: 4px solid var(--brass-500); border-bottom: 4px solid var(--brass-500);
  border-radius: 0 0 0 var(--r);
}
@media (min-width: 900px) {
  .intro { grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
}

/* ---------- Tjenester ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service {
  position: relative; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px 24px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brass-500); transform: scaleY(0); transform-origin: top;
  transition: transform .25s ease;
}
.service:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.service:hover::before { transform: scaleY(1); }
.service__icon { color: var(--blue-500); margin-bottom: 14px; }
.service h3 { font-size: 1.05rem; margin-bottom: 4px; }
.service p { font-size: .88rem; color: var(--ink-3); margin: 0; }

.services-media { margin-top: 42px; display: grid; gap: 16px; }
.services-media img {
  /* height: 100% gjør at det smale bildet strekker seg like langt ned som det brede */
  width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r);
}
@media (min-width: 900px) { .services-media { grid-template-columns: 2fr 1fr; } }

/* ---------- Referanser ---------- */
.projects { display: grid; gap: 22px; }
@media (min-width: 700px) { .projects { grid-template-columns: repeat(2, 1fr); } }
.project {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease;
}
.project:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.project__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-3); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project__img img { transform: scale(1.04); }
.project__body { padding: 24px 24px 28px; }
.project__tag {
  display: inline-block; margin-bottom: 12px;
  font-family: var(--display); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-700); background: var(--brass-050);
  padding: 5px 10px; border-radius: var(--r-sm);
}
.project h3 { margin-bottom: 10px; }
.project p { font-size: .96rem; margin: 0; }
.project p + p { margin-top: .85em; }
.project--wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .project--wide { display: grid; grid-template-columns: 1.15fr 1fr; }
  /* Bildet legges absolutt, ellers styrer bildehøyden hele kortet – et
     portrettbilde ville da gjort kortet dobbelt så høyt som teksten. */
  .project--wide .project__img { aspect-ratio: auto; height: 100%; min-height: 360px; position: relative; }
  .project--wide .project__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .project--wide .project__body { padding: 40px 44px; align-self: center; }
  .project--wide.project--reverse { grid-template-columns: 1fr 1.15fr; }
  .project--wide.project--reverse .project__img { order: 2; }
}

/* ---------- Om oss ---------- */
.about { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about__media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.about__media img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.about__media img:first-child { margin-top: 28px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 30px 0; }
.stat { background: var(--bg); padding: 20px 16px; }
.section--grey .stat { background: var(--bg-2); }
.stat b {
  display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 700;
  color: var(--blue); line-height: 1;
}
.stat span {
  display: block; margin-top: 6px; font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}

.approvals {
  border-top: 1px solid var(--line);
  margin-top: 44px; padding-top: 34px;
}
.approvals__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 26px 44px; margin-top: 22px;
}
.approvals__row img { height: 62px; width: auto; object-fit: contain; }
.approvals__row img.startbank { height: 34px; }

.checklist { list-style: none; margin: 18px 0 0; padding: 0; }
.checklist li { position: relative; padding: 9px 0 9px 30px; font-size: .97rem; color: var(--ink); }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 13px; height: 7px; border-left: 2px solid var(--brass-500); border-bottom: 2px solid var(--brass-500);
  transform: rotate(-45deg);
}
.section--blue .checklist li { color: rgba(255, 255, 255, .88); }
.section--blue .checklist li + li { border-top-color: rgba(255, 255, 255, .16); }

/* ---------- Bærekraft ---------- */
.goals { display: grid; gap: 20px; }
@media (min-width: 800px) { .goals { grid-template-columns: repeat(3, 1fr); } }
.goal {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r); padding: 24px 24px 28px;
}
.goal img { width: 84px; height: 84px; border-radius: var(--r-sm); margin-bottom: 18px; }
.goal h3 { font-size: 1.08rem; margin-bottom: 8px; }
.goal p { font-size: .93rem; margin: 0; color: rgba(255, 255, 255, .78); }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .contact { grid-template-columns: 1fr 1fr; gap: 64px; } }
.people { display: grid; gap: 16px; }
@media (min-width: 560px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px;
}
.section--grey .person { background: #fff; }
.person__role {
  font-family: var(--display); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brass-700); margin-bottom: 8px;
}
.person__name { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.person__links { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.person__links a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.person__links a:hover { color: var(--blue-500); text-decoration: underline; }

.facts { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact {
  border-left: 3px solid var(--blue); padding: 4px 0 4px 16px;
}
.fact dt {
  font-family: var(--display); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.fact dd { margin: 0; font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.fact dd a { color: var(--ink); }

.invoice {
  background: var(--blue-050); border-radius: var(--r); padding: 26px 24px; margin-top: 30px;
}
.invoice h3 { font-size: 1.02rem; margin-bottom: 12px; }
.invoice ul { margin: 0; padding-left: 20px; font-size: .94rem; }
.invoice li { margin-bottom: 6px; }

/* kart med samtykke */
.map {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--bg-3); min-height: 300px; margin-top: 24px;
}
.map iframe { display: block; width: 100%; height: 400px; border: 0; }
.map__placeholder {
  min-height: 300px; padding: 40px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.map__placeholder p { max-width: 44ch; font-size: .93rem; }

/* ---------- CTA-bånd ---------- */
.cta { background: var(--blue); color: rgba(255, 255, 255, .84); }
.cta__inner {
  padding-block: 56px; display: grid; gap: 26px; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .8); max-width: 50ch; }
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: 1.3fr auto; gap: 48px; padding-block: 80px; }
}

/* ---------- Bildebånd ---------- */
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.strip img { width: 100%; height: 180px; object-fit: cover; }
@media (min-width: 900px) {
  .strip { grid-template-columns: repeat(4, 1fr); }
  .strip img { height: 250px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--blue-900); color: rgba(255, 255, 255, .7); font-size: .95rem; }
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 34px; padding-block: 52px 38px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-block: 72px 46px; } }
.footer__logo { height: 64px; width: auto; margin-bottom: 20px; }
.footer h3 {
  color: #fff; font-family: var(--display); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; overflow-wrap: anywhere; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-block: 18px 28px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between;
  font-size: .86rem; color: rgba(255, 255, 255, .55);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.linkbutton { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Innholdsside ---------- */
.pagehead { background: var(--blue); color: rgba(255, 255, 255, .82); }
.pagehead__inner { padding-block: 54px 58px; }
.pagehead h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.pagehead p { color: rgba(255, 255, 255, .8); max-width: 56ch; }
.breadcrumbs { font-size: .84rem; color: rgba(255, 255, 255, .6); margin-bottom: 16px; }
.breadcrumbs a { color: rgba(255, 255, 255, .78); text-decoration: none; }
@media (min-width: 768px) { .pagehead__inner { padding-block: 76px 84px; } }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 3.2vw, 1.8rem); }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.table-wrap { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .93rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--bg-2); color: var(--blue); font-weight: 600; }

/* ---------- Cookie-banner ---------- */
.cookie {
  position: fixed; z-index: 180; left: 12px; right: 12px; bottom: 12px;
  background: #fff; border: 1px solid var(--line-2); border-top: 4px solid var(--brass-500);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 24px 22px; max-width: 520px; display: none;
}
.cookie.is-visible { display: block; animation: cookie-in .25s ease both; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cookie h2 { font-size: 1.08rem; margin-bottom: 8px; }
.cookie p { font-size: .92rem; margin-bottom: 16px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__actions .btn { flex: 1 1 auto; }
.cookie__more { margin: 14px 0 0; font-size: .85rem; }
.cookie__more a { color: var(--ink-3); }
@media (min-width: 560px) {
  .cookie { left: 24px; right: auto; bottom: 24px; padding: 26px 26px; }
  .cookie__actions .btn { flex: 0 0 auto; }
}

/* ---------- Bevegelse ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .cookie.is-visible { animation: none; }
  .service:hover, .project:hover { transform: none; }
  .project__img img, .header__inner, .brand img, .mobilenav { transition: none; }
}

/* ---------- Små skjermer ---------- */
@media (max-width: 380px) {
  :root { --gutter: 16px; --logo-h: 52px; --header-h: 80px; }
  body { font-size: 16px; }
  body.is-scrolled { --header-h: 62px; --logo-h: 40px; }
}
