/* Estilos customizados para Autoescola Junior Sobral */

/* Seguindo as REGRAS definidas no arquivo REGRAS.md */
/* Cores: Vermelho (#DC2626), Amarelo (#FBBF24), Branco (#FFFFFF) */

/* Animações personalizadas */
@keyframes drive-in {
    0% {
        transform: translateX(-100vw);
        opacity: 0;
    }
    70% {
        transform: translateX(10px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Classes de animação */
.car-animation {
    animation: drive-in 2.5s ease-out forwards;
}

.text-animation {
    animation: fade-in-up 1s ease-out 1.5s forwards;
    opacity: 0;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15);
}

/* Botão WhatsApp flutuante */
.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 10px rgba(0,0,0,0.3);
    z-index: 100;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

/* Responsividade para o botão WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* Gradientes personalizados */
.gradient-red-yellow {
    background: linear-gradient(135deg, #DC2626 0%, #FBBF24 100%);
}

.gradient-yellow-red {
    background: linear-gradient(135deg, #FBBF24 0%, #DC2626 100%);
}

/* Efeitos de hover para cards */
.service-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: #FBBF24;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.1);
}

/* Estilo para navegação mobile */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Cores de texto personalizadas */
.text-autoescola-red {
    color: #DC2626;
}

.text-autoescola-yellow {
    color: #FBBF24;
}

/* Backgrounds personalizados */
.bg-autoescola-red {
    background-color: #DC2626;
}

.bg-autoescola-yellow {
    background-color: #FBBF24;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation para quando necessário */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #FBBF24;
    border-radius: 50%;
    border-top-color: #DC2626;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos para acessibilidade */
.focus\:outline-autoescola:focus {
    outline: 2px solid #FBBF24;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .whatsapp-float,
    .no-print {
        display: none !important;
    }
}
