/* Grue IT – stilark. Ingen eksterne avhengigheter. */

/* Skrift: Inter (SIL Open Font License, se /assets/fonts/OFL.txt), lagret lokalt. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.woff") format("woff"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Bold.woff") format("woff"); font-weight: 650 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-ExtraBold.woff") format("woff"); font-weight: 800 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --chip: #ececef;
  --accent: #286834;
  --on-accent: #ffffff;
  --accent-ink: #286834;
  --soft: #e4f0e6;
  --nav: rgba(245, 245, 247, .8);
  --shadow: 0 12px 32px rgba(0, 0, 0, .08);
  --radius: 28px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --card: #1c1c1e; --text: #f5f5f7; --muted: #a1a1a6;
    --line: rgba(255, 255, 255, .1); --chip: #2c2c2e;
    --accent: #5ccf6e; --on-accent: #06210b; --accent-ink: #6fdc80;
    --soft: #10291a; --nav: rgba(0, 0, 0, .72); --shadow: 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1c1c1e; --text: #f5f5f7; --muted: #a1a1a6;
  --line: rgba(255, 255, 255, .1); --chip: #2c2c2e;
  --accent: #5ccf6e; --on-accent: #06210b; --accent-ink: #6fdc80;
  --soft: #10291a; --nav: rgba(0, 0, 0, .72); --shadow: 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* Standardstørrelse på ikoner, så de aldri blir kjempestore der ingen annen regel gjelder */
