/* VARIÁVEIS */
:root {
    --bg-cream: #FDFCF8;
    --bg-cream-dark: #F5F2EA;
    --bg-warm: #FFFBEB;
    
    --text-main: #292524;
    --text-muted: #78716C;
    --text-light: #FFFFFF;
    
    --primary: #D97706;
    --primary-hover: #B45309;
    --primary-light: #FFF4E5;
    
    --secondary: #292524;

    --font-serif: 'Fraunces', serif;
    --font-sans: 'Manrope', sans-serif;
    
    --radius-xl: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.08);
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body.no-scroll {
    overflow: hidden;
    height: 100vh; 
}

a { text-decoration: none; transition: 0.3s ease; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: var(--radius-xl); }

.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section-padding { padding: 120px 0; position: relative; }
.bg-warm { background-color: var(--bg-warm); }
.bg-cream-dark { background-color: var(--bg-cream-dark); }
.text-center { text-align: center; }
.mb-60 { margin-bottom: 60px; }
.center-group { justify-content: center; }

/* TIPOGRAFIA */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--text-main); }

.heading-xl { 
    font-size: clamp(2.8rem, 5vw, 4.5rem); 
    line-height: 1.1; 
    margin-bottom: 24px; 
    letter-spacing: -1px; 
}

.heading-lg { 
    font-size: clamp(2rem, 4vw, 3rem); 
    margin-bottom: 20px; 
}

.body-lg { 
    font-size: 1.25rem; 
    color: var(--text-muted); 
    margin-bottom: 32px; 
    max-width: 600px; 
}

.body-md { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    margin-bottom: 24px; 
}

.label-text { 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: var(--primary); 
    letter-spacing: 1px; 
    display: block; 
    margin-bottom: 16px; 
}

.light-text { color: #fff !important; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.body-lg.light-text { opacity: 0.95; margin-left: auto; margin-right: auto; }

/* NAVBAR */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 24px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #FDFCF8;
}

.header.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    color: black;
}

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

