/* Definição de Variáveis de Cor e Estilos Globais */
:root {
    --primary-black: #1a1a1a;
    --accent-gold: #c8b79b;
    --primary-white: #f5f5f5;
    --dark-gray: #333333;
    --font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-white);
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Cabeçalho e Navegação */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--primary-black);
    color: var(--primary-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 82px;
    /* Altura fixa para consistência */
}

.logo-link {
    flex-shrink: 0;
    /* Impede que o logo encolha */
}

.logo {
    height: 50px;
    width: auto;
    padding-top: 10px;
    padding-left: -20px;
    margin-left: -20px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover,
.whatsapp-link:hover {
    color: var(--accent-gold);
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-link i {
    font-size: 1.2rem;
}

/* Menu Mobile (Hambúrguer) */
.menu-toggle {
    display: none;
    /* Escondido por padrão em desktop */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    /* Garante que fique acima de outros elementos do header */
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-white);
    transition: all 0.3s ease-in-out;
}

/* Estilos Gerais de Seção */
.content-section {
    padding: 4rem 5%;
    text-align: center;
}

.content-section.gray-bg {
    background-color: #f0f0f0;
    margin-bottom: 10px;
}

h1,
h2,
h3 {
    color: var(--primary-black);

}

h2 {
    font-size: 2.5rem;
    font-weight: 700;

}

h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

p {
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Seção Hero */
.hero-section {
    width: 100%;
    /* <-- CORREÇÃO APLICADA AQUI */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)), url('hero-bkg.png') no-repeat center center/cover;
    color: var(--primary-white);
    text-align: center;
    padding: 2rem 5%;
}

.hero-content {
    margin-top: -200px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--accent-gold);
    color: var(--primary-black);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #b3a184;
}

/* Grid de Produtos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 0.9rem;
}

/* Seção Sobre */
.about-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.about-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.about-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* Seção Endereço e Contato */
.map-container {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    color: var(--dark-gray);
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-gold);
}

/* Rodapé */
footer {
    background-color: var(--primary-black);
    color: var(--primary-white);
    text-align: center;
    padding: 2rem 5%;
}

.footer-links a,
.footer-link-email {
    color: var(--primary-white);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-link-email:hover {
    color: var(--accent-gold);
}

footer p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Páginas Legais (Termos/Privacidade) */
.legal-page-content {
    padding: 8rem 10% 4rem 10%;
    /* Adicionado mais padding no topo para não ficar colado no header */
    max-width: 900px;
    margin: 0 auto;
}

.legal-page-content h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.legal-page-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    text-align: left;
    color: var(--accent-gold);
}

.legal-page-content p {
    text-align: justify;
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

/* Banner de Consentimento de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: #f0f0f0;
    max-width: 60%;
}

.cookie-banner a {
    color: var(--accent-gold);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-accept-btn {
    background-color: var(--accent-gold);
    color: var(--primary-black);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-family);
    transition: background-color 0.3s ease;
    white-space: nowrap;
    /* Impede que o texto quebre */
}

.cookie-accept-btn:hover {
    background-color: #b3a184;
}

.hidden {
    display: none;
}

#home {
    scroll-margin-top: 0px;
    /* Deixa uma margem de 100px acima da seção ao rolar */
}


#servicos,
#sobre,
#endereco,
#contato {
    scroll-margin-top: 60px;
    /* Deixa uma margem de 100px acima da seção ao rolar */
}


/* ############################################### */
/* ###      REGRAS DE RESPONSIVIDADE (FIX)     ### */
/* ############################################### */

@media (max-width: 768px) {

    /* Ajustes no Header e Navegação Mobile */
    header {
        padding: 1rem 5%;
    }

    .hero-content {
        margin-top: -280px;
    }

    .logo {
        height: 40px;
        /* Reduz o tamanho do logo */
        padding-top: 10px;
        padding-left: 30px;
    }

    .menu-toggle {
        display: flex;
        /* Mostra o ícone do menu */
        margin-right: -190px;
    }

    nav {
        order: 3;
        /* Move a navegação para o final no fluxo do flexbox */
    }

    nav ul {
        display: none;
        /* Esconde o menu desktop */
        flex-direction: column;
        position: absolute;
        top: 82px;
        /* Altura exata do header */
        left: 0;
        width: 100%;
        background-color: var(--primary-black);
        padding: 1rem 0;
        text-align: center;
        gap: 1.5rem;
    }

    nav.active ul {
        display: flex;
        /* Mostra o menu quando ativo */
    }

    .hero-section {
        width: 100%;
        /* <-- CORREÇÃO APLICADA AQUI */
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 90vh;
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)), url('hero-bkg-mobile.png') no-repeat center center/cover;
        color: var(--primary-white);
        text-align: center;
        padding: 2rem 5%;
    }


    /* Ajustes na Seção Hero */
    .hero-content h1 {
        font-size: 2.2rem;
        /* Reduz o tamanho da fonte */
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Ajustes nos Títulos e Seções */
    h2 {
        font-size: 2rem;
    }

    .content-section {
        padding: 3rem 5%;
    }

    /* Correção do Banner de Cookies */
    .cookie-banner {
        flex-direction: column;
        /* Coloca os itens um sobre o outro */
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .cookie-banner p {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Ajustes Gerais */
    .product-grid {
        grid-template-columns: 1fr;
        /* Uma coluna por linha */
    }

    .legal-page-content {
        padding: 6rem 5% 3rem 5%;
    }

    footer {
        padding-bottom: 90PX;
    }

}