/* =========================================================
   Solberg-Austeng Digital — stilark
   Farger: teal #1FA39A / #167B74 / #9FD9D4, mørk #17242A / #1C2B2B
   Font: Archivo (overskrifter), Inter (brødtekst)
   ========================================================= */

:root {
  --teal: #1FA39A;
  --teal-dark: #167B74;
  --teal-light: #9FD9D4;
  --teal-pale: #7FD8D1;
  --ink: #1C2424;
  --ink-soft: #374242;
  --ink-muted: #4A5757;
  --ink-faint: #5C6B6B;
  --line: #E2E6E6;
  --line-soft: #F0F2F2;
  --surface: #F4F6F6;
  --dark: #17242A;
  --dark-card: #1C2B2B;
  --wrap: 1180px;
  --pad-x: 24px;
  --radius: 10px;
  --font-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Klebrig header skal ikke dekke overskriften ved hopp til seksjon */
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  /* Merk: ikke sett overflow-x her. På rotelementet smitter både
     «clip» og «hidden» over på y-aksen og slår av vanlig sidescroll.
     Dekorasjoner som stikker utenfor klippes i sin egen seksjon
     (.hero { overflow: hidden }) i stedet. */
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Synlig kun for skjermlesere */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

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

/* ---------- Logoen ----------
   Kilde: assets/images/logo.png. Merket har sin egen mørke flate
   (#07302E), så på hvit bunn vises det som en avrundet brikke —
   da beholdes merkefargene nøyaktig. Til mørk bunn brukes den
   gjennomsiktige varianten. Bildene leveres i 4x oppløsning og
   skaleres ned med CSS, så de er skarpe også på retina-skjermer. */
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
}

.footer-logo-link {
  display: inline-block;
  align-self: flex-start;
}
.footer-logo {
  width: 176px;
  height: auto;
}

.portrait-logo { width: 64px; height: 64px; }

/* ---------- Dekorative 2x2 rutenett ---------- */
.logo-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.logo-mark > span { border-radius: 2px; }
.logo-mark > span:nth-child(1) { background: var(--teal); }
.logo-mark > span:nth-child(2) { background: var(--teal-dark); }
.logo-mark > span:nth-child(3) { background: var(--teal-light); }
.logo-mark > span:nth-child(4) { background: var(--teal); }

.logo-mark-md { width: 30px; height: 30px; gap: 2.5px; }
.logo-mark-md > span:nth-child(2) { background: var(--teal-light); }
.logo-mark-md > span:nth-child(3) { background: var(--teal-dark); }
.logo-mark-sm { width: 26px; height: 26px; gap: 2.5px; }
.logo-mark-sm > span:nth-child(2) { background: var(--teal-light); }
.logo-mark-sm > span:nth-child(3) { background: var(--teal-dark); }
.logo-mark-xs { width: 22px; height: 22px; opacity: 0.6; }

