/* Custom styles for Nadine's Coffeehouse */

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

/* Floating animations for hero cards */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-1deg); }
}

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

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 5s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 4s ease-in-out infinite;
}

/* Stagger animation delays */
.animate-float-slow { animation-delay: 0s; }
.animate-float-medium { animation-delay: -1.5s; }
.animate-float-fast { animation-delay: -3s; }

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 245, 247, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(104, 62, 75, 0.08);
}

nav.scrolled .font-display {
    color: rgb(104, 62, 75) !important;
}

/* Scroll reveal base - content is always visible by default */
.reveal {
    opacity: 1;
    transform: none;
}

/* Only apply reveal animations when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }

    .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; }
}

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

::-webkit-scrollbar-track {
    background: rgb(250, 245, 247);
}

::-webkit-scrollbar-thumb {
    background: rgb(201, 161, 172);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(176, 122, 140);
}

/* Selection color */
::selection {
    background: rgb(235, 220, 227);
    color: rgb(104, 62, 75);
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Image hover effect */
img {
    -webkit-tap-highlight-color: transparent;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid rgb(245, 158, 11);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button ripple effect placeholder */
button, a {
    -webkit-tap-highlight-color: transparent;
}
