* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}


body {
    background-color: #f4f4f4;
    line-height: 1.6;
}

/*///////////////////////NAVBAR STUFF/////////////////////////////*/

.navbar {
    background-color: #0077cc;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* space between logo and buttons */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logoImage {
    width: 200px;
    margin-top: -4px;
    margin-bottom: -14px;
}

/*Logo image phone adapted*/
@media only screen and (max-width: 600px) {
    .logoImage {
        width: 150px;
        margin-top: -10px;
        margin-bottom: -10px;
    }
}

.logo-link, .logo-link:hover, .logo-link:active, .logo-link:visited, .logo-link:link, .logo-link:target, .logo-link:focus {
    text-decoration: none;
    color: white;
}



/* HAMBURGER BUTTON */
.hamburger {
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    line-height: 5px;
}

/* OVERLAY (click outside to close) */
#sideMenuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 999;
}

/* SIDE MENU */
#sideMenu {
    position: fixed;
    top: 0;
    right: -60%;
    width: 60%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -3px 0 10px rgba(0,0,0,0.3);
    padding: 20px;
    transition: right .3s ease;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* CLOSE BUTTON */
.close-btn {
    color: #0077cc;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    float: right;
    width: 0;
}

.close-btn:hover {
    color: #004e86;
}


.side-menu-links {
    margin-top: 50px;
}


.inactivePage {
    color: #0077cc;
    display: block;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 0 5px 15px;
    margin: 0 0 10px 10px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.inactivePage:hover {
    color: #004e86;
    transform: scale(1.1);
    transform: translateX(10px);
}



.activePage {
    color: #0077cc;
    filter: brightness(0.7);
    border-radius: 5px;
    display: block;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 0 5px 15px;
    margin: 0 0 10px 10px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}



.side-menu-footer {
    margin-top: auto;
}

/* FOOTER LINKS AT BOTTOM */
.side-menu-footer a {
    display: block;
    font-size: 14px;
    padding: 5px 0;
    color: #666;
    text-decoration: none;
}

.side-menu-footer a:hover {
    color: #333;
}

/* WHEN MENU IS ACTIVE */
#sideMenu.active {
    right: 0;
}

#sideMenuOverlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hide menu instantly before JS runs */
#sideMenu,
#sideMenuOverlay {
    transition: right 0.3s ease, opacity 0.3s ease;
}

body.menu-preload #sideMenu {
    right: -50% !important; /* hide instantly */
    transition: none !important; /* disable animation */
}

body.menu-preload #sideMenuOverlay {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

/* Desktop: Fixed-width menu */
@media (min-width: 700px) {
    #sideMenu {
        width: 350px;   /* pick any width you prefer */
        right: -350px;  /* hide completely off-screen */
    }

    #sideMenu.active {
        right: 0;
    }
}


/*///////////////////////NAVBAR STUFF END/////////////////////////////*/



/* --- Allmän stil för container --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* --- Sektioner --- */
section {
    margin-bottom: 60px;
}

/* --- Rubriker --- */
h1, h2, h3 {
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    padding-bottom: 10px;
    margin-top: 10px;
}

h3 {
    font-size: 1.3rem;
    margin-top: 20px;
}

/* --- Paragrafer --- */
p {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* --- Listor --- */
ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

ul li {
    background: #f7f7f7;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}




/* --- Länkar --- */
a.siteLinks {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

a.siteLinks:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* --- Sektioner med bakgrund --- */
.about-company,
.our-values,
.our-mission,
.why-choose-us {
    background: #f9f9f9;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin: 15px;
}

.call-to-action {
    margin-top: 100px;
}

.about-me {
    background: #f9f9f9;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin: 15px;
}

/* Rubriken högst upp */
.about-me h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #222;
}

/* Container för text + bild på samma rad */
.about-me-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap; /* hindrar bilden från att hamna under texten på desktop */
}

/* Texten till vänster */
.about-me-text {
    flex: 1;
}

/* Bilden till höger */
.about-me-image {
    flex: 0 0 auto;
    width: 200px;       /* justera storlek efter behov */
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Responsiv design för smalare skärmar */
@media (max-width: 768px) {
    .about-me-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-me-image {
        width: 150px; /* mindre bild på mobil */
        margin-bottom: 20px;
    }
}

/* --- Responsivitet --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 20px 15px;
    }
}