/* ==========================================================================
   VARIAVEIS TEMA & RESET
   ========================================================================== */
:root {
    /* Paleta de Cores */
    --primary: #2E7D32;
    --primary-light: #43A047;
    --secondary: #1565C0;
    --secondary-light: #42A5F5;
    
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-dark: #212529;
    --text-muted: #6C757D;
    
    /* Tipografia */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transições & Sombras */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* ==========================================================================
   LAYOUTS E UTILS
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

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

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1.5px;
}

.section-title {
    font-size: 2.25rem;
    margin-top: 0.5rem;
}

/* Componentes */
.badge {
    background: rgba(67, 160, 71, 0.15);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: #fff;
}

.card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.2rem 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.logo span { color: var(--secondary); }

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover { color: var(--primary); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(46,125,50,0.6));
}

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

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.hero h1 span { color: var(--secondary-light); }

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   TIMELINE (IMPACTOS AMBIENTAIS)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-light);
    top: 0; bottom: 0; left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-content {
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   QUIZ & DESAFIO
   ========================================================================== */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-progress-bar {
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.quiz-progress {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.quiz-opt-btn {
    padding: 1rem;
    border: 2px solid #E0E0E0;
    background: none;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.quiz-opt-btn:hover {
    border-color: var(--primary);
    background: rgba(67,160,71,0.05);
}

.quiz-opt-btn.correct { background: #C8E6C9; border-color: #2E7D32; }
.quiz-opt-btn.incorrect { background: #FFCDD2; border-color: #C62828; }

.hidden { display: none; }

.desafio-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
}

.game-placeholder {
    margin-top: 2rem;
    padding: 3rem;
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: var(--border-radius);
}

/* ==========================================================================
   ANIMATIONS & REVEAL
   ========================================================================== */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-active {
    opacity: 1;
    transform: translate(0);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0; text-align: left; }
    .timeline-item:nth-child(odd) { text-align: left; }
    .hero h1 { font-size: 2.2rem; }
}
/* ==========================================================================
   RESPONSIVIDADE E MEDIA QUERIES AVANÇADAS
   ========================================================================== */

/* --- TELAS MÉDIAS E TABLETS (Até 992px) --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- DISPOSITIVOS MÓVEIS (Até 768px) --- */
@media (max-width: 768px) {
    /* Ajustes Gerais */
    .section {
        padding: 3.5rem 0;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Menu Navegação Mobile */
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-dark);
        position: relative;
        transition: var(--transition);
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: var(--text-dark);
        transition: var(--transition);
    }

    .hamburger::before { top: -8px; }
    .hamburger::after { top: 8px; }

    /* Estado Ativo do Hambúrguer */
    .mobile-toggle.active .hamburger { background-color: transparent; }
    .mobile-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
    .mobile-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 6rem 2rem 2rem;
        transition: var(--transition);
        z-index: 1000;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Hero Section */
    .hero {
        min-height: 85vh;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    /* Timeline Responsiva (Linha Única) */
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    /* Quiz e Desafio */
    .desafio-card {
        padding: 2.5rem 1rem;
    }

    .game-placeholder {
        padding: 1.5rem 1rem;
    }
}

/* --- TELAS MUITO PEQUENAS (Até 480px) --- */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .card {
        padding: 1.25rem;
    }
}