/* =========================================================
   Teien Sag og Høvleri AS — designsystem
   Furugrønt + tømmeramber, Fraunces til overskrifter og Inter til brødtekst.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212;
}

:root {
  --pine-900: #0e241c;
  --pine-800: #143024;
  --pine-700: #1b4032;
  --pine-500: #2f6349;
  --pine-100: #dfe9e2;

  --saw-600: #a55c1c;
  --saw-500: #c67a2c;
  --saw-300: #e5b47a;
  --saw-050: #fbf1e4;

  --ink: #1a1815;
  --ink-2: #4f4a42;
  --ink-3: #7d766b;

  --paper: #f7f3ec;
  --paper-2: #efe8db;
  --card: #ffffff;
  --line: #e4dbca;
  --line-2: #d3c8b2;

  --container: 1220px;
  --gutter: 20px;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;

  --topbar-h: 38px;
  --header-h: 104px;
  --logo-h: 64px;

  --shadow-sm: 0 1px 2px rgba(14, 36, 28, .05), 0 4px 14px rgba(14, 36, 28, .05);
  --shadow: 0 2px 6px rgba(14, 36, 28, .06), 0 14px 40px rgba(14, 36, 28, .09);
  --shadow-lg: 0 4px 12px rgba(14, 36, 28, .08), 0 30px 70px rgba(14, 36, 28, .16);
}

/* ---------- Grunnlag ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--pine-700); text-decoration-color: rgba(47, 99, 73, .35); text-underline-offset: 3px; }
a:hover { color: var(--saw-600); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--pine-900);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.35rem, 7vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.75rem); }
h3 { font-size: 1.28rem; line-height: 1.25; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 3px solid var(--saw-500); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }
.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--card); }
.section--pine { background: var(--pine-800); color: rgba(255, 255, 255, .82); }
.section--pine h2, .section--pine h3 { color: #fff; }
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding: 104px 0; }
  .section--tight { padding: 64px 0; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--pine-900); color: #fff; padding: 14px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typografiske hjelpere ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--saw-600); margin: 0 0 16px;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: currentColor; flex: none;
}
.section--pine .kicker { color: var(--saw-300); }
.lead { font-size: 1.15rem; line-height: 1.6; max-width: 60ch; color: var(--ink-2); }
.section-head { max-width: 64ch; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.muted { color: var(--ink-3); }
.small { font-size: .92rem; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: .96rem; font-weight: 600; letter-spacing: .005em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn svg { flex: none; }
.btn--primary { background: var(--saw-500); color: #fff; }
.btn--primary:hover { background: var(--saw-600); color: #fff; }
.btn--pine { background: var(--pine-700); color: #fff; }
.btn--pine:hover { background: var(--pine-900); color: #fff; }
.btn--outline { border-color: var(--line-2); color: var(--pine-900); background: transparent; }
.btn--outline:hover { border-color: var(--pine-700); background: var(--pine-700); color: #fff; }
.btn--light { background: #fff; color: var(--pine-900); }
.btn--light:hover { background: var(--saw-050); color: var(--pine-900); }
.btn--onDark { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--onDark:hover { background: #fff; color: var(--pine-900); border-color: #fff; }
.btn--sm { padding: 11px 20px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; color: var(--pine-700);
  text-decoration: none;
}
.textlink::after {
  content: "→"; transition: transform .2s ease; font-size: 1.05em; line-height: 1;
}
.textlink:hover { color: var(--saw-600); }
.textlink:hover::after { transform: translateX(5px); }

/* ---------- Topplinje ---------- */
.topbar {
  background: var(--pine-900);
  color: rgba(255, 255, 255, .74);
  font-size: .82rem;
}
.topbar__inner {
  min-height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
/* margin: 0 – ellers sentrerer flexboksen avsnittets margin-boks, og teksten
   havner høyere enn telefon/e-post på høyre side. */
.topbar__hours { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--saw-300); flex: none;
}
.topbar__links { display: none; gap: 22px; }
.topbar a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 700px) { .topbar__links { display: flex; } }

/* ---------- Header ----------
   Headeren starter høy så logoen får plass, og krymper når man scroller.
   Målene ligger i --header-h og --logo-h, som settes om på body når klassen
   is-scrolled er på. Da følger også den klebrige filterlinjen på
   leverandørsiden (top: var(--header-h)) med automatisk. */
