/* ===== BARRA DE NAVEGAÇÃO (NAVBAR) ===== */
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.navbar.scrolled {
    color: #505050;
    background-color: white;
    transition: background-color 0.4s ease-in;
}

.navbar.scrolled .pages .nav-text a {
    color: #000000;
}

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background-color: #000000;
}

/* ===== LOGO ===== */
.logo img {
    width: 100px;
    height: 100px;
}

/* ===== MENU DE NAVEGAÇÃO (DESKTOP) ===== */
.pages{
    display: flex;
    gap: 20px;
    margin: 0 auto;  /* Centraliza os links */
    align-items: center;
}

.nav-text{
    display: flex;
    margin: 0;
}

.pages .nav-text a{
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 10px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.pages .nav-text a:hover{
    color: #008000;
}

/* ===== BOTÃO TRABALHE CONOSCO (DESKTOP - FORA DO MENU) ===== */
.btn-trab-conosco-desktop {
    display: block;
}

.btn-trabalhe-conosco{
    background-color: #008000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.btn-trabalhe-conosco:hover{
    background-color: #015801;
}

.btn-trabalhe-conosco a {
    color: white;
    text-decoration: none;
}

/* ===== BOTÃO TRABALHE CONOSCO MOBILE (DENTRO DO MENU) ===== */
.btn-trab-conosco-mobile {
    display: none;  /* Escondido em desktop */
}

/* ===== MENU HAMBÚRGUER (ESCONDIDO EM DESKTOP) ===== */
.menu-toggle {
    display: none;
}

/* ===== RESPONSIVIDADE PARA TABLETS E CELULARES ===== */
@media (max-width: 1024px) {
    .navbar {
        padding: 15px 20px;
    }

    /* Mostra o botão hambúrguer */
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 30;
        margin-left: auto;
    }

    /* Estilo do ícone hambúrguer */
    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: black;
        position: relative;
        transition: background-color 0.3s ease;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background-color: black;
        left: 0;
        transition: transform 0.3s ease;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    /* Animação do hambúrguer para X */
    .menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* Esconde o botão desktop em mobile */
    .btn-trab-conosco-desktop {
        display: none;
    }

    /* Configuração do menu mobile */
    .pages {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 25;
        gap: 5px;
        margin: 0;
    }

    .pages.active {
        display: flex;
    }

    /* Estilo dos links no menu mobile */
    .pages .nav-text {
        width: 100%;
    }

    .pages .nav-text a {
        padding: 15px 20px;
        font-size: 1rem;
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        color: #505050;
    }

    /* Remove borda do último link antes do botão */
    .pages .nav-text:last-child a {
        border-bottom: none;
    }

    /* Mostra o botão mobile DENTRO do menu */
    .btn-trab-conosco-mobile {
        display: block;
        padding: 15px 20px 20px;
        width: 100%;
        border-top: 1px solid #f0f0f0;
        margin-top: 5px;
    }

    .btn-trabalhe-conosco-mobile {
        display: block;
        background-color: #008000;
        color: white;
        text-decoration: none;
        padding: 15px 20px;
        border-radius: 4px;
        font-weight: 600;
        text-align: center;
        transition: background-color 0.2s ease;
        width: 100%;
        box-sizing: border-box;
    }

    .btn-trabalhe-conosco-mobile:hover {
        background-color: #015801;
    }

    .logo img {
        width: 80px;
        height: 80px;
    }
}

/* ===== RESPONSIVIDADE PARA CELULARES MÉDIOS ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .logo img {
        width: 70px;
        height: 70px;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        width: 22px;
        height: 2.5px;
    }

    .hamburger::before {
        top: -7px;
    }

    .hamburger::after {
        bottom: -7px;
    }

    .pages .nav-text a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .btn-trabalhe-conosco-mobile {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* ===== RESPONSIVIDADE PARA CELULARES PEQUENOS ===== */
@media (max-width: 480px) {
    .navbar {
        padding: 10px;
    }

    .logo img {
        width: 60px;
        height: 60px;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        width: 20px;
        height: 2px;
    }

    .hamburger::before {
        top: -6px;
    }

    .hamburger::after {
        bottom: -6px;
    }

    .pages .nav-text a {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .btn-trab-conosco-mobile {
        padding: 10px 10px 15px;
    }

    .btn-trabalhe-conosco-mobile {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
}