/* ==========================================================================
   GardenMotive — hovedstilark
   Farger, typografi og komponenter. Rediger fargene under :root.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #222322;
  --charcoal-2: #2b2d2b;
  --charcoal-3: #353835;
  --lime: #a7c51c;
  --lime-dark: #8aa50f;
  --forest: #496b38;
  --forest-dark: #3a562c;
  --gray: #f2f3f1;
  --gray-2: #e6e8e3;
  --white: #ffffff;
  --text: #282d29;
  --muted: #657065;
  --line: #dfe2dc;
  --danger: #a3361f;

  --font-head: "Manrope", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 100px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(34, 35, 34, .06), 0 2px 8px rgba(34, 35, 34, .05);
  --shadow: 0 10px 30px -12px rgba(34, 35, 34, .22);
  --shadow-lg: 0 24px 60px -24px rgba(34, 35, 34, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Grunnstiler ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--charcoal); line-height: 1.18; letter-spacing: -.015em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.32rem); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
strong { font-weight: 650; color: var(--charcoal); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--lime); color: var(--charcoal); }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--lime); color: var(--charcoal); padding: .7rem 1.1rem; font-weight: 700; border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-gray { background: var(--gray); }
.bg-white { background: var(--white); }
.bg-dark { background: var(--charcoal); color: #d9dcd6; }
.bg-dark h2, .bg-dark h3 { color: var(--white); }

/* ---------- Typografiske hjelpere ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--forest); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--lime); }
.eyebrow--light { color: var(--lime); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head h2 { margin-bottom: .45em; }
.underline::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--lime); border-radius: 2px; margin: .55em auto 0;
}
.section-head--left .underline::after { margin-left: 0; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--muted); line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Knapper ---------- */
.btn {
  --bg: var(--lime); --fg: var(--charcoal); --bd: var(--lime);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .85rem 1.6rem; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  font-family: var(--font-head); font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --bg: #b8d42a; --bd: #b8d42a; color: var(--charcoal); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255, 255, 255, .7); }
.btn--ghost:hover { --bg: var(--white); --fg: var(--charcoal); --bd: var(--white); color: var(--charcoal); }
.btn--dark { --bg: var(--charcoal); --fg: var(--white); --bd: var(--charcoal); }
.btn--dark:hover { --bg: var(--forest); --bd: var(--forest); color: var(--white); }
.btn--outline { --bg: transparent; --fg: var(--charcoal); --bd: var(--charcoal); }
.btn--outline:hover { --bg: var(--charcoal); --fg: var(--white); --bd: var(--charcoal); color: var(--white); }
.btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .74rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--forest); text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--charcoal); }
.text-link:hover svg { transform: translateX(4px); }
.bg-dark .text-link { color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--charcoal); color: var(--white);
  height: var(--header-h);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 212px; height: auto; aspect-ratio: 254 / 50; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav-list { display: flex; align-items: center; gap: clamp(.9rem, 1.9vw, 1.9rem); list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem 0; color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-active { color: var(--lime); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link svg { width: 12px; height: 12px; opacity: .7; }
.submenu {
  position: absolute; top: calc(100% + 14px); left: -20px; min-width: 280px;
  list-style: none; margin: 0; padding: .6rem; background: var(--charcoal-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border-top: 3px solid var(--lime);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block; padding: .6rem .8rem; border-radius: 4px; color: #e6e8e3; text-decoration: none; font-size: .95rem; line-height: 1.35;
}
.submenu a:hover, .submenu a[aria-current="page"] { background: rgba(167, 197, 28, .12); color: var(--lime); }
.header-cta { flex: none; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius);
  background: transparent; color: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  :root { --header-h: 76px; }
  .brand img { width: 180px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--charcoal); padding: 1.2rem var(--gutter) 2.5rem; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-link { width: 100%; padding: 1.05rem 0; font-size: .95rem; }
  .nav-link::after { display: none; }
  .nav-link svg { display: none; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 .8rem .2rem; min-width: 0;
  }
  .submenu::before { display: none; }
  .submenu a { padding: .45rem .6rem; color: #b9bdb6; font-size: .98rem; }
  .primary-nav .mobile-cta { display: flex; margin-top: 1.6rem; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1181px) { .mobile-cta { display: none; } }

/* ---------- Hero (forside) ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white); overflow: hidden; background: var(--charcoal);
  height: clamp(560px, 74vh, 650px);
}
.hero-slide { position: absolute; inset: 0; z-index: 0; opacity: 0; visibility: hidden; transition: opacity 0s linear 1.2s, visibility 0s linear 1.2s; }
.hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; }
.hero-slide .hero-content { transition: opacity .6s var(--ease) .35s, transform .6s var(--ease) .35s; }
.hero-slide:not(.is-active) .hero-content { opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center; transform: scale(1.04); transition: transform 7s linear; }
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 65% at 50% 50%, rgba(20, 22, 20, .55) 0%, rgba(20, 22, 20, .25) 70%, rgba(20, 22, 20, .1) 100%),
    linear-gradient(180deg, rgba(20, 22, 20, .35) 0%, rgba(20, 22, 20, .2) 40%, rgba(20, 22, 20, .7) 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 48px var(--gutter) 96px; max-width: 980px; margin-inline: auto;
}
.hero-content .eyebrow { color: var(--lime); margin-bottom: 1.2rem; }
.hero-content .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--lime); }
.hero-title {
  color: var(--white); font-size: clamp(2.2rem, 5.6vw, 4.25rem); line-height: 1.06; letter-spacing: -.025em; margin-bottom: .35em;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-title em { font-style: normal; color: var(--lime); }
.hero-text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 640px; color: rgba(255, 255, 255, .9); margin-bottom: 2rem; text-wrap: pretty; }
.hero-content .btn-row { justify-content: center; }
.hero-controls {
  position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; gap: .9rem;
  padding: .45rem .7rem; border-radius: 999px; background: rgba(20, 22, 20, .45); backdrop-filter: blur(6px);
}
.hero-dots { display: flex; gap: .2rem; }
.hero-dot { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.hero-dot span { display: block; width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); transition: background-color .3s, width .3s; }
.hero-dot[aria-current="true"] span { background: var(--lime); width: 34px; }
.hero-pause {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: var(--white);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.hero-pause svg { width: 12px; height: 12px; }
.hero-pause .i-play { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 34px; z-index: 3; color: rgba(255, 255, 255, .75);
  font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  writing-mode: vertical-rl; text-decoration: none; display: flex; align-items: center; gap: .7rem;
}
.hero-scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--lime), transparent); }
.hero-scroll:hover { color: var(--lime); }
@media (max-width: 1024px) { .hero { height: 520px; } }
@media (max-width: 767px) {
  .hero { height: clamp(540px, 88svh, 600px); }
  .hero-content { padding-bottom: 104px; }
  .hero-scroll { display: none; }
}

/* ---------- Tjenesteintroduksjon (3 kolonner) ---------- */
.intro-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.intro-col { padding: 8px clamp(20px, 3.2vw, 48px); text-align: center; position: relative; }
.intro-col + .intro-col::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--gray-2); }
.intro-icon {
  width: 72px; height: 72px; margin: 0 auto 1.4rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--forest); box-shadow: var(--shadow-sm);
}
.intro-icon svg { width: 34px; height: 34px; }
.intro-col h3 { margin-bottom: .55em; }
.intro-col p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) {
  .intro-cols { grid-template-columns: 1fr; gap: 2.4rem; }
  .intro-col + .intro-col::before { left: 25%; right: 25%; top: -1.2rem; bottom: auto; width: auto; height: 1px; }
}

