:root {
    --verde-principal: #388E3C;
    --bege-fundo: #F5F5DC;
    --marrom-destaque: #A1887F;
    --texto-principal: #374151;
    --texto-secundario: #6B7280;
    --fundo-cartao: #FFFFFF;
    --borda: #E5E7EB;
}

body {
    font-family: 'PT Sans', sans-serif;
    background-color: var(--bege-fundo);
    color: var(--texto-principal);
    margin: 0;
    padding-top: 80px; /* Space for fixed header */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--fundo-cartao);
    border-bottom: 1px solid var(--borda);
    padding: 1rem 2rem;
    box-sizing: border-box;
    z-index: 1000;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--verde-principal);
    text-decoration: none;
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--texto-principal);
    font-weight: 700;
}

nav a:hover, nav a.active {
    color: var(--verde-principal);
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background-color: var(--fundo-cartao);
    border-top: 1px solid var(--borda);
    padding: 2rem;
    text-align: center;
    color: var(--texto-secundario);
}

footer a {
    color: var(--texto-principal);
    margin: 0 0.5rem;
}

/* --- Utility & Components --- */
.btn {
    display: inline-block;
    background-color: var(--marrom-destaque);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.card {
    background-color: var(--fundo-cartao);
    border: 1px solid var(--borda);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--verde-principal);
}

/* --- Page Specific --- */

/* Index - Hero */
.hero {
    height: calc(100vh - 80px);
    background-image: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?q=80&w=1950');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    margin-bottom: 2rem;
}

/* Index - Services */
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Quem Somos */
.quem-somos-content img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Historia - Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--verde-principal);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px; /* CORREÇÃO: Estava "-4x", corrigido para "-2px" para centralizar a linha de 4px. */
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box; /* Adicionado para garantir que o padding não afete a largura total. */
}

/* 
   COMO MOVER AS CAIXAS:
   A regra abaixo posiciona as caixas ÍMPARES (1ª, 3ª, 5ª...) no lado esquerdo da linha do tempo.
   O `left: 0;` alinha o início da caixa com o início da área da timeline.
*/
.timeline-item:nth-child(odd) {
    left: 0;
}

/* 
   COMO MOVER AS CAIXAS:
   A regra abaixo posiciona as caixas PARES (2ª, 4ª, 6ª...) no lado direito da linha do tempo.
   O `left: 50%;` move o início da caixa para o centro, começando exatamente onde a linha verde está.
   O `padding-left: 40px;` dentro de `.timeline-item` garante que o texto não comece em cima da linha.
*/
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Contato - Form */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--borda);
    border-radius: 0.5rem;
    box-sizing: border-box;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .grid-cols-3, .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    nav {
        margin-top: 1rem;
    }
    nav a {
        margin: 0 0.5rem;
    }
    body {
        padding-top: 140px; /* Adjust for taller header */
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
}
