/* =========================================================
   Via Montasje AS — styles.css
   Oppfrisket, gjenkjennelig fra viavia.no.
   Lilla header (#7c56a4), oransje CTA (#e27a1e), fotodrevet.
   ========================================================= */

/* Self-hostet Montserrat (latin-subsett, dekker æøå). Fjerner eksterne Google Fonts-
   forespørsler → kortere kritisk kjede og jevnere LCP. display:swap = tekst vises straks. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/montserrat-500.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/montserrat-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/montserrat-800.woff2') format('woff2'); }

:root {
  --purple:      #7c56a4;   /* header-lilla, som dagens side */
  --purple-dark: #5f3f83;
  --purple-deep: #3f2a57;
  --orange:      #e27a1e;   /* CTA-oransje */
  --orange-dark: #a9520a;
  --orange-strong: #b5570b; /* bakgrunn bak hvit tekst (knapper/etiketter): 4,85:1 (WCAG AA) */   /* mørkere for lesbar tekst: 5,4:1 på hvit, 4,9:1 på paper-2 (WCAG AA) */

  --ink:   #1f1b25;
  --ink-2: #4a4453;
  --muted: #6f6879;
  --line:  #e6e2ec;
  --paper: #ffffff;
  --paper-2: #f5f2f8;

  --maxw: 1200px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(31,27,37,.06), 0 4px 14px rgba(31,27,37,.06);
  --shadow-md: 0 12px 34px rgba(31,27,37,.14);
  --ease: cubic-bezier(.2,.7,.2,1);

  /* KUN Montserrat på hele siden (bruker-valg 23.09.2026). Alle tre rollene peker
     til Montserrat – «mono»-variabelen beholdes bare for at etikett-reglene (versaler +
     sperring) skal fortsette å virke uten å endres ett for ett. */
  --font-head: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-mono: 'Montserrat', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink);
  background: var(--paper); line-height: 1.6; letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
picture { display: contents; } /* <picture>-wrapper skal ikke lage egen boks – <img> arver forelderens layout */
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { left: 12px; top: 12px; }
/* Tydelig tastaturfokus overalt (hvit + mørk ring synes på både lys, lilla og mørk bakgrunn). Mer spesifikke regler under overstyrer. */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }

/* -------- Buttons -------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer; padding: 13px 26px; border-radius: var(--radius);
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { --bg: var(--orange-strong); --bd: var(--orange-strong); }
.btn-accent:hover { --bg: #9a4a09; --bd: #9a4a09; }
.btn-dark { --bg: #1a1620; --bd: #1a1620; }
.btn-dark:hover { --bg: #000; --bd: #000; }
.btn-ghost-dark { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.5); }
.btn-ghost-dark:hover { --bg: rgba(255,255,255,.14); --bd: #fff; }
.btn-block { width: 100%; }

/* -------- Header -------- */
/* min-height reserverer plassen headeren (top-bar 38 + header-inner 70) tar, slik at
   den JS-injiserte headeren ikke dytter innholdet ned → unngår layout-hopp (CLS). */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--purple); box-shadow: 0 2px 14px rgba(31,27,37,.14); min-height: 108px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
