/* ==================================================
   RESET E CONFIGURAÇÕES GERAIS
================================================== */

:root {
    --preto: #171717;
    --grafite: #232323;
    --amarelo: #FFC400;
    --amarelo-secundario: #F4B400;
    --amarelo-hover: #FFC933;
    --branco: #FFFFFF;
    --cinza-claro: #F3F3F3;
    --cinza-medio: #A1A1A1;

    --raio-padrao: 10px;
    --sombra-padrao: 0px 5px 10px rgba(0, 0, 0, 0.1);
    --header-offset: 110px;

    /* ---- Tokens de tema (claro é o padrão) ---- */
    color-scheme: light;
    --fundo-pagina: #f5f5f5;
    --fundo-ponto-1: #d1d1d1;
    --fundo-ponto-2: #e0e0e0;
    --texto: #000000;
    --texto-forte: #111111;
    --texto-suave: #555555;
    --texto-mudo: #666666;
    --superficie: #ffffff;
    --superficie-2: #f0f0f0;
    --borda: #ececec;
    --borda-input: #dcdcdc;
    --campo: #ffffff;
    --sombra-card: 0px 10px 30px -5px rgba(0, 0, 0, 0.8);
    --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.07);
    --sombra-suave-hover: 0 12px 32px rgba(0, 0, 0, 0.13);
    --botao-escuro: #222222;
    --circuito-opacidade: 0.6;
    --impl-escuro-fundo: #333232;
    --impl-escuro-texto: #d6d6d6;
    --impl-claro-chip: #f3f3f3;
    --form-fundo: #F3F3F3;
}

/* Tema escuro: mesma identidade (amarelo + grafite), só inverte as superfícies */
:root[data-theme="dark"] {
    color-scheme: dark;
    --fundo-pagina: #121212;
    --fundo-ponto-1: #2a2a2a;
    --fundo-ponto-2: #202020;
    --texto: #f2f2f2;
    --texto-forte: #f5f5f5;
    --texto-suave: #b8b8b8;
    --texto-mudo: #a8a8a8;
    --superficie: #1e1e1e;
    --superficie-2: #2a2a2a;
    --borda: #2f2f2f;
    --borda-input: #3a3a3a;
    --campo: #151515;
    --sombra-card: 0px 10px 30px -5px rgba(0, 0, 0, 0.9);
    --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.45);
    --sombra-suave-hover: 0 12px 32px rgba(0, 0, 0, 0.65);
    --botao-escuro: #2b2b2b;
    --circuito-opacidade: 0.35;
    --impl-escuro-fundo: #2c2b2b;
    --impl-escuro-texto: #cfcfcf;
    --impl-claro-chip: #2b2b2b;
    --form-fundo: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Space Grotesk", sans-serif;
    box-sizing: border-box;
}

/* ==================================================
   ROLAGEM SUAVE (Lenis + GSAP)
   O Lenis cuida da suavização; "scroll-behavior: smooth" nativo
   e "height: 100%" no html/body brigam com ele e causam saltos.
================================================== */

html {
    /* Impede rolagem lateral causada por formas decorativas que passam da tela */
    overflow-x: hidden;
}

html,
body {
    /* Em celulares (principalmente iOS antigo) o "overflow-x: hidden" sozinho às vezes
       deixa a página "balançar" para os lados; assim só o arrasto vertical é aceito */
    touch-action: pan-y pinch-zoom;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: clip;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* Enquanto a tela de loading está visível a página não rola */
html.is-loading {
    overflow: hidden;
}

/* ==================================================
   CORES DA BARRA DE ROLAGEM E SELEÇÃO DE TEXTO
================================================== */

::-webkit-scrollbar {
    width: 10px;
    /* largura da barra */
}

::-webkit-scrollbar-track {
    background: #000000;
    /* cor do fundo/pista */
}

::-webkit-scrollbar-thumb {
    background: #FFC400;
    /* cor da barra de rolagem (polegar) */
    border-radius: 5px;
    transition: 0.5s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #cba709;
    /* cor da barra ao passar o mouse */
    transition: 0.5s ease;
}

/* Altera a seleção em todo o site */
::selection {
    background-color: #ffcc00;
    /* Cor do fundo da seleção */
    color: #000000;
    /* Cor do texto selecionado */
}


/* ==================================================
   ANIMAÇÕES
================================================== */

/* Anima só um "transform" numa camada fixa (rodada pela GPU). Animar o
   background-position do body repintava a página inteira a cada frame e
   deixava a rolagem pesada em celulares mais simples. O padrão repete a
   cada 40px, então deslocar 40px fecha o loop sem saltos. */
@keyframes moverFundo {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(40px, 40px, 0);
    }
}

