:root {
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --text: #1a1f2b;
    --muted: #5b6473;
    --accent: #1a73e8;
    --accent-dark: #155cb8;
    --border: #e2e6ec;
    --success: #1f9d55;
    --error: #c33;
    --radius: 10px;
    --shadow: 0 2px 8px rgba(20, 30, 50, 0.06);
    --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
    line-height: 0;
}

.brand-logo {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.footer-logo {
    height: 64px;
    width: 64px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin-bottom: 0.75rem;
}

.nav nav {
    display: flex;
    gap: 1.25rem;
}

.nav nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

.nav nav a:hover { color: var(--accent); }

@media (max-width: 760px) {
    .nav nav { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover { background: var(--accent); color: white; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.hero .lead {
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero-card-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
}

.hero-card-row:last-of-type { border-bottom: none; }
.hero-card small { color: var(--muted); display: block; margin-top: 0.5rem; }

@media (max-width: 760px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { padding: 2.5rem 0; }
}

/* ---------- Sections ---------- */

.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin: 0 0 0.5rem;
}

/* ---------- Services ---------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.service h3 { margin: 0 0 0.75rem; }
.service ul { padding-left: 1.25rem; color: var(--muted); }
.service li { margin: 0.25rem 0; }

/* ---------- Pris-tabel ---------- */

.pris-tabel { overflow-x: auto; margin-top: 1.5rem; }

.pris-tabel table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pris-tabel th, .pris-tabel td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.pris-tabel th {
    background: var(--bg-alt);
    font-weight: 600;
}

.pris-tabel tr:last-child td { border-bottom: none; }
.pris-tabel .komplet { font-weight: 700; color: var(--accent); }

/* ---------- Prisberegner ---------- */

.prisberegner {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
    max-width: 640px;
}

.prisberegner fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.prisberegner legend {
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0;
}

.prisberegner label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.25rem;
    cursor: pointer;
}

.resultat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 1.1rem;
}

.resultat strong { color: var(--accent); font-size: 1.5rem; }

/* ---------- Galleri (før/efter) ---------- */

.galleri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ba {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: #ddd;
    user-select: none;
}

.ba-after,
.ba-before {
    position: absolute;
    inset: 0;
}

.ba img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 50% 0 0); }

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.ba-handle::after {
    content: "⇔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    font-size: 1rem;
}

/* ---------- Om os ---------- */

.omos { max-width: 720px; }
.omos p { color: var(--muted); }

/* ---------- Kontakt ---------- */

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

@media (max-width: 760px) {
    .kontakt-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.kontakt-info {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.kontakt-info li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.kontakt-info span { color: var(--muted); }
.kontakt-info a { color: var(--accent); text-decoration: none; font-weight: 600; }

.kontakt-form {
    display: grid;
    gap: 1rem;
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.kontakt-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.kontakt-form input,
.kontakt-form select,
.kontakt-form textarea {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    width: 100%;
    background: white;
}

.kontakt-form input:focus,
.kontakt-form select:focus,
.kontakt-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.field-error { color: var(--error); font-size: 0.85rem; }
.form-error { background: #fdecec; color: var(--error); padding: 0.75rem 1rem; border-radius: 6px; }

/* ---------- Footer ---------- */

.site-footer {
    background: #0f1722;
    color: #c8cdd6;
    padding: 2.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.site-footer strong { color: white; display: block; margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.25rem 0; }
.site-footer a { color: #c8cdd6; text-decoration: none; }
.site-footer a:hover { color: white; }

/* ---------- Tak-side ---------- */

.takside { max-width: 640px; text-align: center; padding: 3rem 0; }
.takside h1 { font-size: 2rem; }
