/* --- Generell Boks-modell justering --- */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

/* --- Generell Styling --- */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    background-color: #f8f7f5; /* <-- Ny, varmere hvit */
    color: #333;
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: #274c43; /* <-- Ny grønnfarge */
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding-bottom: 5px;
    transition: color 0.3s, border-bottom 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #274c43; /* <-- Ny grønnfarge */
    border-bottom: 2px solid #274c43; /* <-- Ny grønnfarge */
}

/* --- Knapper --- */
.btn {
    display: inline-block;
    background: #274c43; /* <-- Ny grønnfarge */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #1d3a33; /* <-- Ny mørkere grønnfarge */
}

/* --- Forside (Hero Seksjon) --- */
.hero {
    /* Ny, mørk og behagelig gradient */
    background: linear-gradient(45deg, #2c2c2c, #274c43); 
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    /* Bakgrunnen er fjernet for et renere utseende */
    padding: 40px;
    max-width: 80%; /* Sørger for at teksten ikke blir for bred */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

/* --- Om Meg Siden --- */
.about-section {
    padding: 60px 0;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 2;
}

/* --- Tjenester Siden --- */
.services-page {
    padding: 60px 0;
    text-align: center;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    width: 320px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #274c43; /* <-- Ny grønnfarge */
    margin-top: 0;
}

.service-card .price {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}

.service-card .price span {
    font-size: 1rem;
    font-weight: normal;
    color: #777;
}

.service-card ul {
    list-style: '✓';
    padding-left: 20px;
    margin: 20px 0;
}

.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    width: 320px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    display: flex;         /* <-- NY */
    flex-direction: column; /* <-- NY */
}

.service-card .btn {
    margin-top: auto; /* Dette er trikset som skyver knappen til bunnen */
    width: 100%;
    box-sizing: border-box; /* Sørger for at padding er inkludert i bredden */
    text-align: center;
}

.booking-button-container {
    margin-top: 50px;
}

/* Styling for sosiale medier i footer */
.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: #f4f4f4;
    margin: 0 15px; /* Litt mer luft mellom ikonene */
    font-size: 1.5rem; /* Større ikoner */
    text-decoration: none;
    transition: color 0.3s ease; /* Fin overgang */
}

.social-links a:hover {
    color: #274c43; /* Matcher hover-fargen fra før, men på selve ikonet */
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0;
    background: #333;
    color: #f4f4f4;
    margin-top: 40px;
}

/* --- Responsivt design for mobil --- */
@media (max-width: 768px) {
    header .container { flex-direction: column; }
    nav ul { margin-top: 15px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .about-section { flex-direction: column; text-align: center; }
}
/* --- Kontakt Skjema Styling --- */
.contact-form-section {
    margin-top: 60px;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-section h2, .contact-form-section p {
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select { /* <-- Legg til denne */
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; 
    font-family: 'Lato', sans-serif; /* Sørger for lik font */
}

.contact-form-section .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}
/* --- Hamburger Meny Styling --- */
.hamburger-menu {
    display: none; /* Skjult på PC som standard */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
}


/* --- Responsivt design (Versjon 3, mer robust) --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
    }

    .hamburger-menu {
        display: flex;
        z-index: 1001; /* Sørger for at den alltid er øverst */
    }

    /* 1. Standardtilstand for NAV på mobil (SKJULT) */
    header nav {
        position: fixed; /* Endret til fixed for å dekke hele skjermen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Fyller hele høyden */
        background-color: rgba(255, 255, 255, 0.98); /* Litt gjennomsiktig hvit */
        backdrop-filter: blur(5px); /* Gir en fin "frostet glass"-effekt */

        /* Hvordan vi skjuler den: */
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* Kan ikke klikkes når skjult */

        display: flex; /* Viktig: bruk flex for å sentrere */
        justify-content: center;
        align-items: center;

        transition: opacity 0.3s ease, visibility 0.3s ease; /* Fin overgang */
    }

    /* 2. Tilstand for NAV når menyen er åpen (SYNLIG) */
    header nav.nav-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Kan klikkes igjen */
    }
    
    /* 3. Styling for listen (ul) og listeelementene (li) */
    header nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        flex-direction: column; /* Stabler elementene vertikalt */
        text-align: center;
    }

    header nav ul li {
        margin: 0;
    }

    header nav ul li a {
        display: block;
        padding: 20px;
        font-size: 1.5rem; /* Større tekst for mobilmeny */
        color: #333;
        font-weight: bold;
        text-decoration: none;
        border-bottom: none; /* Fjerner PC-understrek */
    }
    
   header nav ul li a:hover,
header nav ul li a.active {
    color: #274c43; /* <-- Ny grønnfarge */
    background-color: transparent;
}

    /* --- Generelle mobil-justeringer --- */
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .hero-content { padding: 20px; }
    .about-section { flex-direction: column; text-align: center; }
    .services-container { flex-direction: column; align-items: center; }
}
/* --- Seksjon for Kundeomtaler --- */
.testimonials {
    padding: 60px 0;
    background-color: #f0f0f0; /* En svak gråfarge for å skille den ut */
}

