/* Custom styles for Mac's Snax */

html {
    scroll-behavior: smooth;
}

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

/* Scroll reveal base states — visible by default for progressive enhancement */
.reveal {
    opacity: 1;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animated states — only applied via JS for below-the-fold sections */
.reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-up.animated {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-left.animated {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal-right.animated {
    opacity: 0;
    transform: translateX(40px);
}

/* Gallery hover images */
.gallery-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(4, 11, 24, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 150, 62, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #D4A84B 0%, #C8963E 50%, #E0BC6A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #0A1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #C8963E;
}

/* Selection color */
::selection {
    background: rgba(200, 150, 62, 0.3);
    color: #fff;
}

/* Map filter override for light mode */
.map-light iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.8) !important;
}

/* Menu item hover line animation */
.menu-item {
    position: relative;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #C8963E, transparent);
    transition: width 0.4s ease;
}

.menu-item:hover::after {
    width: 100%;
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Image aspect ratios */
.img-cover {
    object-fit: cover;
}
