/* Custom styles for Old Cow Town at Prior Ranch */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e121e;
}
::-webkit-scrollbar-thumb {
    background: #4e2f4e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #663d66;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #1e121e;
}

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

/* Image lazy loading fade */
img {
    display: block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .group:hover img {
        transform: none;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

/* Gold accent line animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Subtle pulse for decorative elements */
@keyframes softPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contactForm, .reveal { display: none; }
    body { background: white; color: black; }
}