@keyframes piscar {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}



/* ==================================================
   FUNDO ANIMADO
================================================== */

.fundoIndex {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background-color: var(--fundo-pagina);
    color: var(--texto);

    /* "clip" não cria um novo contêiner de rolagem (não quebra o header sticky) */
    overflow-x: clip;
}

.fundoIndex::before {
    content: "";
    position: fixed;
    top: -40px;
    left: -40px;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(var(--fundo-ponto-1) 1px, transparent 1px),
        radial-gradient(var(--fundo-ponto-2) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px;
    background-position: 0 0, 10px 10px;
    animation: moverFundo 10s linear infinite;
    will-change: transform;
}

/* ==================================================
   TELA DE LOADING
================================================== */

#loading-screen {
    position: fixed;
    inset: 0;
    background: #FFC400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Rede de segurança: se o JavaScript não rodar (ex.: bloqueio de CDN), o loading
   some sozinho depois de 8s em vez de cobrir o site para sempre. */
@keyframes sumirLoading {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

#loading-screen {
    animation: sumirLoading 0.5s ease 8s forwards;
}

/* Âncoras do menu: deixam espaço para o header quando a rolagem é a nativa */
#sobrenos,
#solucoes,
#equipe,
#contato {
    scroll-margin-top: 90px;
}

.loading-text {
    color: rgb(0, 0, 0);
    text-align: center;
    margin-top: 15px;
    letter-spacing: 4px;
    font-size: 14px;
    font-weight: bold;

    font-size: 20px;

    animation: piscar 1.5s infinite;
}

/* ==================================================
   HEADER
================================================== */

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logoImg {
    width: 10%;
}

#logotipo {
    max-width: 20%;
}

.nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#container-header {
    padding: 0% 5% 0% 5%;
    box-sizing: border-box;
    min-width: 90%;
    min-height: 10vh;
    border: none;
    background-color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    position: sticky;
    top: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* O header continua "sticky" o tempo todo (sem trocar para fixed), então o
   conteúdo não dá o salto de altura que acontecia aos 100px de rolagem. */
#container-header.header-scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

#container-header.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

/* ==================================================
   MENU DE NAVEGAÇÃO
================================================== */

#menu {
    list-style: none;
    gap: clamp(1.4rem, 3.4vw, 3.6rem);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    margin-right: clamp(1rem, 2vw, 2rem);
}

#menu a {
    color: aliceblue;
    text-decoration: none;
    font-size: 91%;
    font-weight: bold;
    white-space: nowrap;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ---------- Botão de tema claro/escuro ---------- */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 196, 0, 0.55);
    background: transparent;
    color: #FFC400;
    font-size: 1.05rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    background-color: #FFC400;
    border-color: #FFC400;
    color: #222;
    transform: rotate(-12deg);
}

.theme-toggle:focus-visible {
    outline: 2px solid #FFC400;
    outline-offset: 3px;
}

.theme-toggle i {
    grid-area: 1 / 1;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

/* Mostra a lua no tema claro (clique = escurecer) e o sol no escuro (clique = clarear) */
.theme-icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

:root[data-theme="dark"] .theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

:root[data-theme="dark"] .theme-icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.itemMenu {
    position: relative;
    display: inline-block;
}

.itemMenu::after,
.itemMenu::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #cba709, #e2df0c);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.itemMenu::before {
    top: -5px;
    transform-origin: left;
}

.itemMenu:hover::after,
.itemMenu:hover::before {
    transform: scaleX(1);
}

/* ==================================================
   ESTRUTURA PRINCIPAL
================================================== */

.container {
    min-height: 100vh;
    /* "svh" ignora a barra de endereço do celular e evita o layout "pulando" ao rolar */
    min-height: 100svh;
}

/* ==================================================
   SEÇÃO INÍCIO (HOME)
================================================== */

.inicio {
    display: flex;
    flex-direction: row;
}

.box {
    margin-top: 5%;
    position: relative;
    left: 12%;
    width: 35%;
    height: 60%;
}

.imageBox {
    margin-top: 5%;
    position: relative;
    left: 20%;
    width: 35%;
    height: 50%;
}

#imagemUm {
    border-radius: 20px;
    width: 100%;
    height: 100%;
}

.titulo {
    font-weight: bold;
    font-size: 650%;
    margin-bottom: -5%;
}

.subTitulo {
    font-weight: bold;
    font-size: 350%;
    text-align: center;
    width: 100%;
    margin-bottom: 2%;
}

.subTitulo span {
    color: #FFC400
}

.slash {
    background-color: #FFC400;
    height: 3%;
    width: 25%;
    margin-bottom: 4%;
}

