/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 
 * PALETA DE CORES - Baseada na identidade visual NutriAções
 * Para ajustar as cores baseado na logo:
 * 1. Abra color-extractor.html no navegador
 * 2. Clique em "Extrair Cores" para analisar as logos
 * 3. Copie o código CSS gerado e substitua as variáveis abaixo
 * 
 * Cores atuais: Paleta suave e profissional para nutrição/saúde
 * - Verde primário: Representa saúde, natureza, frescor
 * - Verde secundário: Tom mais claro para gradientes
 * - Laranja: Energia, vitaminas, ação (botões e destaques)
 */
:root {
    /* Cores principais - Ajuste estas baseado na logo */
    --primary-color: #27ae60;      /* Verde principal - saúde/natureza */
    --secondary-color: #52c97f;    /* Verde secundário - mais claro */
    --accent-color: #f39c12;       /* Laranja/dourado - energia/ação */
    
    /* Cores de apoio */
    --primary-dark: #1e8449;       /* Verde escuro para hover */
    --accent-dark: #d68910;        /* Laranja escuro para hover */
    
    /* Cores de texto e fundo */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    /* Efeitos */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 132, 73, 0.95); /* Verde escuro com leve transparência */
    backdrop-filter: blur(10px); /* Efeito de vidro fosco */
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 3px solid rgba(255, 255, 255, 0.1); /* Linha sutil de separação */
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-name {
    height: 40px;
    width: auto;
    object-fit: contain;
    /* Logo branco já visível no fundo escuro */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Gradiente mais claro no topo para criar contraste com o header */
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 30%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 100px 20px 50px;
    overflow: hidden;
    margin-top: 0; /* Garantir que começa logo após o header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
}

/* Separador visual entre header e hero */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.hero-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.hero-logo-name {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-donation {
    font-size: 1.2rem;
    padding: 18px 50px;
    margin-top: 1rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Mission Section */
.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.action-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.action-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Volunteer Section */
.volunteer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.volunteer-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.volunteer-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    /* Gradiente harmonioso com a paleta */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: var(--shadow-lg);
}

/* Donation Section */
.donation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.donation-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.donation-highlight {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo-name {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(39, 174, 96, 0.1);
}

.social-link:hover {
    background: rgba(39, 174, 96, 0.2);
    transform: translateX(5px);
}

/* Área de Membros */
.member-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
}

.tab-btn {
    padding: 12px 30px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-btn:hover {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    max-width: 500px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

.member-form-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.member-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.member-dashboard {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.dashboard-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--text-light);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--text-dark);
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dashboard-tab-btn {
    padding: 10px 20px;
    background: var(--bg-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
}

.dashboard-tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.dashboard-tab-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.dashboard-content {
    display: none;
}

.dashboard-content.active {
    display: block;
}

.action-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.actions-list,
.participants-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-card-item,
.participant-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.action-card-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.action-card-item p,
.participant-card p {
    color: var(--text-light);
    margin: 0.3rem 0;
}

.action-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.action-meta span {
    color: var(--text-dark);
    font-weight: 500;
}

.empty-message {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-style: italic;
}

.available-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-public-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.action-public-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-public-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.action-public-card .action-date {
    color: var(--accent-color);
    font-weight: 600;
    margin: 0.5rem 0;
}

.enroll-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-light);
}

.enroll-form .form-group {
    margin-bottom: 1rem;
}

.enroll-btn {
    width: 100%;
    padding: 10px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.enroll-btn:hover {
    background: var(--accent-dark);
}

.enroll-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.badge-success {
    background: rgba(39, 174, 96, 0.2);
    color: var(--primary-color);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.2);
    color: var(--accent-color);
}

.badge-full {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* Perfil do Membro */
.member-profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.member-avatar-container {
    position: relative;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.member-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid var(--primary-color);
}

.member-info h3 {
    margin: 0;
    color: var(--primary-color);
}

.member-specialty {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.3rem 0 0 0;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-image-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.blog-post-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-post-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.blog-read-more:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        min-height: 90vh;
        padding: 120px 20px 50px;
    }

    .hero-logo-img {
        height: 80px;
    }

    .hero-logo-name {
        height: 60px;
    }

    .hero-text {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .volunteer-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        height: 300px;
        font-size: 4rem;
    }

    .mission-text,
    .donation-text p {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .available-actions-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-tabs {
        flex-direction: column;
    }

    .member-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-actions {
        flex-direction: column;
        width: 100%;
    }

    .dashboard-actions button {
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        height: 60px;
    }

    .hero-logo-name {
        height: 50px;
    }

    .section {
        padding: 50px 0;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-card,
.volunteer-content,
.donation-content {
    animation: fadeInUp 0.6s ease-out;
}


