/* ==========================================================
   GLOBAL.CSS
   Gemensam styling för alla HTML-sidor
   ========================================================== */


/* ==========================================================
   1. RESET & GLOBAL
   ========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: Arial, Helvetica, sans-serif;

    background-color: #f4f7f9;
    color: #152238;

    line-height: 1.6;
}

main {
    width: 100%;
    flex: 1;
}


/* ==========================================================
   2. HEADER & NAVIGATION
   ========================================================== */

.site-header {
    min-height: 75px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 8%;

    background-color: white;

    border-bottom: 1px solid #dddddd;
}


/* =========================
   LOGO
   ========================= */

.logo {
    color: #152238;

    font-size: 22px;
    font-weight: bold;
}


/* =========================
   NAVIGATION
   ========================= */

.nav {
    display: flex;
    align-items: center;

    gap: 30px;
}

.nav a {
    color: #152238;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.nav a:hover {
    color: #2fa876;
}

* {
    box-sizing: border-box;
}
/* ==========================================================
   3. FOOTER
   ========================================================== */

.site-footer {
    min-height: 90px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 8%;

    margin-top: auto;

    background-color: #0f2233;

    color: white;
}


/* =========================
   FOOTER LOGO
   ========================= */

.footer-logo {
    font-size: 17px;
    font-weight: bold;
}


/* =========================
   FOOTER LINKS
   ========================= */

.footer-links {
    display: flex;

    gap: 25px;
}

.footer-links a {
    color: white;

    text-decoration: none;

    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}



/* ==========================================================
   MEDIA QUERY – MOBILE
   Gemensam för alla HTML-sidor
   ========================================================== */

@media (max-width: 700px) {

    /* HEADER */

    .site-header {
        flex-direction: column;
        justify-content: center;
        gap: 15px;

        padding: 20px;
    }


    /* NAVIGATION */

    .nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }


    /* FOOTER */

    .site-footer {
        flex-direction: column;
        gap: 20px;

        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