/* Fast bredde + height:auto: logoen skaleres proporsjonalt når plassen er trang (ble før klemt, 26px høy men smalere). */
.brand-logo { width: 377px; max-width: 100%; height: auto; }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-contact { display: flex; align-items: center; gap: 14px; color: #fff; font-size: .95rem; }
.header-contact a { color: #fff; text-decoration: none; }
.header-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.header-contact .sep { opacity: .45; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 2.5px; width: 24px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Desktop hovedmeny */
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .drop-toggle {
  display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .96rem; padding: 9px 14px;
  border-radius: var(--radius); background: transparent; border: 0; cursor: pointer; line-height: 1;
  transition: background .2s var(--ease);
}
.main-nav > a:hover, .drop-toggle:hover { background: rgba(255,255,255,.14); }
.main-nav a[aria-current="page"] { background: var(--purple-dark); } /* hvit tekst 7:1 (var 3,9:1 på lys lilla) */
.has-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 120;
}
.drop-menu a { display: block; padding: 10px 14px; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .94rem; }
.drop-menu a:hover { background: var(--paper-2); color: var(--purple-dark); }
.has-drop:hover .drop-menu, .has-drop.open .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-toggle svg { transition: transform .2s var(--ease); }
.has-drop:hover .drop-toggle svg, .has-drop.open .drop-toggle svg { transform: rotate(180deg); }

.header-phone { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 0 6px; }
.header-phone:hover { color: #ffd9b0; }
.header-cta { padding: 10px 18px; }

.mobile-nav { display: none; flex-direction: column; background: var(--purple-dark); }
.mobile-nav a { color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; padding: 14px clamp(18px,4vw,40px); border-top: 1px solid rgba(255,255,255,.12); }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: rgba(255,255,255,.1); }
.mobile-nav.open { display: flex; }

/* ---- Underside-hero (E-stil: foto + faktapanel, samme språk som forsiden) ---- */
.hero-sub { background: var(--paper-2); border-bottom: 1px solid var(--line); }
/* FAST høyde (ikke min-height): lik hero-høyde på ALLE undersider ved gitt skjerm.
   Høy nok til at lengste tittel + ingress + knapp får plass → ingen overflyt/innrykk.
   Fast høyde gjør også at stående hero-foto (systemvegger 570×760) fyller cellen via
   object-fit uten å dra seksjonen høy. */
.hero-sub .hs-grid { display: grid; grid-template-columns: 1.02fr .98fr; height: clamp(440px, 50vh, 500px); }
.hero-sub .hs-photo { position: relative; overflow: hidden; }
.hero-sub .hs-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-sub .hs-tab { position: absolute; left: 0; bottom: 0; background: var(--orange-strong); color: #fff; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; padding: 9px 14px; }
.hero-sub .hs-panel { padding: clamp(30px, 4vw, 60px) clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; border-left: 5px solid var(--orange); }
.hero-sub .hs-panel > * { width: 100%; max-width: 560px; }
.hero-sub .crumb { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-dark); font-weight: 600; margin: 0 0 14px; }
.hero-sub .crumb a { color: var(--orange-dark); text-decoration: none; }
.hero-sub .crumb a:hover { text-decoration: underline; }
.hero-sub h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
.hero-sub .lead { font-size: clamp(1.02rem, 1.7vw, 1.22rem); color: var(--ink-2); margin: 16px 0 0; }
.hero-sub .hs-cta { margin-top: 26px; }
@media (max-width: 860px) {
  .hero-sub .hs-grid { grid-template-columns: 1fr; height: auto; }
  .hero-sub .hs-photo { height: 240px; order: -1; }
  .hero-sub .hs-panel { border-left: 0; border-top: 5px solid var(--orange); }
}

/* ---- Prose / tekstinnhold ---- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); color: var(--purple-deep); margin: 0 0 18px; }
.prose .reg-ey { margin-bottom: 10px; }
.prose h3 { font-size: 1.25rem; color: var(--ink); margin: 28px 0 10px; }
.prose p { color: var(--ink-2); margin: 0 0 16px; }
.prose ul { color: var(--ink-2); padding-left: 20px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px,5vw,60px); align-items: center; }
.split .split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.split.rev .split-media { order: -1; }

/* Partnere / leverandører */
.partners { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners h2 { font-size: 1.35rem; color: var(--purple-deep); margin: 0 0 8px; }
.partners p { color: var(--ink-2); margin: 0 0 20px; }
.partner-list { display: flex; flex-wrap: wrap; gap: 12px; }
.partner-list span { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 3px; padding: 9px 18px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); }

/* CTA-band */
.cta-band { background: var(--purple-deep); color: #fff; text-align: center; }
.cta-band .reg-ey { color: #f2b072; margin: 0 0 10px; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,.9); margin: 12px 0 24px; font-size: 1.08rem; }

/* Ansatte-rutenett */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.staff-card { background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.staff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* Ansatte: vis HELE bildet (contain) på rolig lys bakgrunn – ingen beskjæring (bruker-valg «Forslag C»).
   Liggende OG stående kilder vises fullt; ingen per-person object-position nødvendig. */
.staff-photo { aspect-ratio: 1 / 1; overflow: hidden; background: #eceaf1; }
.staff-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.staff-info { padding: 16px 20px 20px; border-top: 3px solid var(--orange); }
.staff-card .sn { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; margin: 0 0 2px; }
.staff-card .sr { color: var(--purple-dark); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.staff-card a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.staff-card a:hover { color: var(--orange-dark); }

/* Artikkel-liste */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.news-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: var(--radius); }
.news-more { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--orange-dark); }
.news-link:hover .news-more { text-decoration: underline; }

/* Artikkelside */
.article { max-width: 720px; }
.article .back-link { margin-top: 28px; }
.article .back-link a { color: var(--purple-dark); font-weight: 600; text-decoration: none; }
.article .back-link a:hover { text-decoration: underline; }

/* Relaterte artikler (nederst på tjenestesider) */
.related { background: var(--paper-2); border-top: 1px solid var(--line); }
.related .reg-ey { margin-bottom: 8px; }
.related-head { font-size: clamp(1.4rem, 2.8vw, 2rem); color: var(--purple-deep); margin: 0 0 clamp(22px, 3vw, 32px); }

/* Fakta-stripe (tjenestesider) – editoriell datastripe rett under hero */
.spec-strip { background: var(--ink); border-top: 4px solid var(--orange); }
.spec-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); padding-left: 0; padding-right: 0; }
.spec-strip .spec { padding: clamp(20px, 3vw, 30px) clamp(18px, 2.6vw, 34px); border-left: 1px solid rgba(255,255,255,.12); }
.spec-strip .spec:first-child { border-left: 0; }
.spec-strip .spec-k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: #f2b072; margin: 0 0 8px; }
.spec-strip .spec-v { font-family: var(--font-head); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.18rem); color: #fff; margin: 0; line-height: 1.22; }

@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media, .split .split-media { order: -1; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .articles { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .header-cta { display: none; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-strip .wrap { grid-template-columns: 1fr; }
  .spec-strip .spec { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .spec-strip .spec:first-child { border-top: 0; }
}

/* -------- Hero -------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(28,22,36,.9) 0%, rgba(40,28,58,.72) 40%, rgba(40,28,58,.25) 75%, rgba(40,28,58,.1) 100%); }
.hero-inner { position: relative; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 120px); max-width: 760px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.32rem); color: rgba(255,255,255,.92); max-width: 560px; margin: 20px 0 32px; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------- Sections -------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }

/* -------- Tjenester (foto-kort) -------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { position: relative; display: block; text-decoration: none; color: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 3 / 2; }
.service-media { position: absolute; inset: 0; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,28,.86) 0%, rgba(20,14,28,.35) 45%, rgba(20,14,28,.05) 100%); }
.service-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 20px; z-index: 1; }
.service-body h3 { font-size: 1.35rem; font-weight: 700; }
.service-body p { margin: 4px 0 0; color: rgba(255,255,255,.85); font-size: .96rem; }
.service::before { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); z-index: 2; }
.service:hover .service-media img { transform: scale(1.06); }
.service:hover::before { transform: scaleX(1); }
.service:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* -------- Hero E (foto + faktaark) -------- */
.hero-e { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.hero-e .he-grid { display: grid; grid-template-columns: 1.02fr .98fr; min-height: clamp(460px, 62vh, 620px); }
.hero-e .he-photo { position: relative; overflow: hidden; }
.hero-e .he-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%; }
.hero-e .he-tab { position: absolute; left: 0; bottom: 0; background: var(--orange-strong); color: #fff; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; padding: 9px 14px; }
.hero-e .he-panel { padding: clamp(34px, 5vw, 64px) clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; border-left: 5px solid var(--orange); }
.hero-e .he-ey { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-dark); font-weight: 600; margin: 0; }
.hero-e h1 { font-size: clamp(2rem, 3.6vw, 3.05rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 14px 0 0; }
.hero-e .he-sheet { margin: 28px 0 30px; border-top: 2px solid var(--ink); }
.hero-e .he-sheet .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .78rem; margin: 0; }
.hero-e .he-sheet dt { margin: 0; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.hero-e .he-sheet dd { margin: 0; font-weight: 700; text-align: right; color: var(--ink); }
.hero-e .he-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-outline-purple { --bg: transparent; --fg: var(--purple-dark); --bd: var(--purple); }
.btn-outline-purple:hover { --bg: var(--purple); --fg: #fff; --bd: var(--purple); }

/* -------- Tjeneste-register (hover bytter bilde) -------- */
.svc-reg .reg-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(24px, 3.5vw, 38px); flex-wrap: wrap; }
.svc-reg .reg-ey { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-dark); font-weight: 600; margin: 0 0 8px; }
.svc-reg .reg-top h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.02em; color: var(--ink); }
.svc-reg .reg-top p { color: var(--muted); max-width: 34ch; margin: 0; }
.svc-reg .reg-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-top: 1px solid var(--ink); }
.svc-reg .reg-list { list-style: none; margin: 0; padding: 0; }
.svc-reg .reg-list li { border-bottom: 1px solid var(--line); }
.svc-reg .reg-list a { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 16px; text-decoration: none; color: inherit; padding: clamp(16px, 2.2vw, 22px) 24px clamp(16px, 2.2vw, 22px) 6px; transition: background .15s var(--ease); }
.svc-reg .cat { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc-reg .reg-mid { display: flex; flex-direction: column; min-width: 0; }
.svc-reg .nm { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 1.9vw, 1.7rem); letter-spacing: -.01em; line-height: 1.1; }
.svc-reg .reg-desc { display: none; color: var(--muted); font-size: .92rem; line-height: 1.4; letter-spacing: normal; margin-top: 5px; }
.svc-reg .arw { font-family: var(--font-mono); color: var(--orange-dark); opacity: 0; transform: translateX(-6px); transition: opacity .15s var(--ease), transform .15s var(--ease); }
.svc-reg .reg-list li:hover a, .svc-reg .reg-list li.on a { background: var(--paper-2); }
.svc-reg .reg-list li:hover .arw, .svc-reg .reg-list li.on .arw { opacity: 1; transform: none; }
.svc-reg .reg-list li:hover .cat, .svc-reg .reg-list li.on .cat { color: var(--orange-dark); }
.svc-reg .reg-list a:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.svc-reg .reg-stage { position: relative; overflow: hidden; background: var(--ink); border-left: 1px solid var(--line); margin: 0; }
.svc-reg .reg-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); }
.svc-reg .reg-stage img.show { opacity: 1; }
.svc-reg .reg-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(20,14,28,.85), transparent 55%); }
.svc-reg .reg-stage figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 26px; color: #fff; }
.svc-reg .reg-stage .sc { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #f2b072; }
.svc-reg .reg-stage .st { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin-top: 4px; }
.svc-reg .reg-stage .sd { display: block; color: rgba(255,255,255,.85); font-size: .95rem; margin-top: 6px; max-width: 34ch; }

@media (max-width: 860px) {
  .hero-e .he-grid { grid-template-columns: 1fr; }
  .hero-e .he-photo { min-height: 280px; }
  .hero-e .he-panel { border-left: 0; border-top: 5px solid var(--orange); }
  .svc-reg .reg-split { grid-template-columns: 1fr; }
  .svc-reg .reg-stage { display: none; }
  .svc-reg .reg-desc { display: block; } /* touch: vis beskrivelsen (erstatter hover) */
}


/* -------- Felles eyebrow (mono) -------- */
.reg-ey { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-dark); font-weight: 600; margin: 0 0 8px; }
.reg-ey-light { color: #f2b072; }

/* -------- Topp-linje (utility bar) -------- */
.top-bar { background: var(--purple-dark); color: #fff; }
.top-bar-inner { display: flex; align-items: center; gap: 22px; min-height: 38px; font-size: .82rem; flex-wrap: wrap; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; }
.tb-item svg { color: var(--orange); flex: none; }
.top-bar a.tb-item:hover { color: #ffd9b0; }
.tb-addr { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* Hero E – hold panel-innhold stramt på brede skjermer */
.hero-e .he-panel > * { width: 100%; max-width: 560px; }

/* -------- Om oss (E – faktaark) -------- */
.about-e { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.about-e-text h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); color: var(--purple-deep); margin: 12px 0 16px; letter-spacing: -.01em; }
.about-e-text p { color: var(--ink-2); margin: 0 0 14px; max-width: 56ch; }
.factsheet { margin: 24px 0 0; border-top: 2px solid var(--ink); }
.factsheet .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .78rem; }
.factsheet dt { margin: 0; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.factsheet dd { margin: 0; font-weight: 700; text-align: right; color: var(--ink); }
.about-e-media { margin: 0; position: relative; }
.about-e-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.about-e-media figcaption { position: absolute; left: 0; bottom: 0; background: var(--orange-strong); color: #fff; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; padding: 8px 13px; }

/* -------- Aktuelt (E) -------- */
.section-news .reg-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(24px, 3.5vw, 36px); flex-wrap: wrap; }
.section-news .reg-top .news-head { margin: 6px 0 0; font-size: clamp(1.5rem, 2.8vw, 2.2rem); color: var(--purple-deep); }
.news-all { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dark); text-decoration: none; font-weight: 600; white-space: nowrap; }
.news-all:hover { text-decoration: underline; }
.section-news .news-item { border-radius: 3px; box-shadow: none; border: 1px solid var(--line); border-top: 3px solid var(--orange); }
.section-news .news-date { font-family: var(--font-mono); letter-spacing: .1em; }

/* -------- FAQ (E-stil accordion) -------- */
.section-faq { background: var(--paper-2); }
.section-faq .reg-ey { text-align: center; }
.section-faq .faq-head { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--purple-deep); text-align: center; margin: 6px 0 clamp(26px, 3.5vw, 38px); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 3px; background: #fff; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item[open] { box-shadow: var(--shadow-md); border-left-color: var(--orange-dark); }
.faq-item summary { cursor: pointer; list-style: none; padding: 17px 22px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--orange-dark); font-size: 1.6rem; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.faq-item p { margin: 0; padding: 2px 22px 20px; color: var(--ink-2); }

/* -------- Kontakt (E) -------- */
.section-contact .contact-info > h1, .section-contact .contact-info > h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 6px; }
.section-contact .field input, .section-contact .field textarea { border-radius: 3px; }
.section-contact .contact-form { border-radius: 4px; }
.contact-hours { color: rgba(255,255,255,.82); margin: 22px 0 0; font-size: .95rem; border-left: 3px solid var(--orange); padding-left: 14px; }
.contact-hours strong { color: #fff; font-weight: 700; }

/* -------- Footer-kreditt -------- */
.footer-credit a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--orange); }
.footer-credit a:hover { color: #ffd9b0; }

@media (max-width: 940px) {
  .about-e { grid-template-columns: 1fr; }
  .about-e-media { order: -1; }
  .about-e-media img { aspect-ratio: 3 / 2; }
}
@media (max-width: 720px) {
  .tb-addr { display: none; }
  .top-bar-inner { gap: 16px; min-height: 34px; }
}

/* -------- Om oss -------- */
.section-about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-text h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: 18px; color: var(--purple-deep); }
.about-text p { color: var(--ink-2); margin: 0 0 16px; }

