/* 1. CONFIGURAÇÕES GERAIS */
body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: #0f241d;
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 2. HEADER E NAVEGAÇÃO */
.site-header {
    padding: .5rem 0;
    background: linear-gradient(180deg, rgba(245,249,246,0.9), rgba(236,244,240,0.9));
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.site-header .header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-right .category-menu ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-right .category-menu a {
    color: #07261b;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.header-right .category-menu a:hover {
    color: #10b981;
}

/* 3. HERO SECTION */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f241d, #145235 50%, #178244);
    color: #fff;
}

.hero h1 {
    font-size: 2.5rem; /* Padrão mobile */
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero p {
    margin-bottom: 1.25rem;
    max-width: 640px;
    color: rgba(255,255,255,0.9);
}

/* 4. GRADE DE POSTS (BLOG) */
.blog-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr; /* 1 coluna no celular */
}

.post-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.25rem;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: #07261b;
    margin-bottom: 0.8rem;
}

/* 5. CONTEÚDO DO ARTIGO (SINGLE PAGE) */
.content-stylized {
    line-height: 1.8;
    font-size: 1.15rem;
    color: #374151;
}

.content-stylized h2, .content-stylized h3 {
    color: #07261b;
    margin-top: 2.5rem;
    font-weight: 700;
}

.content-stylized img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

/* 6. PAGINAÇÃO */
.pagination ul {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    justify-content: center;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    color: #07261b;
    font-weight: 600;
}

.pagination .current {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* 7. FOOTER */
.site-footer {
    background: #07261b;
    color: #c9d6cc;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-top: 2rem;
}

/* Estilo Base (Desktop) */
.footer-links-group {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap; /* Permite quebrar se necessário */
}

.footer-links-group a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

/* AJUSTE PARA MOBILE (Telas menores que 768px) */
@media (max-width: 768px) {
    .footer-links-group {
        flex-direction: column; /* Empilha um acima do outro */
        gap: 1.5rem; /* Espaço confortável entre os links no toque */
        align-items: center; /* Centraliza horizontalmente */
        margin-bottom: 2.5rem;
    }
    
    .footer-links-group a {
        font-size: 1.1rem; /* Aumenta um pouco para facilitar o clique no celular */
        width: 100%; /* Ocupa a largura para centralizar o texto melhor */
        text-align: center;
    }
}

.site-branding {
    flex-shrink: 0; /* Impede que a logo diminua de tamanho */
}

.site-branding img {
    transition: transform 0.3s ease;
}

.site-branding a:hover img {
    transform: scale(1.05); /* Um leve efeito de zoom ao passar o mouse */
}

/* No mobile, podemos diminuir um pouco a logo se necessário */
@media (max-width: 768px) {
    .site-branding img {
        height: 35px !important;
    }
}

/* 8. RESPONSIVIDADE (MEDIA QUERIES - MOBILE FIRST) */

/* TABLETS (A partir de 600px) */
@media (min-width: 600px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* DESKTOP PEQUENO (A partir de 768px) */
@media (min-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
}

/* DESKTOP GRANDE (A partir de 1024px) */
@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .header-right .category-menu {
        display: block;
    }
}

/* AJUSTE MOBILE ESPECÍFICO (Até 768px) */
@media (max-width: 768px) {
    .header-center, 
    .header-right .category-menu {
        display: none; /* Esconde menus complexos no celular */
    }
}

/* =============================================
   9. MENU HAMBURGUER (MOBILE)
   ============================================= */

/* Botão hamburguer - escondido no desktop */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid rgba(7, 38, 27, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    transition: background 0.2s ease, border-color 0.2s ease;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #07261b;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

/* Animação X ao abrir */
.hamburger-btn.is-active .hamburger-line {
    background: #ffffff;
}

.hamburger-btn.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay do menu mobile */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 38, 27, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Painel lateral do menu */
.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100%;
    background: linear-gradient(180deg, #0f241d 0%, #145235 60%, #178244 100%);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu-overlay.is-open .mobile-menu {
    transform: translateX(0);
}

/* Lista de itens do menu mobile */
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-list li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-list a {
    display: block;
    padding: 1.1rem 0.5rem;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    letter-spacing: 0.01em;
}

.mobile-menu-list a:hover {
    color: #6ee7b7;
    padding-left: 1rem;
}

/* Impede scroll do body quando menu está aberto */
body.menu-open {
    overflow: hidden;
}

/* Responsividade: mostrar hamburguer e ocultar menu desktop no mobile */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .header-right.header-actions {
        display: none;
    }
}

/* Desktop: esconder hamburguer */
@media (min-width: 769px) {
    .hamburger-btn {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }
}