.fluxe {
    padding: 0;
    margin-top: -10%;
    color: #FFC400;
    font-size: 1100%;
}

.container-texto {
    margin: 0;
    font-size: 120%;
}

#texto {
    font-family: sans-serif;
    font-weight: bold;
}

/* ==================================================
   BOTÕES
================================================== */

.botao {
    margin-top: 4%;
    background-color: var(--botao-escuro);
    color: white;
    height: 10%;
    width: 35%;
    font-weight: bold;
    font-size: larger;
    transition: 0.5s;
    cursor: pointer;
    text-align: center;
    padding: 1%;
    text-decoration: none;
    margin-top: 3vh;
    position: relative !important;
    display: inline-block !important;
    transition: 0.5s ease !important;
}

.botao:hover {
    transform: scale(1.1) !important;
    transition: 0.5s ease !important;
}

/* ==================================================
   SEÇÃO SOBRE
================================================== */

.sobre {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.box-sobre {
    margin-top: 5%;
    position: relative;
    left: 10%;
    width: 35%;
    height: 60%;
}

/* Telas largas: o texto ocupa só o espaço que sobra ao lado dos cards.
   Antes ele usava "left: 10%" (só desloca visualmente), então em notebooks
   de 1366px o card expandido ficava por cima do parágrafo. */
@media (min-width: 1300px) {
    .sobre .box-sobre {
        left: 0;
        margin-left: 10%;
        margin-right: 2rem;
        width: auto;
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Notebooks pequenos / tablets na horizontal: texto em cima, cards embaixo */
@media (min-width: 1025px) and (max-width: 1299px) {
    .sobre {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        padding: 60px 5%;
        min-height: auto;
    }

    .sobre .box-sobre {
        left: 0;
        width: 90%;
        height: auto;
        margin-top: 0;
    }

    .sobre .infos {
        margin-top: 0;
        justify-content: center;
    }

    .sobre .botao {
        width: auto;
        height: auto;
        padding: 10px 28px;
    }
}

/* ==================================================
   CARDS INFORMATIVOS
================================================== */

.infos {
    margin-top: 4%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: start;
}

.card {
    width: 130px;
    height: 130px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2rem;
    margin: 0 10px;
    display: flex;
    align-items: flex-start;
    transition: .6s cubic-bezier(.28, -0.03, 0, .99);
}

.card>.row {
    display: grid;
    grid-template-columns: 130px 1fr;
    grid-template-areas:
        "circle titulo"
        "texto texto";
    width: 100%;
    align-items: center;
}

.card>.row>.circle {
    background-color: #FFC400;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.card>.row>.descricao {
    display: contents;
}

.descricao h1 {
    grid-area: titulo;
    opacity: 0;
    transition: opacity 0.3s ease,
        transform 0.3s ease;
}

.descricao p {
    padding-left: 5%;
    padding-right: 4%;
    grid-area: texto;
    opacity: 0;
    transition: opacity 0.3s ease,
        transform 0.3s ease;
}

input {
    display: none;
    border-radius: 2rem;
}

input:checked+label {
    width: 500px;
    height: 400px;
    background-color: var(--superficie);
    box-shadow: var(--sombra-card);
}

#target:checked+label {
    background-color: #333232;
    color: #FFC400;
    box-shadow: 0px 10px 30px -5px rgb(174, 157, 6);
}

input:checked+label .descricao * {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.iconImg {
    width: 70%;
    /* height: 60%; */
}

/* --------------- Fim animação ---------------- */

/* .pop-ups {
    height: 100%;
    width: 100%;
} */

/* ==================================================
   PROJETOS
================================================== */

#butProject {
    padding: 3%;
    border: none;
    background-color: #FFC400;
    font-weight: bold;
    width: 70%;
    text-align: center;
    font-size: 100%;
    cursor: pointer;
    transition: 0.5s !important;
    font-size: larger;
    margin-top: 2vh;
    margin-left: 7.5%;
    text-decoration: none;
    color: #000;
    display: inline-block !important;
    position: relative !important;
}

#butProject:hover {
    transform: scale(1.1) !important;
    transition: 0.5s ease !important;
}

#butProject {
    display: inline-block !important;
    position: relative !important;
    transform: scale(1) !important;
    transition: transform 0.5s ease !important;
}

#butProject:hover {
    transform: scale(1.1) !important;
}

/* ==================================================
   PRINCIPAIS IMPLEMENTAÇÕES
================================================== */

.container.implementacoes {
    position: relative;
    padding: 5% 0 7%;
}