/* ---------- Redaksjonell to-kolonne ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.split-media .frame-accent {
  position: absolute; z-index: -1; inset: auto auto -22px -22px; width: 55%; height: 55%;
  border: 2px solid var(--lime); border-radius: var(--radius-lg);
}
.split-media .tag {
  position: absolute; right: -14px; bottom: 32px; background: var(--charcoal); color: var(--white);
  padding: 1rem 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 240px; font-size: .92rem; line-height: 1.45;
}
.split-media .tag strong { display: block; color: var(--lime); font-family: var(--font-head); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .25rem; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23222322' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split-media .tag { right: 12px; }
}

/* ---------- Tjenestekort ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-num {
  position: absolute; left: 18px; top: 18px; z-index: 1; min-width: 42px; height: 42px; padding: 0 .6rem; border-radius: 999px;
  display: grid; place-items: center; background: rgba(34, 35, 34, .82); color: var(--lime);
  font-family: var(--font-head); font-weight: 800; font-size: .85rem; letter-spacing: .06em;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.7rem; }
.card-body h3 { margin-bottom: .5em; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-body p { color: var(--muted); font-size: .98rem; flex: 1; }
.card-body .text-link { margin-top: .4rem; }
.card:hover .text-link svg { transform: translateX(4px); }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--muted); margin-bottom: .7rem; font-weight: 500; }
.card-meta .pill { color: var(--forest); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-family: var(--font-head); }
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Sesongpaneler ---------- */
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.season {
  position: relative; isolation: isolate; min-height: 520px; border-radius: var(--radius-lg); overflow: hidden; color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.7rem;
}
.season > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.season::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 22, 20, .05) 0%, rgba(20, 22, 20, .45) 45%, rgba(20, 22, 20, .92) 100%); }
.season:hover > img { transform: scale(1.05); }
.season-label {
  position: absolute; top: 1.4rem; left: 1.7rem; font-family: var(--font-head); font-size: .72rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--charcoal); background: var(--lime); padding: .35rem .7rem; border-radius: 999px;
}
.season h3 { color: var(--white); font-size: 1.7rem; margin-bottom: .4em; }
.season ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .95rem; color: rgba(255, 255, 255, .9); line-height: 1.45; }
.season li { position: relative; padding-left: 1.1rem; }
.season li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
@media (max-width: 1100px) { .seasons { grid-template-columns: repeat(2, 1fr); } .season { min-height: 440px; } }
@media (max-width: 600px) { .seasons { grid-template-columns: 1fr; } .season { min-height: 400px; } }