.testimonials h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 40px;
    font-size: 2rem;
}

.testimonial-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Viktig for mobilvisning */
}

.testimonial-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 320px;
    position: relative;
}

.testimonial-card blockquote {
    margin: 0;
    font-style: italic;
    border-left: 3px solid #274c43; /* Bruker vår nye hovedfarge */
    padding-left: 20px;
}

.testimonial-card cite {
    display: block;
    text-align: right;
    margin-top: 15px;
    font-weight: bold;
    color: #555;
}

/* For å legge til pene sitat-tegn */
.testimonial-card blockquote::before {
    content: '“';
    font-family: 'Times New Roman', serif;
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
}
/* --- Styling for "Kommer Snart"-kortet --- */
.coming-soon-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto; /* Sentrerer boksen */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    font-style: italic;
    color: #555;
}
/* --- FAQ Seksjon --- */
.faq-section {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 40px;
    font-size: 2rem;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-item summary {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 20px 0;
    cursor: pointer;
    list-style: none; /* Fjerner standard pil */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Legger til vår egen pil-indikator */
.faq-item summary::after {
    content: '+';
    font-size: 2rem;
    color: #274c43;
    transition: transform 0.2s ease-in-out;
}

.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding-bottom: 20px;
}
/* --- Dark Mode Toggle Knapp --- */
.dark-mode-toggle {
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px; /* Gir litt avstand fra menyen */
}

.dark-mode-toggle .icon-sun {
    display: none; /* Solen er skjult som standard */
}

/* --- Dark Mode Tema --- */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode header {
    background: #1e1e1e;
    border-bottom-color: #333;
}

body.dark-mode .logo,
body.dark-mode nav ul li a:hover,
body.dark-mode nav ul li a.active {
    color: #58a491; /* En litt lysere grønnfarge for mørk bakgrunn */
    border-bottom-color: #58a491;
}

body.dark-mode nav ul li a {
    color: #e0e0e0;
}

body.dark-mode .btn {
    background: #58a491;
    color: #121212;
    font-weight: bold;
}

body.dark-mode .btn:hover {
    background: #6fc2ad;
}

body.dark-mode .service-card,
body.dark-mode .contact-form-section {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: none;
}

body.dark-mode .service-card h3 {
    color: #58a491;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background-color: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode footer {
    background: #1e1e1e;
    color: #aaa;
}
body.dark-mode .social-links a {
    color: #aaa;
}
body.dark-mode .social-links a:hover {
    color: #58a491;
}

/* Bytt ikon i knappen når dark mode er på */
body.dark-mode .dark-mode-toggle .icon-moon {
    display: none;
}
body.dark-mode .dark-mode-toggle .icon-sun {
    display: block;
}

/* Tilpass mobilmenyen for dark mode */
body.dark-mode header nav.nav-open {
    background-color: rgba(30, 30, 30, 0.98);
}
body.dark-mode header nav ul li a {
    color: #e0e0e0;
}
body.dark-mode header nav ul li a:hover,
body.dark-mode header nav ul li a.active {
    color: #58a491;
}
/* --- Testimonials Dark Mode --- */
body.dark-mode .testimonials {
    background-color: #1a1a1a; /* En mørk bakgrunn for seksjonen */
}

body.dark-mode .testimonial-card {
    background: #1e1e1e; /* Samme som header */
    box-shadow: none;
    border: 1px solid #333;
}

body.dark-mode .testimonial-card blockquote {
    border-left-color: #58a491; /* Den lysere grønnfargen */
}

body.dark-mode .testimonial-card cite {
    color: #ccc;
}

body.dark-mode .testimonial-card blockquote::before {
    color: rgba(255, 255, 255, 0.05);
}
/* --- FAQ Dark Mode --- */
body.dark-mode .faq-item {
    border-bottom-color: #333;
}

body.dark-mode .faq-item summary::after {
    color: #58a491;
}
body.dark-mode .calendly-inline-widget {
    /* Legger til en subtil kant for å definere widgeten mot den mørke bakgrunnen */
    box-shadow: 0 0 0 1px #333;
}
/* --- "Kommer Snart" Dark Mode --- */
body.dark-mode .coming-soon-card {
    background: #1e1e1e;
    color: #ccc;
    box-shadow: none;
    border: 1px solid #333;
}
/* --- Calendly Booking Widget --- */
.contact-form-section {
    padding: 40px 0; /* Justerer padding for å gi widgeten mer plass */
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.calendly-inline-widget {
    border-radius: 8px; /* Gir den samme avrundede hjørner som resten av designet */
    overflow: hidden; /* Sørger for at innholdet holder seg innenfor rammen */
}