/* Custom styles for Old Wire / DTL */

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

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Navigation scroll state */
.nav-scrolled {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 217, 176, 0.4);
    transition: box-shadow 0.3s ease;
}

.nav-scrolled.scrolled {
    box-shadow: 0 4px 20px rgba(25, 53, 21, 0.08);
}

/* Mobile link hover */
.mobile-link {
    display: block;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #4d7730;
}

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

/* Only apply animation when JS is active and user prefers motion */
@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);
    }
    
    .js-enabled .scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
    .js-enabled .scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
    .js-enabled .scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
    .js-enabled .scroll-reveal.revealed:nth-child(5) { transition-delay: 0.4s; }
    .js-enabled .scroll-reveal.revealed:nth-child(6) { transition-delay: 0.5s; }
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 119, 48, 0.15);
}

/* Button active state */
button:active {
    transform: scale(0.98);
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9dba7e;
}

/* Selection color */
::selection {
    background: #c5d9b0;
    color: #192c12;
}
