/* Variáveis para cores */
:root {
    --primary-color: #ffcc00;
    --secondary-color: #333;
    --background-color: #f9f9f9;
    --light-gray: #d0d0d0;
    --white: #fff;
    --box-shadow: rgba(0, 0, 0, 0.2);
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espaça o logo e o botão de menu */
    flex-wrap: nowrap; /* Impede a quebra dos itens para novas linhas */
}

header .navbar-brand {
    margin-right: auto; /* Garante que o logotipo fique alinhado à esquerda */
    flex: 0 0 auto; /* Mantém o tamanho natural do logotipo */
}

header .navbar-toggler {
    margin-left: auto; /* Garante que o botão de menu fique à direita */
}

header .logo {
    height: 100px;
    max-width: 100%;
    display: block;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 00px;
    align-items: center;
}

header nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--white);
}

/* Hero Section */
.hero {
    background-image: url('../img/banner1.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 20px; /* Use valores flexíveis */
    height: 550px;
    display: flex;
    flex-direction: column; /* Garante que o conteúdo seja alinhado verticalmente */
    justify-content: center; /* Centraliza verticalmente */
    align-items: center; /* Centraliza horizontalmente */
}

.hero-text h1 {
    font-size: 3em;
    margin-bottom: 10px;
    margin-left: 300px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adiciona contraste ao texto */
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
    margin-left: 300px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 300px;
}

.hero .btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Responsividade para a Hero Section */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.8em; /* Reduz o tamanho do texto */
        margin-left: 50px;
    }

    .hero-text p {
        font-size: 1em; /* Ajusta o tamanho do parágrafo */
        margin-left: 50px;
    }

    .hero-text {
        padding: 60px 20px; /* Reduz o padding geral */
        margin-left: 50px;
    }

    .hero .btn {
        margin-left: 50px;
    }
    
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7em; /* Reduz mais o título */
        margin-bottom: 30px;
        margin-left: -55px;
        margin-top: 150px;
    }

    .hero p {
        font-size: 1em;
        margin-left: -55px;
    }

    .hero .btn {
        margin-left: -55px;
    }

    .hero {
        background-image: url('../img/background_480.jpg');
        background-size: cover;
        background-position: center;
        padding: 10px 10px; /* Ajusta o padding para telas muito pequenas */
        margin-left: 0px;
    }


}

/* Section Padding */
section {
    padding: 60px 20px;
}

/* Sobre Section */
.sobre h2, .cardapio h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sobre img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sobre p {
    text-align: center;
    margin-top: 20px;
}

/* Cardápio Section */

.cardapio {
    background: url('../img/fundo_varias.png') repeat; /* Caminho relativo para a imagem de fundo */
    background-size: auto; /* Mantém o tamanho original da imagem para repetição */
    background-position: top left; /* Começa a repetição do canto superior esquerdo */
    padding: 40px 0; /* Adiciona espaçamento interno para separar o conteúdo do fundo */
}

.cardapio .menu-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cardapio .item {
    background-color: var(--white);
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    flex: 1 1 calc(33.333% - 20px);
    box-shadow: 0 2px 4px var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cardapio .item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px var(--box-shadow);
}

.cardapio .item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.cardapio .item h3 {
    margin-bottom: 10px;
}

/* Contato Section */
.contato h2, .contato h5, .contato h6 {
    text-align: center;
}

.whatsapp {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    background-color: var(--primary-color);
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: 2px 2px 5px var(--box-shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.whatsapp-button:hover {
    background-color: var(--light-gray);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Responsividade */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }


    .cardapio .menu-items {
        flex-direction: column;
    }

    .cardapio .item {
        flex: 1 1 100%;
    }
    
}

@media (max-width: 480px) {
    header .logo {
        height: 60px;
    }
}

/* Pop-up Styles */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Ocupa 90% da largura da tela */
    max-width: 600px; /* Tamanho máximo */
    height: 80%; /* Ocupa 80% da altura da tela */
    background-color: rgb(0, 0, 0);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: none; /* Escondido por padrão */
    overflow: auto; /* Para permitir rolagem se o conteúdo exceder */
    z-index: 1000;
}

.popup-close button {
    position: absolute;
    top: -5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.popup iframe {
    width: 100%;
    height: calc(100% - 40px); /* Desconta o espaço do botão de fechar */
    border: none;
}

.popup-close {
    text-align: right;
    padding: 10px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Escondido por padrão */
    z-index: 999;
}

.custom-container h5 {
    text-align: center;
    font-size: 1.1em;
}

.custom-container h6 {
    text-align: center;
    font-size: 0.8em;
}




.responsive-iframe {
    position: relative;
    width: 100%;
    height: 300px; /* Altura fixa para telas maiores */
}

@media (max-width: 768px) { /* Ajuste responsivo para telas menores */
    .responsive-iframe {
        height: 0;
        padding-bottom: 56.25%; /* Proporção de 16:9 */
    }
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}