﻿/* Header styling */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px;
}

/* Logo styling */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-image {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-tagline {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Desktop navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center; /* Viktigt: centrerar vertikalt */
    gap: 30px;
    height: 100%;
}

    .nav-links li {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--dark-gray);
        font-weight: 600;
        font-size: 17px;
        padding: 8px 0;
        position: relative;
        transition: color 0.3s;
        display: flex;
        align-items: center; /* Centrerar texten vertikalt */
        height: 100%;
    }

        .nav-links a:hover {
            color: var(--primary-blue);
        }

            .nav-links a:hover::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 3px;
                background-color: var(--secondary-orange);
                border-radius: 2px;
            }

/* Services dropdown - FIXED alignment */
.services-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.services-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    height: 100%;
}

    .services-btn i {
        font-size: 14px;
        transition: transform 0.3s;
    }

.services-dropdown:hover .services-btn i {
    transform: rotate(180deg);
}

.services-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    min-width: 220px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.services-dropdown:hover .services-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.services-menu li {
    padding: 0;
}

.services-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    height: auto;
}

.services-menu i {
    margin-right: 10px;
}

.services-menu a:hover {
    background-color: rgba(0, 80, 158, 0.08);
    color: var(--primary-blue);
    padding-left: 25px;
}

/* Contact button */
.offer-btn {
    background-color: var(--secondary-orange);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

    .offer-btn:hover {
        background-color: #e06c00;
        transform: translateY(-2px);
    }

/* Hamburger menu for mobile - FIXED visibility */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-blue);
    cursor: pointer;
    width: 40px;
    height: 40px;
    z-index: 2001; /* Högt z-index för att synas tydligt */
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 2000;
    transition: right 0.4s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

    .mobile-menu.active {
        right: 0;
    }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--dark-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .mobile-nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-nav-links a {
        display: block;
        padding: 18px 10px;
        text-decoration: none;
        color: var(--dark-gray);
        font-weight: 600;
        font-size: 18px;
        transition: color 0.3s;
    }

        .mobile-nav-links a:hover {
            color: var(--primary-blue);
        }

.mobile-services-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 10px;
    background: none;
    border: none;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 18px;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .mobile-services-btn i {
        font-size: 16px;
        transition: transform 0.3s;
    }

    .mobile-services-btn.active i {
        transform: rotate(180deg);
    }

.mobile-services-menu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    background-color: rgba(0, 80, 158, 0.05);
    border-radius: 6px;
    margin: 5px 0 15px 0;
    transition: max-height 0.4s ease;
}

    .mobile-services-menu.active {
        max-height: 400px;
    }

    .mobile-services-menu li {
        border-bottom: none;
    }

    .mobile-services-menu a {
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 500;
        color: var(--dark-gray);
    }

.mobile-back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 600;
    padding: 15px 10px;
    margin-top: 10px;
    cursor: pointer;
}

.mobile-offer-btn {
    margin-top: 30px;
    background-color: var(--secondary-orange);
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

    .mobile-offer-btn:hover {
        background-color: #e06c00;
    }

/* Overlay for closing mobile menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Responsive design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 15px;
    }

    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger-btn {
        display: block;
        position: relative;
        margin-left: auto; /* Ser till att den är i höger kant */
    }

    .header-container {
        height: 70px;
        padding: 0 15px;
    }

    .logo-name {
        font-size: 20px;
    }

    .logo-image {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }

    .logo-name {
        font-size: 18px;
    }

    .logo-tagline {
        font-size: 12px;
    }

    .mobile-menu {
        width: 85%;
        max-width: 350px;
    }

    .hamburger-btn {
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
}
