/* Felles for alle sider: skrift, farger, meny og bunntekst */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/inter-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/inter-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(fonts/bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #FF5B47;
  --accent-deep: #E8402C;
  --soft: #FFF0EC;
  --soft-2: #FFF7F4;
  --ink: #2A1414;
  --muted: #7A6360;
  --line: #F0E3E0;
  --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-anchor: none; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-variation-settings: "opsz" 14;
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }
h1, h2, h3 { margin: 0; font-weight: 600; font-variation-settings: "opsz" 48; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
p, li, dd, figcaption, .facts span { text-wrap: pretty; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15.5px; text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: var(--accent-deep); }
/* Krater: runde knapper som ser ut til å være presset ned i siden. Ved hover synker de jevnt dypere, ved trykk helt ned. */
.btn { background: var(--accent-deep);
  box-shadow: inset 0 2px 5px rgba(90,14,0,.38), inset 0 -2px 0 rgba(255,255,255,.22), 0 1px 0 rgba(255,255,255,.75);
  transition: background .25s ease, box-shadow .25s cubic-bezier(.3,.7,.4,1), transform .25s cubic-bezier(.3,.7,.4,1); }
.btn:hover { background: #D93824; transform: translateY(1px) scale(.985);
  box-shadow: inset 0 5px 11px rgba(90,14,0,.55), inset 0 -1px 0 rgba(255,255,255,.14), 0 0 0 rgba(255,255,255,0); }
.btn:active { transform: translateY(2px) scale(.97); transition-duration: .08s;
  box-shadow: inset 0 7px 14px rgba(90,14,0,.7), inset 0 0 0 rgba(255,255,255,0); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transform: none; } }
.link { font-weight: 600; font-size: 15.5px; text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; }
.link:hover { background-image: linear-gradient(var(--accent), var(--accent)); }

/* Logo: Inter 600, k-en er en avrundet vinkel på 90 grader, gnisten oppe til høyre */
.logo {
  display: inline-flex; align-items: baseline; white-space: nowrap;
  font-family: "Inter", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.04em;
  text-decoration: none; line-height: 1; font-size: 26px; color: var(--ink);
}
.logo .chev { height: .5625em; width: auto; margin: 0 .025em 0 .041em; overflow: visible; flex: none; transform: translateY(.01em); }
.logo .chev path { fill: none; stroke: currentColor; stroke-width: 205px; stroke-linejoin: round; stroke-linecap: round; }
.logo .spark { width: .3em; height: .32em; margin-left: .03em; align-self: flex-start; transform: translateY(-.08em); overflow: visible; fill: var(--accent); flex: none; pointer-events: none; }
.end .logo .spark { fill: var(--ink); }


/* Meny */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.nav .logo { font-size: clamp(26px, 2.05vw, 30px); }
.nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; font-size: 15.5px; font-weight: 500; color: var(--muted); }
.nav ul a { text-decoration: none; transition: color .2s; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--ink); }
.nav .btn { padding: 11px 20px; white-space: nowrap; }
@media (max-width: 800px) { .nav ul { display: none; } }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s; }
.topbar .nav { transition: padding .3s; }
.topbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.topbar.scrolled .nav { padding-block: 14px; }
.topbar .logo { transition: font-size .3s; }
.topbar.scrolled .nav .logo { font-size: clamp(24px, 1.85vw, 27px); }
@media (max-width: 800px) { .topbar.scrolled .nav { padding-block: 10px; } }

