/* Custom styles for Dillon Bread Company */

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

/* Base text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: #d4a832;
    color: #111a2e;
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, color 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(17, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.light-text {
    color: #ffffff;
}

#navbar.dark-text {
    color: #111a2e;
}

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

.mobile-link {
    transition: opacity 0.3s ease;
}

/* Scroll reveal animations */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Subtle hover effects for images */
img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

::-webkit-scrollbar-thumb {
    background: #d4a832;
    border-radius: 3px;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a832;
    outline-offset: 2px;
}

/* Image aspect ratio utility */
.aspect-square-img {
    aspect-ratio: 1;
    object-fit: cover;
}

/* Thin line decoration */
.line-decoration {
    position: relative;
}

.line-decoration::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 1px;
    background: #d4a832;
}