.impl-conteudo {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.impl-conteudo .slash {
    width: 6rem;
    height: 0.4rem;
    margin: 0 auto 1.4rem;
}

.impl-intro {
    max-width: 62ch;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--texto-mudo);
}

.impl-intro strong {
    color: var(--texto-forte);
}

.impl-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.impl-card {
    display: flex;
}

.impl-card__corpo {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 14px 14px 22px;
    border-radius: 22px;
    background-color: var(--superficie);
    color: var(--texto);
    border: 1px solid var(--borda);
    box-shadow: var(--sombra-card);
    /* A mesma transição vale para entrar e sair do hover, então o card volta suavemente */
    transition: transform 0.65s cubic-bezier(.22, .8, .24, 1), box-shadow 0.65s ease, border-color 0.65s ease;
    will-change: transform;
}

/* Variante escura (mantém a alternância claro/escuro dos cards originais) */
.impl-card--escuro .impl-card__corpo {
    background-color: var(--impl-escuro-fundo);
    color: var(--impl-escuro-texto);
    border-color: rgba(255, 196, 0, 0.18);
}

.impl-card--escuro .impl-card__titulo {
    color: #FFC400;
}

.impl-card__corpo:hover,
.impl-card__corpo:focus-within {
    transform: translateY(-10px) scale(1.035);
    border-color: #FFC400;
    box-shadow: 0px 18px 40px -8px #a98202;
}

/* ---------- Imagem do projeto ---------- */
.impl-card__midia {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background-color: var(--superficie-2);
    margin-bottom: 18px;
}

.impl-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Algumas ilustrações têm margem branca; o zoom por card recorta só a foto */
    transform: scale(var(--zoom, 1));
    transition: transform 1s cubic-bezier(.22, .8, .24, 1);
    will-change: transform;
}

.impl-card__corpo:hover .impl-card__img,
.impl-card__corpo:focus-within .impl-card__img {
    transform: scale(calc(var(--zoom, 1) * 1.12));
}

.impl-card__midia::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
    pointer-events: none;
}

.impl-card__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background-color: #FFC400;
    color: #171717;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.impl-card__tag b {
    font-weight: 800;
    opacity: 0.55;
}

/* ---------- Texto ---------- */
.impl-card__titulo {
    padding: 0 10px;
    font-size: 1.3rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--texto-forte);
    margin-bottom: 10px;
}

.impl-card__texto {
    padding: 0 10px;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 16px;
}

.impl-card__chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 10px;
    margin-bottom: 20px;
}

.impl-card__chips li {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--impl-claro-chip);
    border: 1px solid var(--borda);
}

.impl-card--escuro .impl-card__chips li {
    background-color: rgba(255, 196, 0, 0.1);
    border-color: rgba(255, 196, 0, 0.35);
    color: #FFC400;
}

/* ---------- Link (o card inteiro é clicável) ---------- */
.impl-card__link {
    margin-top: auto;
    margin-left: 10px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.impl-card--escuro .impl-card__link {
    color: #FFC400;
}

.impl-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.impl-card__link:focus-visible {
    outline: none;
}

.impl-card__link i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #FFC400;
    color: #171717;
    font-size: 1rem;
    transition: transform 0.5s cubic-bezier(.22, .8, .24, 1);
}

.impl-card__corpo:hover .impl-card__link i,
.impl-card__corpo:focus-within .impl-card__link i {
    transform: translateX(4px);
}

/* ==================================================
   RODAPÉ
================================================== */

/* CONTATO RODAPÉ */
#contato {
    background-color: var(--grafite);
    padding: 6vw 0;
}

.contatoGrid {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
}

.contatoTexto {
    width: 44%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contatoTexto .miniTitulo h5 {
    color: var(--branco);
}

.contatoTexto h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    color: var(--branco);
}

.contatoTexto h1 span {
    color: var(--amarelo);
}

.contatoTexto>p {
    font-size: 1.05rem;
    color: var(--cinza-medio);
    max-width: 46ch;
}

.contatoInfo {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.contatoInfo li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--branco);
    font-size: 0.98rem;
}

.contatoInfo i {
    color: var(--amarelo-secundario);
    font-size: 1.15rem;
}

/* Botão de contorno reutilizado no Contato e no Footer */
.ctaOutline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    padding: 0.85rem 1.5rem;
    border-radius: var(--raio-padrao);
    background-color: transparent;
    border: 1.5px solid var(--amarelo-secundario);
    color: var(--branco);
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    margin-top: 0.5rem;
    transition: 0.3s ease;
}

.ctaOutline i {
    font-size: 1.4rem;
    color: var(--amarelo-secundario);
    transition: 0.3s ease;
}

.ctaOutline:hover {
    background-color: #25D366;
    border-color: #25D366;
}

