/* (Mantenha o início do arquivo igual até a parte da navbar) */
:root {
    --primary-green: #2E7D32;
    --dark-green: #1B5E20;
    --accent-gold: #F9A825;
    --light-bg: #F5F5F5;
    --text-color: #333;
    --white: #ffffff;
    --border-radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { line-height: 1.6; color: var(--text-color); background-color: var(--light-bg); }

/* Navbar Ajustada */
.navbar {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky; top: 0; z-index: 1000;
}
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-green); letter-spacing: 1px; }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: color 0.3s; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-green); }
.menu-btn { display: none; }

/* Hero e Seções */
.hero { height: 80vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; }
.carousel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)); z-index: -1; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.btn-cta { display: inline-block; padding: 12px 30px; background-color: var(--accent-gold); color: var(--dark-green); text-decoration: none; border-radius: 50px; font-weight: bold; transition: all 0.3s; box-shadow: 0 4px 15px rgba(249, 168, 37, 0.4); }
.btn-cta:hover { transform: translateY(-2px); background-color: #ffb300; }

section { padding: 80px 0; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-light { background-color: var(--white); }
.section-dark { background-color: var(--light-bg); }

/* Quem Somos e História */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.about-image img, .history-img img { width: 100%; border-radius: var(--border-radius); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.highlight-text { font-size: 1.3rem; color: var(--primary-green); font-weight: bold; margin-bottom: 15px; border-left: 4px solid var(--accent-gold); padding-left: 15px; }

.history-block { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center; background: #fcfcfc; padding: 30px; border-radius: var(--border-radius); border: 1px solid #eee; }
.history-content h3 { color: var(--dark-green); margin-bottom: 10px; }

/* Missão Visão Valores */
.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 60px; }
.card { background: var(--white); padding: 35px 25px; border-radius: var(--border-radius); text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-bottom: 4px solid var(--primary-green); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.card i { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 20px; }

/* Ferramentas */
.tools-menu { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }
.tool-btn { padding: 12px 25px; border: none; background: #e0e0e0; cursor: pointer; border-radius: 50px; font-weight: 600; color: #555; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.tool-btn.active, .tool-btn:hover { background: var(--primary-green); color: white; box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3); }

.tool-panel { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: 0 5px 20px rgba(0,0,0,0.05); animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Layout Dividido (Formulário + Mural) */
.split-view { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.form-container { background: #fff; padding: 25px; border: 1px solid #eee; border-radius: var(--border-radius); }

/* Inputs e Forms */
form label { display: block; margin-top: 15px; font-size: 0.9rem; font-weight: 600; color: #444; }
form input, form select, form textarea { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
form input:focus, form select:focus { outline: none; border-color: var(--primary-green); background: #fff; }
.form-row { display: flex; gap: 15px; } /* Ajuste para campos lado a lado */

/* Filtros */
.filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filters select, .filters input { padding: 10px 15px; border: 1px solid #ccc; border-radius: 50px; background: white; flex: 1; min-width: 150px; }

.btn-submit { width: 100%; padding: 12px; background-color: var(--primary-green); color: white; border: none; margin-top: 20px; cursor: pointer; border-radius: 4px; font-weight: bold; font-size: 1rem; transition: 0.3s; }
.btn-submit:hover { background-color: var(--dark-green); }

/* Mural Cards (Estilo OLX - Foto na Esquerda)  */
.mural-grid { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }

.ad-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    display: flex; /* Layout Horizontal */
    overflow: hidden;
    height: 140px; /* Altura fixa */
}

.ad-img-container {
    width: 140px;
    height: 100%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-img-container img { width: 100%; height: 100%; object-fit: cover; }
.ad-img-placeholder { color: #aaa; font-size: 2rem; }

.ad-content { padding: 15px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.ad-price { font-size: 1.1rem; font-weight: bold; color: #333; }
.ad-title { font-size: 1rem; color: #666; margin: 2px 0; }
.ad-location { font-size: 0.8rem; color: #999; display: flex; align-items: center; gap: 5px; }
.ad-tag { display: inline-block; font-size: 0.7rem; background: #e0f2f1; color: var(--primary-green); padding: 2px 6px; border-radius: 4px; width: fit-content; }
.btn-card { display: none; } /* Escondido pois a OLX clica no card inteiro, mas mantido lógica JS */

/* Parceiros e Footer */
.partners-grid { display: flex; justify-content: center; gap: 60px; align-items: center; flex-wrap: wrap; }
.partners-grid img { height: 60px; filter: grayscale(100%); opacity: 0.7; transition: 0.4s; }
.partners-grid img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
footer { background-color: #262626; color: #ccc; padding: 50px 0 20px; text-align: center; }

/* --- RESPONSIVIDADE (MENU SANDUÍCHE ATUALIZADO) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
        position: relative;
    }

    /* Botão Sanduíche */
    .menu-btn {
        display: block;
        cursor: pointer;
        font-size: 1.8rem;
        color: var(--primary-green);
    }

    /* Esconde o menu por padrão */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top: 1px solid #eee;
    }

    /* Mostra quando ativo (JS) */
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links li { margin: 15px 0; }

    /* Ajustes Gerais Mobile */
    .about-grid, .split-view, .history-block { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .form-row { flex-direction: column; gap: 0; }
    
    /* Correção da Imagem História no Mobile  */
    .history-img img { height: auto; max-height: 250px; object-fit: cover; }
    
    /* Login no Mobile  */
    .auth-buttons { margin: 10px 0; justify-content: center; width: 100%; }
    .btn-login { width: 80%; display: block; margin: 0 auto; text-align: center; }
    
    /* Card OLX Mobile (Empilha foto e texto) */
    .mural-grid { margin-top: 20px; }
    .ad-card { height: auto; flex-direction: column; }
    .ad-img-container { width: 100%; height: 200px; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}