/* Custom styles beyond Tailwind */

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

/* Marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Navbar scroll behavior */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

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

#navbar.scrolled .nav-logo-text {
    color: #0f2a0f;
}

#navbar.scrolled .nav-link {
    color: #1a4a1a;
}

#navbar.scrolled .nav-link:hover {
    color: #2d7a2d;
}

/* Mobile menu animations */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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; }

/* Hero text animation */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-tag {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4fa84f;
}

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

/* Gallery hover overlay transition */
.group .absolute {
    transition: opacity 0.5s ease;
}

/* Menu card hover lift */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu backdrop */
#mobile-menu {
    backdrop-filter: blur(8px);
}
