/* Custom styles for Reggie's Lounge */

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

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

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(26, 77, 46, 0.08);
}

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

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

/* Product cards */
.product-card {
    will-change: transform;
}

/* Gallery items */
.gallery-item {
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(4) {
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(3),
.gallery-item:nth-child(6) {
    aspect-ratio: 5/6;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
    
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3d7a48;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: #b9d0bb;
    border-radius: 9999px;
}

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

/* Selection color */
::selection {
    background: #dce8df;
    color: #1a4d2e;
}

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

/* Subtle hover for gallery */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 77, 46, 0);
    transition: background 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(26, 77, 46, 0.1);
}

.gallery-item {
    position: relative;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #8fb592 !important;
    box-shadow: 0 0 0 3px rgba(143, 181, 146, 0.2);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
