/* Custom Styles for Cottonwood Hot Springs Spa & Motel */

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

/* Scroll Reveal Animation - Progressive Enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #3d9b55;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #247a3c;
}

/* Navbar Active State */
.nav-active {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Input Focus Styles */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 155, 85, 0.2);
}

/* Button Hover Effects */
button,
a {
    transition: all 0.3s ease;
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(90deg, #e1f5e8 25%, #f2fcf5 50%, #e1f5e8 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #165c2c 0%, #3d9b55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Pulse Animation for CTA */
@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-soft {
    animation: pulse-soft 2s infinite;
}

/* Decorative Wave */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Custom Selection Color */
::selection {
    background: #c3eacb;
    color: #0c351a;
}