.ctaOutline:hover i {
    color: var(--branco);
}

.instagram {
    position: relative;      /* referência para o ::before */
    isolation: isolate;      /* mantém o ::before atrás do texto/ícone, mas dentro do botão */
    overflow: hidden;        /* o gradiente respeita o border-radius */
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    padding: 0.85rem 1.5rem;
    border-radius: var(--raio-padrao);
    background-color: transparent;
    border: 1.5px solid var(--amarelo-secundario);
    color: var(--branco);
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    margin-top: 0.5rem;
    transition: border-color 0.4s ease;
}

/* Camada com as cores do Instagram: começa invisível */
.instagram::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.instagram:hover {
    border-color: transparent;
}

/* No hover só a opacidade muda, e isso anima suave */
.instagram:hover::before {
    opacity: 1;
}

.instagram i {
    font-size: 1.4rem;
    color: var(--amarelo-secundario);
    transition: 0.3s ease;
}



.instagram:hover i {
    color: var(--branco);
}

.miniTitulo h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--preto);
    margin-top: 1vh;
}

.miniSlash {
    background-color: var(--amarelo);
    width: 3.8rem;
    height: 0.3rem;
    flex-shrink: 0;
}

.formCard {
    width: 48%;
    background-color: var(--form-fundo, var(--cinza-claro));
    border-radius: var(--raio-padrao);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    box-shadow: var(--sombra-padrao);
}

.formGroup {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.formGroup label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--texto-forte);
}

.inputsForm,
#mensagemContato {
    display: block;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--borda-input);
    background-color: var(--campo);
    color: var(--texto-forte);
    resize: vertical;
}

.formGroup input:focus,
.formGroup textarea:focus {
    outline: 2px solid var(--amarelo-secundario);
    outline-offset: 1px;
}

.formSubmit {
    margin-top: 0.3rem;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: var(--raio-padrao);
    background-color: var(--amarelo);
    color: var(--preto);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.formSubmit:hover {
    background-color: var(--amarelo-hover);
}

/* ==================================================
   ELEMENTOS DECORATIVOS
================================================== */

.meio-circulo {
    width: 350px;
    height: 350px;
    background-color: #FFC400;

    border-radius: 50%;

    position: absolute;

    left: -10%;
    top: -18%;
    z-index: -1;
}

.quadrado-amarelo {
    width: 10%;
    height: 11%;

    background-color: #FFC400;

    position: absolute;

    right: 8%;
    top: 15%;
}

.bolinhas {
    width: 10%;
    height: 12%;

    position: absolute;

    right: 8%;
    top: 60%;

    background-image: radial-gradient(var(--texto) 2px, transparent 2px);

    background-size: 12px 12px;
}

.circulo {
    width: 20%;
    height: 50%;
    background-color: #FFC400;

    border-radius: 50%;

    position: absolute;

    right: -10%;
    bottom: -207%;

    z-index: -1;
}

.container-circuito {
    position: absolute;
    top: -60vh;

    width: 115%;

    /* Fica atrás do conteúdo (antes passava por cima do texto dos cards em telas menores) */
    z-index: -1;
    opacity: var(--circuito-opacidade);
    pointer-events: none;
}

.container-circuito img {
    width: 100%;
    height: auto;
    position: relative;
    left: -10%;
}

/* ==================================================
   SEÇÃO EQUIPE
================================================== */

.container-equipe {
    position: relative;
    padding: 80px 6%;
    overflow: hidden;
}

/* Cantos decorativos amarelos (bordas em L) */
.equipe-canto {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.equipe-canto--topo-direita {
    top: 40px;
    right: 6%;
    border-top: 4px solid #FFC400;
    border-right: 4px solid #FFC400;
}

.equipe-canto--base-esquerda {
    bottom: 200px;
    left: 6%;
    border-bottom: 4px solid #FFC400;
    border-left: 4px solid #FFC400;
}

/* Cabeçalho da seção */
.equipe-header {
    text-align: center;
    margin-bottom: 56px;
}

.equipe-label {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #FFC400;
    margin-bottom: 12px;
}

.equipe-titulo {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--texto-forte);
    margin-bottom: 14px;
    line-height: 1.2;
}

.equipe-subtitulo {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--texto-mudo);
    line-height: 1.6;
}

/* Linhas de membros */
.equipe-linha {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.equipe-linha--top {
    align-items: stretch;
}

.equipe-linha--bottom {
    align-items: stretch;
}

/* Card de membro */
.membro-card {
    background: var(--superficie);
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    width: 220px;
    flex-shrink: 0;
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--borda);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.membro-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-suave-hover);
}

