/* 
 * American Wood Interiors - Custom Styles
 * Palette: Emerald Forest (#1A3C34), Sage (#4F6B62), Cream (#F5F2EA), Gold (#C5A065)
 */

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

/* Custom Selection Color */
::selection {
    background-color: #1A3C34;
    color: #F5F2EA;
}

/* Typography Enhancements */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
}

body {
    font-family: 'Lato', sans-serif;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Navbar Transition */
.nav-scrolled {
    background-color: rgba(245, 242, 234, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.nav-scrolled .text-wood-forest {
    color: #1A3C34 !important;
}

.nav-scrolled .font-serif {
    color: #1A3C34 !important;
}

/* Image Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #1A3C34;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1A3C34;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

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