@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Madimi+One&display=swap');

/* --- GERAL E FONTES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.madimi-one-regular {
    font-family: "Madimi One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.league-spartan {
    font-family: "League Spartan", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom, #56319A 0%, #010000 100%);
    position: relative;
    overflow-x: hidden;
}

/* ... logo após as regras do body ... */

/* CAMADA 0: O FUNDO MAIS PROFUNDO (AS PARTÍCULAS) */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Camada base */
}

/* CAMADA 1: SEU BACKGROUND PERSONALIZADO (ACIMA DAS PARTÍCULAS) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    background-size: cover;
    z-index: 1; /* Fica na frente das partículas */
    pointer-events: none; /* Não interfere com cliques */
}

/* CAMADA 2: TODO O SEU CONTEÚDO (ACIMA DE TUDO) */
header,
section,
footer {
    position: relative; /* Essencial para o z-index funcionar! */
    z-index: 2; /* Fica na frente de todos os fundos */
}

/* --- HEADER --- */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 210px 0 0 0;
    min-height: 956px;
    background: url('../style/assets/image-header.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(80, 6, 141, 0.7);
    z-index: 0;
}

header > * {
    position: relative;
    z-index: 2;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.imagem-background {
    width: auto; /* Tamanho original para desktop */
}

.logo-header {
    width: 343px;
    height: 418px;
}

/* --- BARRA DE MENU --- */
.menu-bar {
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    display: flex;
    align-items: center;
    font-family: "Madimi One", sans-serif;
    justify-content: space-around;
    border-radius: 6px;
    z-index: 2;
    position: relative;
    box-shadow:
        0 8px 24px rgba(80, 6, 141, 0.22),
        0 -8px 24px rgba(80, 6, 141, 0.13),
        0 2px 8px rgba(0,0,0,0.10),
        0 -2px 8px rgba(255,255,255,0.5) inset;
}

.menu-bar img {
    height: 73.63px;
}

.menu-bar ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    gap: 80px;
    font-family: "Madimi One", sans-serif;
}

.menu-bar a {
    color: black;
    text-decoration: none;
    font-size: 30.96px;
    transition: color 0.2s;
}

.menu-bar a:hover {
    color: #6f9616;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.button-bar {
    background: linear-gradient(to bottom, #6a3fcf, #3a1c7c);
    color: #fff;
    height: 63px;
    padding: 0 20px;
    border-radius: 8px;
    font-family: "League Spartan", sans-serif;
    text-align: center;
    font-size: 40px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.2), 
        0 8px 12px rgba(0, 0, 0, 0.3);
    animation: piscar 1s infinite alternate;
}

.button-bar:hover {
    background: linear-gradient(to bottom, #7be600, #476500);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(80, 6, 141, 0.22), 0 2px 8px rgba(0,0,0,0.15);
    transition: 0.3s;
}

/* --- SEÇÃO QUEM SOMOS --- */
.quem-somos {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
    margin-top: 30px;
    height: 100vh;
    padding: 0 8vw;
}

.quem-somos-texto {
    display: flex;
    color: white;
    flex-direction: column;
    align-items: flex-start;
    max-width: 450px;
    font-family: "Madimi One", sans-serif;
    font-size: 20px;
    line-height: 1.6;
}

.quem-somos-titulo {
    color: #D3FC72;
    font-size: 70.49px;
    font-family: "Madimi One", sans-serif;
}

.quem-somos-imagem {
    max-width: 746.83px;
}
.quem-somos-imagem img {
    width: 100%;
    height: auto;
}

/* --- SEÇÃO NOSSOS PLANOS (INTRO) --- */
.nossos-planos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px;
    width: 100%;
    padding: 0 8vw;
    height: 100vh;
}

.nossos-planos-texto {
    display: flex;
    color: white;
    flex-direction: column;
    text-align: justify;
    max-width: 450px;
    font-family: "Madimi One", sans-serif;
    font-size: 20px;
    line-height: 1.6;
}

.nossos-planos-titulo {
    color: #D3FC72;
    font-size: 70.49px;
    font-family: "Madimi One", sans-serif;
}

.nossos-planos-imagem {
    max-width: 550px;
}

.nossos-planos-imagem img {
    width: 100%;
    height: auto;
}

/* --- SEÇÃO NOSSOS PLANOS (CARDS - VERSÃO DESKTOP) --- */
.nossos-planos-cartoes {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
    gap: 40px;
    padding: 80px 8vw;
    justify-items: center;
}

.nossos-planos-cartao {
    width: 100%;
    max-width: 1032.6px;
}

.nossos-planos-cartao img {
    width: 100%;
    height: auto;
}

/* --- SEÇÃO FALE CONOSCO --- */
.fale-conosco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background: linear-gradient(to right, #2B0B47 0%, #0B0014 100%);
    border-radius: 24px;
    margin: 80px auto;
    max-width: 1045px;
    max-height: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.fale-conosco img {
    max-width: 280px;
    height: auto;
    border-radius: 12px;
}

.fale-conosco-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 500px;
}

.fale-conosco-texto h1 {
    color: #B5FF2D;
    font-family: "Madimi One", sans-serif;
    font-size: 70.49px;
    margin-bottom: 2px;
}

