/* Custom styles for South Shore Pub & Grille */

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

/* Ensure content is visible by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Scroll reveal (applied via JS only) */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(14, 14, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 80, 26, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hamburger animation */
.hamburger-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

/* Mobile link hover effect */
.mobile-link {
    position: relative;
}

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

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

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

::-webkit-scrollbar-track {
    background: #1a1a1f;
}

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

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

/* Selection color */
::selection {
    background: rgba(255, 80, 26, 0.3);
    color: #fff;
}

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

/* Card hover lift */
.reveal {
    will-change: transform, opacity;
}

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

/* Ensure hero image doesn't shift layout */
#hero img {
    will-change: transform;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

/* Subtle gradient border effect */
.border-gradient {
    position: relative;
    background: #1a1a1f;
    border-radius: 1rem;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 80, 26, 0.3), transparent, rgba(255, 80, 26, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
