/* ==========================================================================
   Netlandet AS – Din BMW-spesialist
   Stil i samme familie som partnerne essenbil.no og spydebergbil.no:
   Open Sans, Voces i menyen, hvit header, lysegrå seksjoner og rødt aksent.
   ========================================================================== */

:root {
  --red: #dc1f25;
  --red-dark: #b9161c;
  --m-black: #0a0a0a;
  --m-red: #bd090c;
  --m-blue: #2e60f1;
  --blue: #3057df;

  --ink: #0f0f10;
  --text: #1f1f1f;
  --muted: #5c6066;
  --line: #e3e3e3;
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --dark: #121214;

  --header-h: 90px;
  --radius: 10px;
  --wrap: 1200px;
  --gutter: 28px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-nav: "Voces", "Open Sans", system-ui, sans-serif;
}

/* ---------- Grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: #000; color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap {
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: calc(860px + var(--gutter) * 2); }

/* ---------- Typografi-hjelpere ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-nav);
  font-size: 13px; line-height: 1;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.stripes { display: inline-flex; gap: 3px; transform: skewX(-24deg); flex: none; }
.stripes i { display: block; width: 6px; height: 15px; }
.stripes i:nth-child(1) { background: var(--m-black); }
.stripes i:nth-child(2) { background: var(--m-red); }
.stripes i:nth-child(3) { background: var(--m-blue); }
.on-dark .stripes i:nth-child(1) { background: #fff; }

.h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.2rem); font-weight: 300; color: #2b2b2b; line-height: 1.7; }
.muted { color: var(--muted); }
.m { white-space: nowrap; letter-spacing: .02em; }
.nw { white-space: nowrap; }
.center { text-align: center; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: .3px;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 0;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--outline { border-color: rgba(220, 31, 37, .75); color: var(--red); background: transparent; }
.btn--outline:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2a2d; border-color: #2a2a2d; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: transparent; color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--red); text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform .25s; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  max-width: 1380px; margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: block; flex: none; }
.brand img { height: 58px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: inline-block;
  padding: 10px 0;
  font-family: var(--font-nav); font-size: 14px; line-height: 1;
  letter-spacing: 1px; text-transform: uppercase;
  color: #000; text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  height: 44px; padding: 0 4px 0 12px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-nav); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #000;
}
.menu-toggle .bars { position: relative; width: 24px; height: 14px; }
.menu-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: #000;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 99;
  background: #fff;
  padding: 18px var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav ul a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  font-family: var(--font-nav); font-size: 17px; letter-spacing: 1.2px; text-transform: uppercase;
  color: #000; text-decoration: none;
}
.mobile-nav ul a[aria-current="page"] { color: var(--red); }
.mobile-nav ul a svg { width: 18px; height: 18px; color: var(--muted); }
.mobile-nav .mobile-contact { margin-top: 28px; display: grid; gap: 10px; }
.mobile-nav .mobile-contact .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- Hero (forside) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 640px;
  min-height: max(620px, calc(100vh - var(--header-h)));
  min-height: max(620px, calc(100svh - var(--header-h)));
  color: #fff; background: var(--dark);
}
@media (min-height: 1100px) { .hero { min-height: 940px; } }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 9s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, .62) 0%, rgba(8, 8, 10, .50) 38%, rgba(8, 8, 10, .56) 62%, rgba(8, 8, 10, .88) 100%);
}
.hero-content {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: clamp(64px, 10vh, 120px); padding-bottom: 48px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.45rem, 6.3vw, 5.25rem);
  font-weight: 600; letter-spacing: -.018em; line-height: 1.08;
  margin: 0 0 .38em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .28);
}
.hero-lead {
  max-width: 44ch; margin: 0 auto;
  font-size: clamp(1.08rem, 1.75vw, 1.45rem); font-weight: 400; line-height: 1.6;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .3);
}
.hero-services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  padding: 30px 0 44px;
}
.hero-service { display: block; text-decoration: none; color: #fff; }
.hero-service p { margin: 14px 0 0; font-weight: 300; color: rgba(255, 255, 255, .9); line-height: 1.55; }
.hero-service:hover .pill { background: #fff; color: var(--red); }
.pill {
  display: inline-block;
  padding: 4px 15px 5px; border-radius: 20px;
  background: var(--red); color: #fff;
  font-size: 15px; font-weight: 600; line-height: 1.5;
  transition: background-color .25s, color .25s;
}

/* ---------- Seksjoner ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); }

/* Samarbeid */
.partners { text-align: center; }
.partners h2 { font-size: clamp(1.4rem, 2.3vw, 1.75rem); margin-bottom: 0; }
.partner-logos {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: clamp(36px, 8vw, 104px);
  margin: clamp(28px, 4vw, 40px) 0 clamp(24px, 3vw, 32px);
}
.partner-logos a { display: block; transition: transform .3s var(--ease), opacity .3s; }
.partner-logos a:hover { transform: translateY(-3px); }
.partner-logos .logo-essen { width: 188px; }
.partner-logos .logo-spydeberg { width: 236px; }
.partners .partners-text { max-width: 64ch; margin: 0 auto; color: var(--muted); }

