/* ============================================
   HERO BANNER MODERNO COM GRADIENTES E PADRÕES GEOMÉTRICOS
   ============================================ */

/* Reset de estilos do hero para evitar conflitos */
.home-page .hero {
    all: initial;
    display: flex;
    flex-direction: column;
}

/* Animações para o hero */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes geometricRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Hero principal com imagem de fundo */
.home-page .hero {
    position: relative;
    padding: 8rem 1.5rem !important;
    min-height: 600px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;

    /* Imagem de fundo com overlay de gradiente */
    background-image:
        linear-gradient(135deg,
            rgba(58, 86, 228, 0.3) 0%,
            rgba(37, 65, 178, 0.4) 50%,
            rgba(26, 26, 62, 0.5) 100%
        ),
        url('/img/desktop1.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    /* Fallback para caso a imagem não carregue */
    background-color: var(--site-primary, #3a56e4) !important;

    color: #fff;
    text-align: center !important;
}

/* Container para centralizar todo o conteúdo */
.home-page .hero > *:not(.hero-geometric) {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Camada de overlay escuro para melhorar legibilidade */
.home-page .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
}

/* Camada de padrões geométricos */
.home-page .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.03) 35px,
            rgba(255, 255, 255, 0.03) 70px
        ),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.03) 35px,
            rgba(255, 255, 255, 0.03) 70px
        );
    z-index: 1;
    pointer-events: none;
}


/* Elementos geométricos flutuantes */
.hero-geometric {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.hero-geometric-1 {
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: heroFloat 6s ease-in-out infinite, geometricRotate 20s linear infinite;
}

.hero-geometric-2 {
    top: 60%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.08), transparent);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: heroFloat 8s ease-in-out infinite reverse, geometricRotate 25s linear infinite reverse;
}

.hero-geometric-3 {
    bottom: 15%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

/* Badge do hero */
.home-page .hero .hero-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px !important;
    margin: 0 auto 2rem !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    color: #fff !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.15);
    animation: pulse 3s ease-in-out infinite;
    width: fit-content;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-badge i {
    color: var(--site-primary-light, #60a5fa);
    font-size: 1.1rem;
}

/* Título do hero */
.home-page .hero h1 {
    font-size: 3.5rem !important;
    font-weight: 800;
    line-height: 1.2 !important;
    margin: 0 auto 1.5rem !important;
    color: #fff !important;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 0, 0, 0.3);
    text-align: center !important;
    width: 100%;
    font-family: var(--h-font-display, 'Chakra Petch', 'Inter', sans-serif) !important;
}

/* Texto com glow (brilho) */
.home-page .hero .text-glow {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    position: relative;
    display: inline-block;
    text-shadow: none !important;
}

.home-page .hero .text-glow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
}

/* Subtítulo do hero */
.home-page .hero .hero-sub {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin: 0 auto 2.5rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 700px;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3);
    text-align: center !important;
    width: 100%;
}

/* Botões do hero */
.home-page .hero .hero-cta {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center;
    flex-wrap: wrap !important;
    width: 100%;
    margin: 0 auto !important;
}

.home-page .hero .btn-hero-primary {
    display: inline-flex !important;
    align-items: center;
    gap: 10px !important;
    padding: 16px 32px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--site-primary, #3a56e4) !important;
    border: 2px solid rgba(255, 255, 255, 1) !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    font-family: var(--h-font-display, 'Chakra Petch', 'Inter', sans-serif) !important;
}

.home-page .hero .btn-hero-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3) !important;
    background: #ffffff !important;
    color: var(--site-primary, #3a56e4) !important;
}

.btn-hero-primary i {
    font-size: 1.2rem;
}

.home-page .hero .btn-hero-secondary {
    display: inline-flex !important;
    align-items: center;
    gap: 10px !important;
    padding: 16px 32px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: var(--h-font-display, 'Chakra Petch', 'Inter', sans-serif) !important;
}

.home-page .hero .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
}

.btn-hero-secondary i {
    font-size: 1.2rem;
}

/* Barra de estatísticas */
.stats-bar {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: -60px auto 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--site-primary, #3a56e4);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablets */
@media (max-width: 992px) {
    .home-page .hero {
        padding: 6rem 1.5rem !important;
        min-height: 500px;
    }

    .home-page .hero h1 {
        font-size: 2.8rem !important;
    }

    .home-page .hero .hero-sub {
        font-size: 1.1rem !important;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: -40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .home-page .hero {
        padding: 5rem 1rem !important;
        min-height: 450px;

        /* Usar gradiente no mobile */
        background-image:
            linear-gradient(135deg,
                var(--site-primary, #3a56e4) 0%,
                var(--site-secondary, #2541b2) 50%,
                #1a1a3e 100%
            ) !important;
    }

    .home-page .hero h1 {
        font-size: 2.2rem !important;
    }

    .home-page .hero .hero-sub {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }

    .home-page .hero .hero-cta {
        flex-direction: column !important;
        width: 100%;
        padding: 0 1rem !important;
    }

    .home-page .hero .btn-hero-primary,
    .home-page .hero .btn-hero-secondary {
        width: 100% !important;
        max-width: 300px;
        justify-content: center !important;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
        margin: -30px 1rem 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Elementos geométricos menores no mobile */
    .hero-geometric-1 {
        width: 60px;
        height: 60px;
    }

    .hero-geometric-2 {
        width: 50px;
        height: 50px;
    }

    .hero-geometric-3 {
        width: 40px;
        height: 40px;
    }
}

/* Mobile pequeno */
@media (max-width: 576px) {
    .home-page .hero {
        padding: 4rem 1rem !important;
        min-height: 400px;
    }

    .home-page .hero h1 {
        font-size: 1.8rem !important;
    }

    .home-page .hero .hero-badge {
        font-size: 0.8rem !important;
        padding: 8px 16px !important;
    }

    .home-page .hero .hero-sub {
        font-size: 0.95rem !important;
    }

    .home-page .hero .btn-hero-primary,
    .home-page .hero .btn-hero-secondary {
        padding: 14px 24px !important;
        font-size: 1rem !important;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        padding: 1.2rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .stats-bar {
        background: rgba(26, 26, 46, 0.95);
    }

    .stat-label {
        color: rgba(255, 255, 255, 0.7);
    }
}