.sq {
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  text-align: center;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-pale); }
.btn-sm { padding: 10px 20px; font-size: 14.5px; }
.btn-block { width: 100%; padding: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad-x);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.accent { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links > a { color: var(--ink); }
.nav-links > a:hover { color: var(--teal); }
.nav-links > a.btn-primary { color: #fff; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-burger > span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px var(--pad-x) 16px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a {
  padding: 14px 0;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
/* Telefonnummeret i menyen — gjør nummeret tilgjengelig fra toppen
   av siden på mobil, uten en fastlåst knapp over innholdet. */
.mobile-menu > a.menu-tel {
  color: var(--teal-dark);
  font-weight: 600;
}
.mobile-menu > a.mobile-cta {
  margin-top: 12px;
  border-bottom: none;
  color: #fff;
  padding: 14px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  top: -40px;
  right: -40px;
  display: grid;
  grid-template-columns: repeat(4, 64px);
  grid-template-rows: repeat(4, 64px);
  gap: 8px;
  opacity: 0.10;
  pointer-events: none;
}
.hero-deco > span { background: var(--teal); border-radius: 4px; }
.hero-deco > span:nth-child(1) { grid-column: 1; grid-row: 2; }
.hero-deco > span:nth-child(2) { grid-column: 2; grid-row: 1; }
.hero-deco > span:nth-child(3) { grid-column: 2; grid-row: 3; }
.hero-deco > span:nth-child(4) { grid-column: 3; grid-row: 2; }
.hero-deco > span:nth-child(5) { grid-column: 3; grid-row: 4; }
.hero-deco > span:nth-child(6) { grid-column: 4; grid-row: 1; }
.hero-deco > span:nth-child(7) { grid-column: 4; grid-row: 3; }

.hero-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  padding: 96px var(--pad-x) 104px;
  position: relative;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(31,163,154,0.45);
  background: rgba(31,163,154,0.12);
  color: var(--teal-pale);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 2px;
}

.hero-h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin: 0 0 34px;
  max-width: 540px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.card-eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-pale);
  margin-bottom: 20px;
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.trust-list li { display: flex; gap: 14px; align-items: flex-start; }
.trust-list .sq { margin-top: 6px; }
.trust-list p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}
.trust-list strong { color: #fff; }

/* ---------- Seksjoner ---------- */
.section { padding: 96px var(--pad-x); }
.section-alt { background: var(--surface); }
.section-dark { background: var(--dark); color: #fff; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .body-lg { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--teal-pale); }

.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-head .h2:last-child { margin-bottom: 0; }

.body-lg {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.section-dark .body-lg { color: rgba(255,255,255,0.8); }

/* ---------- Om meg ---------- */
/* Bilde til venstre, tekst til høyre på skjerm. Overskriften ligger i
   sin egen rute slik at mobil leser: overskrift → bilde → historie. */
.om-grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 640px);
  justify-content: space-between;
  grid-template-areas:
    "bilde overskrift"
    "bilde tekst";
  grid-template-rows: auto 1fr;
  column-gap: 64px;
  row-gap: 22px;
  align-items: start;
}
.om-head { grid-area: overskrift; }
.om-body { grid-area: tekst; }
.om-head .h2 { margin-bottom: 0; }

.portrait-wrap {
  grid-area: bilde;
  position: relative;
  margin: 0;
  align-self: center;
  width: 100%;
}
.portrait-deco {
  position: absolute;
  top: -14px;
  left: -14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  width: 56px;
  height: 56px;
  z-index: 1;
}
.portrait-deco > span { border-radius: 3px; }
.portrait-deco > span:nth-child(1) { background: var(--teal); }
.portrait-deco > span:nth-child(2) { background: var(--teal-light); }
.portrait-deco > span:nth-child(3) { background: var(--teal-dark); }
.portrait-deco > span:nth-child(4) { background: var(--teal); }

.portrait {
  aspect-ratio: 4/5;
  width: 100%;
  height: auto;
  object-fit: cover;      /* beskjærer pent uansett originalformat — strekker aldri */
  object-position: 50% 30%;
  display: block;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(23, 36, 42, 0.18);
  /* Tynn turkis kantdetalj som binder bildet til merkevaren */
  outline: 1px solid rgba(31, 163, 154, 0.35);
  outline-offset: -1px;
}
.portrait-fallback {
  aspect-ratio: 4/5;
  border-radius: 12px;
  background: linear-gradient(150deg, #1C2B2B, var(--dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
}
.portrait-fallback[hidden] { display: none; }
.portrait-initials {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #fff;
}

.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.chip .sq { width: 8px; height: 8px; }

/* ---------- Rutenett og kort ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16.5px;
  margin: 0;
  line-height: 1.3;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.card-hover { transition: border-color .18s ease, box-shadow .18s ease; }
.card-hover:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(23,36,42,0.06);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--teal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

.note-line {
  margin: 36px 0 0;
  font-size: 15.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.note-muted { font-size: 14.5px; color: var(--ink-faint); }

/* ---------- Eksempler ----------
   Hele kortet er én lenke. Skjermbildet ligger i en 16:10-ramme med
   object-fit: cover, så alle tre kortene blir like høye uansett
   kildeformat. Hover løfter kortet og toner inn «Se nettsiden →». */
.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgba(23, 36, 42, 0.14);
  color: inherit;
}

.work-shot {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;   /* viser hero-området av skjermbildet */
  display: block;
  transition: transform .3s ease;
}
.work-card:hover .work-shot img,
.work-card:focus-visible .work-shot img { transform: scale(1.04); }

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 36, 42, 0.32);
  opacity: 0;
  transition: opacity .2s ease;
}
.work-card:hover .work-overlay,
.work-card:focus-visible .work-overlay { opacity: 1; }
.work-cta {
  background: var(--teal);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(23, 36, 42, 0.28);
}

.work-meta {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;                        /* like høye metafelt → like høye kort */
}
.work-meta h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}
.work-meta p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }

/* Ingen bevegelse for brukere som foretrekker det */
@media (prefers-reduced-motion: reduce) {
  .work-card, .work-shot img { transition: none; }
  .work-card:hover, .work-card:focus-visible { transform: none; }
  .work-card:hover .work-shot img { transform: none; }
}

/* ---------- Priser ----------
   Én samlet pris, ikke to pakker: begge beløpene ligger inne i SAMME
   kort, bundet sammen av et pluss-tegn. Ingen ramme rundt hvert enkelt
   ledd, ingen egen knapp per ledd — ellers leses de som alternativer. */
