/* WillSure Custom Styles */

/* Correção para botões do menu que ficavam invisíveis */
.nav-button {
    background-color: white !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.nav-button:hover {
    background-color: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6;
}

/* Garantir que os botões "Saiba Mais" sejam sempre visíveis */
.btn-saiba-mais {
    background-color: #3b82f6 !important;
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

.btn-saiba-mais:hover {
    background-color: #2563eb !important;
    color: white !important;
}

/* Botões específicos por cor */
.btn-orange {
    background-color: #ea580c !important;
}

.btn-orange:hover {
    background-color: #c2410c !important;
}

.btn-purple {
    background-color: #9333ea !important;
}

.btn-purple:hover {
    background-color: #7c3aed !important;
}

.btn-red {
    background-color: #dc2626 !important;
}

.btn-red:hover {
    background-color: #b91c1c !important;
}

.btn-green {
    background-color: #16a34a !important;
}

.btn-green:hover {
    background-color: #15803d !important;
}

.btn-indigo {
    background-color: #4f46e5 !important;
}

.btn-indigo:hover {
    background-color: #4338ca !important;
}

/* Scroll suave para o topo */
html {
    scroll-behavior: smooth;
}

/* Animações suaves */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Hover effects para cards */
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradientes personalizados */
.gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Loading animation para imagens */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Melhorias para acessibilidade */
.focus-visible:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Botões de contato fixos */
.contact-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .contact-buttons {
        bottom: 10px;
        right: 10px;
    }
}

/* Animação para estatísticas */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Estilos para logos dos parceiros */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Melhorias para formulários */
.form-input {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Estilos para depoimentos */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #e5e7eb;
    font-family: serif;
}

/* Animações de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay para animações em sequência */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* Estilos para seção de parceiros */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

/* Melhorias para mobile */
@media (max-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* Estilos para seção de consórcios */
.consorcio-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.consorcio-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Correção específica para botões do header */
header nav a {
    color: #374151 !important;
    background-color: white !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s ease-in-out !important;
}

header nav a:hover {
    color: #3b82f6 !important;
    background-color: #eff6ff !important;
    border-color: #3b82f6 !important;
}

/* Correção para botões de CTA - garantir que sempre sejam visíveis */
.bg-green-700, .bg-green-600 {
    background-color: #15803d !important;
    color: white !important;
}

.bg-green-700:hover, .bg-green-600:hover {
    background-color: #166534 !important;
    color: white !important;
}

/* Correção específica para botões de consórcio */
a[href*="contato"], a[href*="cotacao"], button[type="submit"] {
    background-color: #15803d !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease-in-out !important;
}

a[href*="contato"]:hover, a[href*="cotacao"]:hover, button[type="submit"]:hover {
    background-color: #166534 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* Garantir que botões de WhatsApp sejam sempre visíveis */
a[href*="wa.me"], a[href*="whatsapp"] {
    background-color: white !important;
    color: #15803d !important;
    border: 2px solid #15803d !important;
    padding: 1rem 2rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out !important;
}

a[href*="wa.me"]:hover, a[href*="whatsapp"]:hover {
    background-color: #f0fdf4 !important;
    color: #15803d !important;
    border-color: #15803d !important;
}

