/* Custom styles for Helping Hands Realty */

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

/* Prevent scroll-reveal from hiding content when JS is disabled */
.no-js .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* Scroll reveal base state — always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply hidden state when JS adds the class (progressive enhancement) */
.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.revealed.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 252, 250, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 67, 30, 0.08);
}

nav.scrolled .nav-link {
    color: #1a431e;
}

nav.scrolled .nav-link:hover {
    color: #2a6b30;
}

nav.scrolled .font-serif {
    color: #1a431e;
}

/* Selection color */
::selection {
    background-color: #bce0be;
    color: #1a431e;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        transition: none;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    #backToTop {
        transition: none;
    }
    
    .group {
        transition: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8ec790;
}
