/* ====================================
   BAR DA BAIANA - CARDÁPIO DIGITAL
==================================== */

:root{
    --gold:#d8b16a;
    --wood:#2b1d15;
    --cream:#f5ead8;
    --shadow:0 15px 35px rgba(0,0,0,.35);
}

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

html{
    scroll-behavior:smooth;
}

html.public-page,
html.public-page body{
    scrollbar-width:none;
    -ms-overflow-style:none;
}

html.public-page{
    overflow-y:auto;
    overflow-x:hidden;
}

html.public-page::-webkit-scrollbar,
html.public-page body::-webkit-scrollbar{
    width:0;
    height:0;
    display:none;
}

body{
    background:
        radial-gradient(circle at top center, rgba(216,177,106,.14), transparent 28%),
        linear-gradient(rgba(12,8,6,.84), rgba(12,8,6,.94)),
        url("../images/backgrounds/bambu.png");
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
    font-family:'Montserrat',sans-serif;
    color:white;
    overflow-x:hidden;
}

body.public-site{
    overflow-y:auto;
}

.no-text-select,
.no-text-select *{
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
    cursor:default;
    -webkit-tap-highlight-color:transparent;
}

.no-text-select input,
.no-text-select textarea,
.no-text-select select,
.no-text-select .allow-select,
.no-text-select .allow-select *,
.no-text-select address,
.no-text-select a[href^="tel:"],
.no-text-select a[href^="mailto:"],
.no-text-select a[href^="https://wa.me"],
.no-text-select a[href*="whatsapp"],
.no-text-select a[href*="maps"],
.no-text-select a[href*="google.com/maps"]{
    -webkit-user-select:text;
    -moz-user-select:text;
    -ms-user-select:text;
    user-select:text;
}

.no-text-select a,
.no-text-select button,
.no-text-select [role="button"],
.no-text-select .btn,
.no-text-select .food-card,
.no-text-select .filters,
.no-text-select .filters *,
.no-text-select .filters button,
.no-text-select .section-title,
.no-text-select .section-title *,
.no-text-select h1,
.no-text-select h2,
.no-text-select h3,
.no-text-select h4,
.no-text-select p,
.no-text-select .back-to-top-button{
    cursor:default;
}

.no-text-select a,
.no-text-select button,
.no-text-select [role="button"],
.no-text-select .btn,
.no-text-select .food-card,
.no-text-select .filters button,
.no-text-select .back-to-top-button{
    cursor:pointer;
}

.no-text-select input,
.no-text-select textarea,
.no-text-select select{
    cursor:text;
}

.no-text-select img{
    -webkit-user-drag:none;
    user-drag:none;
}

/* HEADER */

.menu-header{
    position:sticky;
    top:0;
    z-index:999;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    background:rgba(0,0,0,.72);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(216,177,106,.18);
}

.menu-header h1{
    font-family:'Cormorant Garamond',serif;
    font-size:2.5rem;
    color:var(--gold);
}

.header-center{
    display:flex;
    align-items:center;
    gap:15px;
}

.header-logo{
    height:55px;
    width:auto;
    object-fit:contain;
    filter:drop-shadow(0 0 10px rgba(216,177,106,.25));
}

.voltar{
    text-decoration:none;
    color:white;
    font-weight:600;
}

.voltar:hover{
    color:var(--gold);
}

/* BUSCA */

.search-area{
    padding:40px 20px;
    display:flex;
    justify-content:center;
}

#searchInput{
    width:100%;
    max-width:700px;
    height:60px;
    border:none;
    border-radius:60px;
    padding:0 25px;
    font-size:1rem;
    background:white;
    outline:none;
    box-shadow:var(--shadow);
}

/* FILTROS */

.filters{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    padding:10px 20px 40px;
}

.filters button{
    border:none;
    background:rgba(255,255,255,.08);
    color:white;
    padding:12px 25px;
    border-radius:40px;
    cursor:pointer;
    transition:.3s;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:8px;
}

.filters button:hover,
.filters .active{
    background:var(--gold);
    color:black;
}

.filters button i{
    color:inherit;
}

/* CATEGORIAS */

.section-title{
    position:relative;
    text-align:center;
    margin:50px 0 30px;
    font-family:'Cormorant Garamond',serif;
    font-size:2.3rem;
    font-weight:600;
    letter-spacing:.5px;
    color:var(--gold);
}

