/* ==========================================================================
   NECOOP & OBSERVACOOP - SISTEMA DE ESTILOS CENTRALIZADO (MATRIZ GLOBAL)
   Universidade Federal da Fronteira Sul (UFFS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIÁVEIS INSTITUCIONAIS (SISTEMA DE DESIGN)
   -------------------------------------------------------------------------- */
:root {
    /* Cores Institucionais */
    --verde-institucional: #006837;
    --verde-escuro: #004d28;
    --verde-suave: #e6f0eb;
    
    /* Neutros e Tipografia */
    --fundo-pagina: #f8f9fa;
    --fundo-card: #ffffff;
    --texto-principal: #2d3748;
    --texto-suave: #4a5568;
    --cinza-borda: #e2e8f0;
    --cinza-fundo-alt: #fafafa;
    
    /* Fontes e Sombras */
    --fonte-principal: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --sombra-card: 0 2px 6px rgba(0, 0, 0, 0.06);
    --sombra-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --raio-borda: 6px;
}

/* --------------------------------------------------------------------------
   2. RESET E REGRAS BASE
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fonte-principal);
    background-color: var(--fundo-pagina);
    color: var(--texto-principal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container Estrutural */
.main-container {
    max-width: 1140px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   3. NAVEGAÇÃO E CABEÇALHO INSTITUCIONAL
   -------------------------------------------------------------------------- */
.site-header {
    background-color: #ffffff;
    border-bottom: 3px solid var(--verde-institucional);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

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

.logo-img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--texto-principal);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.main-nav a.active, 
.main-nav a:hover {
    color: var(--verde-institucional);
    border-bottom: 2px solid var(--verde-institucional);
}

/* --------------------------------------------------------------------------
   4. BANNERS E CABEÇALHOS DE SEÇÃO
   -------------------------------------------------------------------------- */
.hero-section {
    background-color: var(--verde-institucional);
    color: #ffffff;
    padding: 3rem 1.5rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cinza-borda);
}

.section-header-left { flex: 1; }
.section-header-right { flex: 1; color: var(--texto-suave); font-size: 0.95rem; }

.tagline {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--verde-institucional);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

/* --------------------------------------------------------------------------
   5. COMPONENTES DE CONTEÚDO E ARTIGOS (BLOCK-CARD)
   -------------------------------------------------------------------------- */
.block-card {
    background: var(--fundo-card);
    padding: 2.5rem;
    border-radius: var(--raio-borda);
    box-shadow: var(--sombra-card);
    margin-bottom: 2rem;
    border: 1px solid var(--cinza-borda);
}

.block-title {
    color: var(--verde-institucional);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--cinza-borda);
    padding-bottom: 0.5rem;
}

.block-card p {
    margin-bottom: 1rem;
    text-align: justify;
}

.block-card p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   6. COMPONENTES DE EVIDÊNCIAS E FIGURAS (RIGOR CIENTÍFICO)
   -------------------------------------------------------------------------- */
/* Figura Centralizada / Vertical (Padrão) */
.figure-container {
    margin: 2rem 0;
    text-align: center;
}

.figure-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--raio-borda);
    box-shadow: var(--sombra-card);
    object-fit: cover;
}

.figure-caption {
    font-size: 0.875rem;
    color: var(--texto-suave);
    margin-top: 0.6rem;
    font-style: italic;
    text-align: justify;
}

/* Figura Horizontal (Foto à Esquerda, Texto de Evidência à Direita) */
.figure-card-horizontal {
    display: flex;
    align-items: center;
    background-color: var(--cinza-fundo-alt);
    border: 1px solid var(--cinza-borda);
    border-left: 4px solid var(--verde-institucional);
    border-radius: var(--raio-borda);
    margin: 2rem 0;
    overflow: hidden;
    gap: 1.5rem;
}

.figure-card-thumb {
    width: 320px;
    min-width: 320px;
    height: 220px;
    overflow: hidden;
    background-color: var(--cinza-borda);
}

.figure-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.figure-card-caption {
    padding: 1rem 1.5rem 1rem 0;
    font-size: 0.9rem;
    color: var(--texto-suave);
    line-height: 1.5;
    flex: 1;
}

/* --------------------------------------------------------------------------
   7. GRELHAS DE CARDS (ÁREAS DE ATUAÇÃO / PROJETOS)
   -------------------------------------------------------------------------- */
/* Layout em Grid Multicoluna */
.grid-cards-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* Cartão Individual */
.card-vertical {
    background-color: var(--fundo-card);
    border: 1px solid var(--cinza-borda);
    border-radius: var(--raio-borda);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-vertical:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra-hover);
}

.card-vertical-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--verde-institucional);
}

.card-vertical-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.card-vertical-body h3, 
.card-vertical-body h4 {
    font-size: 1.1rem;
    color: var(--texto-principal);
    margin-bottom: 0.5rem;
}

.card-vertical-body p {
    font-size: 0.875rem;
    color: var(--texto-suave);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.card-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--verde-institucional);
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   8. RODAPÉ INSTITUCIONAL
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: #1a202c;
    color: #ffffff;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-col h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--verde-suave);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 1rem;
}

.footer-bottom {
    max-width: 1140px;
    margin: 2.5rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid #2d3748;
    text-align: center;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVIDADE (DISPOSITIVOS MÓVEIS)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 1rem; }
    .main-nav ul { display: flex; list-style: none; flex-wrap: wrap; align-items: center; gap: 1,25rem; }
    .section-header { flex-direction: column; gap: 0.5rem; }
    .figure-card-horizontal { flex-direction: column; align-items: stretch; }
    .figure-card-thumb { width: 100%; min-width: 100%; height: 200px; }
    .figure-card-caption { padding: 1rem; }
    .block-card { padding: 1.5rem; }
}
