/* Bear'ly Awake Coffee Den — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4fbf7;
}
::-webkit-scrollbar-thumb {
    background: #a3dbb8;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6fc38a;
}

/* Selection color */
::selection {
    background: #ccebd8;
    color: #0d1d6b;
}

/* Reduced motion preference */
@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.visible {
        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; }
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(13, 29, 107, 0.06), 0 4px 24px rgba(13, 29, 107, 0.06);
}

/* Hero parallax feel */
#hero {
    scroll-snap-align: start;
}

/* Subtle hover lift for cards */
.bg-white.rounded-3xl {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.bg-white.rounded-3xl:hover {
    box-shadow: 0 8px 40px rgba(13, 29, 107, 0.08);
    transform: translateY(-2px);
}

/* Menu item hover */
.bg-white.rounded-3xl ul li {
    transition: background 0.2s ease;
    border-radius: 8px;
    padding: 4px 4px;
    margin: 0 -4px;
}
.bg-white.rounded-3xl ul li:hover {
    background: #f4fbf7;
}

/* Gallery image hover */
.rounded-2xl.overflow-hidden,
.col-span-2 {
    overflow: hidden;
}

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

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for status dot */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
