/* ================= PALETA E VARIÁVEIS ================= */
:root {
    --cor-principal: #018333;
    --cor-secundaria: #016226;
    --cor-fundo: #f8f9fa;
    --cor-texto: #333333;
    --cor-destaque: #F2D04B;

    /* Tipografia */
    --fonte-texto: 'Inter', sans-serif;
    --fonte-titulo: 'Space Grotesk', sans-serif;
}

/* ================= RESET E GERAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--fonte-texto);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6, .btn, .nav-links a, .destaque, .eyebrow {
    font-family: var(--fonte-titulo);
    letter-spacing: -0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= BOTÕES ================= */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--cor-principal);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--cor-secundaria);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--cor-texto);
    transform: translateY(-2px);
}

/* Botão principal em Dourado */
.btn-destaque-cta {
    background-color: var(--cor-destaque);
    color: var(--cor-texto);
    padding: 16px 32px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    font-weight: 700;
}

.btn-destaque-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background-color: #e5c441;
}

/* ================= HERO SECTION (Topo da Página) ================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b1a12;
    color: white;
    overflow: hidden;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.25;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
    position: relative;
    margin-top: -30px; 
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: white;
}

.hero-big-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= CARDS O PROGRAMA ================= */
.grid-programa {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card-programa {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.card-programa:hover {
    transform: translateY(-5px);
}

.card-programa-header {
    background-color: var(--cor-principal);
    color: white;
    padding: 20px;
    font-weight: 700;
    font-size: 1.2rem;
}

.card-programa-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    background-color: #ddd;
}

.card-programa-body {
    background-color: var(--cor-principal);
    color: white;
    padding: 25px;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.6;
}

/* ================= REDE CREDENCIADA (Grid e Filtros) ================= */
.rede-container {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    min-height: 500px;
}

.rede-menu {
    flex: 0 0 300px;
    background-color: #f9fafb;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.btn-categoria {
    padding: 25px 30px;
    text-align: left;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.btn-categoria.ativo {
    background-color: white;
    color: var(--cor-principal);
    border-left-color: var(--cor-principal);
}

.rede-view {
    flex: 1;
    padding: 40px;
    max-height: 600px;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: relative;
}

.grid-empresas-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rede-view::-webkit-scrollbar {
    width: 6px;
}

.rede-view::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* ================= ACTION BANNER (Jornada da Empresa) ================= */
.partner-cta {
    background-color: var(--cor-principal);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.partner-cta::before,
.partner-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    z-index: 0;
}

.partner-cta::before {
    width: 700px;
    height: 700px;
    top: -300px;
    right: -150px;
}

.partner-cta::after {
    width: 500px;
    height: 500px;
    bottom: -200px;
    left: -100px;
}

.partner-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.partner-main h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.partner-main p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 90%;
}

.partner-docs {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.partner-docs h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.partner-docs p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 25px;
}

.doc-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-doc {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    font-size: 1.05rem;
}

.btn-doc:hover {
    background-color: white;
    color: var(--cor-principal);
    border-color: white;
}

/* ================= MODAL DE ANIMAÇÃO ================= */
@keyframes fadeInSutil {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= FOOTER ================= */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

/* ================= RESPONSIVIDADE (Celular) ================= */
@media (max-width: 992px) {
    .grid-programa {
        grid-template-columns: 1fr;
    }

    .rede-container {
        flex-direction: column;
    }

    .rede-menu {
        flex: none;
        flex-direction: row;
        overflow-x: auto;
    }

    .btn-categoria {
        border-left: none;
        border-bottom: 4px solid transparent;
        white-space: nowrap;
    }

    .btn-categoria.ativo {
        border-bottom-color: var(--cor-principal);
    }

    .grid-empresas-scroll {
        grid-template-columns: 1fr;
    }

    .partner-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partner-main h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2.2rem !important;
    }
}

/* ================= FAQ GRID LAYOUT ================= */
.faq-grid {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= FAQ (Perguntas Frequentes) - CORREÇÃO ================= */
.faq-container { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background-color: white; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; transition: all 0.3s ease; }
.faq-pergunta { width: 100%; text-align: left; padding: 20px 25px; font-size: 1.1rem; font-weight: 600; color: var(--cor-texto); background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-pergunta:hover { color: var(--cor-principal); }
.faq-icone { font-size: 1.5rem; color: var(--cor-principal); transition: transform 0.3s ease; }
.faq-resposta { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; background-color: white; }
.faq-resposta p { padding: 0 25px 20px 25px; color: #4b5563; margin: 0; line-height: 1.6; }

/* Classes ativas para a animação do FAQ */
.faq-item.ativo .faq-resposta { max-height: 300px; }
.faq-item.ativo .faq-icone { transform: rotate(45deg); }

/* ================= PALETA E VARIÁVEIS (Mantido do original) ================= */
:root {
    --cor-principal: #018333;
    --cor-secundaria: #016226;
    --cor-fundo: #f8f9fa;
    --cor-texto: #333333;
    --cor-destaque: #F2D04B;

    /* Tipografia */
    --fonte-texto: 'Inter', sans-serif;
    --fonte-titulo: 'Space Grotesk', sans-serif;
}

/* ... Mantenha RESET e BOTÕES exatamente como estavam ... */

/* ================= NAVBAR: ESTRUTURA E VISIBILIDADE NO TOPO ================= */
header.navbar {
    background: transparent;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Trava a container para não deixar nada vazar lateralmente */
    max-width: 100vw;
    overflow: hidden; 
}

/* Estrutura da Direita (Segura os links + Botão fixo) */
.nav-direita {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Área que rola os textos */
.scrollspy-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- BLOCO CORRETIVO DE VISIBILIDADE (O Pulo do Gato) --- */
/* Forçamos TUDO (links, logo, e inclusive o BOTÃO) a iniciar invisível e para cima no TOPO */
header.navbar .logo-nav,
header.navbar .scrollspy-nav,
header.navbar #btnAcessoNav {
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Impede cliques no topo */
}

/* Ajuste específico do botão para não sumir o padding chique dele */
#btnAcessoNav { padding: 10px 20px; }


/* ================= NAVBAR: ESTADO SCROLLED (Quando a tela rola) ================= */
header.navbar.nav-scrolled {
    background: rgba(255, 255, 255, 0.98); /* Fundo branco quase sólido */
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Tudo aparece e desce suavemente */
header.navbar.nav-scrolled .logo-nav,
header.navbar.nav-scrolled .scrollspy-nav,
header.navbar.nav-scrolled #btnAcessoNav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}


/* ================= SCROLLSPY (Efeito de Opacidade entre os Itens) ================= */
.nav-item {
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 600;
}

/* O item em foco ganha vida e cor */
.nav-item.active {
    opacity: 1;
    transform: scale(1.05);
    color: var(--cor-principal) !important;
}

.nav-item:hover {
    opacity: 0.8;
}


/* ================= RESPONSIVIDADE (A Trava e o "Shape" do Celular) ================= */
@media (max-width: 992px) {
    /* 1. O Treino de Seca: Reduzindo os espaços internos (paddings) no mobile */
    header.navbar {
        padding: 15px 0; /* Antes era 30px */
    }

    header.navbar.nav-scrolled {
        padding: 8px 0; /* Antes era 15px */
    }

    /* Reduz a logo apenas no celular para a barra não ficar tão alta */
    .logo-nav img {
        height: 45px !important; 
    }

    /* 2. Permite que os itens quebrem para a linha de baixo */
    .navbar .container {
        padding: 0 15px;
        flex-wrap: wrap; 
    }

    .nav-direita {
        display: contents; 
    }

    /* --- ORGANIZAÇÃO DAS LINHAS --- */
    .logo-nav {
        order: 1; 
    }

    #btnAcessoNav {
        order: 2; 
        flex-shrink: 0; 
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    /* 3. A linha de baixo mais espremida */
    .scrollspy-nav {
        order: 3; 
        width: 100%;
        margin-top: 6px; /* Reduzimos de 12px para 6px (encosta mais na logo) */
        
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px; /* Menos folga embaixo das letras */
        
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }

    .scrollspy-nav::-webkit-scrollbar { display: none; }

    .nav-item {
        scroll-snap-align: center;
        white-space: nowrap; 
        font-size: 0.85rem;
        padding: 0 5px;
    }
}