/* Harstad Renhold – stilark v2
   Farger er hentet fra den offisielle logoen (assets/brand/).
   Montserrat (SIL OFL 1.1) er lagret lokalt i assets/fonts/. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/montserrat-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Merkevare */
  --navy: #0b2f5c;
  --navy-deep: #071f3e;
  --navy-raised: #12406f;
  --brand-ink: #00296d;
  --blue: #0a6fc2;
  --cyan: #03c1be;
  --green: #18df9e;
  --green-ink: #08775a;
  --brand-wave: linear-gradient(90deg, #0060b8 0%, #03c1be 55%, #18df9e 100%);

  /* Nøytrale */
  --bg: #f4f7fb;
  --white: #ffffff;
  --ink: #13233a;
  --muted: #4d5d72;
  --line: #dce4ee;
  --line-strong: #c3cfdd;
  --error: #b42318;
  --error-bg: #fef3f2;

  /* Typografi */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Form */
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 20px;
  --shadow-card: 0 1px 2px rgba(7, 31, 62, .06), 0 10px 30px rgba(7, 31, 62, .10);
  --header-h: 76px;
  --focus: #0a6fc2;
  --gutter: 24px;
}

/* ---------- Grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  color: var(--brand-ink);
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* Headeren får midlertidig programmatisk fokus fra «Til toppen» – ingen ramme. */
.site-header[tabindex="-1"]:focus { outline: none; }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--radius-s);
  background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Mørke flater får lys fokusring */
.hero, .page-hero, .cta-band, .site-footer, .contact-direct { --focus: var(--green); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 10px;
  font-family: var(--font-display); font-size: .97rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.audience-icon svg, .service-icon svg, .why-icon svg, .check-list svg, .contact-item svg, .header-phone svg, .hero-call svg { flex-shrink: 0; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--brand-ink); color: var(--white); }
.btn-accent { background: var(--green); color: var(--navy-deep); }
.btn-accent:hover { background: #4be8b3; color: var(--navy-deep); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }
.btn-small { min-height: 44px; padding: 9px 18px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(10px); }
}
.header-bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: auto; height: 48px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; line-height: 1;
  letter-spacing: .02em; text-transform: uppercase; color: var(--brand-ink); white-space: nowrap;
}
.brand-tagline { font-size: .76rem; line-height: 1.2; color: var(--muted); white-space: nowrap; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  color: var(--ink); text-decoration: none; border-radius: var(--radius-s);
}
.main-nav a:hover { color: var(--brand-ink); background: var(--bg); }
.main-nav a[aria-current="page"] { color: var(--brand-ink); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px;
  border-radius: 2px; background: var(--brand-wave);
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--brand-ink); text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--blue); }
.header-phone:hover { color: var(--blue); }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white);
  color: var(--brand-ink); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 24px rgba(7, 31, 62, .08); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; padding: 8px 0; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 52px;
  font-family: var(--font-display); font-weight: 650; font-size: 1.02rem;
  color: var(--ink); text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--brand-ink); box-shadow: inset 4px 0 0 var(--cyan); padding-left: 14px; }
.mobile-nav-actions { display: grid; gap: 10px; padding: 4px 0 20px; }
.mobile-nav-actions .btn { width: 100%; }
.btn-phone-outline { border-color: var(--line-strong); color: var(--brand-ink); }
.btn-phone-outline:hover { border-color: var(--brand-ink); color: var(--brand-ink); }

/* ---------- Hero (forside) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 104px);
}
.hero-wave {
  position: absolute; z-index: -1; right: -6%; bottom: -2px;
  width: min(1100px, 92%); height: auto; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: .45em; }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 34rem; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
/* Forsiden: luft mellom H1 og CTA holder heroens høyde og knappenes plassering (negativ plass, ikke en tom tekstblokk). */
.hero-copy { display: flex; flex-direction: column; row-gap: clamp(calc(3.456rem + 32px), calc(5.12vw + 32px), calc(4rem + 32px)); }
.hero-call {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-family: var(--font-display); font-weight: 700; color: var(--white); text-decoration: none;
}
.hero-call svg { width: 20px; height: 20px; color: var(--green); }
.hero-call:hover { color: var(--green); }
.hero-call span { border-bottom: 1px solid rgba(255, 255, 255, .4); }

/* Fotovariant: nordlys over Harstad (CC BY-SA 4.0, se assets/images/hero/KREDITERING.md).
   Fjern klassen .hero--photo og <picture>/.hero-photo-credit i index.html for å gå tilbake til ensfarget marine. */
