/* Custom styles for The Bar - Gordonville */

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

body {
    overflow-x: hidden;
}

/* Navbar styles */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
    backdrop-filter: blur(10px);
}

/* Nav links */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-link {
    position: relative;
    transition: transform 0.3s ease;
}

.mobile-link:hover {
    transform: translateX(4px);
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Smooth image loading */
img {
    background-color: #e8ecf4;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f3f9;
}

::-webkit-scrollbar-thumb {
    background: #b3bdd6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8d9ac3;
}

/* Selection color */
::selection {
    background: #d4a017;
    color: #1a2744;
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #d4a017;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button hover glow effect */
button:hover,
a:hover {
    filter: brightness(1.02);
}

/* Card hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 39, 68, 0.12);
}

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4a017 0%, #f3c552 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(26, 39, 68, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Menu item hover */
.menu-item {
    transition: background 0.2s ease, padding-left 0.2s ease;
    border-radius: 8px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.menu-item:hover {
    background: rgba(212, 160, 23, 0.08);
    padding-left: 16px;
}

/* Input focus animation */
input:focus,
textarea:focus {
    transform: scale(1.01);
}

input,
textarea {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Back to top button */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#back-to-top:hover {
    background: #2f3d62;
    transform: translateY(-2px);
}
