/* css/style.css */

/* 1. Configurações Globais e Variáveis */
:root {
    --primary-color: #3D3522; /* Marrom Escuro (Texto) */
    --secondary-color: #8B7E66; /* Marrom Médio (Acentos) */
    --background-color: #F1EBE5; /* Bege Claro (Fundo) */
    --accent-color: #A6957B; /* Marrom Claro (Botões) */
    --light-color: #FFFFFF;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
}

/* 2. Estilos Gerais */
h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 600;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

section {
    padding: 4rem 2rem;
}

img {
    max-width: 100%;
    display: block;
}

/* 3. Cabeçalho (Header) - Mobile First */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--background-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(241, 235, 229, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    cursor: pointer;
}

/* Esconde a navegação principal no mobile */
.navbar {
    display: none; 
    /* Será ativada via JS */
}

.nav-list {
    list-style: none;
}

/* Menu Mobile Ativo */
.navbar.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.navbar.active .nav-list li {
    margin: 1rem 0;
}
.navbar.active .nav-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
}

/* 4. Seção Hero */
.hero {
    background: url('https://images.unsplash.com/photo-1512436991641-6745cdb1723f?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1200') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    color: var(--light-color);
}

.hero-text {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 5px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 5. Botões */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* 6. Seção de Valores */
.values {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.value-item i {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    width: 32px;
    height: 32px;
}

/* 7. Produtos em Destaque */
.featured-products {
    background-color: var(--light-color);
}
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.product-card {
    text-align: center;
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}
.product-card h3 {
    font-family: var(--font-primary);
    font-weight: 500;
}
.product-card p {
    color: var(--secondary-color);
    margin: 0.5rem 0 1rem;
}

/* 8. Seção Story */
.story {
    background-color: var(--secondary-color);
    color: var(--light-color);
    text-align: center;
}
.story h2 {
    color: var(--light-color);
}
.story-content {
    max-width: 800px;
    margin: 0 auto;
}
.story p {
    margin-bottom: 2rem;
}
.story .btn-primary {
    background-color: var(--light-color);
    color: var(--primary-color);
}
.story .btn-primary:hover {
    background-color: var(--background-color);
}

/* 9. Rodapé */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--background-color);
}
.footer h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.social-icons {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.social-icons i {
    cursor: pointer;
}
.copyright {
    font-size: 0.8rem;
    color: var(--secondary-color);
}


/* 10. Media Queries (Responsividade para Telas Maiores) */
@media (min-width: 768px) {
    section {
        padding: 5rem 4rem;
    }

    /* Esconde o hamburger e mostra a navegação normal */
    .menu-hamburger {
        display: none;
    }
    .navbar {
        display: block;
    }
    .nav-list {
        display: flex;
        gap: 2rem;
    }
    .nav-list a {
        text-decoration: none;
        color: var(--primary-color);
        font-weight: 500;
        position: relative;
    }
    .nav-list a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }
    .nav-list a:hover::after {
        width: 100%;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .values {
        flex-direction: row;
        justify-content: space-around;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
