/* Custom styles for JD's Donuts */

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

.nav-scrolled .nav-text {
    color: #2D5A3D !important;
}

.nav-scrolled .nav-link {
    color: #2D5A3D !important;
}

/* Custom selection color */
::selection {
    background: #8FB894;
    color: #14251C;
}

/* Subtle gradient for hero background */
#hero {
    background: linear-gradient(135deg, #FDFCF8 0%, #F5F5DC 50%, #E8F0E8 100%);
}

/* Card hover effects */
.bg-white.rounded-3xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-3xl:hover {
    transform: translateY(-4px);
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 3px solid #8FB894;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .bg-white.rounded-3xl:hover {
        transform: none;
    }
    
    img.group-hover\:scale-105.transition-transform {
        transition: none;
    }
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: #8FB894;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5E976A;
}
