/* assets/css/style.css - VERSÃO DEFINITIVA */

/* --- Importando uma fonte moderna do Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* --- Variáveis de Cor (para facilitar a manutenção) --- */
:root {
    --cor-primaria: #E6461A;
    --cor-secundaria: #726E58;
    --cor-texto: #333333;
    --cor-fundo: #fdfdfd;
    --cor-fundo-escuro: #f4f4f4;
}

/* --- Reset e Estilos Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--cor-secundaria);
    margin-bottom: 1rem;
}

/* ================================================= */
/* ===         HEADER E NAVEGAÇÃO MODERNOS       === */
/* ================================================= */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e9e9e9;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    max-height: 55px;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav ul li {
    margin-left: 0;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--cor-secundaria);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
}

.main-nav ul li a:not(.btn):hover {
    color: var(--cor-primaria);
    background-color: #f9f9f9;
}

.main-nav .btn-nav {
    background-color: var(--cor-primaria);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.main-nav .btn-nav:hover {
    background-color: #d13e13;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    background-color: var(--cor-primaria);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #d13e13;
}

.main-footer {
    background-color: var(--cor-secundaria);
    color: #e0e0e0;
    padding: 3rem 0 0 0;
    margin-top: 4rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-column p,
.footer-column address {
    line-height: 1.8;
    font-style: normal;
}

.footer-column a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--cor-primaria);
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.8rem;
}

/* ================================================= */
/* ===         REGRAS DE RESPONSIVIDADE          === */
/* ================================================= */

@media (max-width: 900px) {

    .container { padding: 0 15px; }

    /* --- INÍCIO DA VERSÃO FINAL DO MENU HAMBÚRGUER --- */
    .hamburger-menu {
        display: block;
        position: relative; /* O botão é a referência para as barras */
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-menu .bar {
        position: absolute; /* As barras são posicionadas RELATIVO ao botão */
        height: 3px;
        width: 100%;
        background: var(--cor-secundaria);
        border-radius: 10px;
        left: 0;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-menu .bar:nth-child(1) { top: 0px; }
    .hamburger-menu .bar:nth-child(2) { top: 11px; }
    .hamburger-menu .bar:nth-child(3) { top: 22px; }

    .hamburger-menu.is-active .bar:nth-child(1) {
        top: 11px; /* Move para o centro */
        transform: rotate(45deg);
    }
    .hamburger-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active .bar:nth-child(3) {
        top: 11px; /* Move para o centro */
        transform: rotate(-45deg);
    }
    /* --- FIM DA VERSÃO FINAL --- */


    .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: #2c3e50;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto; /* Adiciona scroll se o conteúdo passar da altura */
    padding-bottom: 80px; /* Garante um espaço no final da lista */
}

    .main-nav.nav-active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        padding: 18px 25px;
        display: block;
        color: #fff;
        border-bottom: 1px solid #34495e;
        border-radius: 0;
        text-align: left;
    }
    
    .main-nav ul li a:hover {
        background-color: #34495e;
    }

    .main-nav .btn-nav {
        margin: 20px auto;
        display: block;
        width: calc(100% - 50px);
        text-align: center;
    }
     .main-nav .btn-nav:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Esconde o botão hambúrguer em telas grandes */
@media (min-width: 901px) {
    .hamburger-menu {
        display: none;
    }
}

/* === ESTILOS PARA O BANNER DE COOKIES === */
.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition: bottom 0.5s ease-in-out;
}

.cookie-consent-banner.show {
    bottom: 0;
}

.cookie-text {
    text-align: center;
}

.cookie-text a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-accept-btn {
    background-color: var(--cor-primaria);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cookie-consent-banner {
        flex-direction: column;
    }
}