/* Bildekort */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
/* To kort (mens BMW Motorrad er deaktivert): samme kortstørrelse som med tre, sentrert */
.cards--2 { grid-template-columns: repeat(2, calc((100% - 60px) / 3)); justify-content: center; }
.card {
  position: relative; isolation: isolate; display: block;
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: #222; color: #fff; text-decoration: none;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .78) 100%);
}
.card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: clamp(22px, 2.4vw, 30px);
}
.card h3 { color: #fff; font-size: clamp(1.45rem, 2.2vw, 2rem); margin: 0 0 4px; }
.card p { margin: 0; font-weight: 300; color: rgba(255, 255, 255, .9); line-height: 1.5; }
.card .arrow {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .75);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.card .arrow svg { width: 18px; height: 18px; }
.card:hover img { transform: scale(1.05); }
.card:hover .arrow { background: var(--red); border-color: var(--red); transform: translateX(3px); }

/* To kolonner */
.split {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(36px, 6vw, 84px);
}
.split--top { align-items: start; }

/* Fakta */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fact {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.fact strong {
  display: block; margin-bottom: 12px;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1; letter-spacing: -.01em;
  color: var(--ink);
}
.fact strong::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 14px; background: var(--red); }
.fact > span { display: block; font-size: .95rem; line-height: 1.55; color: var(--muted); }
.section--alt .fact { border-color: transparent; }

/* ---------- Video (reels) ---------- */
.reels-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}
.reels-head .section-head { margin-bottom: 0; }
.reels-nav { display: flex; gap: 10px; }
.reels-nav button {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff; border: 1px solid #d4d4d4; color: var(--ink); cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, opacity .25s;
}
.reels-nav button svg { width: 20px; height: 20px; }
.reels-nav button:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }
.reels-nav button:disabled { opacity: .35; cursor: default; }

.reels { --reel-gap: 24px; position: relative; }
.reels-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--reel-gap)) / 3);
  gap: var(--reel-gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  list-style: none; margin: 0; padding: 0;
}
.reels-track::-webkit-scrollbar { display: none; }
.reel {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 26px rgba(0, 0, 0, .06);
}
.reel-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 9 / 14;
  padding: 0; border: 0; margin: 0; cursor: pointer;
  background: #0d0d0e; overflow: hidden; isolation: isolate;
  color: #fff;
}
.reel-backdrop {
  position: absolute; inset: -40px; z-index: -1;
  width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
  object-fit: cover; filter: blur(26px) brightness(.55) saturate(1.1);
}
.reel-poster, .reel-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.reel--contain .reel-poster, .reel--contain .reel-media video { object-fit: contain; }
.reel-media video { opacity: 0; transition: opacity .45s; }
.reel.is-previewing .reel-media video { opacity: 1; }
.reel-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .35) 100%);
}
.reel-play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: transform .35s var(--ease), background-color .25s, color .25s, opacity .3s;
}
.reel-play svg { width: 26px; height: 26px; margin-left: 4px; }
.reel-media:hover .reel-play, .reel-media:focus-visible .reel-play {
  background: var(--red); color: #fff; transform: translate(-50%, -50%) scale(1.06);
}
.reel.is-previewing .reel-play { opacity: .0; }
.reel.is-previewing .reel-media:hover .reel-play { opacity: 1; }
.reel-badge {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(0, 0, 0, .58); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1.6; letter-spacing: .3px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.reel-badge svg { width: 12px; height: 12px; }
.reel-body {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 18px 20px 20px;
  flex: 1;
}
.reel-body h3 { font-size: 1.06rem; line-height: 1.38; margin: 0 0 3px; }
.reel-body p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.reel-ig {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  transition: background-color .25s, border-color .25s, color .25s;
}
.reel-ig svg { width: 18px; height: 18px; }
.reel-ig:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.reels-progress { position: relative; height: 2px; margin-top: 30px; background: #dcdcdc; overflow: hidden; }
.reels-progress span {
  position: absolute; left: 0; top: 0; bottom: 0; width: 40%;
  background: var(--red); transition: transform .35s var(--ease), width .35s var(--ease);
}
.reels-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- Om oss ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-media { position: relative; padding: 0 clamp(36px, 5vw, 64px) clamp(56px, 7vw, 88px) 0; }
.about-media .main { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2.25; object-fit: cover; object-position: 50% 30%; }
.about-media .inset {
  position: absolute; right: 0; bottom: 0;
  width: 44%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%;
  border-radius: var(--radius); border: 6px solid #fff;
  box-shadow: var(--shadow);
}
.about-text h2 { margin-bottom: .5em; }
.about-contact { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.about-contact h3 {
  font-family: var(--font-nav); font-size: 13px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.social-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.social-btns .btn svg { width: 19px; height: 19px; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; color: var(--ink); }
.contact-lines a:hover { color: var(--red); }
.contact-lines svg { width: 18px; height: 18px; color: var(--red); }

/* ---------- Her finner du oss ---------- */
.location-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 24px; margin-bottom: clamp(26px, 3vw, 36px);
}
.location-head .section-head { margin-bottom: 0; }
.address { font-style: normal; font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.address strong { display: block; }
.location-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 24px;
  height: clamp(380px, 40vw, 540px);
}
.location-photo, .location-map { position: relative; border-radius: var(--radius); overflow: hidden; background: #e7e7e7; }
.location-photo img { width: 100%; height: 100%; object-fit: cover; }
.location-photo figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 7px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: .88rem; font-weight: 600; line-height: 1.4;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.location-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 64px) 0 clamp(44px, 5vw, 56px); }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: center;
  gap: 18px clamp(40px, 9vw, 120px);
  margin: 0; text-align: center;
}
.footer-grid div { margin: 0; }
.footer-grid dt {
  font-family: var(--font-nav); font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.footer-grid dd { margin: 0; font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--red); }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.footer-social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: background-color .25s, border-color .25s, color .25s;
}
.footer-social a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.footer-social svg { width: 19px; height: 19px; }