/* Mobilmeny */
.nav-r { display: flex; align-items: center; gap: 10px; }
.menu-btn, .mnav-close { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; position: relative; }
.menu-btn span, .mnav-close span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.mnav-close span { top: 21px; } .mnav-close span:first-child { transform: rotate(45deg); } .mnav-close span:last-child { transform: rotate(-45deg); }
@media (max-width: 800px) { .menu-btn, .mnav-close { display: block; } }
@media (max-width: 400px) { .nav .btn { padding: 10px 14px; font-size: 14px; } .nav .logo, .topbar.scrolled .nav .logo { font-size: 24px; } }
.mnav { position: fixed; inset: 0; z-index: 80; background: #fff; overflow-y: auto; animation: mnav-in .3s cubic-bezier(.2,.7,.3,1); }
.mnav[hidden] { display: none; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(-8px); } }
.mnav-top { display: flex; justify-content: space-between; align-items: center; padding-block: calc(26px + env(safe-area-inset-top, 0px)) 26px; }
.mnav-top .logo { font-size: 26px; }
.mnav nav ul { list-style: none; margin: 24px 0 36px; padding: 0; }
.mnav nav li a { display: block; padding: 14px 0; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav nav li a:active { color: var(--accent-deep); }
.mnav nav .btn { display: block; text-align: center; padding: 16px; font-size: 16.5px; }
.mnav-mail { margin-top: 16px; text-align: center; color: var(--muted); font-size: 15px; }
.mnav-mail a { color: var(--ink); font-weight: 600; }
html.lock, html.lock body { overflow: hidden; }

/* Kontakt og bunntekst */
.end { background: var(--ink); color: #fff; padding-top: clamp(72px, 10vw, 128px); overflow: hidden; }
.end .top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px 80px; align-items: end; padding-bottom: clamp(56px, 8vw, 96px); }
@media (max-width: 900px) { .end .top { grid-template-columns: 1fr; } }
.end h2 { font-size: clamp(40px, 5.6vw, 72px); max-width: 13ch; }
.end .top p { font-size: 19px; opacity: .72; max-width: 40ch; margin-top: 22px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-list small { display: block; font-size: 14px; opacity: .55; }
.contact-list a, .contact-list b { text-decoration: none; font-weight: 600; font-size: 19px; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.end .btn { background: var(--accent); color: #fff; margin-top: 32px; }
.end .btn:hover { background: #D93824; color: #fff; }

/* Bunnteksten: brun flate under det korallfargede kontaktfeltet */
.foot-base, .end.only-base { background: var(--ink); color: #fff; }
.foot-base .cols { border-top: 1px solid rgba(255,255,255,.14); }
.end.only-base .cols { border-top: 0; padding-top: clamp(48px, 6vw, 72px); }
.foot-base .legal, .end.only-base .legal { border-top-color: rgba(255,255,255,.14); }
.foot-base .cols h4, .end.only-base .cols h4 { opacity: .55; }
.foot-base .cols p, .end.only-base .cols p { opacity: .72; }
.foot-base .legal, .end.only-base .legal { opacity: .7; }
.end.only-base { padding-top: 0; }
.cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-block: 44px; border-top: 1px solid rgba(255,255,255,.35); }
/* Sider med kontaktliste over bunnteksten trenger ikke kontaktkolonnen en gang til */
.cols.c3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 860px) { .cols, .cols.c3 { grid-template-columns: 1fr 1fr; } .cols > :first-child { grid-column: 1 / -1; } }
.cols h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; opacity: .8; }
.cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cols a { text-decoration: none; font-weight: 500; }
.cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cols p { max-width: 30ch; opacity: .92; }
.foot-logo { display: inline-flex; font-size: 30px; color: #fff; margin: 0 0 18px; }
.end .foot-logo .spark { fill: var(--accent); }
.cols a.foot-logo, .cols a.foot-logo:hover { text-decoration: none; font-weight: 600; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 28px; font-size: 14px; opacity: .85; border-top: 1px solid rgba(255,255,255,.35); }
.legal a { text-decoration: none; }
.legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Bunnlinjen: firma til venstre, juridiske lenker til høyre. På mobil står firmaet på tre korte linjer og lenkene under hverandre til høyre. */
.legal { align-items: center; }
.legal-co { margin: 0; }
.legal-co span:first-child { font-weight: 600; }
@media (max-width: 640px) {
  .legal { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 20px; padding-block: 24px 32px; }
  .legal-co { display: grid; gap: 2px; font-size: 14px; line-height: 1.5; }
  .legal-co span:first-child { font-size: 15px; }
  .legal-co span:not(:first-child) { opacity: .75; }
  .legal nav { display: grid; justify-items: end; gap: 2px; text-align: right; }
  .legal nav > * { font-size: 14px; line-height: 1.5; }
  .legal nav > :first-child { font-size: 15px; }
}
.legal .wm-cc-link { -webkit-appearance: none; appearance: none; border-radius: 0; background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; line-height: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Telefoner med video: statuslinjen tar fargen fra toppen av videoen (site.js), uten hvit stripe imellom */
.phone:has(video) video { padding-top: 0 !important; }
.phone:has(video) .status { overflow: hidden; background: transparent !important; box-shadow: none !important; }
.phone:has(video) .status > span { position: relative; z-index: 1; }
.phone:has(video) .status i { position: absolute; z-index: 1; }
.status-fill { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
