@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&family=DM+Sans:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --bg-raiz: #dfe6ec;
    --verde-salvia: #8DB596;
    --azul-foco: #2D5A7B;
    --texto-cor: #637380;
    --roxo-tea: #6c68ad;
    --vermelho-sair: #e74c3c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--texto-cor);
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVBAR BASE --- */
.navbar {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left { flex: 1; display: flex; justify-content: flex-start; }
.nav-logo { width: 180px; height: auto; display: block; }

/* Links centrais (Desktop) */
.nav-links { 
    flex: 2; 
    display: flex; 
    justify-content: center; 
    list-style: none; 
    gap: 30px; 
}

.nav-links a {
    text-decoration: none;
    color: var(--texto-cor);
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--roxo-tea); }

/* Lado direito (Botões e Search) */
.nav-right { 
    flex: 1; 
    display: flex; 
    justify-content: flex-end; 
    align-items: center; 
    gap: 12px; 
}

/* --- ESTILOS DE AUTENTICAÇÃO (DINÂMICOS) --- */

/* Texto: Olá, Usuário */
.nav-greeting {
    font-weight: 700;
    font-size: 14px;
    color: var(--azul-foco);
    white-space: nowrap;
}

/* Botão Entrar (Padrão) */
.btn-nav {
    background: var(--verde-salvia);
    color: white;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

/* Botão Sair (Desktop) */
.btn-logout-desktop {
    background: #f1f3f5;
    color: var(--vermelho-sair);
    padding: 8px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s;
}

.btn-logout-desktop:hover {
    background: #ffeaea;
}

/* Item Sair (Dentro do Mobile Menu) */
.mobile-logout-item {
    margin-top: auto; /* Empurra para o fim da lista */
    padding-top: 20px;
    border-top: 1px solid #eee;
    width: 100%;
    list-style: none;
}

.mobile-logout-item a {
    color: var(--vermelho-sair) !important;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
}

/* --- HERO & SEÇÕES --- */
.hero { padding: 80px 0; background-color: #ffffff; }
.hero-layout { display: flex; align-items: center; gap: 60px; }
.hero-image, .hero-text { flex: 1; }
.img-hero-rounded { width: 100%; border-radius: 40px; box-shadow: 0 25px 50px rgba(0,0,0,0.06); }

.hero-text h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 44px;
    line-height: 1.1;
    color: var(--azul-foco);
    margin-bottom: 25px;
}

.hero-text p { font-size: 18px; line-height: 1.7; margin-bottom: 35px; }

.btn-hero {
    display: inline-block;
    padding: 18px 40px;
    background: var(--verde-salvia);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(141, 181, 150, 0.3);
}

.rede-secao { padding: 100px 0; background-color: var(--bg-raiz); }
.rede-grid { display: flex; align-items: center; gap: 80px; }
.rede-col-texto, .rede-col-imagem { flex: 1; }
.titulo-destaque { font-family: 'DM Sans', sans-serif; font-size: 40px; color: var(--azul-foco); margin-bottom: 20px; }
.rede-col-imagem img { width: 100%; border-radius: 40px; }

/* --- MOBILE E MENU HAMBÚRGUER --- */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--azul-foco);
    border-radius: 10px;
    transition: 0.3s;
}

/* Esconde o link de sair da lista central quando estiver no Computador (Desktop) */
@media (min-width: 851px) {
    .mobile-logout-item {
        display: none !important;
    }
}

@media (max-width: 850px) {
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        right: -100%; 
        top: 0;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 1050;
    }

    .nav-links.active { right: 0; }

    /* Esconde o botão sair do topo no mobile (ele vai para o menu bar) */
    .btn-logout-desktop { display: none; }
    
    .nav-greeting { font-size: 12px; }
    .nav-logo { width: 140px; }
    .hero-layout, .rede-grid { flex-direction: column; text-align: center; gap: 40px; }
    .hero-text h1, .titulo-destaque { font-size: 30px; }
}

/* Animação Hamburger -> X */
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.footer-rights { padding: 40px; text-align: center; font-size: 11px; color: #9BAEB1; }