/* Foto / avatar do membro */
.membro-foto {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    border: 2px solid #FFC400;
    background: var(--superficie-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.membro-foto-icon {
    font-size: 28px;
    color: #aaa;
}

.membro-foto img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.membro-nome {
    font-size: 1rem;
    font-weight: 700;
    color: var(--texto-forte);
    margin-bottom: 4px;
}

.membro-funcao {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFC400;
    display: block;
    margin-bottom: 10px;
}

.membro-divider {
    width: 32px;
    height: 2px;
    background: #FFC400;
    margin: 0 auto 12px;
    border-radius: 2px;
}



.membro-desc {
    font-size: 0.82rem;
    color: var(--texto-suave);
    line-height: 1.55;
}

/* Foto central da equipe
   É uma <img> com altura automática: a foto aparece inteira (todos os integrantes),
   sempre na proporção original, sem ser cortada como acontecia com o background "cover". */
.equipe-foto-central {
    flex: 1;
    max-width: 600px;
    min-width: 260px;
    align-self: center;
}

.equipe-foto {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    background: var(--superficie-2);
    box-shadow: var(--sombra-suave);
}


/* Banner de conclusão */
.equipe-banner {
    margin-top: 40px;
    background: #222;
    border-radius: 14px;
    padding: 22px 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #f5f5f5;
    font-size: 0.95rem;
    line-height: 1.5;
}

.equipe-banner-icon {
    font-size: 28px;
    color: #FFC400;
    flex-shrink: 0;
}

.equipe-banner strong {
    color: #FFC400;
}

#divirodape {
    color: white;
}

/* ==================================================
   BOTÃO HAMBÚRGUER
================================================== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 300;
    align-self: center;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFC400;
    border-radius: 2px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   RESPONSIVO
   Breakpoints: 1200px (notebook pequeno) | 1024px (tablet) |
                768px (tablet retrato / celular grande) | 480px (celular) | 380px (celular pequeno)
   ============================================================ */

/* --- Notebooks pequenos / telas médias (≤ 1200px) --- */
@media (max-width: 1200px) {
    .titulo {
        font-size: 500%;
    }

    .fluxe {
        font-size: 900%;
    }

    .box,
    .box-sobre {
        width: 45%;
    }

    /* Cards das implementações: 2 por linha */
    .impl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .equipe-linha--top,
    .equipe-linha--bottom {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {

    /* Header / hambúrguer */
    #container-header {
        padding: 12px 5%;
        z-index: 200;
    }

    #logotipo {
        max-width: 28%;
    }

    .hamburger {
        display: flex;
    }

    /* Menu aberto como painel flutuante logo abaixo do header: não empurra o
       conteúdo da página para baixo e abre/fecha com animação. */
    #menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        margin: 0;
        padding: 6px 5% 22px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        background-color: #222;
        border-top: 1px solid rgba(255, 196, 0, 0.18);
        box-shadow: 0 26px 40px -14px rgba(0, 0, 0, 0.6);

        /* fechado: invisível, sem clique e sem foco do teclado */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-14px);
        clip-path: inset(0 0 100% 0);
        transition:
            opacity 0.35s ease,
            transform 0.5s cubic-bezier(.22, .8, .24, 1),
            clip-path 0.5s cubic-bezier(.22, .8, .24, 1),
            visibility 0s linear 0.5s;
    }

    #menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        clip-path: inset(0 0 -60px 0);
        transition-delay: 0s;
    }

    /* Itens entram um depois do outro */
    #menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    #menu li:last-child {
        border-bottom: none;
    }

    #menu.open li {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.45s ease, transform 0.55s cubic-bezier(.22, .8, .24, 1);
        transition-delay: calc(var(--i, 0) * 55ms + 120ms);
    }

    #menu li:nth-child(1) { --i: 0; }
    #menu li:nth-child(2) { --i: 1; }
    #menu li:nth-child(3) { --i: 2; }
    #menu li:nth-child(4) { --i: 3; }
    #menu li:nth-child(5) { --i: 4; }
    #menu li:nth-child(6) { --i: 5; }

    #menu a {
        font-size: 100%;
        display: inline-block;
        min-width: 0;
        padding: 14px 0;
    }

    /* Decorativos que causam overflow */
    .quadrado-amarelo,
    .bolinhas,
    .circulo,
    .linha-diagonal {
        display: none;
    }

    .meio-circulo {
        width: 200px;
        height: 200px;
        top: -3%;
        left: -5%;
    }

    /* Seção início */
    .inicio {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding: 40px 5% 60px;
    }

    .box {
        width: 65%;
        left: 0%;
    }

    .titulo {
        font-size: 6rem;
    }

    .fluxe {
        font-size: 8rem;
    }

    #butProject {
        width: 100%;
    }

    .imageBox {
        position: relative;
        width: 80%;
        left: 2%;
        margin: 30px auto 0;
    }

    /* Seção sobre nós */
    .sobre {
        flex-direction: column;
        min-height: auto;
        padding: 40px 5%;
    }

    .box-sobre {
        width: 90%;
        left: 5%;
    }

    .subTitulo1 {
        font-size: 260%;
    }

    .botao {
        width: 45%;
        height: auto;
        padding: 10px;
    }

    .infos {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .infos .card {
        width: 100% !important;
        max-width: 500px;
        height: auto !important;
        min-height: 400px;
        background-color: var(--superficie);
        box-shadow: var(--sombra-card);
        margin: 10px 0;
    }

    .infos #target+label {
        background-color: #333232 !important;
        color: #FFC400 !important;
        box-shadow: 0px 10px 30px -5px rgb(174, 157, 6) !important;
    }

    .infos .card .descricao h1,
    .infos .card .descricao p {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .infos .card .descricao p {
        font-size: 20px;
    }

    /* Implementações */
    .container.implementacoes {
        min-height: auto;
        padding: 40px 0 60px;
    }

    .container-circuito {
        display: none;
    }

    .impl-conteudo {
        width: 90%;
    }

    .subTitulo {
        font-size: 260%;
    }

    .impl-intro {
        margin-bottom: 2.2rem;
    }

    /* Rodapé */
    #rodape {
        flex-direction: row;
        align-items: center;
        gap: 24px;
        flex-wrap: nowrap;
    }

    #divirodape {
        width: 60%;
    }

    #rodapeUl {
        width: 40%;
        text-align: center;
    }

    /* Equipe */
    .equipe-linha--top {
        flex-direction: column;
        align-items: center;
    }

    .equipe-foto-central {
        width: 100%;
        max-width: 640px;
        order: -1;
    }

    .membro-card {
        width: 100%;
        max-width: 420px;
    }

    .equipe-linha--bottom {
        flex-direction: column;
        align-items: center;
    }

    
    .containerInfo {
        grid-template-columns: repeat(2, 1fr);
    }

    .beneficiosGrid,
    .contatoGrid {
        flex-wrap: wrap;
    }

    .beneficiosTexto,
    .spotlightCard,
    .contatoTexto,
    .formCard {
        width: 100%;
    }
        .planosRow {
        flex-wrap: wrap;
    }

    .planoCard {
        width: 100%;
        transform: none;
    }

    .planoDestaque:hover {
        transform: translateY(-6px);
    }

    .planosFooter {
        flex-wrap: wrap;
    }

    .planoFooterItem {
        width: 45%;
    }
}



