/* Custom styles for Trendwest Resort */

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

/* Navbar styles */
.nav-link {
    position: relative;
}

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

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

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--rotate, 0deg)); }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4A614E;
}

/* Selection color */
::selection {
    background-color: #C8A96C;
    color: #1B3A2D;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C8A96C;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background-color: #EDE5D8;
}

/* Mobile menu button animation */
#mobile-menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Navbar scroll state */
.nav-scrolled .nav-logo-light {
    fill: #C8A96C;
}

.nav-scrolled .nav-text {
    color: #1B3A2D;
}

.nav-scrolled .nav-subtext {
    color: #6A826E;
}

/* Smooth image transitions */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card hover effects */
.relative.group > div:first-child:hover img {
    transform: scale(1.05);
}
