:root {
    --laranja-vivo: #FF5A1F;
    --laranja-titulos: #FF6B35;
    --laranja-container: #ff6b351a;
    --titulos: #111827;
    --background-claro: #F9FAFB;
    --subtitulos: #4B5563;
    --laranja-vivo2: #FF5500;
    --cinza: #3E3E3E;
    --branco: #FFFFFF;
}

/* Overlay escuro atrás do menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu lateral */
.menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 280px;
    max-width: 80vw;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.menu.active {
    transform: translateX(0);
}

.menu-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0 20px 20px;
    margin-left: -20px;
    margin-right: -20px;
    border-bottom: 1px solid #e5e7eb5b;
}

.menu-logo img {
    width: 111.141px;
    height: 36.875px;
    flex-shrink: 0;
    margin-right: 32px;
}

.menu-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    position: absolute;
    top: 28px;
    right: 34px;
}

/* Lista de links */
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.menu ul li a {
    font-family: 'Inter', sans-serif;
    display: block;
    padding: 14px 4px;
    color: #2B2B2B;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
}

.menu ul li a:hover{
    color: var(--laranja-vivo2);
}

/* Botão Área do Cliente no rodapé */
.menu ul li:last-child {
    margin-top: auto;
    border-bottom: none;
}

.btn-cliente {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--laranja-vivo); 
    color: var(--branco);
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 12px;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.10);
}

.btn-cliente:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
}

/* Botão hambúrguer */
.menu-toggle {
    background: var(--laranja-vivo);
    border: none;
    border-radius: 6px;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.10);
}

.menu-toggle:hover{
    transform: translateY(-1px);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 3px;
    background: var(--branco);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Tablets */
@media (max-width: 1024px) {
    .header .container {
        height: 100px;
    }
    .logovol img {
        width: 90px;
        height: auto;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .header {
        background-color: var(--branco);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
    }

    .header .container {
        display: flex;
        width: 100%;
        padding: 30px 30px; /* Padding equilibrado para o header mobile */
        justify-content: space-between;
        align-items: center;
        background: #FFF;
        box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.20);
        height: auto;
        box-sizing: border-box;
    }

    .logovol img {
        width: 110px;
        height: auto;
    }

    /* compensa o header fixed */
    body {
        padding-top: 72px;
    }

    /* ===== BOTÃO HAMBÚRGUER ===== */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: transparent;
        border: none;
        padding: 4px;
        cursor: pointer;
        margin: 0; /* Remove margens fixas que desalinhavam o hambúrguer */
    }

    .menu-toggle:hover{
    transform: translateY(-1px);
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--titulos);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* ===== OVERLAY ===== */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 998;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* ===== MENU (Top-Down para Mobile) ===== */
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 100vh;
        background: var(--branco);
        display: flex;
        flex-direction: column;
        padding: 40px; /* Espaço inferior extra para o botão do cliente */
        box-sizing: border-box;
        transform: translateY(-100%); /* Escondido acima da tela */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Transição mais suave e moderna */
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        transform: translateY(0); 
    }

    .menu-logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        border-bottom: none;
        background: transparent;
        width: 100%;
        position: relative;
    }

    .menu-logo img {
        width: 110px;
        height: auto;
        margin-left: 10px;
        margin-top: -30px;
    }

    .menu-close {
    position: static;         
    background: transparent;
    color: var(--titulos);
    border: none;
    width: 32px; 
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;  
    font-size: 28px; 
    font-family: Arial, sans-serif; 
    font-weight: 300;         
    cursor: pointer;
    padding: 0;
    margin: 0;
    margin-left: auto;
    }

    /* Lista de links */
    .menu ul {
        display: flex;
        flex-direction: column;
        gap: 32px; 
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .menu ul li a {
        font-family: 'Inter', sans-serif;
        color: #1A1A1A; 
        font-size: 20px;
        font-weight: 500;
        text-decoration: none;
        padding: 0;
        display: inline-block;
    }

    .menu ul li a:hover{
    color: var(--laranja-vivo2);
    }

    .menu ul li:last-child {
        margin-top: 40px; 
    }

    .btn-cliente {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--laranja-vivo);
        color: var(--branco);
        border: none;
        border-radius: 8px;
        padding: 14px 24px;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(255, 90, 31, 0.2);
    }

    .btn-cliente:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
    }

}

/* Mobile pequeno */
@media (max-width: 375px) {
    .menu {
        max-width: 100%; /* menu ocupa a tela toda em telas bem pequenas */
    }
    .menu ul li a {
        font-size: 16px;
    }
}