/* =========================================
   1. CONFIGURAÇÕES GLOBAIS E RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    overflow-x: hidden;
    height: auto;
    width: 100%;
    /* Classe auxiliar para animações de carregamento */
    opacity: 0; 
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Estilo específico para página de Delivery (Tela cheia) */
body.delivery-body {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

body.delivery-body iframe {
    flex: 1;
    width: 100%;
    border: none;
}

/* =========================================
   2. HEADER E NAVEGAÇÃO
   ========================================= */
.header {
    width: 100%;
    height: 80px;
    background-color: #223f6b;
    top: 0;
    z-index: 100;
    position: sticky;
    transition: transform 260ms cubic-bezier(.2,.7,.2,1);
    will-change: transform;
}

.header--hidden {
    transform: translateY(-110%);
}

.inner-header {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

#logo {
    height: 60px;
    width: auto;
    margin: 0 20px;
}

.navigation {
    list-style: none;
    display: flex;
    gap: clamp(15px, 3vw, 30px);
    flex-wrap: wrap;
    justify-content: center;
}

.navigation a {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.5s ease;
    white-space: nowrap;
}

.navigation a:hover {
    color: #ff9807;
}

/* Menu Mobile (Padrão escondido no desktop) */
.navigation.mobile {
    display: none;
}

.menu-toggle {
    display: none; /* Apenas visível em telas menores */
    font-size: 32px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

/* =========================================
   3. SEÇÃO HERO (INÍCIO)
   ========================================= */
.hero-image {
    background-image:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url('imagens/interior.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: clamp(20px, 5vw, 40px);
}

.hero-image h1 {
    font-size: clamp(32px, 8vw, 60px);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: clamp(15px, 3vw, 20px);
    line-height: 1.2;
}

.hero-image h2 {
    font-size: clamp(14px, 3vw, 24px);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    max-width: 90%;
    line-height: 1.5;
}

/* =========================================
   4. GRID DE FOTOS E COMIDAS
   ========================================= */
.comidas {
    padding: 30px;
    background-color: #f7f7f7;
}

.fotos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: clamp(15px, 3vw, 30px);
    align-items: stretch;
}

.foto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.foto img {
    width: 90%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.foto img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.foto span {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 600;
    color: #183868;
    text-align: center;
}

/* Botões Gerais (Usado no cardápio e contato) */
.botao-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: clamp(30px, 5vw, 50px) 0 0 0;
    width: 100%;
}

.botao-geral {
    background-color: #183868;
    color: white;
    padding: clamp(15px, 2vw, 21px) clamp(20px, 4vw, 30px);
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.5s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.botao-geral:hover {
    background-color: #204783;
    color: #ff9807;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.botao-geral:active {
    transform: translateY(0);
}

/* =========================================
   5. AVALIAÇÕES (REVIEWS)
   ========================================= */
.reviews {
    padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 50px);
    background-color: #183868;
}

.reviews-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: #f7f7f7;
    margin-bottom: clamp(40px, 7vw, 60px);
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(20px, 3vw, 30px);
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: #f7f7f7;
    padding: clamp(25px, 4vw, 35px);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 2vw, 20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #ff9807;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stars {
    display: flex;
    gap: 5px;
}

.stars i {
    color: #ff9807;
    font-size: clamp(16px, 2vw, 20px);
}

.review-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.review-author {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(14px, 2vw, 16px);
    color: #183868;
    font-weight: 600;
}

/* =========================================
   6. PAREDE DE DESENHOS
   ========================================= */
.parede-desenho {
    width: 100%;
    padding: clamp(40px, 6vw, 80px) 20px;
}

.parede-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 60px);
    padding: 20px;
}

.parede-text {
    color: #183868;
    text-align: left;
    width: 50%;
}

.parede-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
}

.parede-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 2.2vw, 18px);
    font-weight: 400;
    color: #555;
    line-height: 1.6;
}

.parede-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.parede-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border: 6px solid rgba(255, 152, 7, 0.06);
}

/* =========================================
   7. INFO CONTAINER (LOCALIZAÇÃO)
   ========================================= */
.info-container {
    background-image: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url('imagens/bar.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(30px, 8vw, 100px);
    padding: clamp(30px, 6vw, 80px) clamp(15px, 4vw, 40px);
    flex-wrap: wrap;
}

.texto-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 50px;
    padding: 100px 40px;
    border-radius: 20px;
}

