/* Custom styles for The Degray Lakehouse */

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

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }

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

/* Scroll reveal for sections below the fold */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

#navbar.scrolled {
    background: rgba(253, 248, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.1);
}

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger to X transition */
#menu-line-1.open {
    transform: translateY(8px) rotate(45deg);
}

#menu-line-2.open {
    opacity: 0;
}

#menu-line-3.open {
    transform: translateY(-8px) rotate(-45deg);
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #7B2D3B !important;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

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

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

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

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

/* Selection color */
::selection {
    background: #F9D0D9;
    color: #7B2D3B;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-anim {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img, .group img {
        transition: none;
    }
}
