/* Boteco Bangu - Custom Styles */

:root {
    --color-wine: #b91c1c;
    --color-gold: #facc15;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .font-paytone {
    font-family: 'Paytone One', sans-serif;
    letter-spacing: -0.02em;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
    h2 {
        font-size: 1.875rem !important;
    }
    .text-lg {
        font-size: 1rem !important;
    }
}

/* Hero Carousel Styling */
.hero-carousel-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

/* Hero Title Shadow (Desktop too) */
#inicio h1 {
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8);
}

/* Custom button styles - Standard CSS for compatibility */
.btn-primary {
    background: linear-gradient(to right, #facc15, #eab308);
    color: #7b1113;
    font-weight: 700;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    transition: all 0.3s transform, all 0.3s shadow;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-bottom: 4px solid #ca8a04;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    font-weight: 700;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.btn-outline:active {
    transform: scale(0.95);
}

/* Cardápio Specifics */
.cardapio-bg {
    position: relative;
    min-height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-image: 
        linear-gradient(to bottom, rgba(26, 2, 2, 0.8), rgba(26, 2, 2, 0.9)),
        url('../assets/img/04.png');
}

.cardapio-section {
    position: relative;
}

.cardapio-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.75rem;
    border-radius: 1rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cardapio-btn:hover {
    border-color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.cardapio-btn.ativo {
    background: linear-gradient(to right, #7b1113, #4a0404);
    color: var(--color-gold);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border-color: var(--color-gold);
}

.cardapio-frame {
    position: relative;
    padding: 0.375rem; /* 1.5 on mobile */
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    border: 4px solid transparent;
}

@media (min-width: 768px) {
    .cardapio-frame {
        padding: 0.75rem;
    }
}

.cardapio-frame::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #7b1113, #facc15, #7b1113);
    z-index: -1;
    border-radius: 0.75rem;
}

nav {
    z-index: 100 !important;
    left: 0;
    right: 0;
}

/* Mobile Navbar visibility fix */
#menu-btn {
    display: none; /* Hidden by default on Desktop */
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    background: rgba(123, 17, 19, 0.85); /* Boteco Red background for visibility */
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Circle shape as requested */
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

@media (max-width: 767px) {
    #menu-btn {
        display: flex; /* Only show on mobile */
    }
}

nav.bg-red-900\/95 #menu-btn {
    background: rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

#mobile-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    background: rgba(30, 2, 2, 0.9) !important; /* Transparent dark red */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu.hidden {
    display: none;
    opacity: 0;
    transform: scaleY(0);
}

#mobile-menu:not(.hidden) {
    display: flex;
    opacity: 1;
    transform: scaleY(1);
}

#mobile-menu a {
    transition: all 0.2s;
}

#mobile-menu a:active {
    background-color: #b91c1c;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Gallery Hover */
.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Scroll Smoothing */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes bounce-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.ativo i.fa-chevron-right {
    animation: bounce-right 1s infinite;
}

#lightbox img {
    max-width: 95vw;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
}

.lightbox-content {
    max-height: 85vh;
    display: flex;
    justify-content: center;
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .lightbox-content {
        max-height: 100vh;
        width: 100%;
        align-items: flex-start; /* Permite rolar do topo */
    }
    #lightbox img {
        max-width: 100%;
        width: 100vw;
        height: auto;
    }
    #orientation-tip {
        display: none !important; /* Esconde a dica se já estiver em landscape */
    }
}

#orientation-tip {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 110;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    #orientation-tip {
        display: flex;
    }
}