.section-title::before{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:300px;
    height:100px;
    transform:translate(-50%,-50%);
    background:radial-gradient(rgba(216,177,106,.16), transparent 70%);
    z-index:-1;
}

.section-title i{
    margin-right:10px;
    font-size:.55em;
    color:var(--gold);
    opacity:.9;
}

.section-title::after{
    content:'';
    display:block;
    width:80px;
    height:2px;
    background:var(--gold);
    margin:10px auto 0;
}

/* GRID / CARDS */

.food-grid{
    width:90%;
    max-width:1400px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:35px;
    padding-bottom:100px;
}

.back-to-top-wrapper{
    width:90%;
    max-width:1400px;
    margin:0 auto 90px;
    display:flex;
    justify-content:center;
}

.back-to-top-button{
    border:1px solid rgba(216,177,106,.3);
    border-radius:999px;
    padding:16px 28px;
    background:linear-gradient(180deg, rgba(50,32,23,.96), rgba(25,16,12,.96));
    color:var(--cream);
    font-weight:600;
    font-size:.98rem;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    cursor:pointer;
    box-shadow:0 16px 34px rgba(0,0,0,.28), 0 0 18px rgba(216,177,106,.08);
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
}

.back-to-top-button i{
    color:var(--gold);
    font-size:.95rem;
}

.back-to-top-button:hover{
    transform:translateY(-2px);
    border-color:rgba(216,177,106,.5);
    box-shadow:0 20px 40px rgba(0,0,0,.34), 0 0 24px rgba(216,177,106,.14);
}

.back-to-top-button:focus-visible{
    outline:2px solid rgba(216,177,106,.85);
    outline-offset:3px;
}

.food-card{
    position:relative;
    background:linear-gradient(180deg, rgba(50,32,23,.96), rgba(25,16,12,.96));
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,.35), 0 0 25px rgba(216,177,106,.06);
    border:1px solid rgba(216,177,106,.14);
    transition:.4s;
    cursor:pointer;
}

.food-card:hover{
    transform:translateY(-8px);
    box-shadow:0 22px 48px rgba(0,0,0,.5), 0 0 35px rgba(216,177,106,.14);
}

.food-card img{
    width:100%;
    height:280px;
    object-fit:cover;
    display:block;
    pointer-events:none;
    transition:transform 8s ease;
}

.food-card:hover img{
    transform:scale(1.08);
}

.card-badges{
    position:absolute;
    top:16px;
    left:16px;
    display:flex;
    gap:8px;
    z-index:20;
}

.badge-card{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    backdrop-filter:blur(12px);
    box-shadow:0 10px 25px rgba(0,0,0,.45);
    border:1px solid rgba(255,255,255,.25);
}

.badge-card i{
    font-size:17px;
}

.badge-gold{
    background:linear-gradient(135deg,#d8b16a,#f2d28a);
    color:#1d120d;
}

.badge-fire{
    background:linear-gradient(135deg,#8b1e1e,#d85b2a);
    color:#fff;
}

.food-info{
    padding:25px;
}

.food-info h2{
    font-family:'Cormorant Garamond',serif;
    font-size:2.1rem;
    color:white;
    font-weight:700;
    margin-bottom:15px;
    text-shadow:0 2px 8px rgba(0,0,0,.6);
}

/* PREÇOS */

.prices{
    display:flex;
    gap:12px;
    margin-top:15px;
}

.price-box{
    flex:1;
    background:#f8f4ef;
    border-radius:12px;
    padding:12px;
    text-align:center;
}

.price-box .tipo{
    display:block;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:1px;
    color:#8b5a2b;
    margin-bottom:5px;
}

.price-box .valor{
    display:block;
    font-size:22px;
    font-weight:700;
    color:#2f1b12;
}

/* MODAL */

.food-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
    padding:20px;
    overflow-y:auto;
}

.food-modal.active{
    display:flex !important;
}

.modal-content{
    width:100%;
    max-width:1150px;
    height:85vh;
    max-height:85vh;
    display:grid;
    grid-template-columns:58% 42%;
    background:#161616;
    border-radius:25px;
    overflow:hidden;
    position:relative;
    animation:modalOpen .3s ease;
}

.modal-image-wrapper{
    position:relative;
    width:100%;
    height:100%;
    background:#111;
    overflow:hidden;
}

#modalImage{
    width:100%;
    height:100%;
    object-fit:cover !important;
    object-position:center top !important;
    display:block;
    animation:zoomOutModal 8s ease-out forwards;
}

