/* ================================ */
/* RESET GLOBAL E VARIÁVEIS         */
/* ================================ */
:root {
    --azul-primario: #0056ff; /* Azul característico da marca */
    --azul-claro: #e5efff;
    --texto-escuro: #111827;
    --texto-cinza: #6b7280;
    --bg-branco: #ffffff;
    --bg-fundo: #f9fafb; /* Fundo levemente cinza/gelo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: var(--bg-branco);
    color: var(--texto-escuro);
    overflow-x: hidden;
}

.interface {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ================================ */
/* ESTILOS DE BOTÕES GERAIS         */
/* ================================ */
button {
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px; /* Bordas levemente arredondadas */
    padding: 12px 24px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primario, 
header .btn-contato button {
    background-color: var(--azul-primario);
    color: var(--bg-branco);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 86, 255, 0.2);
}

.btn-primario:hover, 
header .btn-contato button:hover {
    background-color: #0046d1;
    transform: translateY(-2px);
}

.btn-secundario {
    background-color: transparent;
    color: var(--texto-escuro);
    border: 1px solid #d1d5db;
}

.btn-secundario:hover {
    border-color: var(--texto-escuro);
    background-color: #f3f4f6;
}

/* ================================ */
/* HEADER COM TRANSIÇÃO ULTRA SUAVE */
/* ================================ */
header {
    width: 100%;
    padding: 25px 0;
    background-color: transparent; /* Começa 100% transparente */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    /* Transição ultra suave para todos os elementos ao mesmo tempo */
    transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s ease, 
                border-color 0.5s ease;
}

header .interface {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    max-width: 130px;
    display: block;
}

header .menu-desktop nav ul {
    list-style-type: none;
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

header .menu-desktop nav ul li a {
    color: var(--texto-escuro);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

header .menu-desktop nav ul li a:hover,
header .menu-desktop nav ul li a.ativo {
    color: var(--azul-primario);
    font-weight: 600;
}

/* ================================ */
/* QUANDO ROLAR A TELA (CLASSE .ROLAR) */
/* ================================ */
header.rolar {
    background-color: var(--bg-branco); /* Fundo branco aparece suavemente */
    padding: 15px 0; /* Diminui o tamanho de forma fluida */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Sombra elegante */
    border-bottom: 1px solid #e5e7eb;
}

/* Ajuste do espaçamento do Hero */
section.hero-site {
    padding-top: 130px;
}


/* ================================ */
/* HERO SECTION                     */
/* ================================ */
section.hero-site {
    padding: 180px 0 100px 0; 
    background-image: url('../Images/TETET.png');
    background-size: cover; 
    background-position: center top; 
    background-repeat: no-repeat;
    min-height: 100vh; 
    display: flex;
    align-items: center; 
}

.hero-site .interface {
    width: 100%;
    display: block;
}

/* --- Lado Esquerdo (Textos) --- */
.txt-hero {
    max-width: 600px; 
}

.subtitulo-azul {
    color: var(--azul-primario);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

/* --------------------------------- */
/* TÍTULO HERO ANIMADO EM CASCATA    */
/* --------------------------------- */
.hero-title-anim {
    font-size: 3.5em; 
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--texto-escuro);
}

.hero-title-anim .palavra {
    display: inline-block;
    opacity: 0;
    transform: translateY(35px); 
    animation: surgirPalavra 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay); /* Puxa o tempo direto do HTML */
}

.hero-title-anim .destaque-azul {
    color: var(--azul-primario);
}

@keyframes surgirPalavra {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --------------------------------- */

.txt-hero p {
    font-size: 18px;
    color: var(--texto-cinza);
    line-height: 1.6;
    margin-bottom: 40px;
}

.botoes-hero {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.botoes-hero a {
    text-decoration: none;
}

.features-hero {
    display: flex;
    gap: 20px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.features-hero span {
    font-size: 13px;
    color: var(--texto-cinza);
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-hero span i {
    color: var(--azul-primario);
    font-size: 16px;
}

/* ================================ */
/* ANIMAÇÃO DOS OUTROS ELEMENTOS    */
/* ================================ */
/* Anima o subtítulo, parágrafo, botões e features na sequência correta */
.animar-1, .animar-3, .animar-4, .animar-5 {
    opacity: 0;
    transform: translateY(35px);
    animation: entradaHero 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Escalonamento: Parágrafo e botões esperam o título terminar (0.8s) */
.animar-1 { animation-delay: 0.1s; }  /* Subtítulo */
.animar-3 { animation-delay: 0.8s; }  /* Parágrafo */
.animar-4 { animation-delay: 0.95s; } /* Botões */
.animar-5 { animation-delay: 1.1s; }  /* Features */

@keyframes entradaHero {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================ */
/* SOBRE NÓS                        */
/* ================================ */
section.sobre-nos {
    padding: 100px 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--borda-card);
    border-bottom: 1px solid var(--borda-card);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.flex-sobre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.txt-sobre {
    flex: 1.2;
}

.txt-sobre h2 {
    font-size: 2.4em;
    color: var(--texto-principal);
    margin: 10px 0 20px 0;
    line-height: 1.2;
}

.txt-sobre p {
    color: var(--texto-secundario);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.stats-mini-sobre {
    display: flex;
    gap: 40px;
    margin-top: 35px;
    border-top: 1px solid var(--borda-card);
    padding-top: 25px;
}

.stats-mini-sobre h3 {
    font-size: 15px;
    color: var(--texto-principal);
    margin-bottom: 5px;
}

.stats-mini-sobre p {
    font-size: 13px;
    margin-bottom: 0;
    color: var(--texto-secundario);
}

.img-sobre {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ================================ */
/* CARTÃO DESTAQUE SOBRE NÓS        */
/* ================================ */
.card-destaque-sobre {
    background-color: var(--bg-site);
    border: 1.5px solid var(--borda-card);
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Propriedades novas para os efeitos neon e tilt */
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease,
                background-color 0.3s ease;
}

/* Linha de luz neon no topo (igual aos serviços) */
.card-destaque-sobre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--azul-primario), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-destaque-sobre:hover::before {
    opacity: 1;
}

/* Efeito de elevação e borda acesa no hover */
.card-destaque-sobre:hover {
    transform: translateY(-10px);
    border-color: var(--azul-primario);
    box-shadow: 0 20px 40px rgba(0, 86, 255, 0.15);
}

.card-destaque-sobre i {
    font-size: 35px;
    color: var(--azul-primario);
    background-color: var(--azul-claro);
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    /* Adicionada a transição suave do ícone */
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

/* Efeito do ícone ao passar o mouse */
.card-destaque-sobre:hover i {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--azul-primario);
    color: #ffffff;
}

.card-destaque-sobre h4 {
    font-size: 1.2em;
    color: var(--texto-principal);
    margin-bottom: 10px;
}

.card-destaque-sobre p {
    font-size: 14px;
    color: var(--texto-secundario);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .flex-sobre {
        flex-direction: column;
        gap: 40px;
    }
    .stats-mini-sobre {
        flex-direction: column;
        gap: 20px;
    }
}

/* ================================ */
/* TÍTULO ANIMADO (SOBRE NÓS)       */
/* ================================ */
.titulo-sobre-animado {
    overflow: hidden; /* Oculta o texto enquanto ele está embaixo */
}

.titulo-sobre-animado .palavra {
    display: inline-block;
    transform: translateY(100%); /* Começa deslocado para baixo */
    opacity: 0; /* Invisível inicialmente */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin-right: 0.25em; /* Espaço correto entre as palavras */
}

/* Quando a classe 'revelar' é ativada pelo JavaScript */
.titulo-sobre-animado.revelar .palavra {
    transform: translateY(0);
    opacity: 1;
}


/* ================================ */
/* NOSSOS SERVIÇOS - COM BORDA      */
/* ================================ */
section.servicos {
    padding: 100px 0;
    background-color: var(--bg-site);
    transition: background-color 0.3s ease;
}

.topo-secao {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.topo-secao h2 {
    font-size: 2.4em;
    color: var(--texto-principal);
    margin: 10px 0 15px 0;
}

.topo-secao p {
    color: var(--texto-secundario);
    font-size: 15px;
}

.grid-servicos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.card-servico {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    /* Borda bem definida e elegante */
    border: 1.5px solid var(--borda-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease,
                background-color 0.3s ease;
}

/* Linha de luz neon no topo ao passar o mouse */
.card-servico::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--azul-primario), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-servico:hover::before {
    opacity: 1;
}

/* Efeito de elevação e borda acesa no hover */
.card-servico:hover {
    transform: translateY(-10px);
    border-color: var(--azul-primario);
    box-shadow: 0 20px 40px rgba(0, 86, 255, 0.15);
}

.card-servico i {
    font-size: 28px;
    color: var(--azul-primario);
    background-color: var(--azul-claro);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.card-servico:hover i {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--azul-primario);
    color: #ffffff;
}

.card-servico h3 {
    font-size: 1.2em;
    color: var(--texto-principal);
    margin-bottom: 15px;
}

.card-servico p {
    color: var(--texto-secundario);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0; /* Sem margem inferior já que o link foi removido */
}

/* ================================ */
/* TÍTULO ANIMADO DE SERVIÇOS       */
/* ================================ */
.titulo-servicos-animado {
    overflow: hidden;
}

.titulo-servicos-animado .palavra {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin-right: 0.25em;
}

.titulo-servicos-animado.revelar .palavra {
    transform: translateY(0);
    opacity: 1;
}

/* ================================ */
/* EFEITO TILT (CARTÕES SEGUEM O MOUSE) */
/* ================================ */
.card-tilt {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}


/* ================================ */
/* ESTATÍSTICAS COM BRILHO NEON     */
/* ================================ */
section.estatisticas {
    padding: 80px 0;
    background-color: var(--bg-site);
}

.flex-estatisticas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    padding: 40px 50px;
    border-radius: 20px;
    /* Borda sutil e brilho neon tecnológico ao redor do bloco inteiro */
    border: 1.5px solid var(--borda-card);
    box-shadow: 0 15px 40px rgba(0, 86, 255, 0.08), 
                inset 0 0 20px rgba(0, 86, 255, 0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Linha de brilho sutil no topo do bloco */
.flex-estatisticas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--azul-primario), transparent);
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 20px;
    border-radius: 14px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Efeito ao passar o mouse em cada caixinha de estatística */
.stat-box:hover {
    transform: translateY(-5px);
    background-color: var(--azul-claro);
}

/* Wrapper do ícone com brilho interno */
.icon-stat-wrapper {
    width: 55px;
    height: 55px;
    background-color: var(--azul-claro);
    border: 1px solid rgba(0, 86, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: 0.3s ease;
}

.stat-box:hover .icon-stat-wrapper {
    background-color: var(--azul-primario);
    box-shadow: 0 0 20px rgba(0, 86, 255, 0.5);
}

.icon-stat-wrapper i {
    font-size: 24px;
    color: var(--azul-primario);
    transition: color 0.3s ease;
}

.stat-box:hover .icon-stat-wrapper i {
    color: #ffffff;
}

.txt-stat h4 {
    font-size: 1.8em;
    color: var(--texto-principal);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

.txt-stat p {
    color: var(--texto-secundario);
    font-size: 13px;
    font-weight: 500;
}

/* Responsivo para celulares */
@media (max-width: 900px) {
    .flex-estatisticas {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding: 30px;
    }
}

/* ================================ */
/* FOOTER ESTILO CENTRALIZADO (BRANCO) */
/* ================================ */
footer.footer-estilo-central {
    background-color: #ffffff; /* Fundo branco limpo */
    color: #1f2937;
    padding: 60px 0 35px 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-conteudo-central {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-conteudo-central img.logo-footer {
    max-width: 140px;
    display: block;
}

/* Ícones Sociais Circulares */
.sociais-footer-central {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.sociais-footer-central a {
    color: #1f2937;
    font-size: 18px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1.5px solid #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sociais-footer-central a:hover {
    background-color: var(--azul-primario);
    border-color: var(--azul-primario);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 255, 0.3);
}

/* Links de Navegação */
.links-footer-central {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.links-footer-central a {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.links-footer-central a:hover {
    color: var(--azul-primario);
}

/* Linha Divisória */
.linha-divisorias {
    width: 100%;
    max-width: 800px;
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 5px 0;
}

/* Textos Finais */
.footer-baixo-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    color: #6b7280;
    font-size: 13px;
}

.footer-baixo-info .autor-dev {
    color: var(--azul-primario);
    font-weight: 600;
}

/* ================================ */
/* EFEITO HOVER NA LOGO DO FOOTER   */
/* ================================ */
.efeito-logo-footer {
    /* Transição ultra suave combinando com o resto do site */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.4s ease;
    will-change: transform, filter; /* Otimiza a performance da animação */
}

.efeito-logo-footer:hover {
    /* Faz a logo subir levemente e aumentar de tamanho */
    transform: scale(1.08) translateY(-5px);
    
    /* Aplica o brilho neon azul no contorno exato da logo */
    filter: drop-shadow(0 15px 25px rgba(0, 86, 255, 0.4));
}



/* ================================================= */
/* AJUSTES RESPONSIVOS E ADAPTAÇÃO MOBILE (TOUCH)    */
/* ================================================= */

/* ========================================================== */
/* RESPONSIVIDADE PREMIUM - SMARTPHONES E TABLETS (MÁX 768px) */
/* ========================================================== */
@media (max-width: 768px) {
    /* 1. Header Fixo no Topo e Elegante */
    header {
        position: absolute !important; /* Faz o header sumir ao rolar e aparecer só no topo */
        background-color: transparent !important;
        padding: 15px 0 !important;
    }

    /* Anula o fundo branco e a fixação da classe .rolar no celular */
    header.rolar {
        position: absolute !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border-bottom: none !important;
    }

    /* Ajustes Finos de Proporção (Menor e mais chique) */
    header .interface {
        padding: 0 15px; 
    }
    
    header .logo img {
        max-width: 100px !important; /* Logo mais delicada */
    }
    
    header .btn-contato button {
        padding: 8px 16px !important; /* Botão mais fino */
        font-size: 13px !important; 
    }
    
    header .btn-contato button i {
        font-size: 14px !important; 
    }

    header .menu-desktop {
        display: none; /* Oculta o menu desktop */
    }

    /* 2. Hero Section no Celular */
    section.hero-site {
        padding: 130px 0 60px 0;
        background-position: center center;
        min-height: auto;
    }

    .hero-title-anim, .txt-hero h1 {
        font-size: 2.2em;
        line-height: 1.2;
    }

    .botoes-hero {
        flex-direction: column;
        gap: 12px;
    }

    .botoes-hero a, .botoes-hero button {
        width: 100%;
        justify-content: center;
    }

    .features-hero {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    /* 3. Grid de serviços vira 1 coluna */
    .grid-servicos {
        grid-template-columns: 1fr !important;
    }

    /* 4. Seção Sobre Nós */
    .flex-sobre {
        flex-direction: column;
        gap: 30px;
    }

    .flex-estatisticas {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
        align-items: stretch;
    }

    .stat-box {
        justify-content: flex-start;
    }

    /* 5. Footer Centralizado */
    footer.footer-estilo-central {
        padding: 40px 20px;
    }
    
    .links-footer-central {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================================== */
/* ADAPTAÇÃO DE EFEITOS PARA TOQUE (MOBILE PREMIUM)           */
/* ========================================================== */
@media (hover: none) {
    
    /* Remove a marcação de clique nativa (quadrado azul) dos celulares */
    a, button, .card-servico, .card-destaque-sobre {
        -webkit-tap-highlight-color: transparent;
    }

    /* Desativa o tilt pesado do mouse no celular para rolagem ficar lisa */
    .card-tilt {
        transform: none !important;
    }

    /* EFEITO DE CLIQUE NOS CARTÕES (feedback visual imediato ao dedo) */
    .card-servico:active,
    .card-destaque-sobre:active {
        transform: scale(0.98) !important;
        border-color: var(--azul-primario);
        box-shadow: 0 15px 30px rgba(0, 86, 255, 0.15);
        background-color: var(--bg-card);
    }

    /* Faz a linha neon do topo acender no toque */
    .card-servico:active::before,
    .card-destaque-sobre:active::before {
        opacity: 1;
    }

    /* Anima o ícone perfeitamente ao toque do dedo */
    .card-servico:active i,
    .card-destaque-sobre:active i {
        transform: scale(1.1) rotate(5deg);
        background-color: var(--azul-primario);
        color: #ffffff;
    }
    
    /* Efeito de brilho na logo do footer ao tocar */
    .efeito-logo-footer:active {
        filter: drop-shadow(0 15px 25px rgba(0, 86, 255, 0.4));
    }
}

