/* Custom styles for Sand Road Gravel */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #c9a227;
    color: #0a1628;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.1);
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

/* Gold accent underline */
.gold-underline {
    position: relative;
    display: inline-block;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #c9a227;
    border-radius: 2px;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* Subtle pattern overlay for sections */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(26, 43, 76, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}