/* ---------- Tidslinje ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 35px; height: 2px; background: repeating-linear-gradient(90deg, var(--lime) 0 10px, transparent 10px 18px); }
.timeline li { position: relative; text-align: center; padding: 0 .4rem; }
.step-num {
  position: relative; width: 72px; height: 72px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--charcoal); color: var(--lime); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 0 0 8px var(--white), 0 0 0 9px var(--gray-2);
}
.bg-gray .step-num { box-shadow: 0 0 0 8px var(--gray), 0 0 0 9px var(--gray-2); }
.timeline h3 { font-size: 1.15rem; margin-bottom: .45em; }
.timeline p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 35px; right: auto; top: 36px; bottom: 36px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--lime) 0 10px, transparent 10px 18px); }
  .timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 1.3rem; text-align: left; padding: 0 0 2rem; }
  .timeline li > div { padding-top: .9rem; }
  .step-num { margin: 0; }
}

/* ---------- Galleri (masonry) ---------- */
.masonry { columns: 3 300px; column-gap: clamp(14px, 1.6vw, 22px); }
.masonry figure { break-inside: avoid; margin: 0 0 clamp(14px, 1.6vw, 22px); position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-2); }
.masonry img { width: 100%; transition: transform .8s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.1rem 1rem; color: var(--white); font-size: .9rem; line-height: 1.4;
  background: linear-gradient(transparent, rgba(20, 22, 20, .82));
}
.masonry figcaption .pill {
  display: inline-block; margin-bottom: .3rem; font-family: var(--font-head); font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--lime);
}
.masonry figcaption span:last-child { display: block; }
.masonry button.zoom { all: unset; position: absolute; inset: 0; cursor: zoom-in; z-index: 2; }
.masonry button.zoom:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; border-radius: var(--radius-lg); }
.masonry figure.is-hidden { display: none; }
.disclaimer {
  display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; color: var(--muted); background: var(--white);
  border-left: 3px solid var(--lime); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; max-width: 760px;
}
.bg-white .disclaimer { background: var(--gray); }
.disclaimer svg { width: 20px; height: 20px; flex: none; color: var(--forest); margin-top: .15rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-btn {
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--charcoal); transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--forest); color: var(--forest); }
.filter-btn[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--lime); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 15, 14, .9); }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--radius); }
.lightbox p { color: #e6e8e3; text-align: center; margin: .9rem 0 0; font-size: .95rem; }
.lightbox-close {
  position: absolute; right: -6px; top: -54px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
  background: transparent; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---------- Artikkelkort ---------- */
.article-card .card-media { aspect-ratio: 16 / 9; }

/* ---------- FAQ / trekkspill ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.35rem 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--charcoal);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--forest); }
.accordion .acc-icon { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color .2s, border-color .2s; }
.accordion .acc-icon::before, .accordion .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--charcoal); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.accordion .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion details[open] .acc-icon { background: var(--lime); border-color: var(--lime); }
.accordion details[open] .acc-icon::after { transform: translate(-50%, -50%) rotate(0); }
.accordion .acc-body { padding: 0 3.4rem 1.5rem 0; color: var(--muted); }
.accordion .acc-body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; } .accordion .acc-body { padding-right: 0; } }

/* ---------- CTA-bånd ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--charcoal); color: #d9dcd6; text-align: center; }
.cta-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(34, 35, 34, .55), rgba(34, 35, 34, .92) 75%); }
.cta-band h2 { color: var(--white); max-width: 860px; margin-inline: auto; text-wrap: balance; }
.cta-band p { max-width: 620px; margin: 0 auto 2.2rem; font-size: 1.15rem; color: rgba(255, 255, 255, .85); }
.cta-band .leaf-mark { width: 54px; height: 54px; margin: 0 auto 1.5rem; }

/* ---------- Sideheader (undersider) ---------- */
.page-hero { position: relative; isolation: isolate; color: var(--white); background: var(--charcoal); overflow: hidden; }
.page-hero > picture img, .page-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20, 22, 20, .88) 0%, rgba(20, 22, 20, .62) 45%, rgba(20, 22, 20, .3) 100%); }
.page-hero .wrap { padding-block: clamp(64px, 9vw, 128px) clamp(56px, 7vw, 100px); }
.page-hero h1 { color: var(--white); max-width: 820px; text-wrap: balance; margin-bottom: .35em; }
.page-hero .lead { color: rgba(255, 255, 255, .88); max-width: 680px; margin: 0; }
.page-hero--center { text-align: center; }
.page-hero--center::before { background: linear-gradient(180deg, rgba(20, 22, 20, .55), rgba(20, 22, 20, .78)); }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.page-hero--center .breadcrumb ol { justify-content: center; }
.page-hero--plain { background: var(--charcoal); }
.page-hero--plain::before { background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(167, 197, 28, .16), transparent 60%), radial-gradient(ellipse 50% 100% at 0% 100%, rgba(73, 107, 56, .35), transparent 60%); }

