/* === Custom Styles for The Roastery === */

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

/* Navbar transition states */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(21, 38, 64, 0.08);
}

#navbar.scrolled .font-serif {
    color: #152640;
}

#navbar.scrolled a:not(.bg-navy-900):not(.bg-gold-500) {
    color: #1c3352;
}

#navbar.scrolled a:not(.bg-navy-900):not(.bg-gold-500):hover {
    color: #d49a1a;
}

/* Hero animation */
.hero-eyebrow {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Button micro-interactions */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Focus styles */
input:focus, textarea:focus, button:focus {
    outline: none;
}

/* Selection color */
::selection {
    background-color: #e8b133;
    color: #152640;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero-eyebrow {
        animation: none;
        opacity: 1;
    }
    
    img, .group img {
        transition: none;
    }
}

/* Keyframes */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #99aed5;
}
