/* Custom styles for Dux Furniture Restoration */

:root {
    --terra-500: #d15a38;
    --terra-600: #b84428;
    --trust-900: #0f2440;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(15, 36, 64, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

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

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

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

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

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

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

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

/* Selection color */
::selection {
    background: #d15a38;
    color: white;
}

/* Image loading placeholder */
img {
    background-color: #e7e5e4;
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #d15a38;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth card hover */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Prevent layout shift on images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