.breadcrumb { margin-bottom: 1.4rem; font-size: .85rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .55rem; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .55rem; color: rgba(255, 255, 255, .7); }
.breadcrumb li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--lime); }
.breadcrumb--dark li { color: var(--muted); }
.breadcrumb--dark a { color: var(--charcoal); }
.breadcrumb--dark a:hover { color: var(--forest); }
.breadcrumb--dark [aria-current] { color: var(--forest); }

/* ---------- Tjeneste-detaljside ---------- */
.svc-hero { background: var(--gray); position: relative; overflow: hidden; }
.svc-hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; min-height: 560px; }
.svc-hero-text { padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px) clamp(48px, 7vw, 96px) 0; display: flex; flex-direction: column; justify-content: center; }
.svc-hero-text h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.svc-hero-media { position: relative; margin-right: calc(var(--gutter) * -1); }
.svc-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 0 0 120px; }
.svc-hero-media::after { content: ""; position: absolute; left: -18px; bottom: 48px; width: 6px; height: 120px; background: var(--lime); border-radius: 3px; }
@media (min-width: 1321px) { .svc-hero-media { margin-right: calc((100vw - var(--wrap)) / -2); } }
@media (max-width: 900px) {
  .svc-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .svc-hero-text { padding: 40px 0 36px; order: 2; }
  .svc-hero-media { order: 1; aspect-ratio: 16 / 10; margin-inline: calc(var(--gutter) * -1); }
  .svc-hero-media img { border-radius: 0; }
  .svc-hero-media::after { display: none; }
}
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 1.4rem; }
.side-box { background: var(--gray); border-radius: var(--radius-lg); padding: 1.7rem; }
.side-box--dark { background: var(--charcoal); color: #cfd3cb; }
.side-box--dark h3 { color: var(--white); }
.side-box h3 { font-size: 1.15rem; }
.side-box p { font-size: .97rem; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { border-bottom: 1px solid var(--gray-2); }
.side-links a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .75rem 0; text-decoration: none; color: var(--charcoal); font-weight: 500; font-size: .97rem; }
.side-links a:hover, .side-links a[aria-current="page"] { color: var(--forest); }
.side-links a[aria-current="page"] { font-weight: 700; }
.side-links svg { width: 14px; height: 14px; color: var(--forest); flex: none; }
@media (max-width: 1000px) { .content-grid { grid-template-columns: minmax(0, 1fr); } .sidebar { position: static; } }

.prose { font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: #3b423c; }
.prose ul li, .prose ol li { margin-bottom: .45em; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: .2rem; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.prose ol { padding-left: 1.3rem; }
.prose ol li::marker { color: var(--forest); font-weight: 700; }
.prose figure { margin: 2.2rem 0; }
.prose figure img { border-radius: var(--radius-lg); width: 100%; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: .7rem; }
.prose blockquote, .callout {
  margin: 2rem 0; padding: 1.4rem 1.6rem; background: var(--gray); border-left: 4px solid var(--lime); border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { display: block; font-family: var(--font-head); margin-bottom: .3rem; }
.callout--warn { border-left-color: var(--forest); }

.task-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.6rem 0 2rem; }
.task { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem; display: flex; gap: .9rem; align-items: flex-start; }
.task svg { width: 26px; height: 26px; flex: none; color: var(--forest); }
.task h3 { font-size: 1rem; margin: 0 0 .25em; }
.task p { font-size: .93rem; margin: 0; color: var(--muted); }
@media (max-width: 640px) { .task-grid { grid-template-columns: 1fr; } }

/* ---------- Vedlikeholdsside / sjekklister ---------- */
.season-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.season-block { display: grid; grid-template-columns: 380px 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 4vw, 48px); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 2rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.season-block img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius); }
.season-block h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.season-block .months { font-family: var(--font-head); font-weight: 700; color: var(--forest); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .6rem; display: block; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.checklist label { display: flex; gap: .8rem; align-items: flex-start; padding: .65rem .8rem; border-radius: var(--radius); cursor: pointer; transition: background-color .2s; }
.checklist label:hover { background: var(--gray); }
.checklist input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin-top: .15rem; border: 2px solid var(--forest); border-radius: 5px; display: grid; place-items: center; cursor: pointer; background: var(--white); }
.checklist input::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--charcoal); border-bottom: 2.5px solid var(--charcoal); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checklist input:checked { background: var(--lime); border-color: var(--lime); }
.checklist input:checked::after { opacity: 1; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--lime); }
.checklist-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }
.checklist-reset { background: none; border: 0; padding: .4rem 0; color: var(--forest); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .season-block { grid-template-columns: 1fr; } .season-block img { min-height: 220px; max-height: 280px; } }

