/* ============================================
   Sportsmans Rest — Custom Styles
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Scroll reveal base (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(160, 193, 122, 0.2);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-link {
    position: relative;
}

.nav-scrolled .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #568034;
    transition: width 0.25s ease;
}

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

/* Stat cards float animation */
@media (prefers-reduced-motion: no-preference) {
    .stat-card {
        animation: float 6s ease-in-out infinite;
    }
    .stat-card:nth-child(2) {
        animation-delay: -1.5s;
    }
    .stat-card:nth-child(3) {
        animation-delay: -3s;
    }
    .stat-card:nth-child(4) {
        animation-delay: -4.5s;
    }
}

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

/* Room cards */
.room-card {
    border: 1px solid rgba(160, 193, 122, 0.15);
}

.room-card:hover {
    border-color: rgba(86, 128, 52, 0.3);
}

/* Amenity cards */
.amenity-card {
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .amenity-card:hover {
        transform: translateY(-4px);
    }
}

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

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

.mobile-nav-link {
    border-bottom: 1px solid rgba(160, 193, 122, 0.15);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    color: #568034;
    padding-left: 8px;
}

/* Form styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(86, 128, 52, 0.15);
}

/* Selection color */
::selection {
    background: rgba(86, 128, 52, 0.2);
    color: #1a2e10;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5ee;
}
::-webkit-scrollbar-thumb {
    background: #a0c17a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #78a34e;
}