#modalBadge{
    position:absolute;
    top:25px;
    left:25px;
    display:none;
    align-items:center;
    gap:8px;
    background:linear-gradient(135deg,#d8b16a,#f0d090);
    color:#1d120d;
    padding:12px 18px;
    border-radius:50px;
    font-weight:700;
    font-size:.85rem;
    z-index:10;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
}

#modalBadge i{
    color:#1d120d;
}

#modalBadge{
    position:absolute;
    top:25px;
    left:25px;
    display:none;
    align-items:center;
    gap:8px;
    background:linear-gradient(135deg,#d8b16a,#f0d090);
    color:#1d120d;
    padding:12px 18px;
    border-radius:50px;
    font-weight:700;
    font-size:.85rem;
    z-index:10;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
}

#modalBadge i{
    color:#1d120d;
}

.modal-body{
    padding:35px;
    overflow-y:auto;
    max-height:85vh;
    min-height:0;
}

#modalTitle{
    font-family:'Cormorant Garamond',serif;
    font-size:3rem;
    color:white;
    font-weight:700;
    margin-bottom:20px;
    text-shadow:0 2px 8px rgba(0,0,0,.7);
}

#modalDescription{
    color:#F5E9D7;
    line-height:1.9;
    margin-bottom:25px;
}

.modal-extras-toggle{
    width:100%;
    margin:0 0 20px;
    padding:14px 18px;
    border:1px solid rgba(216,177,106,.2);
    border-radius:18px;
    background:rgba(255,255,255,.04);
    color:var(--cream);
    font-weight:600;
    display:none;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    box-shadow:none;
}

.modal-extras-toggle i{
    transition:transform .25s ease;
}

.modal-extras-toggle.active i{
    transform:rotate(180deg);
}

.modal-extras-toggle:hover{
    background:rgba(216,177,106,.1);
}

.modal-adicionais{
    display:none;
    margin:-6px 0 24px;
    padding:8px 0 0;
}

.modal-adicionais.active{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.modal-adicional-item{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    padding:14px 16px;
    border-radius:16px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(216,177,106,.14);
}

.modal-adicional-item strong{
    display:block;
    color:#fff;
    margin-bottom:4px;
}

.modal-adicional-item small{
    display:block;
    color:#d7c5a5;
    line-height:1.5;
    font-size:.82rem;
}

.modal-adicional-item span{
    color:var(--gold);
    font-weight:700;
    white-space:nowrap;
}

.modal-adicional-vazio{
    color:#d7c5a5;
    font-size:.92rem;
}

.modal-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:22px 0 28px;
}

.modal-tags span{
    display:flex;
    align-items:center;
    gap:8px;
    background:rgba(216,177,106,.10);
    border:1px solid rgba(216,177,106,.22);
    color:#f5ead8;
    padding:9px 14px;
    border-radius:40px;
    font-size:.82rem;
    font-weight:500;
}

.modal-tags span i{
    color:var(--gold);
    font-size:.9rem;
}

.modal-prices{
    display:flex;
    gap:15px;
}

.modal-price{
    flex:1;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(216,177,106,.15);
    padding:15px;
    border-radius:15px;
    text-align:center;
}

.modal-price span{
    display:block;
    font-size:12px;
    color:#d7c5a5;
    text-transform:uppercase;
    letter-spacing:1px;
}

.modal-price strong{
    display:block;
    margin-top:8px;
    font-size:26px;
    color:var(--gold);
}

#closeModal{
    position:absolute;
    top:15px;
    right:15px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:white;
    cursor:pointer;
    font-size:20px;
    z-index:999999;
}

/* WHATSAPP */

.whatsapp{
    position:fixed;
    right:25px;
    bottom:25px;
    width:75px;
    height:75px;
    border-radius:50%;
    background:#25D366;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    font-size:35px;
    box-shadow:0 15px 35px rgba(0,0,0,.4);
    z-index:999;
    transition:.3s;
}