.year-table { width: 100%; border-collapse: collapse; font-size: .97rem; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.year-table th, .year-table td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.year-table th { font-family: var(--font-head); color: var(--white); background: var(--charcoal); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.year-table td:first-child { font-weight: 700; color: var(--forest); white-space: nowrap; font-family: var(--font-head); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }

/* ---------- Om oss ---------- */
.statement { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.3; letter-spacing: -.015em; color: var(--charcoal); max-width: 980px; margin: 0 auto; text-align: center; text-wrap: balance; }
.statement em { font-style: normal; color: var(--forest); background: linear-gradient(transparent 62%, rgba(167, 197, 28, .35) 62%); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.value { padding: 2rem 1.6rem; background: var(--white); border-radius: var(--radius-lg); border-top: 3px solid var(--lime); box-shadow: var(--shadow-sm); }
.value .intro-icon { margin: 0 0 1.2rem; width: 58px; height: 58px; background: var(--gray); box-shadow: none; }
.value .intro-icon svg { width: 28px; height: 28px; }
.value p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 1024px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 560px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.mosaic > :first-child { grid-row: span 2; }
@media (max-width: 700px) { .mosaic { height: 420px; } }

/* ---------- Artikler ---------- */
.feature-article { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; margin-bottom: clamp(28px, 3vw, 40px); }
.feature-article .card-media { aspect-ratio: auto; min-height: 420px; }
.feature-article .card-media img { position: absolute; inset: 0; }
.feature-article .card-body { padding: clamp(28px, 4vw, 56px); justify-content: center; }
.feature-article h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.feature-article h2 a { color: inherit; text-decoration: none; }
.feature-article h2 a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 900px) { .feature-article { grid-template-columns: 1fr; } .feature-article .card-media { min-height: 0; aspect-ratio: 16 / 9; } }

.article-head { background: var(--gray); padding: clamp(40px, 6vw, 80px) 0 0; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 900px; text-wrap: balance; }
.article-head .lead { max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .9rem; color: var(--muted); margin: 1.4rem 0 clamp(32px, 4vw, 48px); }
.article-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.article-meta svg { width: 16px; height: 16px; color: var(--forest); }
.article-cover { position: relative; }
.article-cover::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: var(--white); }
.article-cover img { position: relative; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); justify-content: center; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; font-size: .92rem; }
.toc h2 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--forest); margin-bottom: 1rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--gray-2); }
.toc a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover, .toc a.is-active { color: var(--charcoal); border-left-color: var(--lime); }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .toc { position: static; background: var(--gray); padding: 1.3rem 1.4rem; border-radius: var(--radius-lg); } }

