/* Custom styles for Bentley's Pub and Grill */

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

/* Base text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -1.5s;
    animation-duration: 7s;
}

.floating-card:nth-child(3) {
    animation-delay: -3s;
    animation-duration: 5.5s;
}

.floating-card:nth-child(4) {
    animation-delay: -4.5s;
    animation-duration: 6.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Scroll reveal base - content is VISIBLE by default */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* Progressive enhancement: only animate when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Gold gradient shimmer on hover for buttons */
button:hover,
a:hover {
    /* Let Tailwind handle transitions */
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(212, 160, 23, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 160, 23, 0.5);
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #fdfbf7;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

/* Mobile menu button active state */
.mobile-menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Mobile link hover */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: rgba(212, 160, 23, 0.4) !important;
    box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.1) !important;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0a0f0d 0%, #1a2f25 100%);
}
