/* Custom styles for Keene's Motor Lodge */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a170a;
}
::-webkit-scrollbar-thumb {
    background: #2d5e2d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d7a3d;
}

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #faf8f4;
}

/* Room card image hover */
.room-card .group:hover img {
    transform: scale(1.1);
}

/* Gold shimmer effect on hover for buttons */
button[type="submit"]:hover,
a.bg-gold-500:hover {
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.4) !important;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
}

#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
    width: 1.25rem;
    margin-left: 0;
}

/* Scroll reveal base state (visible by default) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .room-card .group:hover img {
        transform: none;
    }
    #mobileMenu .mobile-link {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Map filter override for light mode in iframe */
iframe[title] {
    transition: filter 0.3s ease;
}
iframe[title]:hover {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1) !important;
}
