/* Sistema de Design ASPC - CSS Customizado */

/* Importar Google Fonts - Raleway */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&display=swap');

/* Variáveis CSS - Paleta de Cores ASPC */
:root {
    --aspc-primary: #3e4095;
    --aspc-secondary: #ed3237;
    --aspc-dark: #373435;
    --aspc-light: #f4f3ee;
    --aspc-white: #fefeff;
    --aspc-gradient: linear-gradient(135deg, #3e4095 0%, #ed3237 100%);
    --aspc-gradient-hover: linear-gradient(135deg, #2d2f6b 0%, #c72529 100%);
}

/* Classes de Cores ASPC */
.aspc-primary { color: var(--aspc-primary); }
.aspc-secondary { color: var(--aspc-secondary); }
.aspc-dark { color: var(--aspc-dark); }
.aspc-light { color: var(--aspc-light); }
.aspc-white { color: var(--aspc-white); }

.bg-aspc-primary { background-color: var(--aspc-primary); }
.bg-aspc-secondary { background-color: var(--aspc-secondary); }
.bg-aspc-dark { background-color: var(--aspc-dark); }
.bg-aspc-light { background-color: var(--aspc-light); }
.bg-aspc-white { background-color: var(--aspc-white); }

.bg-aspc-gradient { background: var(--aspc-gradient); }
.bg-aspc-gradient-hover:hover { background: var(--aspc-gradient-hover); }

/* Tipografia Raleway */
.font-raleway { font-family: 'Raleway', sans-serif; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    font-family: 'Raleway', sans-serif;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--aspc-dark);
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse-hover:hover {
    animation: pulse 0.3s ease-in-out;
}

/* Custom focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid var(--aspc-primary);
    outline-offset: 2px;
}

/* WhatsApp button animation */
.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Gradient text ASPC */
.gradient-text {
    background: var(--aspc-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom shadows ASPC */
.shadow-aspc {
    box-shadow: 0 10px 25px -5px rgba(62, 64, 149, 0.1), 0 10px 10px -5px rgba(62, 64, 149, 0.04);
}

/* Responsive typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Form enhancements */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Componentes ASPC */
.btn-aspc {
    background: var(--aspc-gradient);
    color: var(--aspc-white);
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-aspc:hover {
    background: var(--aspc-gradient-hover);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.btn-aspc-outline {
    background: transparent;
    color: var(--aspc-primary);
    border: 2px solid var(--aspc-primary);
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-aspc-outline:hover {
    background: var(--aspc-primary);
    color: var(--aspc-white);
}

.card-aspc {
    background: var(--aspc-white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card-aspc:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-aspc-primary {
        background-color: #000080 !important;
    }
    
    .aspc-primary {
        color: #000080 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
}

/* Sistema de Grid Responsivo para Seção de Benefícios */
#beneficios .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Breakpoints específicos para evitar cards órfãos */
@media (min-width: 640px) and (max-width: 767px) {
    #beneficios .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #beneficios .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    #beneficios .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Centralização automática quando há poucos cards */
@media (min-width: 1024px) {
    #beneficios .grid:has(:nth-child(4):last-child) {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        max-width: 800px;
    }
    
    #beneficios .grid:has(:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        max-width: 600px;
    }
    
    #beneficios .grid:has(:nth-child(1):last-child) {
        grid-template-columns: 1fr;
        justify-content: center;
        max-width: 400px;
    }
}

/* Cards responsivos com largura consistente */
#beneficios .grid > div {
    width: 100%;
    max-width: 350px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ajustes para mobile */
@media (max-width: 639px) {
    #beneficios .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    #beneficios .grid > div {
        max-width: 100%;
    }
}

/* Container de economia total sempre centralizado */
#beneficios .flex.justify-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

#beneficios .flex.justify-center > div {
    width: 100%;
    max-width: 400px;
}