.logo { 
    font-family: var(--font-serif); 
    font-size: 1.5rem; 
    font-weight: 700; 
    z-index: 1002;
    position: relative;
}
.dot { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

.mobile-toggle { 
    display: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 6px; 
    z-index: 1002; 
}
.bar { 
    width: 26px; 
    height: 2px; 
    background-color: var(--text-main); 
    transition: 0.3s; 
    border-radius: 2px; 
}

/* HERO SECTION */
.hero-section.full-hero {
    position: relative;
    background-image: url(./img/heroimage.png); 
    background-size: cover;
    background-position: center center;
    padding: 220px 0 160px;
    color: #fff;
    overflow: hidden;
}

.hero-section.full-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(41, 37, 36, 0.6), rgba(41, 37, 36, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.pill-tag.light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    padding: 8px 16px; 
    border-radius: 50px; 
    font-weight: 700; font-size: 0.8rem; 
    display: inline-block; margin-bottom: 24px;
}

/* CARROSSEL (MARQUEE) */
.values-marquee-section {
    padding: 32px 0;
    background: var(--primary);
    color: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 5;
}

.marquee-container { width: 100%; display: flex; }

.marquee-track {
    display: flex;
    gap: 0;
    animation: scroll 80s linear infinite; 
    width: max-content;
}

.value-item {
    display: flex;
    align-items: center;
    padding: 0 40px;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: italic;
}

.separator { margin-left: 40px; font-size: 1rem; opacity: 0.5; }

.values-marquee-section:hover .marquee-track { animation-play-state: paused; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* SECTIONS (ONGS & DEVS) */
.split-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
}

.split-grid.reverse .image-box { order: 2; } 

.image-box { position: relative; z-index: 1; }

.image-box img { 
    position: relative; 
    z-index: 2; 
    box-shadow: var(--shadow-soft); 
}

.floating-card {
    position: absolute; bottom: 40px; left: -140px; z-index: 3;
    background: #fff; 
    padding: 24px 32px; 
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
    min-width: 200px;
}
.floating-card span { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.floating-card strong { font-size: 1.5rem; color: var(--primary); font-family: var(--font-serif); }

.blob-svg {
    position: absolute;
    width: 140%; height: 140%;
    top: -20%; left: -20%;
    z-index: 1;
    opacity: 0.8;
}

.benefits-list li { 
    margin-bottom: 16px; 
    padding-left: 24px; 
    position: relative; 
    color: var(--text-main); 
    font-weight: 500; 
}
.benefits-list li::before { 
    content: ''; 
    width: 8px; height: 8px; 
    background: var(--primary); 
    border-radius: 50%; 
    position: absolute; left: 0; top: 9px; 
}

/* BOTÕES */
.button-group { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary { 
    background: var(--primary); 
    color: #fff; 
    padding: 16px 32px; 
    border-radius: 50px; 
    font-weight: 700; 
    display: inline-block; 
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    background: var(--primary-hover); 
}

.btn-secondary { 
    background: var(--secondary); 
    color: #fff; 
    padding: 16px 32px; 
    border-radius: 50px; 
    font-weight: 700; 
    display: inline-block; 
}
.btn-secondary:hover { opacity: 0.9; transform: translateY(-3px); }

.btn-outline-white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}
.btn-outline-white:hover {
    background: #fff;
    color: var(--text-main);
    transform: translateY(-3px);
}

.btn-primary.small { padding: 10px 24px; font-size: 0.9rem; box-shadow: none; }

/* --- CTA FINAL --- */
.cta-section { padding: 100px 0; }
.cta-box { background: #292524; color: #F5F2EA; text-align: center; padding: 80px 20px; border-radius: 40px; position: relative; overflow: hidden; }
.cta-box h2 { color: var(--text-light); margin-bottom: 24px; position: relative; z-index: 2; }
.cta-box p.body-lg { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 40px; position: relative; z-index: 2; }
.cta-box .btn-primary { background:#B45309; color: #F5F2EA; position: relative; z-index: 2; }
.cta-box .btn-primary:hover { background: black; color: var(--text-light); }
.cta-disclaimer { margin-top: 24px; font-size: 0.9rem; opacity: 0.6; position: relative; z-index: 2; }
.icon-group { justify-content: center; }

/* --- FOOTER --- */
.footer { padding: 80px 0; text-align: center; border-top: 1px solid rgba(0,0,0,0.05); margin-top: 80px; }
.footer-links { margin-top: 24px; display: flex; justify-content: center; gap: 32px; }
.footer-links a { color: var(--text-muted); font-weight: 600; }
.footer-links a:hover { color: var(--primary); }

/* FAQ & FOOTER */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

.faq-title { 
    margin-bottom: 24px; 
    font-size: 1.4rem; 
    display: flex; align-items: center; gap: 10px; 
    color: var(--primary); 
}

.accordion-item { 
    background: #fff; 
    margin-bottom: 16px; 
    border-radius: 16px; 
    overflow: hidden; 
    border: 1px solid rgba(0,0,0,0.05); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
    transition: 0.3s;
}

.accordion-header { 
    width: 100%; padding: 24px; 
    text-align: left; background: none; border: none; 
    font-weight: 700; cursor: pointer; 
    display: flex; justify-content: space-between; 
    font-family: var(--font-sans); 
    font-size: 1.05rem; color: var(--text-main); 
}

.accordion-content { 
    padding: 0 24px; 
    max-height: 0; 
    overflow: hidden; 
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    color: var(--text-muted); 
}

.accordion-item.active .accordion-content { padding-bottom: 24px; max-height: 200px; }

.footer { 
    background-color: #f5f5f5;
    padding: 80px 0; 
    text-align: center; 
    border-top: 1px solid rgba(0,0,0,0.05); 
    margin-top: 80px; 
}
.footer-links { 
    margin-top: 24px; 
    display: flex; justify-content: center; gap: 32px; 
}
.footer-links a { color: var(--text-muted); font-weight: 600; }
.footer-links a:hover { color: var(--primary); }


/* =========================================
   RESPONSIVO (MOBILE) 
   ========================================= */
/* =========================================
   8. RESPONSIVO (MOBILE) - SOLUÇÃO FINAL BLINDADA
   ========================================= */
@media (max-width: 968px) {
    
    .split-grid, .faq-grid, .hero-grid { grid-template-columns: 1fr; gap: 50px; }
    .split-grid.reverse .image-box { order: 0; }
    .hero-section.full-hero, .hero-section.dev-hero, .hero-section.ong-hero, .hero-section.about-hero, .hero-section.contact-hero { padding: 140px 0 80px; } /* Padding reduzido no mobile */
    .heading-xl { font-size: 2.5rem; }
    .blob-svg { width: 120%; height: 120%; top: -10%; left: -10%; }
    .floating-card { display: none; }
    .impacta-form, .route-card, .creator-card { padding: 24px; }
    .routing-grid { grid-template-columns: 1fr; margin-top: -30px; }
    .creator-card { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .creator-image img { height: 250px; width: 100%; }
    .creator-links { justify-content: center; }
    .nav-menu .btn-primary.small { width: 100%; text-align: center; padding: 16px; font-size: 1rem;}

    /* --- MENU MOBILE OVERLAY (FIXO NA TELA) --- */
    
    .mobile-toggle {
        display: flex;
        position: relative;
        z-index: 2005; 
    }
    
    /* 2. O Container do Menu (Tela Cheia Real) */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto; height: auto; 
        
        /* APARÊNCIA */
        background-color: var(--bg-cream); 
        z-index: 2004; 
        
        /* ALINHAMENTO CENTRAL */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        overflow-y: auto; 

        /* ESTADO INICIAL (Invisível) */
        opacity: 0;
        visibility: hidden;
        pointer-events: none; 
        transition: all 0.3s ease-in-out;
        box-shadow: none;
    }
    
    /* ESTADO ATIVO (Visível) */
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; 
    }
    
    /* 3. Os Links do Menu */
    .nav-links { 
        flex-direction: column; 
        font-size: 1.5rem; 
        gap: 24px;
        margin-bottom: 40px; 
        text-align: center; 
        width: 100%;
    }

    .nav-links a {
        font-family: var(--font-serif);
        color: var(--text-main);
        font-weight: 600;
        display: block;
        padding: 10px;
        font-size: 1.8rem;
    }
    
    /* 4. Animação do Ícone X */
    .mobile-toggle.open .bar { background-color: var(--primary); }
    .mobile-toggle.open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-toggle.open .bar:nth-child(2) { opacity: 0; }
    .mobile-toggle.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

body.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}