/* Reset básico de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
}

/* CABEÇALHO E MENU */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* Degradê escuro: começa 100% sólido no topo e vai para 70% na base */
    background: linear-gradient(to bottom, rgb(11, 58, 128) 0%, rgba(20, 30, 45, 0.603) 100%);
    
    /* Truque: aplica um desfoque (blur) no que passar por trás do menu */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Suporte para Safari */
    
    /* Uma linha super fina e quase invisível para dar um acabamento premium */
    border-bottom: 1px solid rgba(17, 0, 255, 0.726); 
}

/* Classe adicionada via JS ao rolar a página */
#main-header.scrolled {
    background: #1a2b42; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    font-size: 14px;
    vertical-align: super;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #8bbff4;
}

/* Botão Configurações */
.btn-config {
    background-color: #1771ed;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-config:hover {
    background-color: #125bc4;
}

/* SEÇÃO PRINCIPAL (HERO) */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    /* Imagem de fundo estilo corporativo/industrial */
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Sobreposição azul marinho translúcida para dar contraste */
    background-color: rgba(18, 38, 63, 0.75); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 50px;
}

.breadcrumbs {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.breadcrumbs strong {
    color: #ffffff;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    max-width: 800px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 850px;
    color: #f1f5f9;
}

/* BOTÃO WHATSAPP */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.2s;
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}


/* HOME A BAIXO */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
    --cor-fundo: #0d1620;
    --cor-fundo-alt: #142234;
    --cor-aco: #26374a;
    --cor-texto: #e8edf2;
    --cor-texto-muted: #8fa3b8;
    --cor-sinal: #f2a900;
}

/* ---------- HERO ---------- */
.home-hero {
    background: linear-gradient(160deg, var(--cor-fundo) 0%, var(--cor-fundo-alt) 100%);
    color: var(--cor-texto);
    padding: calc(72px + var(--altura-header, 90px)) 6vw 88px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.home-hero__eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cor-sinal);
    margin-bottom: 18px;
}

.home-hero__titulo {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0 0 24px;
}

.home-hero__descricao {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--cor-texto-muted);
    max-width: 46ch;
    margin: 0 0 32px;
}

.home-hero__acoes {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.botao {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 13px 26px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.15s ease, background 0.15s ease;
}

.botao--primario {
    background: var(--cor-sinal);
    color: #1a1300;
}
.botao--primario:hover { transform: translateY(-2px); }

.botao--secundario {
    background: transparent;
    color: var(--cor-texto);
    border: 1px solid var(--cor-aco);
}
.botao--secundario:hover { border-color: var(--cor-sinal); }

.home-hero__pilares-mini {
    list-style: none;
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--cor-texto-muted);
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--cor-aco);
    padding-top: 20px;
}

.home-hero__pilares-mini li { display: flex; align-items: center; gap: 8px; }

.ponto { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ponto--sucesso { background: var(--cor-sucesso, #28a745); }
.ponto--sinal { background: var(--cor-sinal); }
.ponto--alerta { background: var(--cor-alerta, #d9534f); }

/* ---------- FICHA DE LIBERAÇÃO (elemento assinatura) ---------- */
.home-hero__ficha {
    display: flex;
    justify-content: center;
}

.ficha {
    position: relative;
    background: #f4efe4;
    color: #1a1f26;
    width: min(320px, 100%);
    padding: 34px 26px 24px;
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.45);
    transform: rotate(3deg);
    border-top: 10px solid var(--cor-sinal);
}

.ficha__furo {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--cor-fundo);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.ficha__cabecalho {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.ficha__empresa {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.ficha__tipo {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #6b5f45;
}

.ficha__linha {
    border-top: 1.5px dashed #c9bfa3;
    margin-bottom: 16px;
}

.ficha__dados {
    display: grid;
    gap: 14px;
    margin: 0 0 18px;
}

.ficha__item dt {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b5f45;
    margin-bottom: 2px;
}

.ficha__item dd {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
}

.ficha__status { color: #1e6b3e; }

.ficha__rodape {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #c9bfa3;
    padding-top: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
}

.ficha__selo {
    background: #1e6b3e;
    color: #fff;
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 0.08em;
}

.ficha__norma { color: #6b5f45; }

/* ---------- PILARES ---------- */
.home-pilares {
    background: #f4f1ea;
    padding: 72px 6vw;
}

.home-secao__titulo {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--cor-primaria, #1e3a5f);
    max-width: 20ch;
    margin: 0 0 40px;
}

.home-pilares__grade {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.pilar {
    background: #fff;
    border: 1px solid #ddd6c4;
    border-top: 3px solid var(--cor-sinal);
    padding: 26px 22px;
    border-radius: 4px;
}

.pilar__indice {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cor-sinal);
}

.pilar h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin: 10px 0 8px;
    color: #1a1f26;
}

.pilar p {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #4d4a40;
    margin: 0;
}

/* ---------- CTA / RODAPÉ ---------- */
.home-cta {
    background: var(--cor-fundo);
    color: var(--cor-texto-muted);
    text-align: center;
    padding: 34px 6vw;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.home-cta strong { color: var(--cor-texto); }

.home-cta__credito {
    display: block;
    margin-top: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--cor-sinal);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
    .home-hero { grid-template-columns: 1fr; padding: 56px 6vw; }
    .home-pilares__grade { grid-template-columns: repeat(2, 1fr); }
    .ficha { transform: none; margin: 0 auto; }
}

@media (max-width: 520px) {
    .home-pilares__grade { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .botao { transition: none; }
}
/* ---------- usuário logado + sair (adicionar ao final do base.css) ---------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.usuario-logado {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.usuario-logado__nome {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.usuario-logado__perfil {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8bbff4;
}

.btn-sair {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-sair:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

@media (max-width: 720px) {
    .header-container {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .logo h1 { font-size: 20px; }
    .logo { width: 100%; }
    .usuario-logado { display: none; }
    .header-actions { width: 100%; gap: 8px; justify-content: flex-end; }
    .btn-config, .btn-sair { padding: 7px 11px; font-size: 12px; }

    .main-nav {
        order: 3;
        width: 100%;
        min-width: 0;
        display: block;
    }

    .main-nav.main-nav--aberto { display: block; }

    .main-nav ul {
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .main-nav li { flex: 0 0 auto; }

    .home-hero > * { min-width: 0; }
    .home-hero__titulo { overflow-wrap: anywhere; }
}

/* Reserva global para o cabeçalho fixo; o JS atualiza com a altura real. */
:root { --altura-header: 90px; }
@media (max-width: 900px) {
    .home-hero { padding: calc(56px + var(--altura-header, 90px)) 6vw 56px; }
}

/* Botao "visualizar senha", injetado pelo JS em qualquer input[type=password] */
.campo-senha-wrapper { position: relative; display: block; }
.campo-senha-wrapper input { width: 100%; padding-right: 42px !important; box-sizing: border-box; }
.campo-senha-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    color: currentColor;
    opacity: .55;
    cursor: pointer;
}
.campo-senha-toggle:hover { opacity: .9; }
.campo-senha-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