/* ---------- Kontakt og skjema ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ico { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--charcoal); color: var(--lime); display: grid; place-items: center; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: var(--font-head); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; font-weight: 700; }
.info-list a, .info-list address { color: var(--charcoal); font-style: normal; font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.info-list a:hover { color: var(--forest); text-decoration: underline; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 48px); border-top: 4px solid var(--lime); }
.form-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-weight: 600; font-size: .93rem; color: var(--charcoal); margin-bottom: .4rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border: 1.5px solid #cdd2c9; border-radius: var(--radius); background: var(--white);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s; color: var(--text);
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23496B38' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right .9rem center / 18px no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aab2a5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(167, 197, 28, .3); }
.field .hint { font-size: .84rem; color: var(--muted); margin-top: .35rem; }
.field .error { display: none; font-size: .86rem; color: var(--danger); margin-top: .35rem; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .error { display: block; }
.consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.consent input { flex: none; width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--forest); }
.consent a { color: var(--forest); }
.field.has-error .consent { color: var(--danger); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-bottom: 1.2rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .95rem; }
.form-status.is-error { display: block; background: #fbeee9; color: #7d2a17; border-left: 4px solid var(--danger); }
.form-status.is-info { display: block; background: var(--gray); color: var(--text); border-left: 4px solid var(--lime); }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.4rem; }
.form-actions .small { margin: 0; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
legend { display: flex; align-items: center; gap: .8rem; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--charcoal); margin-bottom: 1.2rem; padding: 0; }
legend .n { width: 34px; height: 34px; border-radius: 50%; background: var(--charcoal); color: var(--lime); display: grid; place-items: center; font-size: .85rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.quote-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.quote-aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 1.4rem; }
.quote-aside img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: ms; display: grid; gap: .9rem; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 30px 1fr; gap: .8rem; font-size: .95rem; }
.mini-steps li::before { content: counter(ms, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; color: var(--lime); font-size: .9rem; padding-top: .1rem; }
@media (max-width: 1000px) { .quote-grid { grid-template-columns: 1fr; } .quote-aside { position: static; } }

/* ---------- Takk / 404 ---------- */
.notice-page { min-height: 70vh; display: grid; place-items: center; text-align: center; position: relative; isolation: isolate; color: var(--white); background: var(--charcoal); overflow: hidden; }
.notice-page > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.notice-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(34, 35, 34, .5), rgba(34, 35, 34, .95) 75%); }
.notice-page h1 { color: var(--white); }
.notice-page p { color: rgba(255, 255, 255, .85); font-size: 1.15rem; max-width: 620px; margin-inline: auto; }
.notice-page .btn-row { justify-content: center; margin-top: 2rem; }
.success-mark { width: 88px; height: 88px; margin: 0 auto 1.6rem; border-radius: 50%; background: var(--lime); color: var(--charcoal); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(167, 197, 28, .18); }
.success-mark svg { width: 40px; height: 40px; }
.big-404 { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--lime); letter-spacing: -.04em; margin-bottom: .2em; }

