/* ===================================
   Lodge In Valley of The Falls
   Custom Styles
   =================================== */

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

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #3D3D3D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8734A;
}

/* Selection */
::selection {
    background: rgba(232, 115, 74, 0.3);
    color: #fff;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hero stat cards */
.stat-card {
    animation: floatIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.card-1 { animation-delay: 0.4s; }
.card-2 { animation-delay: 0.6s; }
.card-3 { animation-delay: 0.8s; }

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle floating animation for cards */
.stat-card:nth-child(1) {
    animation: floatIn 0.8s ease-out 0.4s forwards, gentleFloat 6s ease-in-out 1.2s infinite;
}
.stat-card:nth-child(2) {
    animation: floatIn 0.8s ease-out 0.6s forwards, gentleFloat 6s ease-in-out 1.4s infinite;
}
.stat-card:nth-child(3) {
    animation: floatIn 0.8s ease-out 0.8s forwards, gentleFloat 6s ease-in-out 1.6s infinite;
}

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

/* Room cards */
.room-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.room-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.room-card:nth-child(1) { transition-delay: 0s; }
.room-card:nth-child(2) { transition-delay: 0.15s; }
.room-card:nth-child(3) { transition-delay: 0.3s; }

/* Amenities */
.amenity-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.amenity-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal base state (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .room-card,
    .amenity-item {
        opacity: 0;
        transform: translateY(30px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .stat-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .room-card,
    .amenity-item {
        opacity: 1;
        transform: none;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #E8734A;
    outline-offset: 2px;
}

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

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

/* Divider line animation */
.divider-line {
    position: relative;
    overflow: hidden;
}

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

.divider-line:hover::after {
    width: 100%;
}

/* Button hover effect */
button, a[href] {
    position: relative;
}

/* Image aspect ratio helpers */
.aspect-card {
    aspect-ratio: 4/3;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
