/* Base styles and custom properties */
:root {
    --emerald-800: #064E3B;
    --emerald-700: #047857;
    --cream-50: #FAFAF8;
    --cream-100: #F5F5F0;
}

html {
    scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream-100);
}
::-webkit-scrollbar-thumb {
    background: #a7c4b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #064e3b;
}

/* Navbar scroll state */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

/* Hero content animation - uses JS progressive enhancement */
.hero-content {
    opacity: 1;
    transform: none;
}
.hero-image-wrapper {
    opacity: 1;
    transform: none;
}

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

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

/* About images animation */
.about-img-1 { animation: fadeInUp 0.8s ease-out both; }
.about-img-2 { animation: fadeInUp 0.8s ease-out 0.1s both; }
.about-img-3 { animation: fadeInUp 0.8s ease-out 0.2s both; }
.about-img-4 { animation: fadeInUp 0.8s ease-out 0.3s both; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu cards */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.menu-card:hover {
    transform: translateY(-4px);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}
.gallery-item img {
    transition: transform 0.7s ease;
}

/* Scroll reveal - progressive enhancement, only active when JS runs and reduced motion is not preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
}

/* Mobile menu */
.mobile-menu-open {
    overflow: hidden;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.2s ease;
}

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

/* Print styles */
@media print {
    #navbar, .floating-card, .gallery-item { display: none; }
    body { background: white; }
}
