/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}


/* =========================
   LINKS
========================= */

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* =========================
   HEADER
========================= */

header {
    background-color: #111;
    color: white;
    padding: 20px 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul a {
    transition: 0.3s;
}

nav ul a:hover {
    color: #e63946;
}


/* =========================
   HERO
========================= */

#inicio {
    min-height: 80vh;

    display: flex;
    align-items: center;

    padding: 60px 5%;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.6)
        ),
        url('../img/photo_hamburguer.jpg');

    background-size: cover;
    background-position: center;

    color: white;
}

#inicio div {
    max-width: 600px;
}

#inicio span {
    font-size: 1rem;
    font-weight: bold;
}

#inicio h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 15px 0;
}

#inicio p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

#inicio a {
    display: inline-block;

    background-color: #e63946;
    color: white;

    padding: 12px 25px;

    border-radius: 5px;

    transition: 0.3s;
}

#inicio a:hover {
    background-color: #c1121f;
}


/* =========================
   CARDÁPIO
========================= */

#cardapio {
    padding: 80px 5%;
    background-color: #f5f5f5;
    text-align: center;
}

#cardapio h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#cardapio > p {
    margin-bottom: 25px;
    color: #666;
}


/* =========================
   BOTÕES DE CATEGORIA
========================= */

#cardapio > div:first-of-type {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;

    margin-bottom: 40px;
}

#cardapio button.active {
    background-color: #e63946;
}

#cardapio button {
    border: none;
    background-color: #111;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

#cardapio button:hover {
    background-color: #e63946;
}


/* =========================
   PRODUTOS
========================= */

#produtos {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

#produtos article {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

#produtos article:hover {
    transform: translateY(-5px);
}

#produtos h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

#produtos p {
    color: #666;
    margin-bottom: 15px;
}

#produtos strong {
    font-size: 1.2rem;
    color: #e63946;
}


/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    #inicio h1 {
        font-size: 2.5rem;
    }

    #produtos {
        grid-template-columns: 1fr;
    }

}


/* =========================
   CARRINHO
========================= */

#carrinho {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 30px;

    background-color: white;

    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    text-align: center;
}

#carrinho h2 {
    margin-bottom: 25px;
}

#itens-carrinho > div {
    padding: 20px 0;

    border-bottom: 1px solid #ddd;
}

#itens-carrinho p {
    margin-bottom: 8px;
}

#itens-carrinho button {
    width: 30px;
    height: 30px;

    border: none;

    background-color: #111;
    color: white;

    border-radius: 5px;

    cursor: pointer;
}

#itens-carrinho button:hover {
    background-color: #e63946;
}

#itens-carrinho span {
    margin: 0 12px;
    font-weight: bold;
}

#total-carrinho {
    font-weight: bold;
    font-size: 1.3rem;
}