/* ===== ESTILOS CUSTOMIZADOS ===== */

/* Scroll suave para links internos */
html {
    scroll-behavior: smooth;
}

/* AnimaÃ§Ãµes de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Aplicar animaÃ§Ãµes aos elementos */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Efeitos hover personalizados */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 112, 186, 0.15);
}

/* Gradiente personalizado para botÃµes */
.btn-gradient {
    background: linear-gradient(135deg, #0070BA 0%, #005a94 100%);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #005a94 0%, #004a7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 112, 186, 0.3);
}

/* Efeito de destaque para preÃ§os */
.price-highlight {
    background: linear-gradient(135deg, #0070BA 0%, #005a94 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card com borda gradiente */
.card-gradient-border {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, #0070BA 0%, #005a94 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Efeito de pulso para o WhatsApp */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-pulse {
    animation: pulse 2s infinite;
}

/* Melhorias para formulÃ¡rio */
.form-input:focus {
    border-color: #0070BA;
    box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.1);
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0070BA;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Melhorias para mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Efeito de destaque para seÃ§Ãµes */
.section-highlight {
    position: relative;
}

.section-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #0070BA 0%, #005a94 100%);
    border-radius: 2px;
}

/* Melhorias para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Efeito de destaque para benefÃ­cios */
.benefit-card {
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 112, 186, 0.1), transparent);
    transition: left 0.5s;
}

.benefit-card:hover::before {
    left: 100%;
}

/* Melhorias para o header */
.header-scrolled {
    background: rgba(0, 112, 186, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 112, 186, 0.3);
}

.header-scrolled .text-white {
    color: #ffffff !important; /* MantÃ©m branco */
}

.header-scrolled .hover\:text-yellow-300:hover {
    color: #fbbf24 !important; /* text-yellow-400 */
}

/* Efeito de destaque para planos */
.plan-card {
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 112, 186, 0.15);
}

/* Melhorias para o formulÃ¡rio */
.form-group {
    position: relative;
}

.form-group label {
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    transform: translateY(-25px) scale(0.8);
    color: #0070BA;
}

/* Efeito de loading para botÃµes */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Melhorias para o footer */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0070BA;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Responsividade melhorada */
@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
}

/* Melhorias para performance */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Efeitos de destaque para CTA */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* ===== ESTILOS SIMPLIFICADOS PARA HERO SECTION ===== */

/* Estilos bÃ¡sicos para elementos do hero */
.hero-title {
    font-weight: 900;
}

.hero-subtitle {
    font-weight: 500;
}

.hero-price {
    font-weight: 900;
}

.hero-cta {
    font-weight: 900;
}

/* Logo SOBAM */
.logo-sobam {
    transition: transform 0.3s ease;
}

.logo-sobam:hover {
    transform: scale(1.05);
}

/* Melhorias para responsividade do hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
    
    .hero-price {
        font-size: 3rem !important;
    }
    
    .hero-cta {
        font-size: 1.5rem !important;
        padding: 1rem 2rem !important;
    }
}

/* Estilos bÃ¡sicos para elementos */
.highlight-element {
    transition: opacity 0.3s ease;
}

.highlight-element:hover {
    opacity: 0.8;
}

/* ===== ESTILOS PARA FAQ ===== */
.faq-container {
    border: 2px solid #0070BA;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background-color: #f3f4f6;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: #0070BA;
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0;
}

.faq-answer p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Estado ativo */
.faq-item.active .faq-question {
    background-color: #0070BA;
    color: white;
}

.faq-item.active .faq-question h3 {
    color: white;
}

.faq-item.active .faq-question i {
    color: white;
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1rem 0;
}

/* ===== ESTILOS PARA CARROSSEL AUTOMÁTICO ===== */

/* Container principal do carrossel */
.category-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
    overflow: hidden;
}

/* Melhorar o container da seção de rede */
.max-w-6xl {
    max-width: 900px !important;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Carrossel automático */
.auto-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.auto-carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    gap: 2rem;
    padding: 1rem 0;
}

.carousel-slide {
    flex-shrink: 0;
    min-width: 300px;
    max-width: 400px;
}

/* Desktop: mostrar mais slides visíveis */
@media (min-width: 1024px) {
    .auto-carousel-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .auto-carousel-track {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .carousel-slide {
        min-width: 280px;
        max-width: 350px;
    }
}

@media (min-width: 1280px) {
    .carousel-slide {
        min-width: 320px;
        max-width: 380px;
    }
}

.category-btn {
    background: transparent;
    color: #6b7280;
}

.category-btn.active {
    background: #0070BA;
    color: white;
}

.category-btn:hover:not(.active) {
    background: #e5e7eb;
    color: #374151;
}

/* Responsividade do carrossel automático */
@media (max-width: 768px) {
    .carousel-slide {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    .auto-carousel-track {
        gap: 0;
        padding: 0.5rem 0;
    }
    
    /* No mobile, mostrar apenas um slide por vez */
    .auto-carousel-container {
        overflow: hidden;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .carousel-slide {
        min-width: 320px !important;
        max-width: 380px !important;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        min-width: 350px !important;
        max-width: 420px !important;
    }
}

/* ===== ESTILOS PARA MELHORAR AS IMAGENS DO CARROSSEL ===== */
.carousel-slide img {
    width: 100% !important;
    height: 250px !important; /* Altura padronizada para todas as imagens */
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0.5rem 0.5rem 0 0;
}

/* ===== BOTÕES DE NAVEGAÇÃO ===== */
.carousel-nav-btn {
    opacity: 0;
    transition: all 0.3s ease;
}

.auto-carousel-container:hover .carousel-nav-btn {
    opacity: 1;
}

/* Mobile: sempre mostrar os botões */
@media (max-width: 768px) {
    .carousel-nav-btn {
        opacity: 1;
        padding: 0.75rem;
    }
    
    .carousel-nav-btn.prev-btn {
        left: 0.5rem;
    }
    
    .carousel-nav-btn.next-btn {
        right: 0.5rem;
    }
}

/* Mobile: ajustes específicos */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 200px !important; /* Altura menor no mobile */
    }
    
    .carousel-slide .bg-white {
        margin: 0 0.5rem;
        border-radius: 0.5rem;
    }
    
    .auto-carousel-track {
        padding: 0 0.5rem;
    }
    
    /* Garantir que o carrossel funcione com 3 slides */
    .auto-carousel-container {
        overflow: hidden;
        position: relative;
    }
    
    .auto-carousel-track {
        display: flex;
        transition: transform 0.8s ease-in-out;
    }
}

/* Desktop: imagens maiores */
@media (min-width: 768px) {
    .carousel-slide img {
        height: 320px !important;
    }
}

/* Tablet: tamanho intermediário */
@media (min-width: 768px) and (max-width: 1024px) {
    .carousel-slide img {
        height: 300px;
    }
}

/* Cards do carrossel com melhor espaçamento */
.carousel-slide .bg-white {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    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);
    transition: all 0.3s ease;
}

.carousel-slide .bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.carousel-slide .bg-white .p-6 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Melhorar espaçamento da seção de rede */
#rede {
    padding: 5rem 1rem;
}

/* Desktop: melhor espaçamento */
@media (min-width: 1024px) {
    #rede {
        padding: 6rem 2rem;
    }
    
    .auto-carousel-container {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    #rede {
        padding: 3rem 1rem;
    }
    
    /* Melhorar espaçamento dos botões de categoria no mobile */
    .flex.justify-center.mb-8 {
        margin-bottom: 2rem;
    }
    
    .flex.space-x-4.bg-gray-100.rounded-lg.p-2 {
        padding: 0.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
} 