/* Custom styles for Two Grandma's and a Diner */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #faf8f0;
}
::-webkit-scrollbar-thumb {
    background: #2a4621;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #335727;
}

/* Selection color */
::selection {
    background: #2a4621;
    color: #fdfcf8;
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .nav-logo-text {
    color: #111d0c !important;
}

nav.scrolled .nav-link {
    color: #1a3a14 !important;
}

nav.scrolled .nav-link:hover {
    color: #406f30 !important;
}

/* Hero card hover effects */
.hero-card {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.hero-card:hover {
    transform: translateY(-8px);
}

/* Image hover zoom */
img {
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

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

.hero-float-1 { animation: float 4s ease-in-out infinite; }
.hero-float-2 { animation: float 4s ease-in-out infinite 0.5s; }
.hero-float-3 { animation: float 4s ease-in-out infinite 1s; }
.hero-float-4 { animation: float 4s ease-in-out infinite 1.5s; }

/* Subtle gradient text */
.gradient-text {
    background: linear-gradient(135deg, #fdfcf8 0%, #efe8cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Menu item hover */
.menu-item {
    transition: padding-left 0.3s ease;
}
.menu-item:hover {
    padding-left: 8px;
}

/* Card hover shadow */
.card-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-hover:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}