.hero--photo { background: var(--navy-deep); padding-bottom: clamp(64px, 9vw, 128px); }
.hero-photo { position: absolute; inset: 0; z-index: -3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 31, 62, .74) 0%, rgba(7, 31, 62, .52) 38%, rgba(11, 47, 92, .12) 66%, rgba(11, 47, 92, 0) 100%),
    linear-gradient(180deg, rgba(7, 31, 62, .1) 0%, rgba(7, 31, 62, 0) 22%, rgba(7, 31, 62, 0) 76%, rgba(7, 31, 62, .4) 100%);
}
.hero--photo .hero-wave { opacity: .4; }
.hero--photo .hero-copy { text-shadow: 0 1px 12px rgba(2, 14, 32, .55); }
.hero--photo .hero-copy .btn { text-shadow: none; }
/* Kort, diskret fotokreditering – felles for alle fotoheroer (forside, Privat, Bedrift, Kontakt).
   Plassert i nedre høyre hjørne av selve hero-seksjonen (ikke containeren), 10px fra kantene.
   Hero-seksjonene har bunnpadding som gir plass, så den overlapper ikke innholdet.
   Lenker til full kreditering på /bildekreditering/. */
.hero-photo-credit {
  position: absolute; right: 10px; bottom: 10px; z-index: 1; margin: 0;
  max-width: calc(100% - 20px); white-space: nowrap;
  font-size: .75rem; line-height: 1.4;
  text-shadow: 0 1px 3px rgba(2, 14, 32, .9);
}
.hero-photo-credit a {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 2px;
  color: rgba(255, 255, 255, .82); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px;
}
.hero-photo-credit a:hover { color: var(--green); text-decoration-color: currentColor; }