.ic { width: 30px; height: 30px; flex: none; }
.si { width: 18px; height: 18px; flex: none; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.1; }
strong { font-weight: 650; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; color: var(--accent-ink); text-decoration: none; }
.brand svg { height: 32px; width: auto; fill: currentColor; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; flex: none;
}
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav .panel {
  position: absolute; right: 0; top: 54px; min-width: 220px; background: var(--card);
  border-radius: 20px; box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.mnav .panel a { padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.mnav .panel a:hover, .mnav .panel a[aria-current="page"] { background: var(--chip); }
.head-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 880px) {
  .nav { display: none; }
  .mnav { display: block; }
}

/* ---------- Layout ---------- */
main { padding: 40px 0 56px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.s2 { grid-column: span 2; }
.s3 { grid-column: span 3; }
.s4 { grid-column: span 4; }
.r2 { grid-row: span 2; }
@media (min-width: 901px) {
  .bento.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s3, .s4 { grid-column: span 2; }
  .r2 { grid-row: auto; }
}
@media (max-width: 580px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .s2, .s3, .s4 { grid-column: auto; }
  body { font-size: 16px; }
}

.tile {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.tile.big { padding: 44px; }
.tile.soft { background: var(--soft); color: var(--accent-ink); }
.tile.accent { background: var(--accent); color: var(--on-accent); }
.tile.accent .muted, .tile.soft .muted { color: inherit; opacity: .9; }
.tile.plain { background: none; padding: 36px 4px 4px; }
.tile.between { justify-content: space-between; }
a.tile, button.tile { text-decoration: none; color: inherit; font: inherit; text-align: left; border: 0; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
a.tile.soft, button.tile.soft { color: var(--accent-ink); }
a.tile.accent { color: var(--on-accent); }
a.tile:hover, button.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { a.tile:hover, button.tile:hover { transform: none; } html { scroll-behavior: auto; } }

.tile .ic { width: 30px; height: 30px; flex: none; }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plus {
  width: 32px; height: 32px; border-radius: 16px; background: var(--chip); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.plus svg { width: 18px; height: 18px; }
.si { width: 18px; height: 18px; flex: none; }
.tile h2, .tile h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.tile .lead-h { font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.tile.accent .eyebrow { color: inherit; }

.hero h1 { font-size: clamp(44px, 6vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero .intro { font-size: 19px; line-height: 1.5; }
.page-title { font-size: clamp(40px, 5.5vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.section-h, .tile .section-h { font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; letter-spacing: -.03em; }

.photo { padding: 0; overflow: hidden; position: relative; min-height: 300px; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; position: absolute; inset: 0; }
.photo .cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 14px 18px; border-radius: 18px;
  background: rgba(20, 20, 22, .55); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 15px; font-weight: 600; line-height: 1.35;
}

.big-num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }

/* ---------- Forside ---------- */
.strip {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; background: var(--card); width: fit-content; max-width: 100%;
  font-size: 15px; color: var(--text); margin: 0 auto 8px;
}
.strip .si:first-child { color: var(--accent-ink); }
.strip:hover { box-shadow: var(--shadow); }
.hero2 {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px;
  align-items: center; padding: 56px 0 72px;
}
.hero2-text { display: flex; flex-direction: column; gap: 22px; }
.hero2 h1 { font-size: clamp(46px, 6.4vw, 80px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.hero2 .intro { font-size: 20px; line-height: 1.5; max-width: 34ch; }
.hero2-photo {
  position: relative; display: block; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5;
  text-decoration: none;
}
.hero2-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero2-photo .cap {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px 18px; border-radius: 18px;
  background: rgba(20, 20, 22, .55); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 15px; font-weight: 600; line-height: 1.35;
}
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio .tile { min-height: 200px; }
.trio h2 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.quote { text-align: center; max-width: 620px; margin: 96px auto 24px; display: flex; flex-direction: column; gap: 16px; }
.quote h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.quote p { font-size: 18px; }
@media (max-width: 860px) {
  .hero2 { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 0 48px; }
  .hero2-photo { aspect-ratio: 1 / 1; max-width: 520px; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio .tile { min-height: 0; }
  .quote { margin-top: 64px; }
}

.soft-box { background: var(--soft); color: var(--accent-ink); border-radius: var(--radius); padding: 56px 32px; max-width: none; }
.soft-box p { color: inherit; max-width: 620px; margin: 0 auto; }
.pagehead { display: flex; flex-direction: column; gap: 18px; padding: 32px 0 24px; }
.pagehead .muted { max-width: 62ch; }
.pagehead > .btn { align-self: flex-start; }
.pagehead > .ic { width: 48px; height: 48px; color: var(--accent-ink); }
.badge { font-size: 12px; font-weight: 650; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--accent-ink); white-space: nowrap; }
.bento > .hero2 { padding-top: 24px; }

/* ---------- Omtaler ---------- */
.reviews { margin: 88px 0 0; display: flex; flex-direction: column; gap: 24px; }
.reviews > .eyebrow { text-align: center; }
.review-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.review figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; }
.stars { display: inline-flex; gap: 1px; margin-right: 8px; color: var(--accent-ink); }
.stars .star { width: 16px; height: 16px; }
@media (max-width: 860px) { .review-row { grid-template-columns: minmax(0, 1fr); gap: 32px; } .reviews { margin-top: 64px; } }

/* ---------- Spørsmål og svar ---------- */
.faq-list { padding: 8px 28px; gap: 0; }
.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 650; font-size: 18px; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { width: 22px; height: 22px; transition: transform .2s ease; color: var(--muted); }
.faq[open] .chev { transform: rotate(180deg); }
.faq p { padding: 0 0 20px; max-width: 70ch; margin: 0; }
.dlg-price { margin: 0; font-size: 16px; }

/* ---------- Knapper ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 12px 22px;
  border-radius: 999px; font-weight: 650; font-size: 16px; text-decoration: none;
  background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer; font-family: inherit;
}
.btn.ghost { background: var(--chip); color: var(--text); }
.tile.accent .btn { background: var(--on-accent); color: var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Kontakt ---------- */
.map-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.small-btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; }
.contact-grid a { text-decoration: none; font-weight: 650; }
.contact-grid a:hover { color: var(--accent-ink); }
.contact-grid span { display: block; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Priser ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button {
  border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600;
  padding: 10px 20px; min-height: 44px; border-radius: 999px; background: var(--chip); color: var(--text);
}
.tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.price { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--accent-ink); line-height: 1; }
.price-sub { font-size: 14px; color: var(--muted); margin-top: -6px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.group-head p { margin: 0; }
[hidden] { display: none !important; }

.pay { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.pay .si { width: 24px; height: 24px; color: var(--text); }

/* ---------- Tekstsider ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 1.8em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--accent-ink); }
.note {
  background: var(--soft); color: var(--accent-ink); border-radius: 20px; padding: 20px 24px; margin: 0 0 1.5em;
}

.tagline { text-align: center; font-style: italic; color: var(--muted); margin: 48px auto 0; max-width: 60ch; font-size: 16px; }

/* ---------- Dialog ---------- */
dialog {
  border: 0; padding: 0; border-radius: 28px; max-width: 560px; width: calc(100% - 32px);
  background: var(--card); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
}
dialog::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog[open] { animation: none; } }
.dlg { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dlg-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.dlg-head > .ic { width: 34px; height: 34px; color: var(--accent-ink); }
.dlg .btns { padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { text-decoration: none; padding: 6px 0; }
.foot-links a:hover { color: var(--text); }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; }
.social a:hover { background: var(--chip); color: var(--text); }
.social svg { width: 22px; height: 22px; }
.copy { width: 100%; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 700px) {
  .site-footer .wrap { flex-direction: column; justify-content: center; text-align: center; }
  .foot-links, .social { justify-content: center; }
  .copy { line-height: 1.8; }
}

/* ---------- Hjelpeklasser (generert fra byggeskriptet) ---------- */
.u1 { display:block !important; margin-top:8px !important; }
.u2 { font-size:18px !important; }
.u3 { flex-direction:row !important; flex-wrap:wrap !important; align-items:center !important; justify-content:space-between !important; gap:20px !important; }
.u4 { max-width:60ch !important; }
.u5 { margin-top:8px !important; }
.u6 { margin-top:16px !important; }
.u7 { font-size:19px !important; }
.u8 { gap:24px !important; }
.u9 { font-size:22px !important; font-weight:650 !important; margin-top:10px !important; }
.u10 { font-size:18px !important; max-width:52ch !important; }
.u11 { font-size:18px !important; max-width:68ch !important; }
.u12 { font-size:18px !important; max-width:48ch !important; }
.u13 { display:block !important; }
.u14 { display:block !important; margin-top:10px !important; }
.u15 { width:fit-content !important; }
.u16 { display:flex !important; align-items:center !important; gap:16px !important; }
.u17 { font-size:18px !important; display:block !important; }
.u18 { margin:0 !important; font-weight:600 !important; font-size:18px !important; }
.u19 { padding:64px 0 !important; }
.u20 { font-size:18px !important; max-width:60ch !important; }
