/* Sierra Market — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050d0a;
}
::-webkit-scrollbar-thumb {
    background: #143a28;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a853;
}

/* Selection */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f5f0e8;
}

/* Float animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

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

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(5, 13, 10, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 58, 40, 0.5);
}

/* Mobile menu transitions */
.mobile-line {
    display: block;
}

.mobile-menu-open .mobile-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-open .mobile-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-open .mobile-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 5px !important;
}

/* Gold shimmer on hover for cards */
.group:hover .group-hover\:bg-sierra-gold\/20 {
    background-color: rgba(212, 168, 83, 0.2);
}

/* Image aspect ratio fallback */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

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

/* Print styles */
@media print {
    nav, #contact, .animate-float, .animate-float-delayed {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
