/* Custom styles for Seattle's Best Coffee Denver */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2c6e36;
}

/* Selection color */
::selection {
    background: #c5dfcc;
    color: #18381d;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
#mobile-menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(251, 251, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(28, 69, 35, 0.08);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

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

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

/* Subtle pattern for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(68, 137, 78, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}
