/* Custom styles for Spring Meadow Resort Motel */

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

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-blur: 12px;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .navbar-light {
    color: #1f2937 !important;
}

/* Mobile menu animation */
#mobile-menu.open {
    translate: 0 0;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img,
    img.hover\:scale-105 {
        transition: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

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

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

/* Selection color */
::selection {
    background: #d946ef;
    color: white;
}

/* Subtle pattern for section backgrounds */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(123, 45, 139, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Card hover glow effect */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(123, 45, 139, 0.12);
}

/* Amber accent line animation */
.amber-line {
    position: relative;
}

.amber-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 2px;
}

/* Pulse dot for hero badge */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(251, 191, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

.animate-pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}
