/* ============================================
   BIRRERIA 27 — Custom Styles
   ============================================ */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: rgba(212, 168, 83, 0.25);
    color: #f0f3f9;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background-color: rgba(6, 11, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #D4A853;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
}

/* Menu Toggle Animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(8px);
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-desc {
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.hero-cta {
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

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

/* Hero parallax on scroll */
#hero img {
    will-change: transform;
}

/* ============================================
   REVEAL ANIMATIONS (scroll-triggered)
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-image.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-grid {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-grid.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   DRINK CARDS
   ============================================ */
.drink-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ============================================
   FORM STYLES
   ============================================ */
#reservation-form input:focus,
#reservation-form textarea:focus,
#reservation-form select:focus {
    border-color: #D4A853 !important;
}

/* ============================================
   SMOOTH SCROLL OFFSET FOR FIXED NAV
   ============================================ */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-subtitle,
    .hero-title,
    .hero-desc,
    .hero-cta {
        opacity: 1;
        animation: none;
    }
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 767px) {
    html {
        scroll-behavior: smooth;
    }

    section[id] {
        scroll-margin-top: 60px;
    }
}
