/* ============================================
   Hunter's Ridge Resort — Custom Styles
   ============================================ */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fbbf24;
    border-radius: 9999px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Navbar background transition */
.navbar-scrolled {
    background: rgba(253, 244, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(131, 20, 67, 0.08);
}

/* Room card image overlay */
.room-card .relative::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(80, 7, 36, 0.3) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    border-radius: 1.5rem 1.5rem 0 0;
}

.room-card:hover .relative::before {
    opacity: 1;
}

/* Experience card hover */
.experience-card {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.4s ease, background 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .room-card,
    .experience-card,
    .testimonial-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #be185d;
    border-radius: 9999px;
}

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

/* Selection color */
::selection {
    background: #fbcfe8;
    color: #500724;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Mobile menu button animation */
#menu-icon-open,
#menu-icon-close {
    transition: transform 0.3s ease;
}

/* Floating card animation */
@media (prefers-reduced-motion: no-preference) {
    .floating-card {
        animation: float 6s ease-in-out infinite;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
