/* PAGE SPECIFIC STYLES - index.css */

/* HERO SECTION STYLING (FORSIDE) */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: var(--color-light-beige);
    background-image: url('../img/forside.png'); /* Husk din egen sti */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 25vh; /* Juster denne verdien for å flytte innholdet opp/ned */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-description {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description-thin {
    font-size: 1rem;
    font-weight: 200;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Seksjoner mellom hero og footer (Standard padding for disse seksjonene) */

.services-section,
.about-section,
.cta-bottom-section {
    padding-bottom: 5rem;
}

.profile-image-wrapper {
    margin-top: 6rem;
}

/* -------------- CTA Bottom Section (Klar for å ta kontakt?) -------------- */
.cta-bottom-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 8rem;
    text-align: center;
    background-image: url('../images/cta-trees-background.png'); /* Husk din egen sti */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cta-bottom-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-bottom-section .container {
    position: relative;
    z-index: 2;
}

.cta-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 1.5rem auto 3rem auto;
}

.cta-bottom-section .btn-primary { /* Målretter .btn-primary når den er inne i .cta-bottom-section */
    background-color: var(--color-beige); /* Beige bakgrunn */
    color: var(--color-primary); /* Grønn tekst */
    border: 2px solid var(--color-beige); /* Grønn ramme, men kan endres til beige for konsistens */
}

.cta-bottom-section .btn-primary:hover {
    background-color: transparent; /* Blir transparent ved hover */
    color: var(--color-beige); /* Teksten blir beige ved hover */
    border-color: var(--color-beige); /* Rammen blir beige ved hover */
    transform: scale(1.05);
}

/* RESPONSIVITET for index.css spesifikke elementer */

@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        padding-top: 4rem;
        text-align: center;
        flex-direction: column; /* Stack items vertically */
        align-items: center;    /* Center items horizontally when stacked */
    }

    .hero-description {
        font-size: 1.15rem;
    }

    .hero-section {
        padding-top: 15vh; /* Justert padding for nettbrett */
    }

    .cta-bottom-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .cta-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .section-title .green-text h2 {
        text-align: center;
        flex-direction: column; /* Stack items vertically */
        align-items: center;    /* Center items horizontally when stacked */
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2.5rem;
        padding-top: 3rem;
        text-align: center;
        flex-direction: column; /* Stack items vertically */
        align-items: center;    /* Center items horizontally when stacked */
    }
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .hero-section {
        padding-top: 10vh; /* Justert padding for mobil */
    }
    .about-section .om-beskrivelse p {
        font-size: 1rem; /* Juster denne verdien etter ønske, f.eks. 0.9rem eller 0.85rem */
    }
    .section-title .green-text h2 {
        text-align: center;
        flex-direction: column; /* Stack items vertically */
        align-items: center;    /* Center items horizontally when stacked */
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
        padding-top: 3rem;
        text-align: center;
        flex-direction: column; /* Stack items vertically */
        align-items: center;    /* Center items horizontally when stacked */
    }

    .hero-title {
        font-size: 3rem;
        padding-top: 1.5rem;
        padding-bottom: .5rem;
    }
    .hero-description {
        font-size: 1.2rem;
    }
    .cta-bottom-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .about-section .om-beskrivelse p {
        font-size: 0.95rem; /* Enda mindre fontstørrelse for svært små skjermer */
    }
    .section-title .green-text h2 {
        text-align: center;
        flex-direction: column; /* Stack items vertically */
        align-items: center;    /* Center items horizontally when stacked */
    }
}
