/* Barra de Navegação Fixa para Mobile */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none; /* Oculto por padrão */
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.mobile-bottom-nav .nav-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.mobile-bottom-nav .nav-button:hover {
    transform: translateY(-2px);
}

.mobile-bottom-nav .nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.mobile-bottom-nav .nav-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
}

/* Botão WhatsApp */
.mobile-bottom-nav .whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.mobile-bottom-nav .whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    color: #ffffff;
}

/* Animação de "discando" para o ícone do WhatsApp */
.mobile-bottom-nav .whatsapp-btn .nav-icon {
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

/* Keyframes para animação de pulsação suave */
@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Efeito adicional de "ondas" para simular discagem */
.mobile-bottom-nav .whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: whatsapp-wave 3s ease-out infinite;
    pointer-events: none;
}

@keyframes whatsapp-wave {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Botão Ligar */
.mobile-bottom-nav .call-btn {
    background: #007bff;
    color: #ffffff;
}

.mobile-bottom-nav .call-btn:hover {
    background: #0056b3;
    color: #ffffff;
}

/* Layout Flexbox para os botões */
.mobile-bottom-nav {
    display: flex;
    flex-direction: row;
}

/* Exibir apenas em dispositivos móveis */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Adicionar padding-bottom ao body para evitar sobreposição */
    body {
        padding-bottom: 80px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .mobile-bottom-nav .nav-button {
        padding: 10px 6px;
    }
    
    .mobile-bottom-nav .nav-icon {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
    
    .mobile-bottom-nav .nav-text {
        font-size: 9px;
    }
}

/* Ocultar em desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* =========================================== */
/* BOTÃO FLUTUANTE PARA DESKTOP */
/* =========================================== */

.floating-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: none; /* Oculto por padrão */
}

.floating-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    min-width: 180px;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    color: #ffffff;
    text-decoration: none;
}

.floating-btn:active {
    transform: translateY(-1px);
}

.floating-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.floating-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Animação de pulsação para chamar atenção */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
}

/* Animação de "discando" para o ícone do botão flutuante */
.floating-btn .floating-icon {
    animation: floating-whatsapp-pulse 2.5s ease-in-out infinite;
}

@keyframes floating-whatsapp-pulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.05) rotate(2deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1) rotate(0deg);
        opacity: 0.8;
    }
    75% {
        transform: scale(1.05) rotate(-2deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.floating-btn {
    animation: pulse 3s infinite;
}

/* Efeito de hover mais suave */
.floating-btn:hover {
    animation: none;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* Exibir apenas em desktop */
@media (min-width: 769px) {
    .floating-chat-button {
        display: block;
    }
}

/* Para telas muito grandes, ajustar posição */
@media (min-width: 1200px) {
    .floating-chat-button {
        bottom: 40px;
        right: 40px;
    }
}

/* Ocultar em mobile */
@media (max-width: 768px) {
    .floating-chat-button {
        display: none !important;
    }
}

/* =========================================== */
/* CORREÇÃO DO ÍCONE DO MENU MOBILE */
/* =========================================== */

/* Forçar cor branca no ícone do menu mobile */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
    width: 1.5em !important;
    height: 1.5em !important;
}

/* Garantir que o botão do menu tenha fundo verde */
.navbar-toggler {
    background-color: #24911a !important;
    border: 1px solid #24911a !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

/* Hover do botão do menu */
.navbar-toggler:hover {
    background-color: #1e7a15 !important;
    border-color: #1e7a15 !important;
}

/* Foco do botão do menu */
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(36, 145, 26, 0.25) !important;
}
