/* Custom styles for Sir's Martini Lounge */

/* Base styles */
body {
    font-family: 'Nunito', system-ui, sans-serif;
}

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

/* Hero image border radius */
.hero-img {
    border-radius: 2rem;
    object-fit: cover;
}

/* Navigation active state */
nav a.active {
    color: #4d8343;
}

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

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

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

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

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

/* Selection color */
::selection {
    background: #c6dfbe;
    color: #1b3318;
}

/* Animation for floating card */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

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

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

/* Scroll reveal - progressive enhancement */
/* Default state: content is visible */
.reveal {
    opacity: 1;
    transform: none;
}

/* When JS is enabled and motion is preferred, add animation */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is always readable even without JS */
.no-js .reveal {
    opacity: 1 !important;
    transform: none !important;
}
