/**
 * Landing Page AtualCar - CSS Profissional
 * Design Moderno e Responsivo
 */

:root {
    --cor-vermelho: #E31E24;
    --cor-amarelo: #FFC107;
    --cor-amarelo-claro: #FFD54F;
    --cor-preto: #1a1a1a;
    --cor-cinza: #6c757d;
    --cor-branco: #ffffff;
    --cor-fundo: #f5f5f5;
    --fonte: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte);
    color: var(--cor-preto);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--cor-fundo);
}

/* ============================================ */
/* HEADER / TOPO */
/* ============================================ */

.header-topo {
    background: var(--cor-branco);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-topo.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.logo-header {
    height: 80px;
    max-width: 300px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.header-topo.scrolled .logo-header {
    height: 60px;
}

.logo-header:hover {
    transform: scale(1.05);
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */

.hero-section {
    background: linear-gradient(135deg, #E31E24 0%, #b71c21 50%, #8b1519 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--cor-branco);
}

.hero-emoji {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.3),
        0 0 30px rgba(255,193,7,0.5);
    letter-spacing: 3px;
    animation: fadeInDown 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
    letter-spacing: 1px;
}

/* ============================================ */
/* CONTADOR DE VAGAS */
/* ============================================ */

.contador-container {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 40px;
    margin: 40px auto;
    max-width: 500px;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        inset 0 2px 10px rgba(255,255,255,0.2);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.contador-label-top {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contador-numero-grande {
    font-size: clamp(5rem, 10vw, 8rem);
    font-weight: 900;
    color: var(--cor-amarelo);
    text-shadow: 
        4px 4px 8px rgba(0,0,0,0.5),
        0 0 40px rgba(255,193,7,0.6);
    line-height: 1;
    margin: 20px 0;
    animation: pulseGlow 2s ease-in-out infinite;
    font-family: 'Impact', sans-serif;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 
            4px 4px 8px rgba(0,0,0,0.5),
            0 0 40px rgba(255,193,7,0.6);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 
            4px 4px 12px rgba(0,0,0,0.6),
            0 0 60px rgba(255,193,7,0.8);
    }
}

.contador-label-bottom {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================ */
/* BADGE PROMOÇÃO */
/* ============================================ */

.promocao-badge {
    background: linear-gradient(135deg, var(--cor-amarelo) 0%, var(--cor-amarelo-claro) 100%);
    color: var(--cor-preto);
    padding: 20px 50px;
    border-radius: 50px;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    margin: 30px 0;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.3),
        inset 0 2px 15px rgba(255,255,255,0.5);
    animation: pulsePromo 2.5s ease-in-out infinite;
    border: 4px solid rgba(255,255,255,0.4);
    letter-spacing: 2px;
}

@keyframes pulsePromo {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 
            0 20px 50px rgba(0,0,0,0.3),
            inset 0 2px 15px rgba(255,255,255,0.5);
    }
    50% {
        transform: scale(1.08) rotate(1deg);
        box-shadow: 
            0 25px 60px rgba(0,0,0,0.4),
            inset 0 2px 20px rgba(255,255,255,0.7);
    }
}

/* ============================================ */
/* CARD DO PLANO DESTAQUE */
/* ============================================ */

.plano-destaque-card {
    background: linear-gradient(135deg, #FFD700 0%, var(--cor-amarelo) 50%, #FFA000 100%);
    padding: 50px;
    border-radius: 30px;
    margin: 50px auto;
    max-width: 700px;
    box-shadow: 
        0 30px 80px rgba(0,0,0,0.4),
        inset 0 2px 20px rgba(255,255,255,0.5);
    animation: pulsePlanoMega 3s ease-in-out infinite;
    border: 5px solid rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.plano-destaque-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes pulsePlanoMega {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 30px 80px rgba(0,0,0,0.4),
            inset 0 2px 20px rgba(255,255,255,0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 35px 90px rgba(0,0,0,0.5),
            inset 0 2px 25px rgba(255,255,255,0.7);
    }
}

.plano-destaque-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.plano-icone {
    font-size: 5rem;
    animation: rotateIcon 4s linear infinite;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.3));
}

@keyframes rotateIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.plano-info {
    text-align: center;
}

.plano-nome {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--cor-preto);
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.plano-preco {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--cor-vermelho);
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.3),
        0 0 30px rgba(227,30,36,0.5);
    line-height: 1;
    font-family: 'Impact', sans-serif;
}

/* ============================================ */
/* BOTÃO PRINCIPAL */
/* ============================================ */

.btn-cta-principal {
    background: linear-gradient(135deg, var(--cor-amarelo) 0%, var(--cor-amarelo-claro) 100%);
    color: var(--cor-preto);
    padding: 25px 60px;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 900;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    margin: 40px auto 20px;
    cursor: pointer;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.3),
        inset 0 2px 15px rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.4);
}

