/* =========================
   HEADER
========================= */

.header {
    position: sticky;

    top: 0;

    z-index: 9999;

    width: 100%;
    height: 92px;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.04);
}


/* =========================
   CONTAINER
========================= */

.header-container {
    width: 100%;
    max-width: 1450px;
    height: 100%;

    margin: 0 auto;

    padding: 0 40px;

    display: flex;

    align-items: center;
    justify-content: space-between;
}


/* =========================
   LOGO
========================= */

.logo {
    display: flex;

    align-items: center;

    flex-shrink: 0;

    text-decoration: none;
}


.logo-image {
    display: block;

    width: 245px;
    height: auto;
}


/* =========================
   MENU DESKTOP
========================= */

.menu {
    display: flex;

    align-items: center;

    gap: 42px;
}


.menu a {
    position: relative;

    padding: 34px 0 16px;

    color: #101a15;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition: 0.25s ease;
}


.menu a:hover {
    color: #55b93d;
}


/* LINHA VERDE */

.menu a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 7px;

    width: 0;
    height: 2px;

    background: #55b93d;

    transition: 0.25s ease;
}


.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}


/* =========================
   BOTÃO FALE CONOSCO
========================= */

.contact-button {
    min-width: 150px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 7px;

    background:
        linear-gradient(
            135deg,
            #55c13d,
            #37a32e
        );

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: 0.25s ease;
}


.contact-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px
        rgba(78, 190, 59, 0.25);
}



/* =========================================================
   BOTÃO MOBILE
========================================================= */

.mobile-menu-button {
    display: none;

    width: 46px;
    height: 46px;

    padding: 0;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    flex-shrink: 0;

    border: none;
    border-radius: 8px;

    background: transparent;

    cursor: pointer;

    transition: 0.25s ease;
}


.mobile-menu-button:hover {
    background: #f4f8f4;
}


.mobile-menu-button span {
    display: block;

    width: 24px;
    height: 2px;

    border-radius: 10px;

    background: #101a15;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}



/* =========================================================
   MENU MOBILE
========================================================= */

.mobile-menu {
    display: none;

    width: 100%;

    padding: 8px 20px 20px;

    background: #ffffff;

    border-top: 1px solid #eeeeee;

    box-shadow:
        0 14px 24px
        rgba(0, 0, 0, 0.06);
}


.mobile-menu a {
    width: 100%;
    min-height: 50px;

    display: flex;

    align-items: center;

    padding: 0 10px;

    color: #101a15;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    border-bottom: 1px solid #f0f2f0;

    transition: 0.25s ease;
}


.mobile-menu a:hover {
    color: #55b93d;
}


.mobile-menu a:last-child {
    border-bottom: none;
}



/* =========================
   BOTÃO CONTATO MOBILE
========================= */

.mobile-menu .mobile-contact-button {
    min-height: 50px;

    margin-top: 14px;

    justify-content: center;

    border: none;

    border-radius: 7px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #55c13d,
            #37a32e
        );
}


.mobile-menu .mobile-contact-button:hover {
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(78, 190, 59, 0.20);
}



/* =========================================================
   MENU ABERTO
========================================================= */

.mobile-menu.is-open {
    display: block;
}


/* =========================
   ANIMAÇÃO HAMBURGER
========================= */

.mobile-menu-button.is-open span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}


.mobile-menu-button.is-open span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .header-container {
        padding: 0 28px;
    }


    .logo-image {
        width: 210px;
    }


    .menu {
        gap: 28px;
    }


    .contact-button {
        min-width: 140px;
    }

}



/* =========================================================
   TABLET MENOR
========================================================= */

@media (max-width: 1000px) {

    .header {
        height: 82px;
    }


    .header-container {
        padding: 0 22px;
    }


    .logo-image {
        width: 185px;
    }


    .menu {
        gap: 18px;
    }


    .menu a {
        padding:
            30px
            0
            14px;

        font-size: 13px;
    }


    .contact-button {
        min-width: 125px;
        height: 46px;

        font-size: 13px;
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .header {
        height: 74px;
    }


    .header-container {
        height: 74px;

        padding: 0 20px;

        flex-wrap: nowrap;
    }


    .logo-image {
        width: 170px;
    }


    /* ESCONDE DESKTOP */

    .menu,
    .contact-button {
        display: none;
    }


    /* MOSTRA MENU MOBILE */

    .mobile-menu-button {
        display: flex;

        margin-left: auto;
    }

}



/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 600px) {

    .header-container {
        padding: 0 18px;
    }


    .logo-image {
        width: 160px;
    }


    .mobile-menu {
        padding:
            8px
            18px
            18px;
    }


    .mobile-menu a {
        min-height: 48px;

        font-size: 14px;
    }

}



/* =========================================================
   CELULAR PEQUENO
========================================================= */

@media (max-width: 420px) {

    .header-container {
        padding: 0 15px;
    }


    .logo-image {
        width: 145px;
    }


    .mobile-menu-button {
        width: 42px;
        height: 42px;
    }


    .mobile-menu-button span {
        width: 22px;
    }


    .mobile-menu {
        padding:
            6px
            15px
            16px;
    }

}