/* ===========================
   BASE HEADER STYLES
=========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background: transparent;
    color: var(--navy-deep);
    transition: background 0.3s ease, color 0.3s ease;
    z-index: 1000;
}

/* Scroll effect */
.header.scrolled {
    background: var(--navy-deep);
    color: var(--white-text);
}

.header.scrolled .nav-desktop a {
    color: var(--white-text);
}

.header.scrolled .btn-contact {
    background: var(--primary);
    color: var(--white-text);
}

.header.scrolled .btn-contact:hover {
    background: var(--primary-dark);
    color: var(--white-text);
    transform: scale(1.05);
}

/* Inner wrapper */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-width);
    height: 100%;
    padding: 0 20px;
}

/* Logo */
.brand img {
    width: 250px;
    height: auto;
    object-fit: cover;
    transform: scale(1.4);
    margin-left:-50px;
}

/* Desktop navigation */
.nav-desktop {
    display: flex;
    gap: 34px;
}

.nav-desktop a {
    color: var(--white-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-desktop a:hover {
    color: var(--primary);
}

.header.scrolled .nav-desktop a:hover {
    color: var(--primary);
}

/* Contact button */
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white-text);
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-contact:hover {
    background: var(--navy-deep);
    color: var(--white-text);
}

/* Mobile toggle button */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white-text);
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.menu-overlay,
.mobile-nav,
.menu-mobile {
    display: none;
}

/* ===========================
   MOBILE HEADER STYLES
   (375px – 767px)
=========================== */
@media (max-width: 767px) {

    .header {
        height: 90px;
        padding: 0 16px;
        background: var(--navy-deep);
        color: var(--white-text);
    }

    .nav-desktop {
        display: none;
    }

    .brand img {
        width: 250px;
        margin-left: -40px;
        object-fit: cover;
        transform: scale(1.4);
    }

    .btn-contact {
        display: none;
    }

    aside .btn-contact{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-mobile {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(360px, 84vw);
        height: 100vh;
        box-sizing: border-box;
        background: #000000;
        color: #ffffff;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 24px;
        z-index: 1100;
        gap: 24px;
    }

    .menu-mobile.is-open {
        transform: translateX(0);
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mobile-nav a {
        color: #ffffff;
        font-size: 18px;
        transition: color 0.3s ease;
    }

    .mobile-nav a:hover {
        color: var(--primary);
    }

    .menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 1090;
    }

    .menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .menu-close{
       display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        margin-left: auto;
        margin-bottom: 18px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        color: var(--ink);
        cursor: pointer;
    }


}