/* =========================================================
   WÜNDER AS – Stilark for hele nettstedet
   Lyst tema (standard) + mørkt tema (alternativ)
   ========================================================= */

/* ---------- Designsystem: variabler ---------- */
:root {
    /* Farger – lyst tema (standard) */
    --color-bg: #f7f7f5;
    --color-surface: #ffffff;
    --color-surface-alt: #f0efeb;
    --color-text: #1a1a1a;
    --color-text-muted: #4a4a4a;
    --color-border: #d9d7d1;
    --color-accent: #e87722;          /* Oransje – brukes på "ü" og CTA */
    --color-accent-hover: #c95f10;
    --color-accent-soft: #fff2e6;
    --color-header-bg: #1f2933;       /* Mørk navbar – holder logoen hvit */
    --color-header-text: #ffffff;
    --color-footer-bg: #1f2933;
    --color-footer-text: #f7f7f5;
    --color-link: #1f2933;
    --color-shadow: rgba(20, 24, 30, 0.08);

    /* Typografi – stor og lett å lese */
    --font-body: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    --font-heading: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    --fs-base: 1.125rem;          /* 18px */
    --fs-small: 1rem;             /* 16px */
    --fs-lead: 1.25rem;           /* 20px */
    --fs-h1: 2.25rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.375rem;
    --lh-body: 1.7;
    --lh-heading: 1.25;

    /* Avstand */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4.5rem;

    /* Form */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Layout */
    --container: 1140px;
    --transition: 200ms ease;
}

/* ---------- Mørkt tema (alternativ) ---------- */
[data-theme="dark"] {
    --color-bg: #14181f;
    --color-surface: #1c2128;
    --color-surface-alt: #232a33;
    --color-text: #f5f5f3;
    --color-text-muted: #c5c8cc;
    --color-border: #333a44;
    --color-accent: #ff8a3d;
    --color-accent-hover: #ffa763;
    --color-accent-soft: #2a1d12;
    --color-header-bg: #0e1218;
    --color-header-text: #ffffff;
    --color-footer-bg: #0e1218;
    --color-footer-text: #f5f5f3;
    --color-link: #f5f5f3;
    --color-shadow: rgba(0, 0, 0, 0.4);
}

/* ---------- Reset / grunnlag ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition), color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

a:hover,
a:focus {
    color: var(--color-accent);
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: var(--lh-heading);
    color: var(--color-text);
    margin: 0 0 var(--space-md);
    font-weight: 700;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
    margin: 0 0 var(--space-md);
}

ul {
    padding-left: 1.25rem;
    margin: 0 0 var(--space-md);
}

li {
    margin-bottom: 0.4rem;
}

/* ---------- Layout-hjelpere ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.section-alt {
    background-color: var(--color-surface-alt);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title p {
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* Hopp-til-innhold lenke (tilgjengelighet) */
.skip-link {
    position: absolute;
    left: -1000px;
    top: 0;
    background: var(--color-accent);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    z-index: 1000;
}

.skip-link:focus {
    left: var(--space-md);
    top: var(--space-md);
}

/* ---------- Topplinje / navbar ---------- */
.site-header {
    background-color: var(--color-header-bg);
    color: var(--color-header-text);
    box-shadow: 0 2px 10px var(--color-shadow);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow var(--transition), background-color var(--transition);
}

.site-header.is-scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-md) 0;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-header-text);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.brand:hover,
.brand:focus {
    color: var(--color-header-text);
}

.brand .accent-letter {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--color-header-text);
    color: var(--color-header-text);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: var(--space-md);
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.nav-list a {
    color: var(--color-header-text);
    text-decoration: none;
    font-size: var(--fs-base);
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition), color var(--transition);
    position: relative;
}

.nav-list a::after {
    /* Subtil understrek som glir frem fra midten på hover */
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.3rem;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition), left var(--transition);
    border-radius: 2px;
}

.nav-list a:hover,
.nav-list a:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--color-accent);
}

.nav-list a:hover::after,
.nav-list a:focus::after,
.nav-list a.active::after {
    width: calc(100% - 1.8rem);
    left: 0.9rem;
}

.nav-list a.active {
    color: var(--color-accent);
    font-weight: 600;
}

/* Tema-veksleknapp i navbaren */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--color-header-text);
    color: var(--color-header-text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color var(--transition), color var(--transition);
    min-height: 44px;
}

