/* Custom styles for Kelso Lake Resort */

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

/* Scroll reveal base styles - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS is enabled, add the hidden state for animation */
.js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
    
    .group:hover .group-hover\:translate-x-1 {
        transform: none;
    }
    
    .hover\:-translate-y-1:hover {
        transform: none;
    }
    
    .hover\:scale-110:hover {
        transform: none;
    }
}

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

#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background-color: #064e3b;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: 16px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Selection color */
::selection {
    background-color: rgba(6, 78, 59, 0.15);
    color: #064e3b;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #064e3b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form styles for contact form */
input:focus,
textarea:focus {
    outline: none;
    border-color: #064e3b;
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.1);
}

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

/* Subtle pattern for section backgrounds */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(6, 78, 59, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Decorative divider */
.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.divider-ornament::before,
.divider-ornament::after {
    content: '';
    height: 1px;
    width: 48px;
    background: linear-gradient(to right, transparent, rgba(6, 78, 59, 0.3), transparent);
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-slow {
    animation: float 6s ease-in-out infinite;
}

.float-medium {
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

.float-fast {
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* Success message for contact form */
.success-message {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