/* Valg: privat / bedrift */
.audience { display: grid; gap: 16px; }
.audience-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start;
  padding: 26px 26px 26px 24px;
  background: var(--white); color: var(--ink); text-decoration: none;
  border-radius: var(--radius-l); box-shadow: 0 18px 40px rgba(2, 14, 32, .28);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.audience-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.audience-private::before { background: linear-gradient(180deg, #03c1be, #18df9e); }
.audience-business::before { background: linear-gradient(180deg, #0060b8, #03a3d8); }
.audience-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 24px 48px rgba(2, 14, 32, .34); }
.audience-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; }
.audience-icon svg { width: 28px; height: 28px; }
.audience-private .audience-icon { background: #e3f8f1; color: var(--green-ink); }
.audience-business .audience-icon { background: #e4eefa; color: var(--blue); }
.audience-card h2 { font-size: 1.45rem; margin: 2px 0 6px; }
.audience-card p { color: var(--muted); font-size: 1rem; margin: 0 0 12px; }
.audience-link { font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.audience-private .audience-link { color: var(--green-ink); }
.audience-business .audience-link { color: var(--blue); }
.audience-arrow {
  display: grid; place-items: center; width: 40px; height: 40px; margin-top: 6px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--brand-ink);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.audience-arrow svg { width: 18px; height: 18px; }
.audience-card:hover .audience-arrow { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Frostet glass over fotobakgrunnen. Uten backdrop-filter faller kortene tilbake til nesten hvite. */
.hero--photo .audience-card {
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 10px 30px rgba(2, 14, 32, .22), inset 0 1px 0 rgba(255, 255, 255, .7);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero--photo .audience-card {
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
  }
  .hero--photo .audience-card:hover { background: rgba(255, 255, 255, .94); }
}
.hero--photo .audience-card:hover { box-shadow: 0 16px 38px rgba(2, 14, 32, .3), inset 0 1px 0 rgba(255, 255, 255, .7); }
.hero--photo .audience-card p { color: #3c4b5f; }
.hero--photo .audience-private .audience-icon { background: rgba(227, 248, 241, .85); }
.hero--photo .audience-business .audience-icon { background: rgba(228, 238, 250, .85); }
.hero--photo .audience-private .audience-link { color: #066a50; }
.hero--photo .audience-business .audience-link { color: #0a62ac; }
.hero--photo .audience-arrow { border-color: rgba(19, 35, 58, .16); }

/* Variant til vurdering: mer gjennomsiktige kort. Fjern klassen audience--glass-light i index.html for å gå tilbake.
   Tekstfargene er mørknet litt for å holde WCAG AA-kontrast på den mørkere glassflaten. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero--photo .audience--glass-light .audience-card {
    background: rgba(255, 255, 255, .74);
    border-color: rgba(255, 255, 255, .45);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    backdrop-filter: blur(22px) saturate(1.3);
  }
  .hero--photo .audience--glass-light .audience-card:hover { background: rgba(255, 255, 255, .86); }
  .hero--photo .audience--glass-light .audience-card p { color: #2a3647; }
  .hero--photo .audience--glass-light .audience-private .audience-link { color: #04533e; }
  .hero--photo .audience--glass-light .audience-business .audience-link { color: #074d88; }
  .hero--photo .audience--glass-light .audience-private .audience-icon { background: rgba(227, 248, 241, .7); }
  .hero--photo .audience--glass-light .audience-business .audience-icon { background: rgba(228, 238, 250, .7); }
}

/* ---------- Seksjoner ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-soft { background: var(--bg); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 34rem; }
.section-head-single { grid-template-columns: minmax(0, 1fr); max-width: 44rem; }

/* Tjenesteoversikt (forside) */
.service-index {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
}
.service-index li { border-bottom: 1px solid var(--line); }
.service-index li:nth-child(odd) { border-right: 1px solid var(--line); }
.service-index li:nth-last-child(-n+2) { border-bottom: 0; }
.service-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  height: 100%; padding: 26px 28px; color: var(--ink); text-decoration: none;
  transition: background-color .18s ease;
}
.service-row:hover { background: #f7fafd; color: var(--ink); }
.service-row h3 { margin: 0 0 4px; font-size: 1.12rem; }
.service-row p { margin: 0; color: var(--muted); font-size: .97rem; }
.service-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: #e8f1fb; color: var(--blue);
}
.service-icon svg { width: 26px; height: 26px; }
.service-row .chevron { width: 20px; height: 20px; color: var(--line-strong); transition: color .18s ease, transform .18s ease; }
.service-row:hover .chevron { color: var(--blue); transform: translateX(3px); }
.section-foot { margin: 24px 0 0; color: var(--muted); }

/* Hvorfor oss */
.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.why-intro p { color: var(--muted); font-size: 1.08rem; max-width: 32rem; }

.why-list { list-style: none; display: grid; gap: 4px; }
.why-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.why-list li:first-child { padding-top: 6px; }
.why-list li:last-child { border-bottom: 0; }
.why-list h3 { margin: 0 0 6px; }
.why-list p { margin: 0; color: var(--muted); }
.why-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e3f8f1; color: var(--green-ink); }
.why-icon svg { width: 22px; height: 22px; }

/* Slik fungerer det */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 23px; left: 24px; right: calc(33.333% - 24px); height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--line-strong));
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); position: relative; z-index: 1;
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 50%; background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 0 0 6px var(--bg);
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); max-width: 22rem; }

/* CTA-bånd */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--white); padding: clamp(56px, 7vw, 88px) 0; }
.cta-band::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand-wave);
}
.cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .84); margin: 0; max-width: 36rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Undersider ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--white); padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px);
}
.page-hero .hero-wave { width: min(900px, 80%); opacity: .8; }
.page-hero-copy { max-width: 46rem; }
.page-hero-copy .hero-lead { max-width: 38rem; }
.page-hero h1 { color: var(--white); margin-bottom: .4em; }
.page-hero .hero-lead { margin-bottom: 28px; }
.page-hero-compact { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero-compact .hero-lead { margin-bottom: 0; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-size: .92rem; color: rgba(255, 255, 255, .72); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .4); }
.breadcrumb a { color: rgba(255, 255, 255, .86); }
.breadcrumb a:hover { color: var(--white); }

/* Fotovariant for undersidene (Privat, Bedrift, Kontakt). Samme bildefiler som forsiden
   (CC BY-SA 4.0, se assets/images/hero/KREDITERING.md), men sterkere marinefilter for kontrast.
   Fjern klassen .page-hero--photo, <picture> og .hero-photo-credit i siden for å gå tilbake. */
.page-hero--photo { background: var(--navy-deep); }
.page-hero--photo .hero-photo img { object-position: 50% 46%; }
.page-hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 31, 62, .84) 0%, rgba(7, 31, 62, .64) 40%, rgba(11, 47, 92, .2) 66%, rgba(11, 47, 92, .06) 100%),
    linear-gradient(180deg, rgba(7, 31, 62, .15) 0%, rgba(7, 31, 62, 0) 30%, rgba(7, 31, 62, .3) 80%, rgba(7, 31, 62, .62) 100%);
}
.page-hero--photo .hero-wave { opacity: .45; }
.page-hero--photo > .container { text-shadow: 0 1px 12px rgba(2, 14, 32, .5); }
.page-hero--photo .btn { text-shadow: none; }