/* --- Tablet retrato / celular grande (≤ 768px) --- */
@media (max-width: 768px) {

    #logotipo {
        max-width: 35%;
    }

    .box {
        width: 80%;
    }

    .titulo {
        font-size: 4.2rem;
        margin-bottom: 5%;
    }

    .fluxe {
        font-size: 5.5rem;
    }

    .container-texto {
        font-size: 105%;
    }

    .box-sobre {
        width: 100%;
        left: 0;
        padding: 0 5%;
    }

    .subTitulo1 {
        font-size: 220%;
    }

    .subTitulo {
        font-size: 220%;
    }

    .botao {
        width: 60%;
    }

    .impl-grid {
        gap: 18px;
    }

    .impl-intro {
        font-size: 1rem;
    }

    /* Equipe */
    .container-equipe {
        padding: 70px 5%;
    }

    .equipe-titulo {
        font-size: 2.1rem;
    }

    .equipe-subtitulo {
        font-size: 1rem;
    }

    .equipe-canto {
        width: 40px;
        height: 40px;
    }

    /* Rodapé */
    #rodape {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 30px 20px;
        gap: 16px;
    }

    #divirodape,
    #rodapeUl {
        width: 100%;
    }

    
    .beneficiosTexto,
    .contatoTexto {
        align-items: center;
        text-align: center;
    }

    .beneficiosTexto>p,
    .contatoTexto>p {
        max-width: none;
    }

    .checklist li {
        text-align: left;
    }

    .contatoInfo {
        align-items: center;
    }

    .ctaOutline {
        margin-left: auto;
        margin-right: auto;
    }

    .footerTop {
        flex-direction: column;
        text-align: center;
    }

    .footerBrand {
        flex-direction: column;
        text-align: center;
    }

    .containerInfo {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- Celular grande (≤ 640px): 1 card por linha --- */
@media (max-width: 640px) {
    .impl-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 460px;
        margin: 0 auto;
    }
}