.texto-info i {
    color: #ff9807;
}

.endereco, .horario {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 300;
    margin: 20px 0;
    width: 100%;
    text-align: left;
    line-height: 1.6;
}

.endereco {
    margin-bottom: clamp(30px, 5vw, 100px);
}

.streetview iframe {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 10px;
    border: none;
}

/* =========================================
   8. PÁGINA CARDÁPIO
   ========================================= */
.cardapio-container {
    max-width: 1200px;
    margin: 8px auto;
    padding: 12px 20px 0 20px; /* Mais colado no topo */
}

.cardapio-inner {
    display: flex;
    gap: clamp(20px, 4vw, 40px);
    align-items: flex-start;
    justify-content: center;
} 

/* Sidebar de categorias */
.nav-categories {
    width: 220px;
    min-width: 160px;
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    position: sticky;
    top: 90px; /* Abaixo do header, um pouco mais colado */
    height: fit-content;
    align-self: start;
} 

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

.nav-categories nav a {
    display: block;
    padding: 10px 12px;
    color: #183868;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.nav-categories nav a:hover {
    background: rgba(255, 152, 7, 0.486);
    transform: translateX(4px);
}

.cardapio-content {
    flex: 1;
}

.cardapio-header {
    margin: 6px auto 12px auto;
    text-align: center;
    max-width: 1100px;
} 

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(26px, 4vw, 36px);
    color: #183868;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.page-alert {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #555;
    margin: 0 0 12px 0;
}

.cardapio-section {
    scroll-margin-top: 110px;
    margin-bottom: 36px;
}

.categoria-titulo {
    font-family: 'Poppins', sans-serif;
    color: #183868;
    border-left: #ffa735 8px solid;
    padding-left: 0;
    margin: 24px 0 16px 0;
    font-size: 26px;
    text-transform: uppercase;
    font-weight: 700;
    background: linear-gradient(90deg, #fff7e6, #fff0cc);
    padding: 10px 16px;
    border-radius: 8px;
    text-align: center;
    display: inline-block;
}

.grid-cardapio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    justify-items: stretch; /* garante largura total da coluna */
    align-items: stretch;   /* garante altura igual dentro da linha */
    grid-auto-rows: 1fr;    /* filas com altura uniforme */
} 

.item-cardapio .item-info {
    text-align: center;
}

.grid-cardapio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    justify-items: stretch; /* garante largura total da coluna */
    align-items: stretch;   /* garante altura igual dentro da linha */
    grid-auto-rows: 1fr;    /* filas com altura uniforme */
} 

.item-cardapio {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%; /* preenche a célula do grid para igualar alturas */
}

.item-cardapio:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #ff9807;
}

.item-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #1d2633;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.item-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.preco-box {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.preco {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #183868;
    font-size: 18px;
}