/* Tjenestedetaljer */
.service-details { list-style: none; display: grid; gap: 14px; }
.service-detail {
  display: grid; grid-template-columns: 290px minmax(0, 1fr) 250px; gap: 16px 32px; align-items: center;
  padding: 26px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.service-detail-name { display: flex; align-items: center; gap: 16px; }
.service-detail h3 { margin: 0; }
.service-detail p { margin: 0; color: var(--muted); }
.service-detail-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: .93rem; white-space: nowrap; text-decoration: none;
  justify-self: end;
}
.service-detail-link svg { width: 16px; height: 16px; transition: transform .18s ease; }
.service-detail-link:hover svg { transform: translateX(3px); }
.service-detail-other { background: transparent; border-style: dashed; border-color: var(--line-strong); }

/* Info-oppsett (to kolonner med liste) */
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.info-grid > div > p { color: var(--muted); }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.check-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--green-ink); }
.check-list strong { display: block; font-family: var(--font-display); color: var(--brand-ink); margin-bottom: 2px; }
.check-list span { color: var(--muted); }
.section-soft .check-list li { background: var(--white); }
.section:not(.section-soft) .check-list li { background: var(--bg); border-color: transparent; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .9fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-card); }
.form-card > h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-intro { color: var(--muted); margin-bottom: 28px; }
.form-intro .req { color: var(--error); }

.error-summary {
  margin-bottom: 24px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--error-bg); border: 1px solid #f4c7c2; border-left: 5px solid var(--error);
}
.error-summary[hidden] { display: none; }
.error-summary h3 { color: var(--error); font-size: 1.02rem; margin-bottom: 8px; }
.error-summary ul { padding-left: 1.2em; margin: 0; }
.error-summary a { color: var(--error); font-weight: 600; }

.segment { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.segment legend { padding: 0; margin-bottom: 10px; font-weight: 650; color: var(--ink); font-size: .97rem; }
/* Side om side når begge valgene får plass, ellers under hverandre (smale mobiler). */
.segment-options { display: flex; flex-wrap: wrap; gap: 10px; }
.segment-option { position: relative; display: block; flex: 1 1 0; min-width: min-content; cursor: pointer; }
.segment-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segment-option span {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
  font-family: var(--font-display); font-weight: 650; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.segment-option svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--muted); }
