:root {
    --primary: #6366f1;
    --bg-soft: #f8fafc;
    --text-dark: #1e293b;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --background-dark: #1F2937; /* Fundo do rodapé */
    --text-color-light: #F9FAFB; /* Branco leve para contraste */
    --text-color-light: #F9FAFB; /* Branco leve para contraste */
    --background-dark: #1F2937; /* Fundo do rodapé */
    --primary-color: #3B82F6; /* Azul moderno */
    --secondary-color: #FBBF24; /* Amarelo/Ouro para destaque */
    --text-color-dark: #1F2937; /* Cinza escuro para corpo de texto*/
}

body {
    background-color: var(--bg-soft);
    font-family: 'Inter', sans-serif;
    margin: 0;
}

/* Header */
.igreja-header {
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-igreja {
    height: 50px; /* Ajuste conforme seu logo */
    width: auto;
}

.container-reflexoes {
    display: grid;
    grid-template-columns: 350px 1fr; /* Sidebar fixa e conteúdo flexível */
    min-height: 100vh;
}


/* Sidebar */
.menu-lateral {
    background: #fff;
    padding: 30px;
    border-right: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.btn-voltar-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.item-nav {
    width: 100%;
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: none;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.item-nav:hover { background: #f1f5f9; }

.item-nav.active {
    background: #eef2ff;
    border-color: #6366f1;
}

.item-nav h4 { margin: 0; font-size: 1rem; color: var(--text-dark); }
.item-nav small { color: #94a3b8; }

/* Área de Leitura - Largura Controlada */
.palco-leitura {
    padding: 60px 20px;
    display: flex;
    justify-content: center; /* Centraliza o bloco de texto */
}

#conteudo-dinamico {
    max-width: 750px; /* Limita a largura para leitura confortável */
    width: 100%;
}

/* Estilização Interna do Texto */
.texto-header h1 { font-size: 2.8rem; margin-bottom: 10px; }
.meta-reflexao { color: #64748b; margin-bottom: 40px; }

.corpo-texto {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}

.btn-download-pdf {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

/* Efeito de Transição */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsivo */
@media (max-width: 1024px) {
    .container-reflexoes { grid-template-columns: 1fr; }
    .menu-lateral { height: auto; position: relative; border-right: none; border-bottom: 1px solid #eee; }
}

/* --- Rodapé (Footer) --- */
.footer {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: 40px 20px 20px; /* espaçamento lateral adicionado */
    font-size: 0.9rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
    max-width: 1100px; /* limita e centra o conteúdo do footer */
    margin: 0 auto 30px;
    padding: 0 20px; /* garante espaçamento igual nas laterais */
}

.footer-block h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-block p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-block i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-block ul {
    list-style: none;
}

.footer-block ul a {
    color: var(--text-color-light);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.footer-block ul a:hover {
    color: var(--secondary-color);
}

.social-block {
    text-align: center;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: var(--text-color-light);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}


.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
}

.footer-bottom p:first-child {
    font-weight: 600;
    margin-bottom: 5px;
}


/* --- Responsividade (Media Queries) --- */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
    
    /* Exibe o botão hamburger */
    .hamburger {
        display: flex; 
    }

    .nav-links {
        /* Configuração inicial do menu lateral/mobile */
        display: flex;
        position: fixed; /* Usa fixed para cobrir toda a tela sem scroll */
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: var(--background-dark); 
        clip-path: circle(0.1% at 100% 0); /* Efeito de círculo */
        transition: clip-path 0.5s ease-out;
        justify-content: center;
        align-items: center;
    }

    .nav-links.active {
        clip-path: circle(141.4% at 100% 0); /* Expande o menu */
    }

    .nav-links ul {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0; 
        transform: translateY(20px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s;
    }

    .nav-links a {
        font-size: 1.5rem;
    }
    
    .btn-registo {
        margin-top: 10px;
        font-size: 1.2rem;
    }


    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-block {
        padding-bottom: 20px;
    }

    .footer-block p, .footer-block ul {
        text-align: center;
        padding-left: 0;
    }
}