/* Custom styles for Namaste Grill & Bar */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal[data-reveal-delay="1"] {
    transition-delay: 0.1s;
}

.scroll-reveal[data-reveal-delay="2"] {
    transition-delay: 0.2s;
}

.scroll-reveal[data-reveal-delay="3"] {
    transition-delay: 0.3s;
}

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

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -1.5s;
}

.card-3 {
    animation-delay: -3s;
}

.card-4 {
    animation-delay: -4.5s;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 74, 32, 0.08);
}

.nav-scrolled .logo-text {
    color: #2d4a20;
}

.nav-scrolled .nav-link {
    color: #2d4a20;
}

.nav-scrolled .nav-link:hover {
    color: #4d7d33;
}

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

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

/* Mobile menu links */
.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.mobile-link:hover {
    background-color: rgba(45, 74, 32, 0.05);
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9dbe7d;
}

/* Image loading placeholder */
img {
    background-color: #ebe8e0;
}

/* Selection color */
::selection {
    background-color: rgba(77, 125, 51, 0.2);
    color: #1c2e14;
}
