/* Custom styles for Folklore Coffee & Company */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f0;
}
::-webkit-scrollbar-thumb {
    background: #0A2342;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #133752;
}

/* Selection color */
::selection {
    background: #4FD1C5;
    color: #0A2342;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 35, 66, 0.08);
}

.nav-scrolled .nav-link {
    color: #133752;
}

.nav-scrolled .font-serif {
    color: #0A2342;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

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

/* Image hover zoom */
img {
    -webkit-user-drag: none;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #4FD1C5;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #0A2342, #4FD1C5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 35, 66, 0.12);
}

/* Decorative pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(10, 35, 66, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
