/* Custom styles for Bonney Lake Lodging */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #b8902e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a843;
}

/* Hero section - ensure text is visible */
#hero {
    background-color: #1a2744;
}

/* Room cards */
.room-card {
    will-change: transform;
}

/* Testimonial cards */
.testimonial-card {
    will-change: transform;
}

/* Amenity items */
.amenity-item {
    border-radius: 1rem;
}

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

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

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Fade in animations for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .room-card,
    .testimonial-card {
        transition: none;
    }
    .room-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    .animate-bounce {
        animation: none;
    }
}

/* Ensure nav links are readable */
nav a {
    text-decoration: none;
}

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
}

/* Ensure all text has proper contrast */
.text-navy-700,
.text-navy-800,
.text-navy-600 {
    color: #1a2744;
}

.text-navy-500 {
    color: #3d61a4;
}

.text-navy-400 {
    color: #6683b8;
}

.text-navy-300 {
    color: #8fa5cc;
}

.text-navy-200 {
    color: #b8c6e0;
}

.text-navy-100 {
    color: #dce3f0;
}
