/* --- FUNDAÇÃO DO PROJETO MON AMOUR --- */
:root {
    /* Cores Oficiais */
    --bg-color: #1a1512;
    --paper-color: #211111;
    --primary: #EA2831; /* O Vermelho Mon Amour que aprovei */
    --gold-primary: #EA2831; /* Mantive esse nome para não quebrar o que já existe */
    --text-white: #f0f0f0;
    --text-desc: #b0b0b0;
    
    /* Fontes */
    --font-main: 'Epilogue', sans-serif;
    --font-fancy: 'Playfair Display', serif;
}

/* Reset básico para garantir que nada saia do lugar */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-fancy);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Container interno para manter espaçamento consistente sem criar margem externa */
.layout-container {
    width: 100%;
    padding: 0; /* removido padding lateral para permitir footer ocupar toda a largura */
}

/* --- CONTAINER DO MENU (A FOLHA) --- */
.menu-paper {
    width: 100%;
    max-width: 800px;
    border: 2px solid var(--gold-primary);
    padding: 40px;
    position: relative;
    /* Fundo escuro com leve textura */
    background: 
        linear-gradient(rgba(20, 20, 20, 0.9), rgba(20, 20, 20, 0.9)),
        url('https://www.transparenttextures.com/patterns/dark-matter.png');
    box-shadow: 0 0 30px rgba(0,0,0,0.8), inset 0 0 80px rgba(0,0,0,0.5);
}

/* Cantos decorativos (simulação com pseudo-elemento) */
.menu-paper::before {
    content: "";
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px solid var(--gold-dim);
    pointer-events: none;
}

/* --- CABEÇALHO --- */
header { text-align: center; margin-bottom: 6px; padding: 0 0 6px 0; position: relative; top: -6px; }

.logo-icon { color: var(--gold-primary); font-size: 1.5rem; margin-right: 10px; }

h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.subtitle {
    display: block;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* --- TÍTULOS DAS SEÇÕES --- */
.section-title {
    text-align: center;
    color: var(--gold-primary);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 30px 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-style: italic;
}

.section-title::before, .section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
    margin: 0 15px;
    max-width: 100px;
}

/* --- LISTA DE ITENS --- */
.menu-list { list-style: none; }

.menu-item { margin-bottom: 18px; }

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

.item-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

/* Os pontinhos entre nome e preço */
.dots {
    flex-grow: 1;
    border-bottom: 1px dotted var(--gold-dim);
    margin: 0 10px;
    opacity: 0.5;
    position: relative;
    top: -5px;
}

.item-price {
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-desc);
    font-style: italic;
    margin-top: 2px;
    line-height: 1.4;
}

/* Botão de voltar para o site principal */
.back-btn{
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-dim);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.back-btn:hover{
    background: rgba(212,175,55,0.06);
}

/* cartões clicáveis na página inicial que levam ao Nosso Cardápio */
/* --- RESPONSIVIDADE --- */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
}

/* --- ESTILIZAÇÃO DO RODAPÉ ADAPTADO --- */

.site-footer {
    background-color: #0d0d0d;
    margin-top: 40px;
    border-top: 1px solid var(--gold-dim);
    font-family: 'Playfair Display', serif; /* Mantendo sua fonte base */
}

/* Faixa de Aviso */
.warning-bar {
    background-color: var(--gold-dim);
    color: #000;
    text-align: center;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 10px;
    text-transform: uppercase;
}

/* Container Principal */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px 20px;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-logo {
    color: var(--gold-primary);
    font-size: 2rem;
    font-family: 'Cinzel', serif;
    margin-bottom: 5px;
}

/* Links */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links-section a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.links-section a:hover {
    color: var(--gold-primary);
}

/* Card WhatsApp */
.whatsapp-card {
    border: 1px solid var(--gold-dim);
    padding: 15px;
    border-radius: 8px;
    background: rgba(170, 140, 44, 0.1);
    margin-bottom: 15px;
}

.wa-title {
    color: var(--gold-primary);
    font-weight: bold;
}

