/* Custom styles for Doe Run Supply Company */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navigation background on scroll */
nav.scrolled {
    background: rgba(255, 252, 249, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(60, 26, 26, 0.08);
}

nav.scrolled .nav-text {
    color: #380a0a;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* Subtle hover lift on cards */
.group:hover {
    transform: translateY(-2px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fffcf9;
}
::-webkit-scrollbar-thumb {
    background: #d9ccb8;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b09c74;
}

/* Selection color */
::selection {
    background: #f9d0d0;
    color: #380a0a;
}
</style>
