/* INÍCIO: VARIÁVEIS E ESTILOS GLOBAIS */
:root {
    --cor-principal: #0056b3;
    /* Azul Institucional */
    --cor-secundaria: #28A745;
    /* Verde Crescimento */
    --cor-neutra-fundo: #f3f9fe;
    /* Cinza Claro para fundos alternados */
    --cor-texto-principal: #202325;
    /* Cinza Escuro para Títulos */
    --cor-texto-secundario: #6C757D;
    /* Cinza Medio para Paragrafos */
    --cor-branco: #FFFFFF;
    /* Cores personalizadas do usuario para as secoes */
    --cor-personalizada-card: #020267;
    /* Roxo Escuro */
    --cor-personalizada-borda: #004dff;
    /* Roxo mais claro para borda */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--cor-texto-secundario);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--cor-texto-principal);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--cor-principal);
}

section {
    padding: 4rem 1rem;
    text-align: center;
}

.container-principal {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* FIM: VARIÁVEIS E ESTILOS GLOBAIS */
/* -------------------------------------------------------------------------- */
/* INÍCIO: ESTILOS DE BOTÕES (EFEITO GRADIENTE ANIMADO) */
/* Estilo Base dos Botoes */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    transition: 0.5s;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    border-radius: 50px;
    overflow: hidden;
    border: none !important;
    color: var(--cor-branco) !important;
    text-decoration: none;
}

/* Conteudo interno do botao (texto) */
.btn>* {
    position: relative;
    z-index: 3;
    color: var(--cor-branco);
    transition: 0.5s;
}