.btn-cta-principal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta-principal:hover::before {
    width: 400px;
    height: 400px;
}

.btn-cta-principal:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.4),
        inset 0 2px 20px rgba(255,255,255,0.7);
    color: var(--cor-preto);
}

.btn-cta-principal:active {
    transform: translateY(-2px);
}

/* ============================================ */
/* SEÇÃO DE PLANOS */
/* ============================================ */

.planos-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cor-fundo) 0%, var(--cor-branco) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--cor-vermelho);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    letter-spacing: 2px;
}

.section-title p {
    font-size: 1.3rem;
    color: var(--cor-cinza);
}

.planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.card-plano {
    background: var(--cor-branco);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.card-plano::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--cor-vermelho), var(--cor-amarelo));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-plano:hover::before {
    transform: scaleX(1);
}

.card-plano:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: var(--cor-amarelo);
}

.card-plano.destaque {
    border-color: var(--cor-vermelho);
    background: linear-gradient(135deg, #fff5f5 0%, var(--cor-branco) 100%);
    transform: scale(1.05);
}

.badge-mais-vendido {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--cor-amarelo) 0%, var(--cor-amarelo-claro) 100%);
    color: var(--cor-preto);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.plano-header {
    text-align: center;
    margin-bottom: 30px;
}

.plano-nome-card {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cor-vermelho);
    margin-bottom: 10px;
}

.plano-categoria {
    background: var(--cor-fundo);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cor-cinza);
    display: inline-block;
}

.plano-preco-card {
    text-align: center;
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.cifrao {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cor-vermelho);
    margin-top: 8px;
}

.valor {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--cor-vermelho);
    line-height: 1;
}

.centavos {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cor-cinza);
    margin-top: 8px;
}

.plano-descricao-card {
    font-size: 1rem;
    color: var(--cor-cinza);
    text-align: center;
    line-height: 1.8;
    margin: 20px 0;
    min-height: 80px;
}

.btn-escolher {
    background: linear-gradient(135deg, var(--cor-vermelho) 0%, #b71c21 100%);
    color: var(--cor-branco);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(227,30,36,0.3);
    text-transform: uppercase;
}

.btn-escolher:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(227,30,36,0.4);
    color: var(--cor-branco);
}

/* ============================================ */
/* AVISO TAXAS */
/* ============================================ */

.aviso-taxas-box {
    background: #fff3cd;
    border: 3px solid #ffc107;
    border-radius: 20px;
    padding: 30px;
    max-width: 700px;
    margin: 50px auto;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.aviso-icone {
    font-size: 3rem;
    flex-shrink: 0;
}

.aviso-texto {
    font-size: 1rem;
    color: #856404;
    line-height: 1.8;
}

/* ============================================ */
/* VANTAGENS */
/* ============================================ */

.vantagens-section {
    padding: 100px 0;
    background: var(--cor-branco);
}

.vantagens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.card-vantagem {
    background: linear-gradient(135deg, #f8f9fa 0%, var(--cor-branco) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card-vantagem:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border-color: var(--cor-vermelho);
}

.vantagem-icone {
    font-size: 5rem;
    margin-bottom: 25px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.card-vantagem h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cor-vermelho);
    margin-bottom: 15px;
}

.card-vantagem p {
    color: var(--cor-cinza);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */

.footer {
    background: linear-gradient(135deg, var(--cor-preto) 0%, #2c2c2c 100%);
    color: var(--cor-branco);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content {
    margin-bottom: 30px;
}

.footer-content p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.footer-links a {
    color: var(--cor-amarelo);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--cor-amarelo-claro);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ============================================ */
/* ANIMAÇÕES */
/* ============================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================ */
/* RESPONSIVO */
/* ============================================ */

@media (max-width: 768px) {
    .header-topo {
        padding: 15px 0;
    }
    
    .logo-header {
        height: 60px;
    }
    
    .hero-section {
        padding: 60px 20px;
    }
    
    .contador-container {
        padding: 30px 20px;
    }
    
    .plano-destaque-card {
        padding: 30px 20px;
    }
    
    .plano-destaque-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .btn-cta-principal {
        padding: 20px 40px;
        font-size: 1.1rem;
    }
    
    .planos-grid,
    .vantagens-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .aviso-taxas-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .contador-numero-grande {
        font-size: 5rem;
    }
    
    .plano-preco {
        font-size: 3rem;
    }
    
    .valor {
        font-size: 3.5rem;
    }
}

/* ============================================ */
/* LOADING SUAVE */
/* ============================================ */

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }
