/* Custom Styles for Bear Creek Duplex */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c47252;
}

/* Card Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.card-float:nth-child(2) {
    animation-delay: -1.5s;
}

.card-float:nth-child(3) {
    animation-delay: -3s;
}

.card-float:nth-child(4) {
    animation-delay: -4.5s;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .card-float {
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Form Focus Styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(196, 114, 82, 0.1);
}

/* Button Hover Effects */
button:hover,
a:hover {
    transform: translateY(-1px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

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

/* Hero Image Parallax */
.hero-bg {
    will-change: transform;
}

/* Text Selection */
::selection {
    background-color: #e8cfc2;
    color: #69362a;
}

/* Image Hover Zoom */
img {
    transition: transform 0.3s ease;
}

/* Print Styles */
@media print {
    nav,
    button,
    .card-float {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