.segment-option:hover span { border-color: var(--blue); }
.segment-option input:checked + span { border-color: var(--navy); background: #edf3fa; color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--navy); }
.segment-option input:checked + span svg { color: var(--blue); }
.segment-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field[hidden] { display: none; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: .95rem; color: var(--ink); }
.field .req { color: var(--error); margin-left: 2px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--white);
  font-size: 1rem; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300296d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #7b8899; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb0c4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 111, 194, .22); }
.field [aria-invalid="true"] { border-color: var(--error); background: #fffbfa; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
.field-error { margin: 0; font-size: .9rem; color: var(--error); font-weight: 550; }
.field-error:empty { display: none; }
.field-error::before { content: "! "; font-weight: 800; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { margin: 24px 0 20px; font-size: .92rem; color: var(--muted); }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-submit .btn { min-width: 220px; }
.form-status { margin: 18px 0 0; padding: 0; border-radius: var(--radius); font-size: .97rem; }
.form-status:empty { display: none; }
.form-status.is-info, .form-status.is-error, .form-status.is-success, .form-status.is-pending { padding: 14px 16px; }
.form-status.is-pending { background: var(--bg); color: var(--ink); }
.form-status.is-info { background: #fff7e6; border: 1px solid #f2d39b; color: #6b4600; }
.form-status.is-error { background: var(--error-bg); border: 1px solid #f4c7c2; color: var(--error); }
.form-status.is-success { background: #e7f8f1; border: 1px solid #a8e5cd; color: #05593f; }

.contact-aside { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-direct { background: var(--navy); color: var(--white); border-radius: var(--radius-l); padding: 30px 28px; }
.contact-direct h2 { color: var(--white); font-size: 1.35rem; margin-bottom: 6px; }
.contact-direct > p { color: rgba(255, 255, 255, .8); font-size: .97rem; margin-bottom: 18px; }
.contact-list { list-style: none; }
.contact-list li + li { border-top: 1px solid rgba(255, 255, 255, .14); }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--white); text-decoration: none; }
a.contact-item:hover { color: var(--green); }
.contact-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--green); }
.contact-item small { display: block; color: rgba(255, 255, 255, .68); font-size: .82rem; }
.contact-item strong { font-family: var(--font-display); font-weight: 700; overflow-wrap: anywhere; }
.contact-tips { padding: 24px 26px; border-radius: var(--radius-l); background: var(--bg); }
.contact-tips h2 { font-size: 1.05rem; margin-bottom: 10px; }
.contact-tips ul { padding-left: 1.15em; color: var(--muted); font-size: .97rem; }
.contact-tips li + li { margin-top: 4px; }

/* ---------- Tekstside (personvern) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p { color: var(--muted); }
.draft-warning { padding: 18px 20px; border-radius: var(--radius); background: #fff7e6; border: 1px solid #f2d39b; color: #6b4600; }
.prose h3 { font-size: 1.08rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; color: var(--muted); }
.prose li + li { margin-top: 6px; }
.prose li, .prose p { overflow-wrap: anywhere; }
.prose-meta { font-size: .92rem; }
.prose-toc { margin-top: 1.5em; padding: 18px 22px; border-radius: var(--radius); background: var(--bg); }
.prose-toc .prose-toc-title { font-size: 1.05rem; margin: 0 0 8px; }
/* Midlertidige merknader i utkastet – fjernes når eier har bekreftet opplysningene. */
.review-note { padding: 1px 6px; border-radius: 4px; background: #fff7e6; border: 1px dashed #d9a441; color: #6b4600; font-size: .92em; }
p.review-note { display: block; padding: 10px 14px; }

/* Bildekreditering (/bildekreditering/) */
.credit-figure { margin: 0 0 8px; }
.credit-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--navy-deep); }
.credit-figure figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.credit-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 1.2em 0 0; }
.credit-list dt { font-family: var(--font-display); font-weight: 700; }
.credit-list dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.credit-page ul { padding-left: 1.15em; color: var(--muted); }
.credit-page li + li { margin-top: 6px; }
@media (max-width: 560px) {
  .credit-list { grid-template-columns: 1fr; gap: 2px; }
  .credit-list dd + dt { margin-top: 10px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .8); padding: 64px 0 28px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.1fr); gap: 40px 56px; }
.footer-logo { width: 168px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 22rem; margin: 0; }
.footer-title { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem; color: rgba(255, 255, 255, .62);
}
.footer-bottom span:first-child { margin-right: auto; }

/* ---------- Samtykke til statistikk (assets/consent.js) ----------
   Ikke-modal og festet nederst. «Godta» og «Avslå» har identisk stil (lik vekt).
   Siden får like mye luft nederst som panelet er høyt, så ingenting skjules bak det. */
