
/* Nullstill standard marger */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary: #d97706; /* Snekker-oransje / Rav gul */
    --dark: #0f172a;    /* Mørk marinblå skifer (Knuts Montasje-stil) */
    --light: #f8fafc;   /* Lys bakgrunnsfarge */
    --text: #334155;    /* Standard tekstfarge */
}

body {
    background-color: #ffffff;
    color: var(--text);
    line-height: 1.6;
}

/* Navigasjon / Topplinje */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 32px; /* Økt et par hakk for bedre synlighet */
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 75px;
    height: 50px;
    color: var(--primary);
}

.vater-bubble {
    fill: #84cc16 !important;
    stroke: #84cc16;
}

.brand-suffix {
    color: var(--primary);
    font-weight: 400;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 20px;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.btn-phone {
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 8px 18px;
    border-radius: 4px;
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 22px;
    border-radius: 4px;
}

/* Stor Hero-seksjon (Full bredde) */
.hero {
    position: relative;
    background-image: url('bilder/hovedbilde.jpg'); /* Her har vi lagt til ditt eget bilde */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 5%;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.10);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid var(--primary);
    color: #fbbf24;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 46px;
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.95;
}

.hero-buttons a {
    display: inline-block;
    text-decoration: none;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 15px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #b45309;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-buttons a:hover {
    transform: translateY(-2px);
}

/* Delt seksjon (Tekst og stort bilde side ved side) */
.split-section {
    padding: 80px 0;
    background: white;
}

.split-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
    padding: 0 5%;
    align-items: center;
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
}

.split-text p {
    font-size: 16px;
    color: #475569;
    margin-bottom: 15px;
    line-height: 1.7;
}

.split-image {
    flex: 1;
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Bilde-gallerikort for tjenester */
.services-section {
    padding: 90px 5%;
    background: var(--light);
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 17px;
    color: #64748b;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.image-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%; /* Sørger for at alle kortene blir like lange helt i bunnen */
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Standard størrelse som gjelder for kjøkkenet */
.card-img {
    height: 240px;
    min-height: 240px;
    background-size: cover;
    background-position: center;
}

/* Egen høy klasse for bad og garderobe som viser tak og gulv */
.card-img-hoy {
    height: 380px;
    min-height: 380px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.card-content p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
}

/* Trygghet & Prosessrammer */
.framework-section {
    padding: 80px 5%;
    background: white;
}

.trust-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 30px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
    font-size: 16px;
    color: var(--dark);
}

.flexibility-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--dark);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.flexibility-box h4 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

/* FAQ Seksjon (Knuts Montasje-stil) */
.faq-section {
    padding: 90px 5%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.faq-container {
    max-width: 750px;
    margin: 40px auto 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background: var(--light);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.faq-item details {
    width: 100%;
}

.faq-item summary {
    padding: 20px 25px;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
    user-select: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.2s;
}

.faq-item details[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 25px 25px 25px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.faq-answer p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    padding-top: 15px;
}

/* Mørk kontaktseksjon */
.contact-section {
    padding: 90px 5%;
    background-image: url('https://unsplash.com'); /* Solid bakgrunnsbilde for kontaktfelt */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 45px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-container h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    text-align: center;
}

.contact-container p {
    color: #64748b;
    text-align: center;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Skjemaelementer */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 15px;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #b45309;
}

/* Footer / Bunnekst */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 40px 5%;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsivt design for mobilskjermer */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px 5%;
    }
    
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    nav a {
        margin-left: 0;
    }

    .btn-phone {
        width: 100%;
        text-align: center;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
    }

    .split-container {
        flex-direction: column;
    }

    .split-image {
        width: 100%;
        height: 300px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        padding: 25px;
    }
}
