/* Vakuumshopen.no – hovedstilark */
:root {
    --primary: #e2711d;        /* varm oransje – felles profil */
    --primary-dark: #b8560f;
    --dark: #1e2229;
    --text: #33383f;
    --muted: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f6f5f2;
    --border: #e5e3de;
    --radius: 10px;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Toppmeny ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.logo-tld { color: var(--primary); }

.main-nav { display: flex; gap: 0.4rem; }

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.97rem;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.main-nav a:hover { background: var(--bg-alt); color: var(--primary); }
.main-nav a.active { color: var(--primary); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--dark);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #343b46 100%);
    color: #fff;
    padding: 5rem 0;
}

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

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero h1 span { color: #ffb377; }

.hero p { font-size: 1.12rem; color: #c9cdd4; margin-bottom: 1.8rem; }

.hero-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.8rem 1.7rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

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

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-left: 0.7rem;
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

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

.section-title {
    font-size: 1.9rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-lead { color: var(--muted); margin-bottom: 2.2rem; max-width: 640px; }

/* ---------- USP-rad ---------- */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.usp {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.usp .icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.usp h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 0.3rem; }
.usp p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Produktkort ---------- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-body { padding: 1.8rem; flex: 1; }

.product-body h2, .product-body h3 {
    font-size: 1.35rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-list {
    list-style: none;
    margin: 1rem 0 1.2rem;
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.35rem;
    font-size: 0.96rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 800;
    position: absolute;
    left: 0;
}

.badge {
    display: inline-block;
    background: #fdeee0;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Tabeller ---------- */
.size-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.size-table th, .size-table td {
    text-align: left;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--border);
}

.size-table th { background: var(--bg-alt); color: var(--dark); }

/* ---------- Galleri ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-grid figure {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-grid figure:hover img { transform: scale(1.04); }

.gallery-grid figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 1.4rem 0.8rem 0.6rem;
}

/* ---------- Innholdssider ---------- */
.page-hero {
    background: var(--dark);
    color: #fff;
    padding: 3rem 0;
}

.page-hero h1 { font-size: 2.2rem; letter-spacing: -0.02em; }
.page-hero p { color: #c9cdd4; margin-top: 0.4rem; max-width: 640px; }

.prose { max-width: 760px; }
.prose h2 { color: var(--dark); font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.4rem; }
.prose li { margin-bottom: 0.3rem; }

/* ---------- Kontakt ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-box {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.8rem;
}

.contact-info-box h3 { color: var(--dark); margin-bottom: 0.8rem; }
.contact-info-box p { margin-bottom: 0.6rem; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: -1px;
}

.alert-success {
    background: #e7f6ec;
    border: 1px solid #bfe5cc;
    color: #1f7a3d;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.4rem;
    font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: #b7bcc4;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding: 3rem 1.25rem;
}

.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #b7bcc4; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.1rem 0;
    font-size: 0.88rem;
    text-align: center;
}

/* ---------- Responsivt ---------- */
@media (max-width: 820px) {
    .hero-grid, .product-grid, .contact-grid { grid-template-columns: 1fr; }
    .usp-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .hero h1 { font-size: 2rem; }

    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
        padding: 0.6rem 1rem 1rem;
    }
    .main-nav.open { display: flex; }
}

/* ---------- Lysboks ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 21, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox button {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.lightbox button:hover { background: var(--primary); }

.lb-close { top: 1.2rem; right: 1.2rem; font-size: 2.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 820px) {
    .lightbox button { width: 44px; height: 44px; font-size: 1.4rem; }
}

/* ---------- Klikkbare produktkort ---------- */
.product-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.14);
}

.product-link .read-more {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}