.whatsapp:hover{
    transform:scale(1.1);
}

/* ANIMAÇÕES */

@keyframes modalOpen{
    from{opacity:0; transform:translateY(30px);}
    to{opacity:1; transform:translateY(0);}
}

@keyframes fadeIn{
    from{opacity:0;}
    to{opacity:1;}
}

@keyframes zoomOutModal{
    from{
        transform:scale(1.05);
    }
    to{
        transform:scale(1);
    }
}

/* MOBILE */

@media(max-width:768px){

    #closeFullscreen{
        width:48px;
        height:48px;
        top:15px;
        right:15px;
        font-size:18px;
    }

}

@media(max-width:768px){

    .menu-header{
        padding:15px 20px;
    }

    .menu-header h1{
        font-size:1.5rem;
    }

    .header-center{
        gap:10px;
    }

    .header-logo{
        height:38px;
    }

    .food-grid{
        width:95%;
        grid-template-columns:1fr;
    }

    .back-to-top-wrapper{
        width:95%;
        margin:0 auto 70px;
    }

    .back-to-top-button{
        width:100%;
        padding:15px 20px;
        font-size:.95rem;
    }

    .food-card img{
        height:240px;
    }

    .food-info h2{
        font-size:1.8rem;
    }

    .section-title{
        font-size:1.8rem;
        margin:40px 0 25px;
    }

    .filters{
        gap:10px;
    }

    .filters button{
        font-size:.9rem;
        padding:10px 18px;
    }

    .food-modal{
        align-items:flex-start;
        padding:15px;
        overflow-y:auto;
    }

    .modal-content{
        display:block;
        width:100%;
        max-width:100%;
        max-height:none;
        height:auto;
        overflow:hidden;
        border-radius:20px;
        margin:15px 0;
    }

   .modal-image-wrapper{
    width:100%;
    height:330px;
}

#modalImage{
    width:94%;
    height:94%;
}

    #modalBadge{
        top:20px;
        left:20px;
        font-size:.75rem;
        padding:10px 14px;
    }

    .modal-body{
        width:100%;
        max-height:none;
        overflow:visible;
        padding:25px;
    }

    #modalTitle{
        font-size:2rem;
        line-height:1.2;
    }

    #modalDescription{
        font-size:.95rem;
        line-height:1.8;
    }

    .modal-prices{
        flex-direction:column;
    }

    .modal-price{
        width:100%;
    }

    #closeModal{
        width:45px;
        height:45px;
        font-size:18px;
    }
}


/* FULLSCREEN IMAGE */

#fullscreenViewer{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.96);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999999;
    cursor:zoom-out;
    backdrop-filter:blur(8px);
}

#fullscreenViewer.active{
    display:flex;
}

#fullscreenImage{
    max-width:95vw;
    max-height:95vh;
    object-fit:contain;
    animation:zoomFoto .25s ease;
}

@keyframes zoomFoto{
    from{
        transform:scale(.9);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.modal-image-wrapper{
    cursor:zoom-in;
}


#closeFullscreen{
    position:absolute;
    top:25px;
    right:25px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(10px);
    color:#fff;
    font-size:22px;
    cursor:pointer;
    z-index:9999999;
    transition:.25s;
}

#closeFullscreen:hover{
    background:#d8b16a;
    color:#111;
    transform:scale(1.05);
}


.fullscreen-tip{
    position:absolute;
    bottom:28px;
    left:50%;
    transform:translateX(-50%);
    color:#f5ead8;
    background:rgba(0,0,0,.45);
    border:1px solid rgba(216,177,106,.25);
    padding:10px 18px;
    border-radius:40px;
    font-size:.85rem;
    backdrop-filter:blur(8px);
}


.share-dish{
    width:100%;
    margin-top:25px;
    padding:15px 20px;
    border:none;
    border-radius:40px;
    background:linear-gradient(135deg,#d8b16a,#f0d090);
    color:#1d120d;
    font-weight:700;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    font-size:.95rem;
    box-shadow:0 10px 25px rgba(0,0,0,.28);
    transition:.25s;
}

.share-dish:hover{
    transform:translateY(-2px);
    background:linear-gradient(135deg,#f0d090,#d8b16a);
}
