/* === Base & Utilities === */
html {
    scroll-behavior: smooth;
}

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

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

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

/* === Menu Card Hover === */
.menu-card {
    position: relative;
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.menu-card:hover::before {
    opacity: 1;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* === Navbar scroll state === */
.nav-scrolled {
    background: rgba(254, 254, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 78, 59, 0.08);
}

.nav-scrolled .nav-link {
    color: #064e3b !important;
}

.nav-scrolled .nav-logo-text {
    color: #064e3b !important;
}

/* === Mobile menu transitions === */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* === Selection color === */
::selection {
    background: #d97746;
    color: #fefce8;
}

/* === Focus visible === */
:focus-visible {
    outline: 3px solid #d97746;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
    .animate-marquee {
        animation-duration: 15s;
    }
}
