/* Custom styles for The Country Cafe and Bakery */

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

/* Navbar transition states */
.nav-scrolled {
    background: rgba(255, 254, 249, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #8b2626 !important;
}

.nav-scrolled .nav-link {
    color: #4a3f35 !important;
}

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

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

.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b2626;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-link:hover::after {
    width: 100%;
}

/* Scroll reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    img:hover,
    .hover\\:scale-105:hover {
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a83030;
}

/* Selection color */
::selection {
    background: #fca5a5;
    color: #3d0c0c;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fff9e8 0%, #ffe1d6 100%);
}

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

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .nav-scrolled {
        padding-top: 0;
        padding-bottom: 0;
    }
}
