/* Custom styles for Furniture and Mattress Express */

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

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

/* Animated state - applied via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Nav links in scrolled state */
#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

#navbar.scrolled .nav-logo-text {
    color: white !important;
}

/* Mobile menu link hover */
.mobile-nav-link:hover {
    padding-left: 0.5rem;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Button hover lift effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Tablet breakpoint adjustments */
@media (max-width: 768px) {
    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    #hero {
        min-height: 100vh;
    }
}
