/* Custom styles for Montavilla Saloon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fdf6ec;
}
::-webkit-scrollbar-thumb {
    background: #e8502a;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d13a1d;
}

/* Navigation states */
.nav-scrolled #navbar {
    background: rgba(61, 15, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Text colors for navbar */
.text-nav-logo {
    color: #fdf6ec;
}
.text-nav-link {
    color: #fce4d9;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile links */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-link:hover {
    color: #f49a78;
    padding-left: 8px;
}
.mobile-link::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #e8502a;
    transition: width 0.2s ease;
}
.mobile-link:hover::before {
    width: 8px;
}

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

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

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 3px solid #e8502a;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(12deg);
    }
    50% {
        transform: translateY(-20px) rotate(12deg);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
}

/* Apply to decorative elements */
.absolute.top-20.right-1/4 {
    animation: float 6s ease-in-out infinite;
}

.absolute.bottom-32.left-10 {
    animation: floatSlow 8s ease-in-out infinite;
}
