html {
    scroll-padding-top: 60px; /* Sørger for at menyen ikke dekker overskriftene */
    scroll-behavior: smooth;   /* Gir en myk og deilig overgang når du trykker på menyen */
}
:root {
    --brand-red: #DE4631;
    --brand-orange: #F39324;
    --brand-brown: #4A2B18;
    --bg-light: #FAFAFA;
    --bg-warm: #FFF9F2; /* En veldig myk, varm fersken/krem-farge for bakgrunner */
    --text-dark: #333333;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
}

/* --- HEADER & NAV --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container img {
    height: 70px; /* Gjør logoen litt større og tydeligere */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--brand-brown);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--brand-orange);
}

/* --- FELLES KLASSER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

h1, h2, h3 {
    color: var(--brand-brown);
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

.bg-warm {
    background-color: var(--bg-warm);
}

/* KNAPP */
.btn {
    display: inline-block;
    background-color: var(--brand-red);
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 30px; /* Avrundet, moderne knapp */
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(222, 70, 49, 0.3);
}

.btn:hover {
    background-color: var(--brand-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 147, 36, 0.4);
}

/* --- HERO SEKSJON --- */
.hero-section {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #ffffff 100%);
    padding: 80px 5%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap; /* For mobilvennlighet */
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--brand-brown);
    margin-bottom: 25px;
}

.hero-video {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.hero-video video {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Gir videoen dybde */
    background-color: #fff;
}

/* --- OM OSS (Funksjonsliste) --- */
.features-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    margin-top: 40px;
    border-left: 5px solid var(--brand-red);
}

.features-list {
    list-style: none;
    margin-top: 20px;
}

.features-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Bruker et CSS-hjerte som bullet point! */
.features-list li::before {
    content: '♥';
    color: var(--brand-orange);
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
}

/* --- GRID KORT (Hva er BPA) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--brand-orange);
    transition: transform 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    border-top-color: var(--brand-red);
}

/* --- KONTAKT --- */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.info-card {
    margin-bottom: 30px;
}

.info-card h3 {
    color: var(--brand-red);
    margin-bottom: 10px;
}

.info-card a {
    color: var(--brand-orange);
    text-decoration: none;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-light);
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    background-color: #ffffff;
}

#char-count {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: -10px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--brand-brown);
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Gjør logoen hvit hvis det trengs mot mørk bakgrunn */
}

.social-icons {
    margin-top: 20px;
}

.social-icons span {
    margin: 0 10px;
    cursor: pointer;
}


/* --- FACEBOOK IKON --- */
.social-icons a {
    color: #ffffff;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--brand-orange);
    transform: scale(1.1); /* Ikonet vokser litt når du holder over */
}

/* --- HAMBURGERMENY (Skjult på desktop) --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101; /* Holder knappen over selve menyen */
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--brand-brown);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- RESPONSIVT DESIGN (Mobil / Nettbrett) --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin-left: auto; /* Dytt knappen helt til høyre kant */
        margin-right: 10px; /* Litt luft mot selve skjermkanten, juster etter ønske */
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%; /* Skjuler menyen utenfor høyre kant */
        height: 100vh;
        width: 250px;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease; /* Myk animasjon når menyen åpnes */
        z-index: 100;
    }

    /* Når menyen er åpen */
    nav ul.active {
        right: 0;
    }

    nav a {
        font-size: 1.5rem; /* Større tekst på mobil for å treffe lett med tommelen */
    }

    /* Animasjon av hamburger til et "X" når den er åpen */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
/* --- GALLERI GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Gir bildene en fin proporsjon */
    background-color: var(--bg-warm);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- INTEGRERT SKJEMA FEEDBACK --- */
.hidden { display: none !important; }

.form-success, .form-error, .form-info {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-info {
    background-color: var(--bg-warm);
    color: var(--brand-brown);
    border: 1px solid var(--brand-orange);
}

/* --- BLOGG OVERLAY (MODAL) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
    border-top: 5px solid var(--brand-orange);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-box h2 {
    color: var(--brand-brown);
    margin-bottom: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--brand-red);
}
/* --- OPPDATERT BLOGG OVERLAY STØRRELSE --- */
#blogg-modal .modal-box {
    width: 50vw;       /* 50% av skjermens bredde */
    height: 50vh;      /* 50% av skjermens høyde */
    max-width: none;   /* Fjerner tidligere maks-bredde */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- LIGHTBOX (BILDE-OVERLAY) --- */
.gallery-img {
    cursor: pointer; /* Gjør musepekeren til en hånd over bildene */
}

#lightbox-modal {
    z-index: 2000; /* Legges over alt annet */
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 90vw;
    height: 90vh;
}

#lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain; /* Sørger for at bildet ikke strekkes */
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 10px;
    transition: background 0.3s ease, color 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--brand-orange);
    color: #fff;
}

.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    background: none;
    border: none;
    font-size: 3.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.lightbox-close-btn:hover {
    color: var(--brand-red);
}

/* Gjør navigasjonspilene mindre på mobil */
@media (max-width: 768px) {
    .lightbox-content { gap: 5px; }
    .lightbox-nav { font-size: 2rem; padding: 10px; }
    #lightbox-img { max-width: 70vw; }
}