/* -------- Aktuelt -------- */
.news-head { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: clamp(26px, 4vw, 40px); color: var(--purple-deep); }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-item { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 3px; overflow: hidden; height: 100%; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-media { aspect-ratio: 3 / 2; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px 22px 24px; }
.news-date { font-family: var(--font-mono); font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-dark); margin: 0 0 8px; }
.news-body h2, .news-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.news-body p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* -------- Kontakt -------- */
.section-contact { background: var(--purple-deep); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info h1, .contact-info h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.contact-lead { color: rgba(255,255,255,.8); font-size: 1.08rem; margin: 14px 0 0; }
.people { display: grid; gap: 24px; margin-top: 34px; }
.person { display: flex; gap: 16px; align-items: flex-start; }
.person-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; border: 2px solid rgba(255,255,255,.25); }
.person-body { border-left: 3px solid var(--orange); padding-left: 16px; }
.person-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin: 0 0 2px; }
.person-role { color: #f2b072; font-size: .85rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; }
.person p { margin: 3px 0; color: rgba(255,255,255,.88); }
.person a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.person a:hover { border-color: var(--orange); }

/* Form */
.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 34px); box-shadow: var(--shadow-md); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { margin-bottom: 6px; font-weight: 600; font-size: .92rem; }
.field input, .field textarea { font-family: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper-2); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,86,164,.18); background: #fff; }
.field textarea { resize: vertical; }
.req { color: var(--orange-dark); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; font-size: .95rem; color: var(--ink-2); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--purple); flex-shrink: 0; }
.consent a { color: var(--purple-dark); }
.turnstile-slot:not(:empty) { margin: 4px 0 18px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; font-style: italic; }
.form-status { margin: 12px 0 0; font-weight: 600; }
.form-status.ok { color: #1a7a44; }
.form-status.err { color: #c0392b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------- Footer -------- */
.site-footer { background: #17121d; color: rgba(255,255,255,.78); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: clamp(44px, 6vw, 68px) clamp(18px,4vw,40px) 30px; }
.footer-logo { width: 319px; max-width: 100%; height: auto; margin-bottom: 16px; }
.footer-brand p { margin: 0; max-width: 380px; }
.footer-col { display: flex; flex-direction: column; gap: 7px; }
.site-footer h2, .site-footer h3 { font-family: var(--font-head); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; }
.footer-col a, .footer-col p { color: rgba(255,255,255,.78); text-decoration: none; margin: 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px clamp(18px,4vw,40px); border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom a { color: rgba(255,255,255,.78); }
.footer-bottom a:hover { color: #fff; }
.footer-cookie-btn { background: none; border: 0; padding: 0; font: inherit; color: rgba(255,255,255,.78); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.footer-cookie-btn:hover { color: #fff; }

/* -------- Cookie bar -------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: #17121d; color: #fff; box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
.cookie-bar[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 16px clamp(18px,4vw,40px); flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.85); max-width: 660px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: .9rem; }
.cookie-fab { position: fixed; left: 16px; bottom: 16px; z-index: 190; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: #7c56a4; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.28); transition: transform .15s, background .15s; }
.cookie-fab[hidden] { display: none; }
.cookie-fab:hover, .cookie-fab:focus-visible { background: var(--orange-strong); transform: scale(1.06); }
.cookie-fab:focus-visible { outline: 3px solid #e27a1e; outline-offset: 3px; }

/* -------- Responsivt -------- */
@media (max-width: 940px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-header { min-height: 104px; } /* mobil: top-bar 34 + header-inner 70 */
  .header-contact { display: none; }
  .nav-toggle { display: flex; }
  .services { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* -------- Område-/prosjektkort (landingssider: Stavanger/Sandnes/Jæren + hele Norge) -------- */
.areas { background: var(--paper-2); border-top: 1px solid var(--line); }
.areas h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--purple-deep); margin: 0 0 8px; }
.areas-intro { color: var(--ink-2); margin: 0 0 24px; max-width: 640px; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area-card { background: #fff; border-left: 4px solid var(--orange); border-radius: 3px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.area-k { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-dark); margin: 0 0 6px; }
.area-card h3 { font-size: 1.1rem; margin: 0 0 6px; color: var(--ink); }
.area-card p:last-child { margin: 0; color: var(--ink-2); font-size: .95rem; }
.area-card a { color: var(--purple-dark); font-weight: 600; }
@media (max-width: 900px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .area-grid { grid-template-columns: 1fr; } }
.area-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .area-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .area-grid.cols-4 { grid-template-columns: 1fr; } }

/* Juridiske sider (personvern, tilgjengelighet) */
.legal h3 { font-size: 1.1rem; margin: 26px 0 8px; color: var(--ink); }
.table-wrap:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

/* Reflow (WCAG 1.4.10): lange ord i overskrifter skal brytes, og hero-kolonnene skal kunne krympe helt ned til 320 px. */
.hs-grid > *, .he-grid > *, .hero-e > *, .hero-sub > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
