/* ======= Importera Google Fonts ======= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

/* ======= GRUNDINSTÄLLNINGAR ======= */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #1a1a1a;
    text-align: center;
}

/* ======= HEADER ======= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Justera detta vid behov */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    z-index: 1000;
    gap: 20px; /* Mellanrum mellan logo, meny och språkväxlare */
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px; /* Justera för att flytta loggan upp/ned */
}

/* ======= Desktop Navigationsmeny (dator) ======= */
.desktop-menu {
    margin-left: 0px; /* Flytta menyn lite åt höger från loggan */
}

.desktop-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.desktop-menu ul li a {
    text-decoration: none;
    font-size: 16px;
    color: #002434;
    transition: color 0.3s;
}

.desktop-menu ul li a:hover {
    color: #8a6fa0;
}

/* ======= HAMBURGARMENY (mobil/läsplatta) ======= */
.hamburger-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
    display: none; /* Dölj som standard, visas i media query */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hamburger-menu {
    width: 50px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    background: transparent;
    padding: 5px;
}

.hamburger-menu div {
    width: 35px;
    height: 4px;
    background-color: rgb(0, 0, 0);
    transition: 0.3s;
    border-radius: 2px;
    position: absolute;
}

.hamburger-menu div:nth-child(1) { top: 10px; }
.hamburger-menu div:nth-child(2) { top: 18px; }
.hamburger-menu div:nth-child(3) { top: 26px; }

.hamburger-container.active .hamburger-menu div:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.hamburger-container.active .hamburger-menu div:nth-child(2) {
    opacity: 0;
}

.hamburger-container.active .hamburger-menu div:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}

.hamburger-links {
    list-style: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 65px;
    right: 0;
    width: 200px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger-container.active .hamburger-links {
    max-height: 200px;
    opacity: 1;
    padding: 8px;
}

.hamburger-links li {
    padding: 10px;
    text-align: center;
}

.hamburger-links a {
    text-decoration: none;
    font-size: 14px;
    color: black;
    display: block;
    transition: 0.3s;
}

.hamburger-links a:hover {
    background: #f0f0f0;
}

/* ======= RESPONSIV DESIGN ======= */
/* ----- För mobil + läsplatta upp till 1024px ----- */
@media (max-width: 1024px) {
    /* Dölj desktop-menyn */
    .desktop-menu {
        display: none;
    }
    /* Visa hamburgarmenyn */
    .hamburger-container {
        display: flex;
    }

    /* Anpassa hero-sektionen om du vill */
    .hero-section {
        padding: 0 10px;
        justify-content: center;
    }
    .content {
        max-width: 90%;
        margin-top: 80px;
    }
    h1 {
        font-size: 40px;
    }
    p {
        font-size: 16px;
    }
}

/* ----- För dator från 1025px och uppåt ----- */
@media (min-width: 1025px) {
    /* Visa desktop-menyn */
    .desktop-menu {
        display: block;
    }
    /* Dölj hamburgarmenyn */
    .hamburger-container {
        display: none;
    }

    h1 {
        font-size: 82px;
    }
    .content {
        max-width: 800px;
    }
    .hero-section {
        justify-content: center;
    }
}

/* ======= RUBRIKER OCH TEXT ======= */
h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 50px; /* Större rubrik på desktop */
    line-height: 1.2;
    max-width: 800px; /* Begränsar bredden */
    margin: 0 auto 20px; /* Centrerar */
}

p, .btn {
    font-family: 'Roboto', sans-serif;
}

.intro p {
    font-size: 18px;
    max-width: 600px; /* Gör texten smalare för att efterlikna referensbilden */
    margin: 0 auto;
    line-height: 1.6;
}
/* Wrapper som täcker hela området innan blå rektangeln */
.content-wrapper {
    background-color: #ededff; /* Ändra till önskad färg */
    padding-bottom: 0px; /* Justera så att färgen täcker hela sektionen innan blå rektangeln */
}

/* ======= INTRO SEKTION ======= */
.intro {
    padding: 120px 20px 50px; /* Justera padding för att inte kollidera med headern */
    padding-top: 180px
}

/* ======= BILDSEKTION ======= */
.image-section {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.image-section img {
    width: 95%; /* Gör bilden bredare */
    max-width: 1200px; /* Öka maxbredden */
    height: auto; /* Behåller proportioner */
    max-height: 580px; /* Minskar höjden */
    border-radius: 10px;
    margin-bottom: -80px; /* Justera överlappning med den blå rektangeln */
    border: 1px solid black;
    object-fit: cover; /* Beskär bilden så den blir bredare men kortare */
}


/* ======= INFOBOX (BLÅ REKTANGEL) ======= */
.info-box {
    background-color: #03396c;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 140px 20px 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.info {
    max-width: 300px;
    text-align: center;
}

.info h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.info p {
    font-size: 18px;
}

/* ======= RESPONSIV DESIGN ======= */
@media (max-width: 768px) {
    h1 {
        font-size: 36px; /* Mindre på mobil */
    }

    .intro p {
        font-size: 18px;
        max-width: 90%;
    }
}

/* ======= SEKTIONSSTIL FÖR BILD + TEXT ======= */
.image-text-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 80px auto;
    padding: 20px;
    text-align: left;
}

/* Styla bilderna */
.image-text-section img {
    width: 50%; /* Ökar bredden något (tidigare 45%) */
    max-width: 600px; /* Gör maxbredden större (tidigare 500px) */
    height: 420px; /* Lägger till en fast höjd för mer enhetliga bilder */
    border-radius: 12px;
    object-fit: cover;
}


/* Textstil */
.text-content {
    width: 45%;
}

.text-content h2 {
    font-size: 32px;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 10px;
}

.text-content p {
    font-size: 18px;
    line-height: 1.6;
}

/* Växla placering av bild och text */
.image-text-section.left img {
    order: -1; /* Flyttar bilden till vänster */
}

.image-text-section.right img {
    order: 1; /* Bilden hamnar till höger */
}

@media (max-width: 768px) {
    .image-text-section {
        display: flex;
        flex-direction: column !important; /* Tvingar alla sektioner att staplas vertikalt */
        align-items: center;
        text-align: center;
    }

    .image-text-section img {
        width: 100%;
        max-width: 100%;
        max-height: 350px; /* Begränsar höjden på mobil */
        order: -1 !important; /* Gör att bilden ALLTID placeras överst */
        margin-bottom: 20px; /* Skapar mellanrum mellan bild och text */
        object-fit: cover; /* Ser till att bilden beskärs istället för att förvrängas */
    }

    .text-content {
        width: 100%;
    }
}

/* ======= HEADER FIX ======= */
@media (max-width: 768px) {
    header {
        padding: 15px 20px; /* Minskar sidopadding på mindre skärmar */
    }

    .logo {
        margin-right: auto; /* Skjuter loggan till vänster */
    }

    .language-switch {
        margin-left: 15px; /* Ökar avstånd mellan logga och switch */
    }
}
