/* =========================
   HEADER
========================= */

header {
    position: fixed;
    top: 0;
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;

    height: 88px;

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


    z-index: 9999;

    background: white;
    border-bottom: 4px solid #FDD902;
}

.logo {
    height: 52px;
    object-fit: contain;
    z-index: 1002;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;

    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #4D4D4D;

    font-size: 17px;
    font-weight: 500;

    transition: opacity .2s ease;
}

.nav-links a:hover,
.option--selected {
    color: #1B9849 !important;
}


/* =========================
   HAMBURGER
========================= */
.menu-toggle {
    width: 48px;
    height: 48px;

    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    background: transparent;
    border: none;

    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    width: 26px;
    height: 2px;

    background: #000000;
    border-radius: 20px;

    transition: .3s ease;
}

/* animação X */

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;

    width: 300px;
    max-width: 85vw;
    height: 100vh;

    background:
        linear-gradient(
            180deg,
            #10662F 0%,
            #1B9849 100%
        );

    padding: 120px 36px 40px;

    display: flex;
    flex-direction: column;
    gap: 24px;

    z-index: 1001;

    transition: right .35s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    text-decoration: none;
    color: #fff;

    font-size: 18px;
    font-weight: 500;
}

.mobile-btn {
    margin-top: 16px;
}

/* =========================
   OVERLAY
========================= */

.mobile-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.45);

    opacity: 0;
    visibility: hidden;

    transition: .3s ease;

    z-index: 1000;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 1100px) {

    .nav-links,
    .desktop-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links a:hover,
    .option--selected {
        color: #FDD902 !important;
    }
}

@media (max-width: 768px) {

    header {
        height: 78px;
    }

    .logo {
        height: 44px;
    }
}