/* Variáveis de Cores Baseadas no Design */
:root {
    --primary-orange: #f38220;
    --primary-green: #0d7a42;
    --dark-blue: #0b2b42;
    --yellow: #ffc107;
    --red: #c1272d;
    --text-dark: #333;
    --text-light: #777;
    --bg-light: #fafafa;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
}


/* --- Cabeçalho --- */
.header {
    display: flex;
    align-items: center;
    padding: 15px 50px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    /* Usamos sticky para fixar no topo e relative como base para o menu */
    position: sticky;
    top: 0;
    z-index: 100;
}

/* --- Botão Menu Hambúrguer (Escondido no PC) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-green);
    cursor: pointer;
}

/* Garante que a logo fique na esquerda seguindo o fluxo normal */
.logo {
    display: flex;
}

.logo img {
    max-height: 100px; /* Mantém o tamanho reduzido que fizemos antes */
    width: auto;
}

/* --- Links de Navegação --- */
.nav-links {
    display: flex;
    gap: 100px;
    align-items: center;

    /* Isso aqui é a mágica para cravar o menu no centro da tela */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.50rem;
    transition: color 0.3s ease;
}

.nav-links a.active {
    color: var(--primary-green);
}

.nav-links a.btn-text {
    color: var(--primary-orange);
}

.nav-links a:hover {
    opacity: 0.7;
}

/* --- Seção de Funcionalidades --- */
.features {
    text-align: center;
    padding: 60px 20px;
}

.features h3 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #222;
}

.brand-title {
    font-size: 7rem;
    color: var(--primary-orange);
    font-weight: 800;
    margin-bottom: 50px;
    font-family: serif; /* Ou importar a fonte específica do logo */
}

/* Timeline com Flexbox */
.timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fca311, #f38220);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(243, 130, 32, 0.4);
}

.timeline-item p {
    color: #888;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-line {
    flex-grow: 1;
    height: 3px;
    background-color: var(--yellow);
    margin: 0 10px;
    transform: translateY(-15px);
    z-index: 1;
}

/* --- Seção About (Verde) --- */
#quem-somos {
    scroll-margin-top: 130px;
}

.about {
    background-color: var(--primary-green);
    position: relative;
    padding: 80px 20px 50px;
    overflow: hidden;
    color: white;
    min-height: 800px;
}

/* Formas Decorativas (Aproximação via CSS) */
.shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}
.shape-yellow {
    width: 400px;
    height: 400px;
    background-color: var(--yellow);
    bottom: -100px;
    left: -150px;
}
.shape-blue {
    width: 250px;
    height: 150px;
    background-color: var(--dark-blue);
    border-radius: 50% 50% 40% 60%;
    bottom: 50px;
    left: 50px;
    transform: rotate(-20deg);
}
.shape-red {
    width: 150px;
    height: 200px;
    background-color: var(--red);
    bottom: 20px;
    right: 100px;
    border-radius: 40% 60% 50% 50%;
    transform: rotate(30deg);
}
.shape-red-small {
    width: 50px;
    height: 50px;
    background-color: var(--red);
    bottom: 40px;
    left: 200px;
}

.about-content {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Bolha Branca do Texto */
.text-bubble {
    background-color: white;
    color: var(--primary-green);
    padding: 50px;
    width: 45%;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 0 0 150px 0; /* Aproximação da forma orgânica */
    position: absolute;
    top: -80px;
    left: -50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mascot-area {
    width: 50%;
    margin-left: auto;
    text-align: right;
}

.mascot-area h2 {
    color: var(--yellow);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.mascot-area img {
    max-width: 100%;
}

.cta-area {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 250px;
}

.cta-area p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--dark-blue);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1rem;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #061826;
}

/* --- Seção de Contato --- */
.contact {
    background-color: var(--bg-light);
    padding: 60px 20px;
    text-align: center;
}

.contact h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.contact > p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 40px;
}

.contact-list li a {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-list li a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* --- Rodapé --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    background-color: white;
}

.newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter label {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group {
    display: flex;
}

.input-group input {
    padding: 10px;
    border: none;
    background-color: #eee;
    outline: none;
    width: 250px;
}

.input-group button {
    background-color: var(--yellow);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    color: white;
    transition: background 0.3s;
}

.input-group button:hover {
    background-color: #e0a800;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--primary-orange);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.socials a:hover {
    transform: translateY(-3px);
}


/* =========================================
   RESPONSIVIDADE (TABLETS E CELULARES)
   ========================================= */

@media (max-width: 1024px) {
    .nav-links {
        gap: 40px;
        font-size: 1.2rem;
    }
    .brand-title {
        font-size: 5rem;
    }
}

/* --- Telas pequenas (Celulares - até 768px) --- */
@media (max-width: 768px) {
    .header {
        justify-content: space-between; /* Separa a logo do botão */
        padding: 15px 30px;
    }

    /* 1. CORREÇÃO: Força o botão hambúrguer a aparecer e ficar por cima */
    .menu-toggle {
        display: block !important;
        position: relative;
        z-index: 999;
    }

    /* Esconde e formata o menu para Mobile */
    .nav-links {
        position: absolute;
        top: 100%; /* Fica logo abaixo do header */
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transform: none; /* Remove a centralização forçada do PC */
        display: none; /* Escondido por padrão */
    }

    /* Classe ativada pelo JavaScript para mostrar o menu */
    .nav-links.show-menu {
        display: flex;
    }

    .nav-links a {
        padding: 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Ajustes das seções para mobile */
    .brand-title { font-size: 4rem; margin-bottom: 30px; }
    .timeline { flex-direction: column; gap: 10px; }
    .timeline-line { width: 3px; height: 40px; margin: 5px 0; }
    .about { padding: 50px 20px; }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    /* 2. CORREÇÃO: Desliga a flutuação da bolha para ela não cobrir o mascote */
    .text-bubble {
        position: relative; /* Volta ao fluxo normal da tela */
        top: 0;
        left: 0;
        width: 100%;
        border-radius: 20px;
        text-align: center;
        margin-bottom: 30px; /* Dá um respiro entre o texto e o mascote */
    }

    .mascot-area {
        width: 100%;
        text-align: center;
    }

    .cta-area { margin-top: 50px; }
    .shape-yellow, .shape-blue, .shape-red, .shape-red-small { display: none; }
    .footer { flex-direction: column; text-align: center; gap: 30px; padding: 30px 20px; }
    .contact-list { flex-direction: column; gap: 10px; align-items: center; }
}