/* Custom styles for Crossroads Cafe */

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

/* Navbar transitions */
.nav-link {
    position: relative;
}

/* Feature items */
.feature-item {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Scroll reveal base - content is visible by default */
.reveal {
    /* Default: visible, no animation */
}

/* Scroll reveal with JS enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered delays */
    .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 {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Gallery hover */
.rounded-3xl img {
    display: block;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #A8A296;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #781F37;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #fce7eb;
    color: #781F37;
}

/* Subtle gradient animation for hero decorative elements */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -10px) scale(1.05); }
}

.hero-blob {
    animation: float 8s ease-in-out infinite;
}

.hero-blob-2 {
    animation: float 10s ease-in-out infinite reverse;
}
