/* ============================================
   Rookies Pub — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0f1c3f;
    color: #d5ddef;
}

::selection {
    background-color: rgba(200, 164, 90, 0.3);
    color: #f0f0f0;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080f22;
}
::-webkit-scrollbar-thumb {
    background: #1a2661;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c8a45a;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(8, 15, 34, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(200, 164, 90, 0.1);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu a {
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open a {
    transform: translateY(0);
    opacity: 1;
}

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

/* --- Menu Items --- */
.menu-item {
    border-bottom: 1px solid rgba(26, 38, 97, 0.6);
    padding-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    border-color: rgba(200, 164, 90, 0.2);
}

.menu-item h4 {
    transition: color 0.3s ease;
}

.menu-item:hover h4 {
    color: #e6d06a;
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Hover image effect --- */
.relative.overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.relative.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* --- Form focus states --- */
input:focus,
textarea:focus {
    outline: none;
}

/* --- Button hover lift --- */
button, a {
    transition: all 0.3s ease;
}

/* --- Map container --- */
iframe {
    border-radius: 0;
}

/* --- Decorative patterns --- */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 164, 90, 0.2), transparent);
}
