/* Custom styles for Bluegrass Stone LLC */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #d4a843;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8892e;
}

/* Selection color */
::selection {
    background: #d4a843;
    color: #1e2d3d;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(-12deg); }
    50% { transform: translateY(-8px) rotate(-12deg); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

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

.nav-scrolled .font-display {
    color: #1e2d3d !important;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

/* Mobile nav links */
.mobile-nav-link {
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    transform: translateX(4px);
}

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

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

/* Reduced motion support for animations */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .group img {
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    header, footer, .reveal {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
