/* ==========================================================================
   GUIA DE ESTILO: GLASSMORPHISM FINAL (COMPACTO & GOLD)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    /* Cores de Identidade */
    --neon-blue: #3b82f6;   /* Mantido para detalhes gerais */
    --neon-green: #126230;  /* Cor do REDA */
    --neon-gold: #fbbf24;   /* NOVA COR PRINCIPAL (Gestão) */
    --neon-orange: #f97316;
    
    /* Variáveis de Vidro (Opacidade média para leitura) */
    --glass-bg: rgba(255, 255, 255, 0.12); 
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08);
    --glass-blur: blur(18px);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    background-image: radial-gradient(circle at 50% 30%, #1d57d4 0%, transparent 40%), 
                      linear-gradient(135deg, #0a1236 0%, #4fa09f 100%);
    background-attachment: fixed;
    background-color: #0f172a;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* --- CABEÇALHO --- */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
}

.nav-container { width: 100%; display: flex; justify-content: flex-end; }
.nav-menu { display: flex; list-style: none; gap: 15px; margin: 0; padding: 0; }

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.nav-link:hover {
    background: var(--neon-gold);
    border-color: var(--neon-gold);
    color: #0f172a; /* Texto escuro no hover amarelo */
}

/* --- HERO --- */
.hero, .section-header-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.hero-title, .section-header-box h1, .section-header-box h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.hero p, .section-header-box p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- FAIXA ESCURA (HOME) --- */
.servicos-andamento-home {
    background: linear-gradient(135deg, #1e293b 0%, #e9ebee 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px; 
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.servicos-andamento-home h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: #cbd5e1;
    letter-spacing: 1px;
}

/* --- CARDS ULTRA COMPACTOS --- */
.links-rapidos-container, .servicos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Gap levemente reduzido */
    padding: 10px 0;
}

.card-3d {
    width: 300px;
    height: 150px; /* REDUZIDO MAIS 30% (Era 180px) */
    padding: 15px; /* Padding reduzido para ganhar espaço */
    
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 12px;
    
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
}

.card-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.card-content h3 {
    color: white !important;
    font-size: 1.2rem; /* Fonte menor para caber */
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.2;
    
    /* Limita a 2 linhas para não estourar a altura pequena */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Botão ou Ano no rodapé do card */
.card-3d .ano, .btn-arquivos {
    margin-top: auto; 
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    padding: 4px 10px; /* Mais fino */
    border-radius: 6px;
    font-size: 0.7rem; /* Fonte menor */
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box;
    display: block;
    text-align: center;
    text-transform: uppercase;
}

.card-3d:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.btn-arquivos:hover, .card-3d:hover .ano {
    background: white;
    color: #0f172a !important;
}

/* CORES DOS TIPOS DE SERVIÇO (Amarelo e Verde) */
/* Borda Superior */
.card-3d.gestao-democratica { border-top: 5px solid var(--neon-gold); } /* AGORA AMARELO */
.card-3d.processo-reda { border-top: 5px solid var(--neon-green); }

/* --- CONTATO (CENTRALIZADO) --- */
.contact-box-mini {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    
    /* CENTRALIZAÇÃO SOLICITADA */
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-box-mini h2 { 
    color: var(--neon-gold); 
    font-size: 1.2rem; 
    margin-top: 0;
}

.btn-email {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
    font-size: 0.85rem;
}

.btn-email:hover {
    background: var(--neon-gold);
    border-color: var(--neon-gold);
    color: #0f172a !important;
}

/* --- BADGES (Botões de Filtro/Legenda) --- */
.badge-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-legenda {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Cores de Fundo Sólidas para Legenda */
.bg-gestao { 
    background-color: var(--neon-gold); 
    color: #0f172a; /* Texto escuro para contraste no amarelo */
}
.bg-reda { 
    background-color: var(--neon-green); 
    color: white; 
}

/* --- INSTITUCIONAL (GRID) --- */
.institucional-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    padding: 20px 0;
}

.card-institucional {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--neon-gold); /* Detalhe amarelo */
}

.col-midia { display: flex; flex-direction: column; gap: 20px; }
.tela-midia { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }

.btn-instagram-modern {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .institucional-section { grid-template-columns: 1fr; }
}