.tag {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

.tag-veg { background-color: #d4edda; color: #155724; }
.tag-hot { background-color: #f8d7da; color: #721c24; }

/* =========================================
   9. PÁGINA CONTATO
   ========================================= */
.contato-wrapper {
    max-width: 900px;
    margin: 40px auto 40px auto; /* Margin top compensa header */
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.page-title {
    width: 100%;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #183868;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
}

.page-subtitle {
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #555;
    font-size: 16px;
}

.info-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.info-card {
    background: #183868;
    color: white;
    padding: 30px;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    color: #ff9807;
    font-size: 20px;
    margin-top: 4px;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.9;
}

.map-container {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
    width: 100%;
    background-color: #1d2633;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: clamp(30px, 5vw, 50px) 20px;
}

.footer h4 {
    color: white;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    font-weight: 300;
    font-size: clamp(16px, 2.5vw, 20px);
}

.copyright h6 {
    color: white;
    font-family: 'Montserrat', sans-serif;
    margin-top: 30px;
    font-weight: 300;
    font-size: clamp(12px, 2vw, 14px);
    text-align: center;
}

.social-media {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 3vw, 20px);
    flex-wrap: wrap;
}

.footer a {
    width: clamp(40px, 8vw, 45px);
    height: clamp(40px, 8vw, 45px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(18px, 3vw, 20px);
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.footer a:hover { transform: scale(1.1); }
#instagram { background: linear-gradient(#7f37c9, #ff2992, #ff9807); }
#facebook { background-color: #3b5998; }
#tiktok { background: linear-gradient(135deg, #25f4ed83, #000000, #ff00518c); }

/* =========================================
   11. BOTÕES FLUTUANTES (WHATSAPP/ORDER)
   ========================================= */
#whatsapp-link, #order-link {
    position: fixed;
    right: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(6px);
    width: 64px;
    height: 64px;
}

#whatsapp-link {
    bottom: 20px;
    z-index: 300;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(18, 140, 126, 0.25);
}

#order-link {
    bottom: 96px; /* Acima do WhatsApp */
    z-index: 301;
    background: linear-gradient(135deg, #ff9807, #ff6a00);
    color: white;
    font-size: 26px;
    box-shadow: 0 8px 20px rgba(255, 128, 0, 0.22);
}

#whatsapp-link:hover, #order-link:hover {
    transform: translateY(-4px) scale(1.03);
}

/* Tooltips dos botões */
.whatsapp-label, .order-label {
    position: absolute;
    top: 50%;
    right: calc(100% + 16px);
    transform: translateY(-50%) translateX(6px);
    background: rgba(0,0,0,0.78);
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none; /* Não atrapalhar clique */
}

#whatsapp-link:hover .whatsapp-label,
#order-link:hover .order-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* =========================================
   12. MEDIA QUERIES (RESPONSIVIDADE)
   ========================================= */

/* Tablet & Desktop Menor (max 1024px) */
@media (max-width: 1024px) {
    .info-container {
        flex-direction: column;
        gap: 30px;
    }
    .streetview, .streetview iframe {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile Nav Style (max 900px para o menu do cardápio) */
@media (max-width: 900px) {
    .cardapio-inner { flex-direction: column; }
    .nav-categories {
        width: 100%;
        display: flex;
        padding: 8px;
        overflow-x: auto;
        top: 80px; /* Ajuste sticky mobile */
    }
    .nav-categories nav ul { display: flex; gap: 8px; }
    .nav-categories nav a { white-space: nowrap; margin-bottom: 0; }
}

/* Mobile Principal (max 768px) */
@media (max-width: 768px) {
    /* Header & Nav */
    .header { height: 70px; }
    #logo { height: 50px; margin: 0 auto; }
    
    .inner-header { justify-content: space-between; padding: 0 15px; }
    .menu-toggle { display: flex; position: absolute; left: 15px; z-index: 101; }
    #nav-left, #nav-right { display: none; }

    .navigation.mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #183868;
        position: fixed;
        top: 70px;
        left: 0;
        padding: 15px 20px;
        gap: 0;
        opacity: 0;
        transform: translateY(-100%);
        pointer-events: none;
        transition: 0.3s;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .navigation.mobile.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navigation.mobile li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .navigation.mobile a { display: block; padding: 15px 0; font-size: 16px; }

    /* Home Layouts */
    .hero-image { min-height: auto; padding: 40px 15px; background-attachment: local;}
    .hero-image h1 { font-size: 28px; }
    .comidas { padding: 30px 15px; }
    
    .fotos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .info-container { padding: 30px 15px; }
    .texto-info { width: 100%; text-align: center; margin-left: 0; padding: 30px 20px; }
    .endereco, .horario { text-align: center; margin-bottom: 20px; }

    .parede-inner { flex-direction: column; text-align: center; }
    .parede-text, .parede-image { width: 100%; }
    
    /* Cardápio */
    .grid-cardapio { grid-template-columns: 1fr; }
    .categoria-titulo { font-size: 22px; }

    /* Contato */
    .contato-wrapper { flex-direction: column; }
}

/* Mobile Pequeno (max 480px) */
@media (max-width: 480px) {
    .header { height: 70px; }
    #logo { height: 45px; }
    .menu-toggle { font-size: 28px; }
    .hero-image h1 { font-size: 24px; }
    
    /* Botões Flutuantes Menores */
    #whatsapp-link, #order-link { width: 56px; height: 56px; right: 16px; }
    #whatsapp-link { font-size: 24px; bottom: 16px; }
    #order-link { font-size: 22px; bottom: 88px; }
    .whatsapp-label, .order-label { display: none; }
    
    .footer { padding: 20px 15px; }
}