/* Melhorias Visuais para Mobile - Mitolyn */

/* Paleta de cores profissional */
:root {
    --primary: #0D4C82; /* Azul mais profundo e sofisticado */
    --primary-dark: #083761; /* Versão mais escura do azul primário */
    --primary-light: #1A6BAF; /* Versão mais clara do azul primário */
    --accent: #FF6B35; /* Laranja mais vibrante e contrastante */
    --accent-dark: #E85A2A; /* Versão mais escura do laranja */
    --accent-light: #FF8F5E; /* Versão mais clara do laranja */
    --success: #2E7D32; /* Verde mais profissional */
    --warning: #F9A825; /* Amarelo mais suave */
    --error: #C62828; /* Vermelho mais profundo */
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #EEEEEE;
    --white: #FFFFFF;
    --black: #000000;
}

/* 1. Menu Superior Fixo */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 100vw;
    height: auto;
    min-height: 70px; /* Aumentado para evitar corte */
    padding: 8px 0; /* Aumentado para dar mais espaço */
}

/* Ajuste para o menu mobile */
.header .container {
    max-width: 100%;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 54px; /* Garantir altura mínima para o conteúdo */
}

/* Melhorar contraste do menu mobile */
#mobile-menu .p-4.bg-gradient-to-b {
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark)) !important;
}

/* Melhorar visibilidade dos botões no menu mobile */
#mobile-menu button.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

#mobile-menu button.hover\:bg-white\/30:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

/* Ajuste para o corpo da página */
body {
    padding-top: 60px; /* Ajuste conforme a altura do seu menu */
    overflow-x: hidden; /* Previne rolagem horizontal */
}

/* 2. Botão CTA Flutuante Melhorado */
.floating-cta {
    border-radius: 100px;
    overflow: visible;
    width: 90%;
    max-width: 280px;
    z-index: 1050;
    bottom: 20px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important; /* Forçar centralização */
    margin-left: 0 !important; /* Remover qualquer margem que possa afetar o posicionamento */
    margin-right: 0 !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(255, 107, 53, 0.2);
}

.floating-cta a {
    border-radius: 100px !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-shadow: none;
    letter-spacing: 0.02em;
}

.floating-cta a:hover,
.floating-cta a:active {
    background: linear-gradient(135deg, var(--accent-light), var(--accent)) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4) !important;
}

.floating-cta-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    background-color: rgba(80, 80, 80, 0.85);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.floating-cta-close:hover {
    background-color: rgba(120, 120, 120, 0.95);
}

/* 3. Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:active {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 4. Melhorias no Footer */
footer {
    background: linear-gradient(to bottom, var(--primary-dark), #072A4A) !important;
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
}

footer .text-gray-300 {
    color: rgba(255, 255, 255, 0.85) !important;
}

footer .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

footer .hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* 5. Melhorias nos Gradientes e Transparências */
.hero-gradient-bg {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    position: relative;
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 6. Melhorias nos Textos e Cores */
.text-primary {
    color: var(--primary) !important;
}

.font-bold.text-red-600 {
    color: var(--error) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1) !important;
}

/* Melhorar contraste do badge na seção hero */
.hero-gradient-bg .bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
}

/* Garantir visibilidade dos badges de compra verificada */
.bg-gradient-to-r.from-green-100.to-green-50.text-green-700 {
    background: linear-gradient(to right, rgba(220, 252, 231, 0.9), rgba(240, 253, 244, 0.9)) !important;
    color: var(--success) !important;
    border: 1px solid rgba(4, 120, 87, 0.2) !important;
    text-shadow: none !important;
}

/* Melhorar contraste dos cards na seção hero */
.hero-gradient-bg .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Melhorar contraste dos badges na seção hero */
.hero-gradient-bg .bg-white\/10.px-3 {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Melhorar contraste dos badges na seção de depoimentos */
.bg-white\/10.backdrop-blur-sm {
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px) !important;
}

.text-white\/90.text-sm span {
    color: inherit !important;
    text-shadow: none;
}

