/* =========================
   HEADER
========================= */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1260px;
    border-radius: 15px;
    z-index: 999;

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

    padding: 10px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* LOGO */
.logo img {
    height: 48px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* NAV CONTAINER */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* NAV CENTER */
.nav-center ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

/* NAV RIGHT */
.nav-right ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

/* LINKS */
.nav-center a,
.nav-right a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.nav-center a:hover,
.nav-right a:hover {
    color: red
}

/* ÍCONES */
.nav-right img.icon {
    height: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-right a:hover img.icon {
    opacity: 0.7;
}

/* =========================
   MENU MOBILE
========================= */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    width: 28px;
    cursor: pointer;
    z-index: 1001;
}

/* =========================
   RESPONSIVO MOBILE
========================= */
@media (max-width: 768px) {

    /* MOSTRA BOTÃO */
    .menu-icon {
        display: block;
    }

    /* MENU LATERAL */
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;

        flex-direction: column;
        align-items: flex-start;

        padding: 80px 20px 20px;
        gap: 2rem;

        background-color: #ffffff;
        box-shadow: -2px 0 12px rgba(0,0,0,0.1);

        transition: right 0.4s ease;
        z-index: 1000;
    }

    /* ABRE MENU */
    .menu-toggle:checked ~ .nav-container {
        right: 0;
    }

    /* OVERLAY */
    .nav-container::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .menu-toggle:checked ~ .nav-container::before {
        opacity: 1;
        pointer-events: auto;
    }

    /* LISTAS VERTICAIS */
    .nav-center,
    .nav-right {
        width: 100%;
    }

    .nav-center ul,
    .nav-right ul {
        flex-direction: column;
        width: 100%;
        gap: 1.2rem;
    }

    /* LINKS MOBILE */
    .nav-center a,
    .nav-right a {
        display: block;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
}

/* =========================
   AJUSTE NOTEBOOK
========================= */
@media (max-width: 1280px) {
    .header {
        width: calc(100% - 40px);
    }
}