/* Firmasiden for Skavern Konsult AS (www.skavernkonsult.no). Farger fra logoen, lys og mork modus, lite bevegelse. */

:root {
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --paper: #F7F7F9;
    --surface: #FFFFFF;
    --surface-2: #F0F1F5;
    --ink: #17142B;
    --ink-soft: #46435C;
    --muted: #6E6B82;
    --line: #E1E0E8;
    --teal: #0E8C8C;
    --teal-soft: #E1F3F2;
    --plum: #2A1454;
    --copper: #C9773F;
    --shadow: 0 1px 2px rgba(23, 20, 43, 0.05), 0 10px 30px rgba(23, 20, 43, 0.06);
    --radius: 16px;
    --wrap: 1080px;
    --gutter: 24px;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0B0A10;
        --surface: #15131D;
        --surface-2: #1E1B29;
        --ink: #EEEDF3;
        --ink-soft: #C4C1D2;
        --muted: #9692A8;
        --line: #2B2838;
        --teal: #3CC2BE;
        --teal-soft: #12302F;
        --plum: #B7A6E8;
        --copper: #E69A63;
        --shadow: none;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #0B0A10;
    --surface: #15131D;
    --surface-2: #1E1B29;
    --ink: #EEEDF3;
    --ink-soft: #C4C1D2;
    --muted: #9692A8;
    --line: #2B2838;
    --teal: #3CC2BE;
    --teal-soft: #12302F;
    --plum: #B7A6E8;
    --copper: #E69A63;
    --shadow: none;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 750; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Topp */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.08rem; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.site-nav a:hover { color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-icon-moon { display: none; }
}
@media (max-width: 640px) {
    .site-nav { gap: 16px; }
    .site-nav a { font-size: 0.92rem; }
    .brand span { display: none; }
}

/* Innhold */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 7vw, 80px); }
.hero .eyebrow { color: var(--teal); font-weight: 700; font-size: 0.95rem; margin-bottom: 16px; }
.hero h1 { max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--ink-soft); max-width: 640px; margin-top: 22px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--teal); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #06201F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #06201F; } }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); }

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.08rem; }

/* Produkter */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.section-alt .product { background: var(--paper); }
.product-head { display: flex; align-items: center; gap: 14px; }
.product-head img { width: 54px; height: 54px; border-radius: 13px; }
.product-head small { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.product > p { color: var(--ink-soft); }
.product ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.product li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 0.97rem; }
.product li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.product .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 820px) { .products { grid-template-columns: 1fr; } }

/* Om oss */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.about p + p { margin-top: 14px; }
.about > div > p { color: var(--ink-soft); }
.facts { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--surface-2); }
.facts div { display: flex; gap: 12px; }
.facts b { display: block; color: var(--ink); }
.facts span { color: var(--ink-soft); font-size: 0.96rem; }
.dot { flex: 0 0 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--copper); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.section-alt .contact-card { background: var(--paper); }
.contact-card .label { color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.contact-card a, .contact-card p { display: block; margin-top: 6px; font-size: 1.08rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--teal); }
.contact-card small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 0.92rem; }
.note { margin-top: 22px; color: var(--ink-soft); max-width: 720px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Feilside */
.notfound { padding: clamp(56px, 10vw, 120px) 0; }
.notfound .code { color: var(--copper); font-weight: 800; letter-spacing: 0.08em; margin-bottom: 12px; }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; max-width: 760px; }
.links a { display: block; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.links a:hover { border-color: var(--teal); }
.links b { display: block; font-size: 1.02rem; }
.links span { color: var(--ink-soft); font-size: 0.93rem; }
@media (max-width: 640px) { .links { grid-template-columns: 1fr; } }

/* Bunn */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.93rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer-grid strong { color: var(--ink); }
.footer-grid nav { display: flex; flex-direction: column; gap: 6px; }
.footer-grid nav a { color: var(--ink-soft); text-decoration: none; }
.footer-grid nav a:hover { color: var(--ink); }
.footer-bottom { margin-top: 28px; color: var(--muted); font-size: 0.88rem; }
