/* Custom styles for Upstairs at Vineyard Square */

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

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure reduced motion gets visible content */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background-color: #FF6B55;
    color: #1a1a1a;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #FF6B55;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

/* Navbar scroll effect */
nav.scrolled {
    background-color: rgba(26, 26, 26, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Button hover effects */
button, a {
    cursor: pointer;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
}

/* Prevent layout shift */
.aspect-\[4\/3\] {
    position: relative;
}

/* Touch device optimizations */
@media (hover: none) {
    .group:hover .group-hover\:scale-110 {
        transform: scale(1);
    }
    
    .group:hover .group-hover\:border-coral-500\/30 {
        border-color: rgba(255, 107, 85, 0.15);
    }
}