.theme-toggle:hover,
.theme-toggle:focus {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.theme-toggle .theme-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* ---------- Knapper ---------- */
.btn {
    display: inline-block;
    padding: 0.95rem 1.6rem;
    font-size: var(--fs-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    min-height: 48px;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(232, 119, 34, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(232, 119, 34, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

[data-theme="dark"] .btn-secondary {
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-light {
    background-color: #ffffff;
    color: #1f2933;
    border-color: #ffffff;
}

.btn-light:hover,
.btn-light:focus {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.cta-row.center {
    justify-content: center;
    margin-top: var(--space-lg);
}

.text-center {
    text-align: center;
}

.brand-accent {
    color: var(--color-accent);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #1f2933 0%, #2c3a47 100%);
    color: #ffffff;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0e1218 0%, #1a2230 100%);
}

.hero::before {
    /* Roterende svak oransje glød – meget subtilt */
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle, rgba(232, 119, 34, 0.22), transparent 60%);
    pointer-events: none;
    animation: heroGlow 14s ease-in-out infinite alternate;
}

.hero::after {
    /* Andre subtile glød i motsatt hjørne */
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 60%);
    pointer-events: none;
    animation: heroGlow 18s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.85; }
    100% { transform: translate(-4%, 3%) scale(1.08); opacity: 1; }
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

/* Oransje "spotlight" som følger musepekeren i hero-seksjonen */
.hero-cursor-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(232, 119, 34, 0.32),
        rgba(232, 119, 34, 0.08) 35%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 350ms ease;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}

.hero:hover .hero-cursor-glow {
    opacity: 1;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
    margin-bottom: var(--space-md);
    animation: fadeUp 700ms ease-out both;
}

.hero p {
    color: #e8eaee;
    font-size: var(--fs-lead);
    margin-bottom: var(--space-lg);
    animation: fadeUp 700ms ease-out 150ms both;
}

.hero .cta-row {
    animation: fadeUp 700ms ease-out 300ms both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .cta-row .btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.hero .cta-row .btn-secondary:hover,
.hero .cta-row .btn-secondary:focus {
    background-color: #ffffff;
    color: #1f2933;
}

/* ---------- Verdistjerne / framhevet sitat ---------- */
.value-strip {
    background-color: var(--color-accent-soft);
    border-top: 4px solid var(--color-accent);
    border-bottom: 4px solid var(--color-accent);
    padding: var(--space-lg) 0;
    text-align: center;
}

.value-strip p {
    margin: 0;
    font-size: var(--fs-lead);
    font-weight: 600;
    color: var(--color-text);
}

/* ---------- Kort-rutenett ---------- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: 0 14px 32px var(--color-shadow);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.card h3 {
    margin-top: 0;
}

.card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-accent-soft);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    flex-shrink: 0;
}

.card .card-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-icon {
    transition: background-color var(--transition);
    background-color: var(--color-accent);
    color: #ffffff;
}

.card:hover .card-icon svg {
    transform: scale(1.12) rotate(-6deg);
}

/* ---------- Tjenestelister ---------- */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.service-list li {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: transform var(--transition), border-left-width var(--transition), box-shadow var(--transition);
}

.service-list li:hover {
    transform: translateX(6px);
    border-left-width: 8px;
    box-shadow: 0 4px 14px var(--color-shadow);
}

/* ---------- Områder vi dekker ---------- */
.areas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-lg);
}

.area-tag {
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--color-text);
    transition: transform var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.area-tag:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 6px 16px var(--color-shadow);
}


/* ---------- Galleri ---------- */
.gallery-category {
    margin-bottom: var(--space-2xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.gallery-item {
    aspect-ratio: 4 / 3;
    background-color: var(--color-surface-alt);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
    padding: var(--space-md);
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Klikkbare bilde-felt: aktiveres av js når <img> finnes */
.gallery-item.is-clickable {
    border: 1px solid var(--color-border);
    padding: 0;
    cursor: pointer;
    transition: transform 260ms cubic-bezier(0.22, 0.8, 0.28, 1),
                box-shadow 260ms ease,
                border-color 260ms ease;
    will-change: transform;
}

.gallery-item.is-clickable:hover,
.gallery-item.is-clickable:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px var(--color-shadow);
    border-color: var(--color-accent);
}

.gallery-item.is-clickable::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
    border-radius: var(--radius-md);
}

.gallery-item.is-clickable:hover::after,
.gallery-item.is-clickable:focus-visible::after {
    opacity: 1;
}

.gallery-item.is-clickable img {
    transition: transform 620ms cubic-bezier(0.22, 0.8, 0.28, 1);
}

.gallery-item.is-clickable:hover img,
.gallery-item.is-clickable:focus-visible img {
    transform: scale(1.06);
}

.gallery-item__zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.55);
    opacity: 0;
    pointer-events: none;
    transition: transform 320ms cubic-bezier(0.22, 0.8, 0.28, 1),
                opacity 260ms ease;
    box-shadow: 0 14px 28px rgba(0,0,0,0.28);
    z-index: 1;
}

.gallery-item.is-clickable:hover .gallery-item__zoom,
.gallery-item.is-clickable:focus-visible .gallery-item__zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 2rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 280ms ease, visibility 280ms ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 20, 0.84);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    cursor: zoom-out;
}