.header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(247, 243, 236, .93);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
body.is-scrolled .header { box-shadow: 0 2px 12px rgba(14, 36, 28, .08); }
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: height .28s cubic-bezier(.4, 0, .2, 1);
}
.brand { display: block; flex: none; }
.brand img {
  height: var(--logo-h); width: auto;
  transition: height .28s cubic-bezier(.4, 0, .2, 1);
}
@media (min-width: 480px) { :root { --header-h: 132px; --logo-h: 84px; } }
body.is-scrolled { --header-h: 66px; --logo-h: 40px; }
@media (min-width: 480px) { body.is-scrolled { --header-h: 78px; --logo-h: 48px; } }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: 10px 14px;
  font-size: .95rem; font-weight: 500; color: var(--pine-900); text-decoration: none;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--saw-500); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav__link:hover { color: var(--pine-900); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__cta { display: none; }
@media (min-width: 980px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger { display: none !important; }
}

.burger {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--pine-800); border: 0;
}
.burger span { display: block; width: 18px; height: 2px; background: #fff; transition: transform .22s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobilmeny: panel som sklir inn fra høyre */
.mobilenav {
  position: fixed; inset: 0 0 0 auto; z-index: 200;
  width: min(400px, 88vw);
  background: var(--pine-900); color: #fff;
  padding: 26px var(--gutter) 40px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
/* display: flex over slår [hidden], så den må settes eksplisitt igjen. */
.mobilenav[hidden] { display: none; }
.mobilenav.is-open { transform: none; }
.mobilenav__top { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.mobilenav__close {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: none; color: #fff; font-size: 1.4rem; line-height: 1;
}
.mobilenav__list { list-style: none; margin: 0 0 30px; padding: 0; }
.mobilenav__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-family: var(--display); font-size: 1.6rem; font-weight: 600;
  color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.mobilenav__list a::after { content: "→"; color: var(--saw-300); font-family: var(--sans); font-size: 1.1rem; }
.mobilenav__meta { margin-top: auto; font-size: .95rem; color: rgba(255, 255, 255, .75); }
.mobilenav__meta a { color: #fff; }
.mobilenav__meta dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--saw-300); margin-bottom: 4px; }
.mobilenav__meta dd { margin: 0 0 16px; }
.nav-scrim {
  position: fixed; inset: 0; z-index: 190; background: rgba(14, 36, 28, .5);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--pine-900); color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 36, 28, .74) 0%, rgba(14, 36, 28, .55) 45%, rgba(14, 36, 28, .92) 100%),
    linear-gradient(90deg, rgba(14, 36, 28, .7) 0%, rgba(14, 36, 28, .1) 75%);
}
.hero__inner { position: relative; padding-block: 64px 40px; }
.hero__title { color: #fff; max-width: 15ch; margin-bottom: 22px; }
.hero__title em { font-style: normal; color: var(--saw-300); }
.hero__text { font-size: 1.12rem; color: rgba(255, 255, 255, .86); max-width: 52ch; margin-bottom: 30px; }
.hero .kicker { color: var(--saw-300); }
.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin-top: 52px; background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r);
  overflow: hidden;
}
.hero__stat { background: rgba(14, 36, 28, .55); padding: 20px 22px; backdrop-filter: blur(3px); }
.hero__stat b {
  display: block; font-family: var(--display); font-size: 1.55rem; font-weight: 600; color: #fff; line-height: 1.15;
}
.hero__stat span {
  display: block; margin-top: 3px; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .66);
}
@media (min-width: 768px) {
  .hero__inner { padding-block: 108px 64px; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .hero__inner { padding-block: 140px 72px; }
}

/* ---------- Sidetopp (undersider) ---------- */
.pagehead {
  position: relative; background: var(--pine-800); color: rgba(255, 255, 255, .84);
  overflow: hidden;
}
.pagehead__bg { position: absolute; inset: 0; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.pagehead__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 48, 36, .82), rgba(14, 36, 28, .95));
}
.pagehead__inner { position: relative; padding-block: 52px 56px; }
.pagehead h1 { color: #fff; margin-bottom: 14px; }
.pagehead p { color: rgba(255, 255, 255, .8); max-width: 58ch; font-size: 1.08rem; }
.breadcrumbs { font-size: .84rem; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.breadcrumbs a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 768px) { .pagehead__inner { padding-block: 84px 92px; } }

/* ---------- Rutenett ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

/* ---------- Sortimentskort ---------- */
.tile {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__body { padding: 22px 24px 26px; }
.tile h3 { margin-bottom: 8px; }
.tile p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.tile__tags { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tile__tags li {
  font-size: .78rem; color: var(--ink-3);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}

/* ---------- Enkle kort ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px;
}
.card--pine { background: var(--pine-700); border-color: transparent; color: rgba(255, 255, 255, .82); }
.card--pine h3 { color: #fff; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--saw-050); color: var(--saw-600);
}
.card--pine .card__icon { background: rgba(255, 255, 255, .12); color: var(--saw-300); }
.card p { font-size: .96rem; }

/* nummererte steg */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pine-800); color: #fff;
  font-family: var(--display); font-size: 1.1rem; font-weight: 600;
}
/* På furugrønn bakgrunn forsvinner den mørke sirkelen – bytt til amber. */
.section--pine .step::before { background: var(--saw-500); color: var(--pine-900); }
.step h3 { margin-bottom: 6px; }
.step p { font-size: .96rem; margin: 0; }

/* ---------- Vekslende innholdsrader ---------- */
.feature { display: grid; gap: 34px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature__media { position: relative; }
.feature__media > img {
  /* height: auto er nødvendig – uten den vinner height-attributtet på <img>
     over aspect-ratio, og bildet blir stående i sitt eget format. */
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}
/* Innfelt bilde: må være mer spesifikk enn regelen for hovedbildet over. */
.feature__media > img.feature__inset {
  display: none;
  position: absolute; right: -18px; bottom: -30px;
  width: 46%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r); border: 6px solid var(--paper);
  box-shadow: var(--shadow-lg);
}
.feature__badge {
  position: absolute; left: -14px; top: -18px;
  background: var(--saw-500); color: #fff;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 68px; }
  .feature + .feature { margin-top: 108px; }
  .feature--reverse .feature__media { order: 2; }
  .feature__media > img.feature__inset { display: block; }
  .feature--reverse .feature__media > img.feature__inset { right: auto; left: -18px; }
}

/* ---------- Punktlister ---------- */
.ticks { list-style: none; margin: 22px 0 0; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 34px; color: var(--ink); font-size: .98rem; }
.ticks li + li { border-top: 1px dashed var(--line-2); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 14px; height: 8px; border-left: 2px solid var(--saw-500); border-bottom: 2px solid var(--saw-500);
  transform: rotate(-45deg);
}
.section--pine .ticks li { color: rgba(255, 255, 255, .88); }
.section--pine .ticks li + li { border-top-color: rgba(255, 255, 255, .18); }

/* ---------- Bildebånd ---------- */
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.strip img { width: 100%; height: 190px; object-fit: cover; }
@media (min-width: 900px) {
  .strip { grid-template-columns: repeat(4, 1fr); }
  .strip img { height: 260px; }
}

/* ---------- Leverandører ---------- */
.supplier-tools {
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
/* Klebrig først når det er plass: på små skjermer tar de innpakkede
   filterknappene for mye av høyden til å ligge fastlåst på toppen. */
@media (min-width: 700px) {
  .supplier-tools { position: sticky; top: var(--header-h); z-index: 60; }
}
.supplier-search { position: relative; margin-bottom: 12px; }
.supplier-search input {
  width: 100%; padding: 14px 18px 14px 46px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-size: .98rem;
}
.supplier-search input::placeholder { color: var(--ink-3); }
.supplier-search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
/* Knappene brytes over flere linjer i stedet for å scrolle sidelengs. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font-size: .84rem; font-weight: 500; white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
@media (min-width: 700px) { .chip { padding: 9px 16px; font-size: .88rem; } }
.chip:hover { border-color: var(--pine-500); color: var(--pine-900); }
.chip[aria-pressed="true"] { background: var(--pine-800); border-color: var(--pine-800); color: #fff; }

.supplier-group { padding-top: 46px; }
.supplier-group__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 16px; margin-bottom: 24px; border-bottom: 2px solid var(--pine-800);
}
.supplier-group__head h2 { margin: 0; font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.supplier-group__count { font-size: .84rem; color: var(--ink-3); white-space: nowrap; }

.supplier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .supplier-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 980px) { .supplier-grid { grid-template-columns: repeat(4, 1fr); } }

.supplier {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 18px 20px; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.supplier:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.supplier__logo {
  height: 62px; display: flex; align-items: center; justify-content: center;
  padding: 4px; border-radius: var(--r-sm); background: #fff;
}
.supplier__logo img { max-height: 54px; max-width: 100%; width: auto; object-fit: contain; }
.supplier__mark {
  height: 62px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); background: var(--paper-2);
  font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--pine-700);
  letter-spacing: .02em;
}
.supplier__name { font-weight: 600; color: var(--pine-900); font-size: 1rem; line-height: 1.3; }
.supplier__product { font-size: .87rem; color: var(--ink-3); line-height: 1.45; }
.supplier__link {
  margin-top: auto; padding-top: 4px;
  font-size: .82rem; font-weight: 600; color: var(--saw-600);
  display: inline-flex; align-items: center; gap: 6px;
}
.supplier__link::after { content: "↗"; font-size: .95em; }
.supplier[hidden], .supplier-group[hidden] { display: none; }
.supplier-empty {
  padding: 60px 20px; text-align: center; color: var(--ink-3);
  border: 1px dashed var(--line-2); border-radius: var(--r); margin-top: 40px;
}

/* logostripe på forsiden */
.logowall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.logowall div {
  background: #fff; height: 92px;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.logowall img {
  max-height: 44px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .62; transition: filter .25s ease, opacity .25s ease;
}
.logowall div:hover img { filter: none; opacity: 1; }
@media (min-width: 640px) { .logowall { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .logowall { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Tidslinje ---------- */
.timeline { position: relative; margin: 0; padding: 0 0 0 34px; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(180deg, var(--saw-300), var(--line-2));
}
.timeline li { position: relative; padding-bottom: 38px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--saw-500);
}
.timeline__year {
  display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600;
  color: var(--pine-900); line-height: 1.1; margin-bottom: 6px;
}
.timeline p { font-size: .98rem; margin: 0; }

/* ---------- Kontakt ---------- */
.info-grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }
.info {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 6px;
}
.info__label {
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.info__value { font-size: 1.08rem; font-weight: 600; color: var(--pine-900); overflow-wrap: anywhere; }
.info__value a { color: var(--pine-900); text-decoration: none; }
.info__value a:hover { color: var(--saw-600); text-decoration: underline; }
.info__note { font-size: .88rem; color: var(--ink-3); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.hours th { font-weight: 500; color: var(--ink-2); }
.hours td { text-align: right; font-weight: 600; color: var(--pine-900); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--saw-050); border: 1px solid var(--saw-300); border-radius: var(--r);
  padding: 18px 22px; font-size: .95rem; color: var(--ink);
}
.notice svg { flex: none; color: var(--saw-600); margin-top: 2px; }

/* kart med samtykke */
.map {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper-2); min-height: 320px;
}
.map iframe { display: block; width: 100%; height: 440px; border: 0; }
.map__placeholder {
  min-height: 320px; padding: 48px 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.map__placeholder p { max-width: 46ch; font-size: .95rem; }
@media (min-width: 768px) { .map, .map__placeholder { min-height: 440px; } }

/* ---------- CTA-bånd ---------- */
.cta { position: relative; background: var(--pine-900); color: rgba(255, 255, 255, .84); overflow: hidden; }
.cta::before {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 122, 44, .28), transparent 68%);
}
.cta__inner {
  position: relative; padding-block: 62px;
  display: grid; gap: 28px; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .8); max-width: 52ch; }
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: 1.3fr auto; gap: 56px; padding-block: 86px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--pine-900); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 38px; padding-block: 56px 40px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-block: 76px 48px; } }
@media (min-width: 1080px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.footer__logo { height: 54px; width: auto; margin-bottom: 20px; filter: invert(1); }
.footer h3 {
  color: #fff; font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; overflow-wrap: anywhere; }
.footer__hours { display: flex; justify-content: space-between; gap: 14px; }
.footer__hours span:last-child { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-block: 20px 30px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between;
  font-size: .86rem; color: rgba(255, 255, 255, .55);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.linkbutton { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Innholdssider ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 3.2vw, 1.8rem); }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.table-wrap { overflow-x: auto; margin: 26px 0; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .93rem; background: #fff; }
.table-wrap th, .table-wrap td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--paper-2); color: var(--pine-900); font-weight: 600; }

/* ---------- Cookie-banner ---------- */
.cookie {
  position: fixed; z-index: 180; left: 12px; right: 12px; bottom: 12px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 24px 22px; max-width: 540px; display: none;
}
.cookie.is-visible { display: block; animation: cookie-in .28s ease both; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cookie h2 { font-size: 1.1rem; margin-bottom: 8px; }
.cookie p { font-size: .92rem; margin-bottom: 16px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__more { margin: 14px 0 0; font-size: .85rem; }
.cookie__more a { color: var(--ink-3); }
.cookie__actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) {
  .cookie { left: 26px; right: auto; bottom: 26px; padding: 28px 26px; }
  .cookie__actions .btn { flex: 0 0 auto; }
}

/* ---------- Bevegelse ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .cookie.is-visible { animation: none; }
  .tile:hover, .btn:hover, a.supplier:hover { transform: none; }
  .tile__img img, .mobilenav { transition: none; }
  .header__inner, .brand img { transition: none; }
}

/* ---------- Små skjermer ---------- */
@media (max-width: 380px) {
  :root { --gutter: 16px; --header-h: 92px; --logo-h: 54px; }
  body { font-size: 16px; }
  body.is-scrolled { --header-h: 62px; --logo-h: 36px; }
}