.pris-kort {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 32px 36px 30px;
  max-width: 860px;
}

.pris-forklaring {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  text-wrap: pretty;
}
.pris-forklaring .sq { margin-top: 7px; }

/* Regnestykket: ledd + pluss + ledd */
.pris-regnestykke {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 28px;
}
.pris-ledd {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.pris-ledd p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  text-wrap: pretty;
}

/* Pluss-tegnet står på linje med de to beløpene */
.pris-pluss {
  margin-top: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(31,163,154,0.16);
  border: 1px solid rgba(31,163,154,0.45);
  color: var(--teal-pale);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pris-sum {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.09);
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  text-wrap: pretty;
}
.pris-sum strong { color: #fff; font-weight: 600; }

.price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
}
.price span {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
/* Én felles knapperad for hele prisen — aldri én per beløp */
.price-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Vurderinger (klar til bruk) ---------- */
.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  margin: 0;
}
.quote-card blockquote {
  margin: 0;
  font-style: italic;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.quote-card figcaption {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  min-width: 0;
}
a.contact-row:hover { color: var(--teal-dark); }
.contact-row-static { font-size: 16px; }
.contact-email {
  font-size: 15.5px;
  word-break: break-word;
}
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  flex-shrink: 0;
}
.icon-tel { background: var(--teal); font-size: 13px; }
.icon-mail { background: var(--teal-dark); font-size: 11px; }
.icon-place { background: var(--dark-card); font-size: 11px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 0;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid #D5DCDC;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 16px; /* 16px hindrer at iOS zoomer inn ved fokus */
  color: var(--ink);
  outline: none;
  font-family: var(--font-body);
  width: 100%;
  background: #fff;
  transition: border-color .15s ease;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--teal); }
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: #C4453C; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}
.form-note.error { color: #C4453C; font-weight: 500; }

.form-success {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.form-success[hidden] { display: none; }
.success-mark {
  width: 48px;
  height: 48px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.form-success h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  margin: 0;
}
.form-success p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 56px var(--pad-x) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  max-width: 300px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-nav a { color: rgba(255,255,255,0.75); }
.footer-nav a:hover { color: var(--teal-pale); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  min-width: 0;
}
.footer-contact a { color: rgba(255,255,255,0.9); word-break: break-word; }
.footer-contact a:hover { color: var(--teal-pale); }
.footer-phone { font-weight: 600; }
.orgnr { font-size: 13px; color: rgba(255,255,255,0.55); }
.copyright {
  margin: 24px 0 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

/* ---------- Innfading ved scroll ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Innholdet er alltid synlig uten JS — skjules kun når JS er aktivt */
.js .reveal { opacity: 0; }
.js .reveal.in { animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) forwards; }
.js .reveal.static { opacity: 1; animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   Responsivt
   ========================================================= */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .om-grid { column-gap: 44px; }
  .kontakt-grid { gap: 44px; }
  .hero-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 64px var(--pad-x) 72px;
    gap: 40px;
  }
  .hero-h1 { font-size: clamp(32px, 8.5vw, 44px); }
  .hero-card { max-width: 100%; justify-self: stretch; }
  .hero-deco { grid-template-columns: repeat(4, 44px); grid-template-rows: repeat(4, 44px); }

  .section { padding: 68px var(--pad-x); }
  .section-head { margin-bottom: 36px; }
  .h2 { font-size: 30px; }

  .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Mobil: overskrift → bilde → historie */
  .om-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "overskrift" "bilde" "tekst";
    grid-template-rows: auto auto auto;
    row-gap: 28px;
  }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .portrait-wrap { max-width: 360px; margin: 0 auto; }
  .contact-form { padding: 26px 20px; }

  /* Prisen stables, men pluss-tegnet blir stående mellom de to beløpene
     så det fortsatt leses som «oppsett PLUSS drift» — ikke to valg. */
  .pris-kort { padding: 26px 22px 24px; }
  .pris-regnestykke {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 20px;
  }
  .pris-pluss {
    margin: 0 auto;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  :root { --pad-x: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn,
  .price-actions .btn { width: 100%; }
  .brand-name { font-size: 15px; }
  .brand-logo { width: 34px; height: 34px; border-radius: 8px; }
  .footer-logo { width: 156px; }
  .price { font-size: 34px; }
  .h2 { font-size: 27px; }
  .hero-lead { font-size: 17px; }
  .contact-row { font-size: 17px; }
  .contact-email { font-size: 14.5px; }
  .portrait-deco { width: 44px; height: 44px; top: -10px; left: -10px; }
}