.lightbox.is-open .lightbox__backdrop {
    animation: lightbox-fade 260ms ease both;
}

@keyframes lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox__stage {
    position: relative;
    z-index: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    max-width: min(1200px, 94vw);
    width: 100%;
    pointer-events: none;
}

.lightbox__image-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    max-height: calc(100vh - 180px);
    pointer-events: auto;
}

.lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    width: auto;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 240ms ease, transform 240ms ease;
    background: #0b0e13;
}

.lightbox__image.is-ready {
    opacity: 1;
    transform: scale(1);
}

.lightbox__image.slide-from-right {
    animation: lightbox-slide-right 360ms cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

.lightbox__image.slide-from-left {
    animation: lightbox-slide-left 360ms cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

@keyframes lightbox-slide-right {
    from { opacity: 0; transform: translateX(42px) scale(0.985); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes lightbox-slide-left {
    from { opacity: 0; transform: translateX(-42px) scale(0.985); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.lightbox__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.22);
    border-top-color: var(--color-accent);
    animation: lightbox-spin 900ms linear infinite;
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.lightbox__image-wrap.is-loading .lightbox__spinner {
    opacity: 1;
}

@keyframes lightbox-spin {
    to { transform: rotate(360deg); }
}

.lightbox__caption {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.1rem;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    pointer-events: auto;
}

.lightbox__category {
    font-weight: 600;
}

.lightbox__divider {
    width: 1px;
    height: 1em;
    background: rgba(255,255,255,0.28);
}

.lightbox__counter {
    color: rgba(255,255,255,0.78);
    font-variant-numeric: tabular-nums;
}

.lightbox__btn {
    position: absolute;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(20, 24, 30, 0.55);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background-color 220ms ease,
                border-color 220ms ease,
                transform 220ms cubic-bezier(0.22, 0.8, 0.28, 1),
                color 220ms ease,
                box-shadow 220ms ease;
}

.lightbox__btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 10px 22px rgba(232, 119, 34, 0.45);
}

.lightbox__btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.lightbox__close {
    top: clamp(0.75rem, 2vw, 1.5rem);
    right: clamp(0.75rem, 2vw, 1.5rem);
}

.lightbox__close:hover {
    transform: scale(1.08) rotate(90deg);
}

.lightbox__close:active {
    transform: scale(0.96) rotate(90deg);
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox__nav:active {
    transform: translateY(-50%) scale(0.96);
}

.lightbox__prev { left: clamp(0.75rem, 2vw, 1.5rem); }
.lightbox__next { right: clamp(0.75rem, 2vw, 1.5rem); }

/* Sperre scroll bak overlay når åpen */
body.has-lightbox-open {
    overflow: hidden;
}

/* ---------- Kontaktboks ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.contact-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 6px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.contact-card h3 {
    margin-top: 0;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--fs-lead);
}

.contact-info-list li:last-child {
    border-bottom: none;
}

.contact-info-list strong {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--fs-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.contact-info-list a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}

.contact-info-list a:hover,
.contact-info-list a:focus {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ---------- Skjema ---------- */
.contact-form {
    display: grid;
    gap: var(--space-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-weight: 600;
    font-size: var(--fs-base);
    color: var(--color-text);
}

.form-field input,
.form-field textarea {
    font-family: inherit;
    font-size: var(--fs-base);
    padding: 0.85rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    color: var(--color-text);
    min-height: 48px;
    transition: border-color var(--transition);
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

/* ---------- Bunntekst ---------- */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-grid h4 {
    color: #ffffff;
    margin: 0 0 var(--space-sm);
    font-size: 1.125rem;
}

.footer-grid p,
.footer-grid li {
    color: #d6d8dc;
}

.footer-grid a {
    color: #d6d8dc;
    text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    padding: 0.3rem 0;
}

.footer-bottom {
    border-top: 1px solid #2c3a47;
    padding-top: var(--space-md);
    text-align: center;
    color: #b1b6bd;
    font-size: var(--fs-small);
}

.footer-bottom p {
    margin: 0 0 0.4rem;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.footer-bottom a {
    color: #d6d8dc;
    text-decoration: underline;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    color: var(--color-accent);
}

/* ---------- Brødsmuler / sidehoder for undersider ---------- */
.page-header {
    background-color: var(--color-surface-alt);
    padding: var(--space-xl) 0;
    text-align: center;
    border-bottom: 4px solid var(--color-accent);
}

.page-header h1 {
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--color-text-muted);
    font-size: var(--fs-lead);
    max-width: 720px;
    margin: 0 auto;
}

/* ---------- Responsivt – tablet ---------- */
@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Responsivt – desktop ---------- */
@media (min-width: 960px) {
    :root {
        --fs-h1: 2.75rem;
        --fs-h2: 2rem;
        --fs-h3: 1.5rem;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ---------- Responsivt – mobil meny ---------- */
@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
        padding-top: var(--space-sm);
    }

    .nav-list.is-open {
        display: flex;
    }

    .nav-list li {
        margin: 0;
    }

    .nav-list a {
        display: block;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-sm);
    }

    .theme-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Scroll-reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease-out, transform 700ms ease-out;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Forskjøvet animasjon for kort i et rutenett */
.card-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.card-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.card-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.card-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.card-grid .reveal:nth-child(6) { transition-delay: 400ms; }

/* ---------- Lightbox: mobil ---------- */
@media (max-width: 640px) {
    .lightbox__btn {
        width: 46px;
        height: 46px;
    }

    .lightbox__caption {
        font-size: 0.85rem;
        padding: 0.4rem 0.85rem;
    }

    .lightbox__close {
        top: 0.6rem;
        right: 0.6rem;
    }

    .lightbox__prev { left: 0.4rem; }
    .lightbox__next { right: 0.4rem; }
}

/* ---------- Honningkrukke (spam-beskyttelse) ---------- */
/* Feltet skjules helt for mennesker og autofyll-verktøy.
   Bots som scraper HTML vil fortsatt se og fylle det ut. */
.honeypot-field {
    display: none !important;
}

/* ---------- Send-knapp: laste-tilstand ---------- */
.contact-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.contact-submit[disabled] {
    cursor: progress;
    opacity: 0.85;
    transform: none;
    box-shadow: none;
}

.contact-submit[disabled]:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(232, 119, 34, 0.25);
}

.contact-submit__spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    display: none;
    animation: contact-submit-spin 700ms linear infinite;
}

.contact-submit.is-loading .contact-submit__spinner {
    display: inline-block;
}

@keyframes contact-submit-spin {
    to { transform: rotate(360deg); }
}

/* Felt-feilmarkering ved klientvalidering */
.form-field input.has-error,
.form-field textarea.has-error {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

[data-theme="dark"] .form-field input.has-error,
[data-theme="dark"] .form-field textarea.has-error {
    border-color: #ff6b5a;
    box-shadow: 0 0 0 3px rgba(255, 107, 90, 0.18);
}

/* ---------- Tilbakemelding-modal ---------- */
.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 240ms ease, visibility 240ms ease;
}

.feedback-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.feedback-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 28, 0.55);
    backdrop-filter: blur(6px) saturate(115%);
    -webkit-backdrop-filter: blur(6px) saturate(115%);
    cursor: pointer;
}

.feedback-modal__dialog {
    position: relative;
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(10, 14, 20, 0.35);
    transform: translateY(16px) scale(0.97);
    opacity: 0;
    transition: transform 280ms cubic-bezier(0.22, 0.8, 0.28, 1),
                opacity 240ms ease;
}

.feedback-modal.is-open .feedback-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.feedback-modal__close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.feedback-modal__close svg {
    width: 20px;
    height: 20px;
}

.feedback-modal__close:hover,
.feedback-modal__close:focus {
    background-color: var(--color-accent-soft);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: rotate(90deg);
}

.feedback-modal__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent-soft);
    color: var(--color-accent);
    transition: background-color var(--transition), color var(--transition);
}

.feedback-modal__icon svg {
    width: 36px;
    height: 36px;
    display: none;
}

.feedback-modal[data-state="success"] .feedback-modal__icon-success {
    display: block;
}

.feedback-modal[data-state="error"] .feedback-modal__icon {
    background-color: rgba(192, 57, 43, 0.12);
    color: #c0392b;
}

[data-theme="dark"] .feedback-modal[data-state="error"] .feedback-modal__icon {
    background-color: rgba(255, 107, 90, 0.15);
    color: #ff8a7a;
}

.feedback-modal[data-state="error"] .feedback-modal__icon-error {
    display: block;
}

.feedback-modal__title {
    margin: 0 0 var(--space-sm);
    font-size: var(--fs-h3);
    color: var(--color-text);
}

.feedback-modal__message {
    margin: 0 0 var(--space-lg);
    color: var(--color-text-muted);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
}

.feedback-modal__btn {
    min-width: 140px;
}

/* Sperre scroll bak modal når åpen */
body.has-feedback-open {
    overflow: hidden;
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }

    .lightbox__image {
        opacity: 1;
        transform: none;
    }

    .gallery-item__zoom {
        opacity: 0;
    }
}