/* Melhorar contraste dos badges na seção de depoimentos em vídeo */
.bg-white\/10.backdrop-blur-sm.border.border-white\/20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Garantir visibilidade de textos em vermelho */
.text-red-700 {
    color: var(--error) !important;
}

.text-red-500 {
    color: #EF4444 !important;
}

/* Ajuste para o ícone de cadeado no botão CTA */
.floating-cta a svg {
    width: 14px !important;
    height: 14px !important;
    margin-right: 5px !important;
    opacity: 0.9 !important;
}

/* Ajuste para o texto do botão CTA */
.floating-cta a span {
    font-size: 15px !important;
    letter-spacing: 0.02em !important;
}

/* 7. Melhorias nos Cards e Seções */
.card, .pricing-card, .testimonial-card, .ingredient-card {
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

.card:hover, .pricing-card:hover, .testimonial-card:hover, .ingredient-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08), 0 10px 15px rgba(0, 0, 0, 0.05) !important;
}

/* 8. Melhorias nos Botões */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 4px 10px rgba(13, 76, 130, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover, .btn-primary:active {
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(13, 76, 130, 0.3) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    border: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-secondary:hover, .btn-secondary:active {
    background: linear-gradient(135deg, var(--accent-light), var(--accent)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.3) !important;
}

/* 9. Melhorias nas Animações */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* 10. Melhorias nos Ícones */
.icon-circle {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}

/* 11. Melhorias nos Depoimentos */
.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9)) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* 12. Melhorias nas Seções de Preço */
.pricing-card.border-primary {
    border: 2px solid var(--primary) !important;
    box-shadow: 0 15px 30px rgba(13, 76, 130, 0.1) !important;
}

.pricing-card.border-accent {
    border: 2px solid var(--accent) !important;
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.1) !important;
}

/* 13. Melhorias na Responsividade */
/* Ajuste para o menu mobile */
#mobile-menu {
    z-index: 1200 !important; /* Aumentar z-index para garantir que o menu apareça sobre outros elementos */
    height: 100vh !important; /* Garantir que o menu ocupe toda a altura da tela */
    overflow-y: auto !important; /* Permitir rolagem se o conteúdo for maior que a tela */
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2) !important; /* Sombra mais pronunciada */
}

/* Ajustes para o cabeçalho do menu mobile */
#mobile-menu .p-4.bg-gradient-to-b {
    padding: 1rem !important;
}

#mobile-menu .flex.items-center.justify-between {
    padding: 0.5rem 0 !important;
    margin-bottom: 1rem !important;
}

#mobile-menu .text-xl.font-bold {
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
}

/* Ajuste para o botão de fechar o menu mobile */
#close-menu {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    /* margin-left: 10px !important; */
    transition: all 0.3s ease !important;
}

#close-menu:hover {
    background-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05) !important;
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    
    p, li {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
    
    .card, .pricing-card, .testimonial-card, .ingredient-card {
        padding: 20px !important;
    }
    
    .floating-cta {
        width: 90% !important;
        max-width: 280px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        position: fixed !important; /* Garantir posicionamento fixo */
        margin-left: 0 !important; /* Remover margens que possam interferir */
        margin-right: 0 !important;
    }
    
    /* Ajustes adicionais para o menu superior em mobile */
    .header {
        padding: 10px 0 !important;
        min-height: 70px !important; /* Garantir altura mínima em mobile */
    }
    
    .header .container {
        padding: 0.5rem 1rem !important;
        min-height: 50px !important; /* Garantir altura mínima para o container */
        justify-content: space-between !important; /* Garantir espaçamento entre logo e botão */
        display: flex !important;
        align-items: center !important;
    }
    
    /* Garantir que o logo não seja cortado */
    .header .flex.items-center span.text-xl {
        font-size: 1rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-right: 1rem !important; /* Adicionar espaço entre o logo e o botão */
    }
    
    /* Ajustar o botão de menu mobile */
    #mobile-menu-btn {
        padding: 0.5rem !important;
        margin-left: auto !important;
        margin-right: 0 !important; /* Garantir alinhamento à direita */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 8px !important;
    }
}