/* ============================================
   E&L Sports Bar — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #c4461e;
    color: #fff;
}

/* --- Hero Animation --- */
@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.animate-hero-zoom {
    animation: heroZoom 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

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

#navbar.scrolled {
    background: rgba(28, 25, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #f3a07e;
}

/* --- Mobile Menu --- */
.menu-line {
    display: block;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.open .mobile-menu-link {
    animation: menuLinkIn 0.4s ease forwards;
    opacity: 0;
}

#mobileMenu.open .mobile-menu-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-menu-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-menu-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-menu-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-menu-link:nth-child(5) { animation-delay: 0.25s; }

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

/* --- Reveal Animations (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-hero-zoom {
        animation: none;
        transform: scale(1);
    }
    .animate-scroll-line {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* --- Form Styles --- */
input:focus, textarea:focus {
    border-color: #c4461e !important;
    box-shadow: 0 0 0 3px rgba(196, 70, 30, 0.15);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* --- Image Hover Effects --- */
img {
    will-change: transform;
}

/* --- Smooth Focus Visible --- */
a:focus-visible, button:focus-visible {
    outline: 2px solid #f3a07e;
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