/* Efeito Borda Gradiente e Fundo (::before e ::after) */
/* ::before (Borda Gradiente Externa) */
.btn::before {
    content: "";
    border-radius: inherit;
    background: linear-gradient(to right, #ABC2F1, #3070EE);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    transition: 0.5s;
}

/* ::after (Fundo Solido Interno) */
.btn::after {
    content: "";
    border-radius: inherit;
    background: var(--cor-principal);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    height: 100%;
    transition: 0.5s;
}

/* === Estilos Especificos do Hover === */
/* Efeito de Hover: Mudar a cor do fundo solido (::after) */
.btn:hover::after {
    background: #131313 !important;
}

/* Hover visual: elevacao e sombra */
.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

/* Sombra sutil no elemento ::after (fundo interno) ao passar o mouse */
.btn:hover::after {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Classes de Cor (Ajustando apenas o fundo solido ::after) */
/* Botao Primario (.btn--primario) */
.btn--primario::after {
    background: var(--cor-secundaria);
}

/* Botao Secundario (.btn--secundario) */
.btn--secundario::after {
    background: var(--cor-secundaria);
}

/* FIM: ESTILOS DE BOTÕES (EFEITO GRADIENTE ANIMADO) */
/* -------------------------------------------------------------------------- */
/* INÍCIO: CABEÇALHO (HEADER) */
.cabecalho {
    background-color: var(--cor-branco);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.cabecalho__conteudo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cabecalho__logo {
    width: 50px;
    height: auto;
    align-items: center;
}

.cabecalho__lista-nav {
    list-style: none;
    display: none;
    gap: 1.5rem;
}

.cabecalho__link-nav {
    color: var(--cor-texto-principal);
    font-weight: 600;
}

.cabecalho__link-nav:hover {
    color: var(--cor-principal);
}

.cabecalho__toggle {
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
}

.cabecalho__btn-cta {
    display: none;
    margin-top: 0;
}

/* Estilo para menu mobile ativo, adicionado via JS */
.cabecalho__navegacao.is-active .cabecalho__lista-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--cor-branco);
    padding: 1rem 1rem;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.cabecalho__navegacao.is-active .cabecalho__lista-nav li {
    margin: 0.5rem 0;
}

/* Desktop Menu */
@media (min-width: 900px) {
    .cabecalho__lista-nav {
        display: flex;
    }

    .cabecalho__toggle {
        display: none;
    }

    .cabecalho__btn-cta {
        display: inline-block;
    }

    .cabecalho__navegacao {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

/* FIM: CABEÇALHO (HEADER) */
/* -------------------------------------------------------------------------- */
/* INÍCIO: SEÇÃO HERO */
@keyframes showFromBottom {
    from {
        opacity: 0;
        filter: blur(7px);
        transform: translate(0px, 80px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translate(0, 0);
    }
}

@keyframes circulo {

    0%,
    100% {
        transform: translatex(50em) translatey(5em);
        scale: 1.4;
    }

    50% {
        transform: translatex(0em) translatey(-5em);
    }
}

.secao-hero {
    background-color: var(--cor-principal);
    padding: 10rem 1rem;
    position: relative;
    overflow: hidden !important;
}

/* Background image */
.secao-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('assets/background-hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    filter: blur(2px);
}

/* Efeito de luz (animacao) */
.secao-hero::after {
    content: "";
    pointer-events: none;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    position: absolute;
    top: 15em;
    left: 0;
    z-index: 2;
    transform: translate(-50%, -50%);
    background: #00b3ff80;
    animation: circulo 20s infinite alternate ease-out;
    transition: 0.5s all;
    filter: blur(100px);
    mix-blend-mode: soft-light;
}

/* Garante que o conteudo da secao fique acima da imagem */
.secao-hero .container-principal {
    position: relative;
    z-index: 1;
}

.logo-hero {
    width: 100px;
    height: auto;
    margin-bottom: 50px;
}

.hero__titulo {
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--cor-branco);
}

.hero__subtitulo {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--cor-branco);
}

/* Aplica a animacao inicial */
.hero__titulo,
.hero__subtitulo,
.secao-hero .btn--primario {
    opacity: 0;
    filter: blur(7px);
    transform: translate(0px, 80px);
    animation: showFromBottom 0.5s ease forwards;
}

/* Aplicacao dos DELAYS em Cascata */
.hero__titulo {
    animation-delay: 0.2s;
}

.hero__subtitulo {
    animation-delay: 0.5s;
}

.secao-hero .btn--primario {
    animation-delay: 1s;
}

/* FIM: SEÇÃO HERO */
/* -------------------------------------------------------------------------- */
/* INÍCIO: SEÇÃO QUEM SOMOS (#sobre) */
.secao-sobre {
    background-color: var(--cor-personalizada-card);
    color: var(--cor-branco);
    position: relative;
    overflow: hidden !important;
    padding-bottom: 4rem;
}

/* Mantem o Titulo Branco */
.secao-sobre h2,
.secao-sobre h3 {
    color: var(--cor-branco);
}

/* Garante que todo o conteudo da secao fique acima do fundo animado */
.secao-sobre *,
.secao-sobre .container-principal * {
    z-index: 3 !important;
    position: relative;
}

/* Pseudo-elemento que cria o circulo animado */
.secao-sobre::before {
    content: "";
    pointer-events: none;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    position: absolute;
    top: 15em;
    left: 0;
    z-index: 0;
    transform: translate(-50%, -50%);
    background: #31a9ff80;
    animation: circulo 20s infinite alternate ease-out;
    transition: 0.5s all;
    filter: blur(100px);
}

/* Container Flex para as Colunas (Mobile) */
.sobre__container-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

/* Imagem - Mobile */
.sobre__coluna-imagem {
    display: block;
    width: 100%;
    align-items: center;
}

.sobre__imagem {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Coluna de Conteudo (Texto e Cards) */
.sobre__coluna-conteudo {
    width: 100%;
    padding: 0 1rem;
    text-align: left;
}

/* Bloco de Texto */
.sobre__texto-container h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.sobre__texto-container h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.sobre__texto-container p {
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 1rem;
    font-weight: 400;
}

/* Container de Cards */
.sobre__cards-container {
    margin-top: 2rem;
}

/* Cards de Destaque - Mobile (Empilhados) */
.sobre__destaques {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    list-style: none;
    text-align: left;
    width: 100%;
    align-items: stretch;
}

.sobre__destaque-item {
    background-color: var(--cor-branco);
    padding: 1.5rem;
    border-radius: 8px;
    font-weight: 300;
    color: var(--cor-texto-principal);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--cor-neutra-fundo);
    text-align: center;
}

.sobre__destaque-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

/* Regras de Desktop (Acima de 900px) */
@media (min-width: 900px) {

    /* Layout de Colunas */
    .sobre__container-flex {
        flex-direction: row;
        gap: 40px;
        align-items: center;
        text-align: left;
    }

    /* Imagem aparece no Desktop (Ocupa 40%) */
    .sobre__coluna-imagem {
        flex: 0 0 40%;
        position: static;
        padding-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Coluna de Conteudo (Ocupa 60%) */
    .sobre__coluna-conteudo {
        flex: 0 0 60%;
    }

    /* Cards Lado a Lado (4 Colunas) */
    .sobre__destaques {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
    }

    .sobre__destaque-item {
        /* Garante que 4 cards dividam o espaco disponivel com 3 gaps de 20px */
        flex: 1 1 calc((100% - 60px) / 4);
        box-sizing: border-box;
    }
}

/* FIM: SEÇÃO QUEM SOMOS (#sobre) */
/* -------------------------------------------------------------------------- */
/* INÍCIO: SEÇÃO SOLUÇÕES (#solucoes) */
.secao-solucoes {
    background-color: var(--cor-neutra-fundo);
    color: var(--cor-texto-principal);
}

.secao-solucoes h2 {
    color: var(--cor-principal);
}

.solucoes__cards {
    /* MOBILE: Empilhado */
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 2rem;
}

.card-solucao {
    width: 100%;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    border-top: 4px solid var(--cor-secundaria);
    /* Fundo Roxo Escuro (Personalizacao) */
    background-color: var(--cor-personalizada-card);
    color: var(--cor-branco);
    /* Hover (Movimento) e Transicao Aplicados */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-solucao h3 {
    color: var(--cor-branco);
    margin-bottom: 0.5rem;
}

/* REGRA DE HOVER PARA CARDS DE SOLUCAO */
.card-solucao:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

/* Personalizacao: 20px a mais de separacao para o ultimo card (MOBILE) */
.solucoes__cards .card-solucao:last-child {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .solucoes__cards {
        height: auto;
        /* DESKTOP: Lado a Lado */
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .solucoes__cards .card-solucao {
        /* Divide o espaco igualmente entre os cards no desktop */
        flex: 1;
        width: auto;
    }

    .solucoes__cards .card-solucao:last-child {
        /* Remove o espacamento extra no layout horizontal */
        margin-bottom: 0;
    }
}

/* FIM: SEÇÃO SOLUÇÕES (#solucoes) */
/* -------------------------------------------------------------------------- */
/* INÍCIO: SEÇÃO COMO FUNCIONA (#processo) */
.secao-processo {
    background-color: var(--cor-branco);
}

.processo__etapas {
    list-style: none;
    counter-reset: step-counter;
    max-width: 700px;
    margin: 2rem auto;
    text-align: left;
    padding: 0;
}

.processo__etapa {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 50px;
    font-weight: 400;
    color: var(--cor-texto-principal);
}

.processo__etapa::before {
    counter-increment: step-counter;
    content: counter(step-counter) "º";
    background-color: var(--cor-principal);
    color: var(--cor-branco);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.processo__aviso {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--cor-secundaria);
}

/* FIM: SEÇÃO COMO FUNCIONA (#processo) */
/* -------------------------------------------------------------------------- */
/* INÍCIO: SEÇÃO QUEM ATENDEMOS (CLIENTES) */
.secao-clientes {
    h2 {
        color: var(--cor-branco);
    }

    p {
        color: var(--cor-branco)
    }

    background-color: var(--cor-personalizada-card);
}

.clientes__lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
}

.clientes__item {
    background-color: var(--cor-branco);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--cor-principal);
    font-weight: 600;
    color: var(--cor-principal);
}

/* FIM: SEÇÃO QUEM ATENDEMOS (CLIENTES) */
/* -------------------------------------------------------------------------- */
/* INÍCIO: SEÇÃO DÚVIDAS FREQUENTES (FAQ) */
.secao-duvidas {
    background-color: var(--cor-branco);
}

.duvidas__acordeao {
    max-width: 800px;
    margin: 2rem auto;
    text-align: left;
}

.item-faq {
    border: 1px solid var(--cor-neutra-fundo);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.item-faq__cabecalho {
    padding: 1rem;
    background-color: var(--cor-neutra-fundo);
    cursor: pointer;
    font-weight: 700;
    color: var(--cor-texto-principal);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-faq__conteudo {
    padding: 0 1rem;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    background-color: var(--cor-branco);
}

.item-faq__conteudo p {
    padding: 1rem 0;
    border-top: 1px solid var(--cor-neutra-fundo);
}

.item-faq.is-active .item-faq__conteudo {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.item-faq__icone {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.item-faq.is-active .item-faq__icone {
    transform: rotate(45deg);
}

/* FIM: SEÇÃO DÚVIDAS FREQUENTES (FAQ) */
/* -------------------------------------------------------------------------- */
/* INÍCIO: CHAMADA FINAL (CTA) - CÓDIGO FINAL E FUNCIONAL */
.secao-cta-final {
    padding: 6rem 1rem;
    /* PAI RELATIVO para ancorar a imagem absoluta */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Altura mínima garantida */
    min-height: 400px;
}

.secao-cta-final .container-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Imagem de Fundo (Fundo centralizado e limitado) */
.cta-final__background-image {
    /* Posição Absoluta ANCORADA no PAI (secao-cta-final) */
    position: absolute;
    /* Centraliza no Eixo X */
    left: 50%;
    transform: translateX(-50%);
    top: 50px;
    bottom: 50px;
    /* Limita o tamanho horizontal (1100px) */
    max-width: 1100px;
    width: calc(100% - 2rem);
    height: auto;
    /* Configurações da imagem */
    background-image: url('assets/background-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Estilos Visuais */
    border-radius: 20px;
    z-index: 1;
    filter: brightness(0.4);
    /* Escurecimento */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Estilo do Card azul Flutuante */
.cta-final__card-wrapper {
    background-color: var(--cor-personalizada-card);
    color: var(--cor-texto-principal);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    max-width: 550px;
    z-index: 11;
    position: relative;
    text-align: center;
}

.cta-final__titulo {
    color: var(--cor-branco);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.8rem;
}

.cta-final__texto {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--cor-branco);
}

/* Ajustes responsivos para a imagem de fundo */
@media (max-width: 768px) {
    .secao-cta-final {
        padding: 4rem 1rem;
        min-height: 350px;
    }

    .cta-final__background-image {
        /* Garante que a imagem preencha 100% no mobile também */
        width: 100%;
        height: 100%;
        top: 0;
        bottom: 0;
        max-width: none;
        border-radius: 0;
        /* Remove bordas arredondadas no mobile */
        transform: translateX(-50%);
    }

    .cta-final__card-wrapper {
        padding: 2rem 1rem;
    }
}

/* FIM: CHAMADA FINAL (CTA) */
/* INÍCIO: RODAPÉ (FOOTER) */
.rodape {
    background-color: var(--cor-texto-principal);
    color: var(--cor-neutra-fundo);
    padding: 3rem 1rem 0;
    text-align: left;
}

.rodape__conteudo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 2rem;
}

.rodape__conteudo h3 {
    color: var(--cor-branco);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.rodape__logo-info {
    text-align: center;
}

.rodape__logo {
    margin-bottom: 1rem;
    width: 80px;
    height: auto;
}

.rodape__lista-menu,
.rodape__lista-contato,
.rodape__lista-legal {
    list-style: none;
    padding: 0;
}

.rodape__link {
    color: var(--cor-neutra-fundo);
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
}

.rodape__link:hover {
    color: var(--cor-secundaria);
}

.rodape__lista-contato li {
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .rodape__conteudo {
        grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
        text-align: left;
    }

    .rodape__logo-info {
        text-align: left;
    }

    .rodape__logo {
        margin-bottom: 1rem;
    }
}

.rodape__aviso-legal {
    background-color: var(--cor-texto-principal);
    padding-top: 1rem;
    border-top: 1px solid #555;
    text-align: left;
}

.rodape__aviso-legal p {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #AAA;
}

.rodape__copyright {
    text-align: center;
    color: var(--cor-neutra-fundo);
    margin-top: 1rem;
    padding-bottom: 1rem;
    font-size: 0.8rem;
}

/* FIM: RODAPÉ (FOOTER) */