/* =========================================
   1. CORE: VARIÁVEIS & RESET (Identidade Visual)
   ========================================= */
: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);
}

* { 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;
}

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); }

/* Utilitários */
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section-padding { padding: 120px 0; position: relative; }
.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; }

/* Tag */
.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;
}

/* =========================================
   2. NAVBAR & MENU
   ========================================= */
.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; 
}
/* Botões */
.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-primary.small { padding: 10px 24px; font-size: 0.9rem; box-shadow: none; }


/* =========================================
   3. HERO ESPECÍFICO (CONTATO)
   ========================================= */
.hero-section.contact-hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&q=80&w=2000'); 
    background-size: cover;
    background-position: 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;
}


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

/* =========================================
   4. CARDS DE TRIAGEM (ROUTING)
   ========================================= */
.routing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: -80px; /* Sobe um pouco sobre o hero (efeito legal) */
    position: relative;
    z-index: 10;
}

.route-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.route-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(217, 119, 6, 0.15);
    border-color: var(--primary);
}

.icon-wrap { font-size: 2.5rem; margin-bottom: 24px; }
.route-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.route-card p { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.link-text { font-weight: 700; color: var(--primary); font-size: 0.9rem; margin-top: auto; }



/* =========================================
   5. FORMULÁRIO GERAL
   ========================================= */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.contact-info { margin-top: 40px; }
.info-item { margin-bottom: 24px; }
.info-item strong { display: block; font-size: 1.1rem; margin-bottom: 8px; font-family: var(--font-serif); }
.info-item p { color: var(--text-muted); }
.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* Form Style */
.impacta-form {
    background: #fff; padding: 40px; border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 16px; border: 2px solid #E5E7EB; border-radius: 12px;
    font-family: var(--font-sans); font-size: 1rem; transition: 0.3s; background: #FDFCF8;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); background: #fff;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.1);
}

/* =========================================
   6. 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); }

/* =========================================
   7. RESPONSIVO
   ========================================= */
@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%;
}