/* Configuração Base (Claro) */
:root, [data-bs-theme="light"] {
    --bs-primary: #2c3e50;
    --bs-secondary: #6c757d;
    --bs-primary-rgb: 44, 62, 80;
}

/* Configuração para o Tema Escuro (Contraste) */
[data-bs-theme="dark"] {
    --bs-primary: #66b2ff; /* Azul vibrante para acender pílula, ícones e títulos */
    --bs-primary-rgb: 102, 178, 255;
}

/* Importação da família Montserrat */
@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500; /* Medium */
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
}

body {
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
}

/* Ajuste dinâmico dos botões para respeitar o tema atual */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: color-mix(in srgb, var(--bs-primary) 85%, black);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--bs-primary) 85%, black);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    color: #ffffff;
    transition: all 0.3s ease;
}

/* No tema escuro, fundo claro pede texto escuro para dar leitura e destaque */
[data-bs-theme="dark"] .btn-primary {
    color: #1a2531;
    font-weight: 600;
}

/* Efeito "Chamativo" para botões grandes (Como o do Plano e Hero) */
.btn-lg.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(var(--bs-primary-rgb), 0.6);
}

/* Ajuste do botão secundário para não sumir no dark mode */
.btn-outline-secondary {
    --bs-btn-hover-bg: #f8f9fa;
}
[data-bs-theme="dark"] .btn-outline-secondary {
    --bs-btn-hover-bg: #343a40;
    --bs-btn-hover-color: #ffffff;
}

/* Estilo da Pílula Flutuante */
.floating-pill {
    position: fixed;
    top: 60px; /* Ajustado para dar mais respiro do topo */
    right: -300px; /* Começa escondida fora da tela (lado direito) */
    background-color: #0d6efd; /* Azul do Bootstrap */
    color: white;
    padding: 10px 25px;
    border-radius: 50px; /* Deixa em formato de pílula */
    font-size: 0.85rem;
    z-index: 1050; /* Garante que fique por cima de tudo */
    opacity: 0;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Efeito de elástico suave */
}

/* Classe ativada pelo JavaScript */
.floating-pill.show {
    right: 30px; /* Desliza para dentro da tela */
    opacity: 1;
}

/* --- Botão Flutuante do WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

/* Animação do "Pulso" */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ajuste para não atrapalhar no celular */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}