/* ========================================
   AJUSTE NAVBAR DESKTOP - UNIQUE PLÁSTICA
   CENTRALIZA TODO O BLOCO DO MENU
   ======================================== */

/* O PROBLEMA ESTAVA AQUI - menu-2 tem justify-content: space-between */
.menu-2 {
    justify-content: center;
}

/* Remove border-bottom que quebra o layout do navbar quando nav-link-4 está ativo (w--current) */
/* Ocorre em links de topo diretos como "Trabalhe Conosco" que não estão dentro de dropdown */
.nav-link-4.w--current {
    border-bottom: none;
}

.navbar-no-shadow-2 {
    width: 100%;
    max-width: 1400px;
}

.navbar-no-shadow-container-4 {
    padding-left: 0;
    padding-right: 0;
}

.container-regular-4 {
    width: 1200px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.navbar-wrapper-4 {
    width: 100%;
}

/* ========================================
   MOBILE MENU FIX - CORRIGE DROPDOWNS
   ======================================== */
@media (max-width: 991px) {
    .menu-2 {
        justify-content: space-between;
    }

    .navbar-no-shadow-2 {
        width: 100%;
        max-width: none;
    }

    .container-regular-4 {
        width: 100%;
        max-width: 90%;
    }

    /* Menu mobile wrapper */
    .nav-menu-wrapper-4 {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fff;
        z-index: var(--z-mobile-nav);
        display: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu-wrapper-4[data-nav-menu-open] {
        display: block;
    }

    /* Lista de itens do menu */
    .nav-menu-4 {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 20px;
        gap: 0;
    }

    /* Itens da lista */
    .list-item-14 {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .list-item-14:last-child {
        border-bottom: none;
    }

    /* Links de navegação */
    .nav-link-4 {
        display: block;
        width: 100%;
        padding: 15px 10px;
        text-align: left;
        font-size: 15px;
        font-weight: 600;
        color: #333;
    }

    /* Container do dropdown */
    .dropdown-5 {
        position: relative;
        width: 100%;
    }

    /* Toggle do dropdown */
    .dropdown-5 .w-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 15px 10px;
        cursor: pointer;
    }

    .dropdown-5 .w-dropdown-toggle::after {
        content: '+';
        font-size: 20px;
        font-weight: 300;
        color: #906e2b;
        transition: transform 0.3s ease;
    }

    .dropdown-5.w--open .w-dropdown-toggle::after {
        content: '−';
    }

    /* Texto do dropdown toggle */
    .text-block-36,
    .text-block-206 {
        text-align: left;
        font-size: 15px;
        font-weight: 600;
        color: #333;
    }

    /* Lista do dropdown - FECHADA */
    .dropdown-list-9 {
        position: static;
        display: none;
        width: 100%;
        background-color: #fafafa;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    /* Lista do dropdown - ABERTA */
    .dropdown-list-9.w--open {
        display: block;
        max-height: 500px;
        padding: 5px 0 10px 0;
    }

    /* Links dentro do dropdown */
    .dropdown-link-8 {
        display: block;
        padding: 12px 20px 12px 25px;
        font-size: 14px;
        color: #555;
        background-color: transparent;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .dropdown-link-8:hover,
    .dropdown-link-8.w--current {
        color: #906e2b;
        background-color: #fff;
        border-left-color: #906e2b;
    }

    /* Botão de agendar consulta no mobile */
    .mobile-margin-top-13 {
        display: block;
        padding: 20px 10px;
        border-bottom: none;
    }

    .mobile-margin-top-13.home {
        display: block;
    }

    .nav-button-wrapper-4 {
        width: 100%;
    }

    .btn-inicio-copy-v-co {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 14px;
        font-weight: 700;
    }

    /* Botão hamburger */
    .menu-button-5 {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .burger-btn-wrapper {
        padding: 10px;
    }

    .burger-line {
        width: 22px;
        height: 2px;
        background-color: #fff;
        margin: 4px 0;
        transition: all 0.3s ease;
    }

    /* Animação do X quando aberto */
    .menu-button-5.w--open .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .menu-button-5.w--open .burger-line:nth-child(2) {
        opacity: 0;
    }

    .menu-button-5.w--open .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}
