/* Custom styles for Keglers Sports Bar */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure text is readable on all backgrounds */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reveal animations - progressive enhancement, only active when JS runs */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Navbar transition */
.nav-scrolled {
    background: rgba(80, 7, 36, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .flex-shrink-0 img {
        transition: none !important;
    }
    
    .group:hover {
        transform: none !important;
    }
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #be185d;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 4px;
    border-radius: 4px;
}

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

/* Gallery hover effect */
@media (hover: hover) and (pointer: fine) {
    .flex-shrink-0 img {
        transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
}