body.has-consent-panel { padding-bottom: var(--consent-space, 0px); }
.consent-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  max-height: 80vh; max-height: 80dvh; overflow-y: auto;
  background: var(--white); color: var(--ink);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -10px 30px rgba(7, 31, 62, .16);
}
.consent-panel::before { content: ""; display: block; height: 4px; background: var(--brand-wave); }
.consent-panel[hidden] { display: none; }
.consent-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 40px;
  padding-top: 20px; padding-bottom: 20px;
}
.consent-title { font-size: 1.05rem; margin: 0 0 6px; }
.consent-title:focus { outline: none; }
.consent-title:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.consent-text { margin: 0; font-size: .94rem; line-height: 1.5; color: var(--muted); max-width: 70ch; }
.consent-more { white-space: nowrap; }
.consent-current { margin: 8px 0 0; font-size: .9rem; font-weight: 600; color: var(--ink); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent-btn {
  min-height: 48px; padding: 10px 20px;
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.consent-btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--white); }
.consent-close {
  position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.consent-close[hidden] { display: none; }
.consent-close:hover { background: var(--bg); color: var(--ink); }
.consent-close svg { width: 20px; height: 20px; }
.consent-panel:has(.consent-close:not([hidden])) .consent-inner { padding-right: 56px; }
.footer-bottom a[data-consent-open] { white-space: nowrap; }

/* ---------- Responsivt ---------- */
@media (max-width: 1180px) {
  .brand-tagline { display: none; }
  .header-bar { gap: 20px; }
}
@media (max-width: 1020px) {
  .header-phone-number { display: none; }
  .header-phone { width: 44px; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .hero--photo::before {
    background: linear-gradient(180deg, rgba(7, 31, 62, .6) 0%, rgba(7, 31, 62, .5) 42%, rgba(11, 47, 92, .14) 72%, rgba(7, 31, 62, .42) 100%);
  }
  .audience { grid-template-columns: 1fr 1fr; }
  .audience-card { grid-template-columns: 1fr; }
  .audience-arrow { display: none; }
  .service-detail { grid-template-columns: 1fr; gap: 10px; }
  .service-detail-link { justify-self: start; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  :root { --header-h: 64px; --gutter: 20px; }
  .main-nav, .header-cta { display: none; }
  .header-actions { margin-left: auto; gap: 10px; }
  .menu-toggle { display: inline-flex; }
  .brand-mark { height: 40px; }
  .brand-name { font-size: 1rem; }
  .section-head { grid-template-columns: 1fr; }
  .service-index { grid-template-columns: 1fr; }
  .service-index li:nth-child(odd) { border-right: 0; }
  .service-index li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .why-grid, .info-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 24px; bottom: 48px; left: 23px; right: auto; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .steps li::before { grid-row: span 2; margin-bottom: 0; }
  .steps li:last-child { padding-bottom: 0; }
  .steps h3 { margin-top: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .brand { gap: 10px; }
  .brand-mark { height: 38px; }
  .brand-name { font-size: .9rem; letter-spacing: .01em; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-actions { gap: 8px; }
  .hero-photo img { object-position: 50% 50%; }
  /* Forsiden mobil: kompakt CTA-rad rett under H1 (knapp + telefon side om side, brytes pent på smale skjermer).
     Plassen som frigjøres fordeles på luft over H1, mellom CTA og kortene og over skylinen nederst,
     slik at heroens høyde og bildeutsnittet beholdes. */
  .hero--photo { padding-top: 64px; padding-bottom: 112px; }
  .hero--photo .hero-copy { row-gap: 10px; }
  .hero--photo .hero-actions { gap: 4px 22px; }
  .hero--photo .hero-actions .btn { width: auto; padding-inline: 28px; }
  .hero--photo .hero-grid { gap: 52px; }
  .hero--photo .audience { gap: 10px; }
  .hero--photo .audience-card { padding: 14px 14px 14px 18px; gap: 12px; border-radius: 14px; }
  .hero--photo .audience-card::before { width: 4px; }
  .hero--photo .audience-icon { width: 40px; height: 40px; border-radius: 11px; }
  .hero--photo .audience-icon svg { width: 22px; height: 22px; }
  .hero--photo .audience-card h2 { font-size: 1.25rem; margin: 0 0 2px; }
  .hero--photo .audience-card p { font-size: .94rem; line-height: 1.42; margin-bottom: 6px; }
  .hero--photo .audience-link { font-size: .9rem; }
  .page-hero--photo .hero-photo img { object-position: 50% 30%; }
  .page-hero--photo::before {
    background: linear-gradient(180deg, rgba(7, 31, 62, .72) 0%, rgba(7, 31, 62, .62) 45%, rgba(7, 31, 62, .55) 75%, rgba(7, 31, 62, .68) 100%);
  }
  .cta-actions { width: 100%; }
  .audience { grid-template-columns: 1fr; }
  .audience-card { grid-template-columns: auto 1fr; padding: 22px 20px 22px 24px; gap: 14px; }
  .audience-icon { width: 46px; height: 46px; }
  .service-row { padding: 20px 18px; gap: 14px; }
  .service-icon { width: 42px; height: 42px; }
  .service-detail { padding: 22px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-submit .btn { width: 100%; }
  .contact-aside { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom span:first-child { width: 100%; }
  .consent-inner { grid-template-columns: 1fr; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .consent-title { font-size: 1rem; margin-bottom: 4px; }
  .consent-text { font-size: .875rem; line-height: 1.45; }
  .consent-btn { width: 100%; padding-inline: 12px; white-space: normal; }
}
/* Under 360px brytes telefonlenken til egen linje under knappen; litt mindre luft holder heroens høyde. */
@media (max-width: 359px) {
  .hero--photo { padding-top: 56px; padding-bottom: 104px; }
  .hero--photo .hero-grid { gap: 48px; }
}
@media (max-width: 360px) {
  .consent-actions { gap: 8px; }
  .consent-btn { padding-inline: 8px; font-size: .9rem; }
  .brand-name { font-size: .82rem; }
  .brand-mark { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
