/* Custom styles for Empire Metal Recycling */

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6ed;
}
::-webkit-scrollbar-thumb {
    background: #d44d3c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c23628;
}

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

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #d44d3c;
    box-shadow: 0 0 0 3px rgba(212, 77, 60, 0.15);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fdf6ed 0%, #f5d5a8 100%);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Button hover effects */
a.bg-terracotta-600:hover {
    transform: translateY(-1px);
}

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