/* ---------- Juridiske sider ---------- */
.legal { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: clamp(32px, 6vw, 96px); justify-content: center; }
.legal .prose h2 { font-size: 1.45rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1.2rem 0 1.8rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; vertical-align: top; }
.legal th { background: var(--gray); font-family: var(--font-head); }
@media (max-width: 1000px) { .legal { grid-template-columns: minmax(0, 1fr); } }
.legal .table-scroll { margin: 1.2rem 0 1.8rem; border-radius: 0; }
.legal .table-scroll table { margin: 0; min-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #b9bdb6; font-size: .97rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--lime) 0 18%, var(--forest) 18% 36%, transparent 36%); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(32px, 4vw, 64px); padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.footer-brand img { width: 220px; margin-bottom: 1.4rem; }
.footer-brand p { max-width: 340px; }
.site-footer h2 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin-bottom: 1.3rem; font-weight: 800; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a, .site-footer address a { color: #b9bdb6; text-decoration: none; transition: color .2s; }
.footer-links a:hover, .site-footer address a:hover { color: var(--lime); }
.site-footer address { font-style: normal; display: grid; gap: .9rem; }
.site-footer address strong { color: var(--white); font-family: var(--font-head); }
.footer-contact-row { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact-row svg { width: 18px; height: 18px; flex: none; color: var(--lime); margin-top: .3rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; align-items: center; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer-legal a, .footer-legal button { color: #b9bdb6; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: .88rem; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--lime); text-decoration: underline; }
@media (max-width: 1024px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Samtykkebanner ---------- */
.cc-banner {
  position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; max-width: 560px;
  background: var(--white); color: var(--text); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  padding: 1.5rem 1.6rem; border-top: 4px solid var(--lime); font-size: .93rem;
}
.cc-banner h2 { font-size: 1.15rem; margin-bottom: .5rem; }
.cc-banner p { margin-bottom: 1.1rem; color: var(--muted); }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cc-actions .btn { min-height: 46px; font-size: .74rem; padding: .6rem .8rem; }
.cc-actions .cc-custom { grid-column: 1 / -1; background: none; border: 0; color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: .5rem; min-height: 44px; }
.cc-modal { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); color: var(--text); }
.cc-modal::backdrop { background: rgba(14, 15, 14, .65); }
.cc-modal form { padding: clamp(22px, 4vw, 36px); }
.cc-modal h2 { font-size: 1.4rem; }
.cc-opt { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.cc-opt h3 { font-size: 1rem; margin: 0 0 .25rem; }
.cc-opt p { font-size: .9rem; color: var(--muted); margin: 0; }
.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #c9cec4; transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--forest); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { background: var(--lime); opacity: .7; }
.switch input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.cc-modal .btn-row { margin-top: 1.4rem; }
@media (max-width: 480px) { .cc-banner { left: 10px; right: 10px; bottom: 10px; padding: 1.2rem; } .cc-actions { grid-template-columns: 1fr; } }

/* ---------- Animasjon ved scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none !important; }
}

@media print {
  .site-header, .site-footer, .cc-banner, .hero-controls, .sidebar, .toc { display: none !important; }
  body { font-size: 12pt; }
}