/* --- Celular (≤ 480px) --- */
@media (max-width: 480px) {

    #container-header {
        width: 100%;
    }

    #logotipo {
        max-width: 15rem;
        max-height: 5rem;
    }

    .meio-circulo {
        display: none;
    }

    .titulo {
        font-size: 260%;
        margin-left: 20%;
        margin-bottom: 3%;
    }

    .fluxe {
        font-size: 5rem;
        margin-left: 15%;
    }

    .container-texto {
        font-size: 95%;
    }

    .box {
        width: 90%;
    }

    #butProject {
        width: 90%;
        font-size: 14px;
        padding: 14px;
    }

    .imageBox {
        width: 95%;
    }

    .subTitulo1 {
        font-size: 200%;
    }

    .subTitulo {
        font-size: 180%;
    }

    .botao {
        width: 70%;
        font-size: 14px;
    }

    .row {
        padding: 4.5%;
    }

    .card {
        max-width: 100%;
    }

    input:checked+label {
        max-width: 100%;
    }

    .logoImg {
        width: 40%;
    }

    #divirodape h3 {
        font-size: 14px;
    }

    #textRodape {
        font-size: 120%;
    }

    /* Equipe */
    .container-equipe {
        padding: 60px 5%;
    }

    .equipe-linha {
        width: 90vw;
    }

    .equipe-titulo {
        font-size: 1.8rem;
    }

    .equipe-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .equipe-canto {
        display: none;
    }

    .miniTitulo h5 {
        font-size: 1rem;
    }

    .sobreSistema h1,
    .beneficiosTexto h1,
    .contatoTexto h1 {
        font-size: 1.8rem;
    }

    .footerBrand h3 {
        font-size: 1.05rem;
    }

    .formCard {
        padding: 1.5rem;
    }
}

/* --- Celular pequeno (≤ 380px) --- */
@media (max-width: 380px) {

    #logotipo {
        max-width: 50%;
    }

    .titulo {
        font-size: 220%;
    }

    .fluxe {
        font-size: 340%;
    }

    .box {
        width: 95%;
    }

    .membro-card {
        padding: 24px 16px;
    }

    .membro-foto {
        width: 8rem;
        height: 8rem;
    }

    .equipe-label {
        font-size: 1.8rem;
    }

    .equipe-titulo {
        font-size: 1.5rem;
    }

    #divirodape h3 {
        font-size: 12px;
    }
}

/* ==================================================
   TRANSIÇÃO DE PÁGINA (SAÍDA)
================================================== */

#page-transition-overlay {
    position: fixed;
    inset: 0;
    background-color: #FFC400;
    z-index: 99999;
    pointer-events: none;
    clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
    transition: clip-path 0.9s cubic-bezier(.77, 0, .18, 1);
}

#page-transition-overlay.active {
    clip-path: circle(150% at var(--x, 50%) var(--y, 50%));
}

.page-transition-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    letter-spacing: 4px;
    font-size: 20px;
    color: #000;
    opacity: 0;
    transition: opacity 0.4s ease 0.5s;
}

#page-transition-overlay.active .page-transition-text {
    opacity: 1;
}

/* Transição suave de cores ao alternar o tema (classe aplicada por ~0,5s via JS) */
html.tema-animando body,
html.tema-animando body *,
html.tema-animando body *::before,
html.tema-animando body *::after {
    transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease !important;
}

/* ---------- Contato: envio por e-mail (public/js/contato.js) ---------- */

/* Campo isca contra robôs: fora da tela, mas não display:none (alguns robôs pulam campos escondidos assim) */
.campoIsca {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.formOpcional {
    font-weight: normal;
    opacity: 0.65;
}

.formGroup [aria-invalid] {
    border-color: #d93025;
    outline-color: #d93025;
}

.formStatus {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
    border: 1px solid transparent;
}

.formStatus--info {
    background-color: rgba(255, 196, 0, 0.12);
    border-color: rgba(244, 180, 0, 0.45);
    color: inherit;
}

.formStatus--sucesso {
    background-color: rgba(30, 123, 69, 0.12);
    border-color: rgba(30, 123, 69, 0.45);
    color: #1e7b45;
}

.formStatus--erro {
    background-color: rgba(217, 48, 37, 0.1);
    border-color: rgba(217, 48, 37, 0.45);
    color: #b42318;
}

:root[data-theme="dark"] .formStatus--sucesso {
    color: #7ee2a8;
}

:root[data-theme="dark"] .formStatus--erro {
    color: #ff9b94;
}

.formSubmit:disabled {
    opacity: 0.7;
    cursor: wait;
}
