/* =================================================================
   ESTILOS GLOBAIS E VARIÁVEIS - LAR TRÊS CORAÇÕES
   ================================================================= */

/* Importação da fonte Poppins (exemplo de sans-serif) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Cores principais */
    --cor-vermelho: #E74C3C; /* Vermelho - Confiança, Paixão */
    --cor-amarelo: #F1C40F; /* Amarelo - Esperança, Alegria */
    --cor-laranja-claro: #FFDAB9; /* Tons leves de laranja - Acolhimento */
    --cor-primaria: var(--cor-vermelho);
    --cor-secundaria: var(--cor-amarelo);
    --cor-fundo-claro: #F9F9F9;
    --cor-fundo-escuro: #333;
    --cor-texto-principal: #2C3E50;
    --cor-texto-claro: #ECF0F1;

    /* Tipografia */
    --fonte-principal: 'Poppins', sans-serif;
    --sombra-leve: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Reset Básico e Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-principal);
    color: var(--cor-texto-principal);
    background-color: var(--cor-fundo-claro);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container para centralizar o conteúdo */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Títulos */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--cor-primaria);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Links */
a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--cor-secundaria);
}

/* Botões de Ação (CTA) */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    border: none;
}

.btn-primario {
    background-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
}

.btn-primario:hover {
    background-color: #C0392B; /* Vermelho mais escuro */
    transform: translateY(-1px);
}

.btn-secundario {
    background-color: var(--cor-secundaria);
    color: var(--cor-texto-principal);
    border: 2px solid var(--cor-secundaria);
}

.btn-secundario:hover {
    background-color: #F39C12; /* Amarelo mais escuro */
    transform: translateY(-1px);
}

/* =================================================================
   HEADER E NAVEGAÇÃO
   ================================================================= */

.header {
    background-color: var(--cor-texto-claro);
    box-shadow: var(--sombra-leve);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cor-primaria);
}

.nav-menu {
    list-style: none;
    display: none; /* Oculto por padrão no mobile */
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    font-weight: 600;
    padding: 0.5rem 0;
    display: block;
    color: var(--cor-texto-principal);
}

.nav-menu a:hover {
    color: var(--cor-primaria);
}

/* Botão Hamburguer (Mobile) */
.menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--cor-primaria);
}

/* Estilos para o menu aberto (via JS) */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--cor-texto-claro);
    box-shadow: var(--sombra-leve);
    padding: 1rem 5%;
}

.nav-menu.active li {
    margin: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.nav-menu.active li:last-child {
    border-bottom: none;
}

/* =================================================================
   FOOTER
   ================================================================= */

.footer {
    margin-top: auto; /* Empurra o footer para o final da página */
    background-color: var(--cor-fundo-escuro);
    color: var(--cor-texto-claro);
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-col h4 {
    color: var(--cor-secundaria);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-col a {
    color: var(--cor-texto-claro);
}

.footer-col a:hover {
    color: var(--cor-secundaria);
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    color: var(--cor-texto-claro);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--cor-secundaria);
    color: var(--cor-texto-principal);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

/* =================================================================
   MEDIA QUERIES (Desktop)
   ================================================================= */

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        box-shadow: none;
        padding: 0;
    }

    .nav-menu li {
        margin-left: 1.5rem;
        border-bottom: none;
    }

    .footer .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-col {
        width: 20%;
    }
}

/* =================================================================
   ESTILOS DE SEÇÃO GENÉRICOS
   ================================================================= */

.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--cor-secundaria);
    margin: 0.5rem auto 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--sombra-leve);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Estilos específicos para a Home Page (index.html) */

/* SLIDER/CARROSSEL */
.slider-container {
    position: relative;
    overflow: hidden;
    height: 60vh; /* Altura do slider */
    min-height: 400px;
    background-color: #eee; /* Placeholder */
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--cor-texto-claro);
    text-align: center;
}

.slider-item.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.slider-overlay h1 {
    color: var(--cor-texto-claro);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.slider-overlay p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.slider-cta {
    display: flex;
    gap: 1rem;
}

/* Controles do Slider */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.slider-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev { left: 0; border-radius: 0 5px 5px 0; }
.next { right: 0; border-radius: 5px 0 0 5px; }

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--cor-secundaria);
}

/* Cozinha Solidária Section */
.cozinha-solidaria .card {
    text-align: center;
    padding: 1rem;
    border: 2px solid var(--cor-laranja-claro);
    position: relative;
}

.cozinha-solidaria .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.cozinha-solidaria .card h3 {
    color: var(--cor-texto-principal);
    font-size: 1.2rem;
}

.cozinha-solidaria .card .instagram-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--cor-primaria);
    font-size: 1.5rem;
}

/* Notícias Section */
.noticias-card {
    background-color: white;
    padding: 1.5rem;
    border-left: 5px solid var(--cor-primaria);
    box-shadow: var(--sombra-leve);
}

.noticias-card h4 {
    color: var(--cor-texto-principal);
    margin-bottom: 0.5rem;
}

.noticias-card .fonte {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}

.noticias-card p {
    margin-bottom: 1rem;
}

/* Doação PIX Section */
.pix-section {
    background-color: var(--cor-laranja-claro);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    margin-top: 3rem;
}

.pix-section h2 {
    color: var(--cor-texto-principal);
}

.pix-key {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: 5px;
    display: inline-block;
    border: 2px dashed var(--cor-primaria);
}

.btn-copiar-pix {
    background-color: var(--cor-primaria);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-copiar-pix:hover {
    background-color: #C0392B;
}

/* Estilos para ícones (usando Font Awesome como placeholder) */
.icon::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

.icon-instagram::before { content: "\f16d"; } /* Exemplo de ícone do Instagram */
.icon-map-marker::before { content: "\f3c5"; } /* Exemplo de ícone de localização */
.icon-phone::before { content: "\f095"; } /* Exemplo de ícone de telefone */
.icon-envelope::before { content: "\f0e0"; } /* Exemplo de ícone de email */

/* Estilos para as páginas internas (placeholder) */
.page-content {
    min-height: 50vh;
    padding: 2rem 0;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Adicionando Font Awesome para os ícones */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