/* ---------- Undersider ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(340px, 50vh, 500px);
  background: var(--dark); color: #fff;
}
.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(180deg, rgba(8, 8, 10, .35) 0%, rgba(8, 8, 10, .45) 45%, rgba(8, 8, 10, .85) 100%);
}
.page-hero .wrap { width: 100%; padding-top: 96px; padding-bottom: clamp(40px, 5vw, 60px); }
.page-hero .eyebrow { color: rgba(255, 255, 255, .85); }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.08; margin: 0 0 .28em; }
.page-hero p { max-width: 50ch; margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 300; color: rgba(255, 255, 255, .93); }

/* Tjenester */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.services--3 { grid-template-columns: repeat(3, 1fr); }
.services--2 { grid-template-columns: repeat(2, 1fr); }
.service {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 28px;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s;
}
.section--alt .service { border-color: transparent; }
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.service-num { font-family: var(--font-nav); font-size: 13px; letter-spacing: 2px; color: var(--red); margin-bottom: 18px; line-height: 1; }
.service h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service p { margin: 0; font-size: .95rem; line-height: 1.68; color: #474a4f; }

/* Motorer */
.engines {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  list-style: none; margin: 0; padding: 0;
}
.engines li { padding: 28px 8px 26px; text-align: center; background: #fff; }
.engines strong { display: block; font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 700; line-height: 1.1; letter-spacing: .01em; color: var(--ink); }
.engines span { display: block; margin-top: 8px; font-size: .88rem; line-height: 1.45; color: var(--muted); }

/* Galleri */
.gallery { columns: 3 300px; column-gap: 18px; }
.gallery a {
  position: relative; display: block; break-inside: avoid; margin: 0 0 18px;
  border-radius: var(--radius); overflow: hidden; background: #ddd; cursor: zoom-in;
}
.gallery img { width: 100%; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 16px 13px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .72));
  color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.4;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.gallery a:hover .cap, .gallery a:focus-visible .cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery .cap { opacity: 1; transform: none; } }

/* CTA */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 28px;
  padding: clamp(34px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--dark); color: #fff;
  position: relative; overflow: hidden; isolation: isolate;
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; right: -40px; top: -20px; bottom: -20px; width: 180px;
  background: linear-gradient(90deg, var(--m-black) 0 33.33%, var(--m-red) 33.33% 66.66%, var(--m-blue) 66.66% 100%);
  transform: skewX(-24deg); opacity: .9;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .35em; }
.cta-band p { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, .82); }
.cta-band > div:first-child { flex: 1 1 380px; }
.cta-band .btn-row { flex: none; margin-right: clamp(0px, 8vw, 120px); }