.btn-vip {
    display: inline-block;
    background: var(--gold-primary);
    color: #000;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Redes e Copyright */
.social-footer {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 20px;
    border-top: 1px solid #222;
    font-size: 1.5rem;
}

.copyright-section {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #666;
    background: #000;
}

.gold-pattern-bar {
    height: 10px;
    background: repeating-linear-gradient(45deg, var(--gold-dim), var(--gold-dim) 5px, #1a1512 5px, #1a1512 10px);
}

/* Ajuste Responsivo */
@media (min-width: 768px) {
    .footer-section { text-align: left; }
    .links-section { align-items: flex-start; }
}
/* ============================= */
/* LOGO HEADER PADRÃO Mon Amour  */
/* ============================= */

.header-logo {
    display: flex;
    align-items: center;
    margin-top: 0; /* reduzir espaço acima do logo */
}

.header-logo img {
    height: 48px; /* tamanho padrão desktop */
    width: auto;
    object-fit: contain;
}

/* =========================================
   RODAPÉ MON AMOUR (FOOTER)
========================================= */
.footer-mon-amour {
    background-color: #211111; /* Fundo escuro premium */
    color: #ffffff;
    padding-top: 50px;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Coloca as 3 colunas lado a lado */
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; 
    gap: 30px;
    margin-bottom: 40px;
}

/* --- Coluna 1: Logo e Apps --- */
.footer-brand {
    flex: 1;
    min-width: 200px; /* Coloquei um valor aqui para não bugar */
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: -40px; /* Aumente esse valor (ex: -80px) para subir o conjunto todo */
}

.footer-logo {
    height: 130px; /* Mantendo o tamanho que você gostou */
    width: auto;
    align-self: flex-start; /* Garante que ele ignore alinhamentos centrais */
    margin-left: -70px; /* Ajustado: puxei um pouco mais para a esquerda */
}

.download-text {
    font-size: 14px;
    color: #aaaaaa;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 10px; 
    margin-left: -95px; 
}

.links-app {
    display: flex;
    gap: 10px;
    margin-left: -110px;
}
.links-app img {
    width: 110px !important; /* Tamanho dos apps que combinamos */
    height: auto !important;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.links-app img:hover {
    transform: scale(1.05);
}

/* --- Coluna 2: Links Rápidos --- */
.footer-links {
    flex: 1;
    min-width: 200px;
    margin-left: -30px; /* Alinha a coluna de links com o logo */
}

.footer-links h3 {
    font-size: 16px;
    color: #e53935; /* Cor de destaque (Vermelho) */
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links-atendimento {
    flex: 1;
    min-width: 200px;
    margin-left: -30px; /* Alinha a coluna de links com o logo */
}

.footer-links-atendimento h4 {
    font-size: 16px;
    color: #e53935; /* Cor de destaque (Vermelho) */
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-links-atendimento ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-atendimento li {
    margin-bottom: 10px;
}

.footer-links-atendimento a {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links-atendimento a:hover {
    color: #ffffff;
}

/* --- Coluna 3: WhatsApp --- */
.footer-whatsapp {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: flex-end; /* Empurra a imagem do zap pro canto direito */
    position: relative;
    left: 0; /* remover deslocamento negativo para que o card fique dentro da caixa */
}

.footer-whatsapp img {
    max-width: 220px; /* Largura máxima da imagem do WhatsApp */
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.footer-whatsapp img:hover {
    transform: translateY(-5px); /* Efeito de pular ao passar o mouse */
}

/* --- Linha Final: Copyright --- */
.footer-bottom {
    background-color: #110808; /* Tom um pouco mais escuro que o topo do rodapé */
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333333;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #777777;
}

/* --- Responsividade (Para Celular) --- */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-whatsapp {
        justify-content: center; /* Centraliza o WhatsApp no celular */
        left: 0; /* reset do deslocamento em telas pequenas */
    }
    
    .links-app {
        justify-content: center; /* Centraliza os apps no celular */
    }
}

/* FIX: permitir que o footer interno não seja restringido pelo wrapper de conteúdo
   (anula o `max-width`/padding aplicado pelo wrapper do layout) */
.layout-container > footer > div {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Ajustes finos para alinhamento do card WhatsApp dentro do footer */
.footer-mon-amour .footer-container {
    max-width: 960px; /* mantém o conteúdo centralizado no mesmo tamanho do resto da página */
    margin: 0 auto;
    padding: 0 20px;
}
.footer-whatsapp { padding-right: 0; }

/* mobile */
@media (max-width: 768px) {
    .header-logo img {
        height: 36px;
    }

    /* Estilo do Menu Mobile Overlay */
#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

/* Trava o scroll da página quando o menu está aberto */
body.no-scroll {
    overflow: hidden;
}

/* Ajuste do botão hambúrguer para parecer profissional */
#hamburger-btn div {
    transition: 0.3s;
}
}
/* ============================================================
   SOLUÇÃO DEFINITIVA: CENTRALIZAR LOGO FOOTER NO MOBILE
   ============================================================ */
@media (max-width: 768px) {
    /* 2. Forçando a imagem a se comportar e ficar no meio */
    footer img, 
    .footer-logo img {
        display: block !important;
        margin-left: auto !important;   /* Empurra da esquerda */
        margin-right: auto !important;  /* Empurra da direita */
        
        /* Ajuste de tamanho para não achatar */
        height: auto !important;
        max-height: 150px !important; 
        width: auto !important;
        max-width: 180px !important; 
        
        flex-shrink: 0 !important;
        float: none !important; /* Remove qualquer flutuação que possa existir */
    }

    /* 3. Se houver algum link (<a>) em volta da imagem, centralizamos ele também */
    footer a:has(img) {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Força o texto a centralizar e remove qualquer margem lateral que esteja empurrando */
    footer p, 
    footer h4,
    .download-text { /* Use a classe exata se você tiver uma no HTML */
        text-align: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block !important;
        text-transform: uppercase; /* Para manter o estilo premium */
        letter-spacing: 1px;
        font-size: 12px !important;
        color: rgba(255, 255, 255, 0.7); /* Cor sutil para não brigar com o logo */
    }

    /* O container pai */
    .links-app {
        display: flex !important;
        flex-direction: row !important; /* Garante que fiquem na mesma linha */
        justify-content: center !important; /* Centraliza o grupo todo */
        gap: 5px !important; /* DISTÂNCIA MÍNIMA: Ajuste para 2px se quiser mais perto ainda */
        width: 100% !important;
        margin: 15px 0 !important;
        padding: 0 !important;
    }

    /* Os links individuais */
    .links-app a {
        display: flex !important;
        width: auto !important; /* Impede o link de ocupar 100% da largura */
        flex: 0 0 auto !important; /* Trava o tamanho para não crescer */
    }

    /* As imagens dos botões */
    .links-app img {
        height: 34px !important; /* Altura padronizada para mobile */
        width: auto !important;
        max-width: 120px !important; /* Garante que não fiquem gigantes */
        display: block !important;
    }
}