/* Custom styles for Johnny and Wilson's Diner */

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

/* Base font settings */
body {
    font-family: 'Nunito', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Display font */
.font-display {
    font-family: 'DM Serif Display', Georgia, serif;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Scroll reveal hidden state (applied by JS) */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for scroll-reveal elements (visible for no-JS) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar styles */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

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

.floating-card-2 {
    animation: float 4s ease-in-out infinite 1s;
}

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

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

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

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

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

/* Selection color */
::selection {
    background: #f5c0b0;
    color: #7a2318;
}

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

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #fdf8e8 0%, #fae0d4 100%);
}

/* Button hover effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Subtle pattern for sections */
.pattern-dots {
    background-image: radial-gradient(circle, #d44a2c 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}