.note {
  display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.note img { width: 150px; flex: none; }
.note p { margin: 0; flex: 1; min-width: 240px; }

/* Bildepar */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.photo-pair img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* ---------- Nyheter ---------- */
.news { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: grid; grid-template-columns: 5fr 7fr; align-items: start;
  gap: clamp(26px, 4.5vw, 64px);
  padding: clamp(40px, 5vw, 60px) 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #ddd; cursor: zoom-in; }
.news-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.news-media:hover img { transform: scale(1.03); }
.news-media--natural img { aspect-ratio: auto; }
.news-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  font-family: var(--font-nav); font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; line-height: 1.4;
}
.news-meta time { color: var(--red); }
.news-item h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin-bottom: .55em; }
.news-body ul { margin: 0 0 1.1em; padding-left: 0; list-style: none; }
.news-body li { position: relative; padding-left: 22px; margin-bottom: 6px; line-height: 1.6; }
.news-body li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 9px; height: 3px; background: var(--red); transform: skewX(-24deg); }
.news-item .text-link { margin-top: 6px; }
.news-tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  background: var(--red); color: #fff; letter-spacing: 1px; font-size: 11px; line-height: 1.7;
}

/* ---------- Sjekkliste (Motorrad) ---------- */
.checklist-card {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 40px);
}
.checklist-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.checklist { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--red); }

/* ---------- Video i nyhetssak ---------- */
.news-reel { width: 100%; }
.news-reel .reels-track { grid-auto-columns: 100%; overflow: visible; }
.news-reel .reel { box-shadow: none; }
.news-reel .reel-media { aspect-ratio: 4 / 3; border-radius: var(--radius); }

.location-photo { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(6, 6, 8, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; max-width: calc(100vw - 32px); }
.lightbox-stage video, .lightbox-stage img {
  max-width: min(92vw, 1400px); max-height: calc(100vh - 150px); max-height: calc(100svh - 150px);
  width: auto; height: auto;
  border-radius: 8px; background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox-caption {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px;
  margin: 16px 16px 0; text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .88);
}
.lightbox-caption a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.lightbox-caption a:hover { color: #ff9a9d; }
.lightbox-caption svg { width: 16px; height: 16px; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.lightbox-close:hover { background: var(--red); border-color: var(--red); }
.lightbox-close svg { width: 20px; height: 20px; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 100px 0; }
.error-page .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; line-height: 1; color: var(--ink); margin-bottom: 10px; }
.error-page .btn-row { justify-content: center; margin-top: 26px; }

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

/* ---------- Responsivt ---------- */
@media (max-width: 1180px) {
  .engines { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1120px) {
  .main-nav ul { gap: 28px; }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  :root { --header-h: 76px; }
  .brand img { height: 48px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .reels-track { grid-auto-columns: calc((100% - var(--reel-gap)) / 2.2); }
}
@media (max-width: 900px) {
  .split, .about { grid-template-columns: 1fr; }
  .about-media { max-width: 620px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .cards--2 .card:last-child { grid-column: auto; aspect-ratio: 1 / 1; }
  .location-grid { grid-template-columns: 1fr; height: auto; }
  .location-photo { aspect-ratio: 3 / 2; }
  .location-map { height: 380px; }
  .news-item { grid-template-columns: 1fr; }
  .cta-band::after { width: 110px; right: -50px; }
  .cta-band .btn-row { margin-right: 40px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .hero-services { grid-template-columns: 1fr; gap: 18px; padding: 24px 0 32px; }
  .hero-service { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 14px; }
  .hero-service p { margin: 0; font-size: .95rem; }
  .hero-service .pill { justify-self: start; }
  .hero-content { padding-top: 56px; padding-bottom: 32px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .cards .card, .cards .card:last-child { aspect-ratio: 4 / 3; grid-column: auto; }
  .facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fact { padding: 20px 18px; }
  .services, .services--3, .services--2 { grid-template-columns: 1fr; }
  .engines { grid-template-columns: repeat(2, 1fr); }
  .reels { --reel-gap: 14px; }
  .reels-track { grid-auto-columns: 74%; }
  .reels-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .about-media { padding-right: 28px; padding-bottom: 48px; }
  .photo-pair { grid-template-columns: 1fr; }
  .location-map { height: 340px; }
  .note img { width: 120px; }
  .btn-row .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .brand img { height: 42px; }
  .menu-toggle .label { display: none; }
  .hero-service { grid-template-columns: 1fr; gap: 8px; }
  .facts { grid-template-columns: 1fr; }
}

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