.fale-conosco-texto p {
    font-size: 0.95em;
    color: #d9d9d9;
    font-family: "Madimi One", sans-serif;
}

.fale-conosco-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.fale-conosco-form input {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #e6e6e6;
    font-family: "League Spartan", sans-serif;
    font-size: 18px;
    grid-column: span 1;
    text-transform: uppercase;
    font-weight: bold;
}

.fale-conosco-form input#nome {
    grid-column: span 2;
}

.fale-conosco-button {
    grid-column: span 2;
    padding: 14px;
    font-family: "League Spartan", sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to bottom, #D3FC72 0%, #476500 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.fale-conosco-button:hover {
    transform: scale(1.05);
}

/* --- SEÇÃO ADESÃO --- */
.container-adesao {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
    height: 100vh;
    padding: 0 8vw;
}

.imagem-adesao {
    width: 1063px;
    height: auto;
}

/* --- FOOTER --- */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 60px;
    background: linear-gradient(to bottom, #bfbfbf 0%, #f5f5f5 100%);
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #111;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-info {
    text-align: center;
    flex: 1;
    font-size: 13px;
    color: #111;
    font-weight: 600;
}

.footer-info p {
    margin: 4px 0;
    line-height: 1.4;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social img {
    height: 28px;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.footer-social img:hover {
    transform: scale(1.15);
}

/* --- ANIMAÇÃO --- */
@keyframes piscar {
    0%, 100% { filter: brightness(1); transform: scale(1); }
    50% { filter: brightness(1.4); transform: scale(1.08); }
}


/* =================================================================== */
/* =================== ESTILOS PARA TELAS MENORES ==================== */
/* (Ativado em telas com largura máxima de 899px) */
/* =================================================================== */

@media (max-width: 899px) {
    /* --- HEADER E MENU --- */
    header {
        min-height: 300px;
        padding: 20px 0;
    }
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .imagem-background {
        width: 80%;
        max-width: 300px;
    }
    .logo-header {
        width: 220px;
        height: auto;
    }
    .menu-bar {
        height: auto;
        flex-direction: column;
        padding: 20px 10px;
        gap: 25px;
    }
    .menu-bar img {
        height: 60px;
    }
    .menu-bar ul {
        flex-direction: column;
        gap: 20px;
    }
    .menu-bar a {
        font-size: 22px;
    }
    .button-bar {
        height: 55px;
        font-size: 24px;
    }

    /* --- SEÇÕES DE CONTEÚDO --- */
    .quem-somos, .nossos-planos {
        height: auto;
        flex-direction: column;
        margin-top: 80px;
        padding: 0 5vw;
        gap: 30px;
        text-align: center;
    }
    .quem-somos {
        flex-direction: column-reverse;
    }
    .quem-somos-texto, .nossos-planos-texto {
        max-width: 100%;
        align-items: center;
        text-align: center;
        font-size: 18px;
    }
    .quem-somos-titulo, .nossos-planos-titulo {
        font-size: 42px;
    }
    .quem-somos-imagem, .nossos-planos-imagem {
        max-width: 90%;
    }

    /* --- SEÇÃO CARDS DE PLANOS --- */
    .nossos-planos-cartoes {
        grid-template-columns: 1fr; /* Muda para 1 coluna */
        padding: 80px 5vw;
        gap: 30px;
    }
    .nossos-planos-cartao {
        max-width: 450px;
    }

    /* --- SEÇÃO FALE CONOSCO --- */
    .fale-conosco {
        flex-direction: column;
        max-height: none;
        width: 90vw;
        gap: 30px;
        padding: 30px 20px;
    }
    .fale-conosco-texto h1 {
        font-size: 42px;
        text-align: center;
    }
    .fale-conosco-texto p {
        text-align: center;
    }
    .fale-conosco-form {
        grid-template-columns: 1fr;
    }
    .fale-conosco-form input,
    .fale-conosco-form input#nome,
    .fale-conosco-button {
        grid-column: span 1;
    }
    .fale-conosco img {
        max-width: 180px;
    }
    
    /* --- SEÇÃO ADESÃO --- */
    .container-adesao {
        height: auto;
        padding: 40px 5vw;
    }
    .imagem-adesao {
        width: 100%;
        height: auto;
        max-width: 700px;
    }

    /* --- FOOTER --- */
    .footer {
        flex-direction: column;
        gap: 25px;
        padding: 30px;
    }
}

/*================================================= */
/* ========= ESTILOS DA TELA DE ABERTURA =========== */
/* ================================================= */

/* Impede a rolagem da página enquanto a splash screen estiver ativa */
body.no-scroll {
    overflow: hidden;
}

#splash-screen {
    position: fixed; /* Cobre a tela inteira */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #010000; /* Cor de fundo escura */
    z-index: 9999; /* Garante que fique na frente de tudo */

    /* Centraliza o logo na tela */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Animação de saída */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Estilo do logo na tela de abertura */
#splash-screen img {
    width: 150px;
    /* Animação sutil de pulsação no logo */
    animation: pulse 2s infinite ease-in-out;
}

/* Classe que será adicionada via JavaScript para esconder a tela */
#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Animação de pulsação do logo */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}