/* Skadeverksted i Oslo – gjenoppbygd statisk side (samme profil som KS-Auto Gruppen) */
:root {
  --dark: #1f1c2f;
  --darker: #1a1a23;
  --accent: #f39c12;
  --accent-dark: #d68910;
  --text: #626262;
  --heading: #1f1c2f;
  --muted: #c2c2c2;
  --light: #f7f7f7;
  --border: #ebebeb;
  --white: #fff;
  --radius: 4px;
  --max: 1170px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { color: var(--heading); font-weight: 400; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 90px 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--dark); color: var(--muted); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.text-center { text-align: center; }
.lead { font-size: 1.1rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: .8em;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
}
.site-header--solid { position: relative; background: var(--dark); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo img { width: 62px; }
.logo span { font-weight: 700; letter-spacing: .04em; font-size: 1.05rem; color: #fff; white-space: nowrap; }
@media (max-width: 400px) { .logo img { width: 50px; } .logo span { font-size: .92rem; } }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav a {
  color: #fff; font-size: .92rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer;
}
.nav-toggle svg { vertical-align: -3px; margin-right: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--dark);
    display: none; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Hero / slider ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; overflow: hidden; background: var(--darker); }
.hero__slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease;
  padding: 120px 0 80px;
}
.hero__slide::before { content: ""; position: absolute; inset: 0; background: rgba(20, 18, 32, .62); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__content { position: relative; text-align: center; max-width: 900px; }
.hero h1, .hero h2 { color: #fff; margin-bottom: .3em; font-size: clamp(2.2rem, 6vw, 4rem); }
.hero__sub { display: block; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; margin-bottom: 1.2em; font-size: clamp(.85rem, 1.6vw, 1rem); }
.hero p { font-size: clamp(1rem, 1.8vw, 1.15rem); color: rgba(255,255,255,.9); }
.hero__dots { position: absolute; bottom: 32px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero__dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer;
}
.hero__dots button[aria-current="true"] { background: var(--accent); border-color: var(--accent); }

.page-hero {
  position: relative; color: #fff; text-align: center;
  background: var(--dark) url("/img/hero.jpg") center/cover no-repeat;
  padding: 170px 0 90px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20, 18, 32, .72); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .6em 0 0; color: rgba(255,255,255,.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border-radius: var(--radius);
  padding: 12px 28px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: .88rem;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; border: 2px solid #fff; }
.btn--ghost:hover { background: #fff; color: var(--dark); }

/* ---------- Partner cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 28px rgba(31,28,47,.08); transition: transform .25s, box-shadow .25s; display: block; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(31,28,47,.14); color: inherit; }
.card img { width: 100%; aspect-ratio: 53/40; object-fit: cover; }
.card__body { padding: 26px 28px 30px; text-align: center; }
.card__body h3 { text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; font-weight: 700; }
.card__body p { margin: 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 30px; margin-top: 50px; }
.feature { text-align: center; }
.feature__icon {
  width: 84px; height: 84px; border-radius: 50%; background: #fff; box-shadow: 0 8px 26px rgba(31,28,47,.1);
  display: grid; place-items: center; margin: 0 auto 22px; color: var(--accent);
}
.feature__icon svg { width: 34px; height: 34px; }
.feature h3 { margin-bottom: .4em; }
.feature p { margin: 0; font-size: .95rem; }

/* ---------- Content (om oss / artikler) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.member { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; padding: 50px 0; border-top: 1px solid var(--border); }
.member:first-of-type { border-top: 0; }
.member__logo { background: #fff; border-radius: var(--radius); box-shadow: 0 6px 24px rgba(31,28,47,.08); padding: 16px; }
.member blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-weight: 500; color: var(--heading); }
@media (max-width: 680px) { .member { grid-template-columns: 1fr; gap: 20px; } .member__logo { max-width: 200px; } }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.post-card h2 { font-size: 1.5rem; }
.post-card h2 a { color: var(--heading); }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { flex: 1; }
.post-card .more { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.tag { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; color: var(--accent); }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--dark) url("/img/hero.jpg") center/cover no-repeat; color: var(--muted); }
.contact::before { content: ""; position: absolute; inset: 0; background: rgba(26, 26, 35, .9); }
.contact .container { position: relative; }
.contact h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 40px; }
.contact__item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 30px; }
.contact__item h3 { color: #fff; font-weight: 700; font-size: 1.15rem; }
.contact__item p { margin: 0; line-height: 1.9; }
.contact__item a { color: #fff; }
.contact__item a:hover { color: var(--accent); }
.map { margin-top: 50px; border-radius: var(--radius); overflow: hidden; border: 0; width: 100%; height: 460px; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: var(--muted); text-align: center; padding: 70px 0 30px; }
.site-footer h2 { color: #fff; font-size: 1.8rem; margin-bottom: .2em; }
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 50px; margin: 40px 0 50px; }
.partners a { display: block; opacity: .85; transition: opacity .2s, transform .2s; }
.partners a:hover { opacity: 1; transform: scale(1.04); }
.partners img { height: 60px; width: auto; }
.partners .partner--light { background: #fff; border-radius: var(--radius); padding: 6px 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.footer-social svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .footer-bottom { justify-content: center; text-align: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .card, .partners a { transition: none; }
}

/* ---------- Skadeverksted i Oslo: tillegg ---------- */
/* Undermeny «Vi tilbyr» */
.nav li { position: relative; }
.nav .sub { display: none; position: absolute; top: 100%; left: -18px; min-width: 230px; flex-direction: column; gap: 0;
  background: var(--dark); padding: 10px 18px; border-top: 2px solid var(--accent); box-shadow: 0 12px 30px rgba(0,0,0,.3); z-index: 60; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: flex; }
.nav .sub a { display: block; padding: 8px 0; text-transform: none; letter-spacing: .02em; font-size: .95rem; border-bottom: 0; }
.nav .sub a:hover, .nav .sub a[aria-current="page"] { border-bottom: 0; }
.nav .has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
@media (max-width: 1020px) { .nav ul { gap: 22px; } .nav a { font-size: .85rem; } }
@media (max-width: 820px) {
  .nav .sub { display: flex; position: static; box-shadow: none; border-top: 0; padding: 0 0 0 16px; min-width: 0; background: transparent; }
  .nav .sub a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .9rem; }
  .nav .has-sub > a::after { display: none; }
}

/* Hero-tekst venstrejustert som originalen */
.hero--single { min-height: 82vh; min-height: 82svh; }
.hero__sub--lc { text-transform: none; font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 400; letter-spacing: 0; }

/* Tjenestekort */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-top: 50px; text-align: left; }
.service { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 28px rgba(31,28,47,.08); display: flex; flex-direction: column; color: inherit; transition: transform .25s, box-shadow .25s; }
.service:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(31,28,47,.14); color: inherit; }
.service img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.service__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.service__body h3 { font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.service__body p { flex: 1; font-size: .97rem; }
.more { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--accent); }

/* Innholdssider med sidekolonne */
.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 50px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.content h2 { margin-top: 1.3em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.content h3 { margin-top: 1.2em; }
.content > :first-child { margin-top: 0; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.content li { margin-bottom: .4em; }
.content .wide { width: 100%; border-radius: var(--radius); margin: 0 0 1.6em; }
.content hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
.meta { font-size: .88rem; color: #8a8a8a; margin-bottom: 1.6em; }
.tags { font-size: .9rem; border-top: 1px solid var(--border); padding-top: 1.2em; margin-top: 2em; }
.sidebar { display: grid; gap: 30px; }
.widget { background: var(--light); border-radius: var(--radius); padding: 26px; border-top: 3px solid var(--accent); }
.widget h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .8em; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--heading); }
.widget li:last-child a { border-bottom: 0; }
.widget li a:hover, .widget li a[aria-current="page"] { color: var(--accent); }
.widget .banner { display: block; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; }
.widget .banner:last-child { margin-bottom: 0; }
.widget .banner img { width: 100%; transition: transform .25s; }
.widget .banner:hover img { transform: scale(1.03); }
.widget iframe { width: 100%; height: 240px; border: 0; border-radius: var(--radius); display: block; margin-bottom: 18px; }
.widget p { margin: 0 0 .6em; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 3px 12px; font-size: .85rem; }

/* Bedriftene bak */
@media (min-width: 681px) { .member { grid-template-columns: 200px 1fr; } }
.member__logo { padding: 0; overflow: hidden; }
.member h2 { margin-top: 0; font-size: 1.5rem; }
.member h2 small { display: block; font-size: 1rem; color: var(--text); margin-top: .4em; font-weight: 400; }

/* Nyhetsliste */
.post-row { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.post-row:first-child { padding-top: 0; }
.post-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--light); }
.post-row h2 { font-size: 1.5rem; margin: 0 0 .4em; }
.post-row h2 a { color: var(--heading); }
.post-row h2 a:hover { color: var(--accent); }
@media (max-width: 600px) { .post-row { grid-template-columns: 1fr; gap: 16px; } .post-row img { max-width: 320px; } }

.contact__item hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 1.2em 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
