/* --- Configurações Globais e Variáveis --- */
:root {
    --primary-color: #E63946;
    /* Um vermelho vibrante, bom para comida */
    --secondary-color: #F1FAEE;
    /* Um fundo quase branco */
    --dark-color: #1D3557;
    /* Azul escuro para textos e header */
    --light-color: #A8DADC;
    /* Um detalhe em azul claro */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
    /* Para rolagem suave nos links âncora */
}

body {
    background-color: var(--secondary-color);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

section {
    padding: 4rem 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Cabeçalho e Navegação --- */
.navbar {
    background-color: #fff;
    color: var(--dark-color);
    padding: 1rem 0;
    position: fixed;
    /* Fica fixo no topo */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* --- Seção Hero (Principal) --- */
.hero {
    /* Gradiente para escurecer a imagem e melhorar a legibilidade do texto */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/banner.png') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 60px;
    /* Desconto para o navbar fixo */
}

.hero-content h1 {
    font-size: 3rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c22b37;
    /* Tom mais escuro do primário */
}

/* --- Seção Cardápio --- */
.menu-section {
    text-align: center;
}

.menu-grid {
    display: grid;
    /* Cria 3 colunas em desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.menu-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Garante que a imagem não vaze */
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    /* Efeito de flutuar */
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Garante que a imagem cubra o espaço */
}

.menu-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 1rem;
}

.menu-item p {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.menu-item .price {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 1rem 0;
}

/* --- Seções Sobre e Contato --- */
.about-section,
.contact-section {
    background-color: #fff;
    text-align: center;
}

.contact-section ul {
    list-style: none;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* --- Rodapé --- */
footer {
    background-color: var(--dark-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem 0;
}

/* --- Menu Mobile (Hamburger) --- */
.menu-toggle {
    display: none;
    /* Escondido em desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}


/* --- RESPONSIVIDADE (Media Queries) --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Esconde o menu desktop */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        /* Altura do navbar */
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    }

    /* Classe .active que será adicionada via JS */
    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link:hover {
        border-bottom: 1px solid #f0f0f0;
        /* Remove hover do desktop */
        background-color: #f9f9f9;
    }

    .menu-toggle {
        display: flex;
        /* Mostra o hamburger no mobile */
    }

    /* Animação do Hamburger para "X" */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }


    .hero-content h1 {
        font-size: 2.2rem;
    }

    .menu-grid {
        /* Muda para 1 coluna no mobile */
        grid-template-columns: 1fr;
    }
}