/* BJ Industrial — Custom Styles */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* Navbar transition */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-serif {
    color: #1e3116 !important;
}

#navbar.scrolled .text-forest-600 {
    color: #4a7a35 !important;
}

#navbar.scrolled .mobile-link {
    color: #1e3116 !important;
}

/* Mobile menu animation */
#menu-icon.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}

#menu-icon.active #bar2 {
    opacity: 0;
}

#menu-icon.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Service card hover */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #4a7a35;
    transition: width 0.4s ease;
}

.service-card:hover::after {
    width: 100%;
}

/* Scroll reveal base — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3a6129;
    box-shadow: 0 0 0 1px #3a6129;
}

/* Selection color */
::selection {
    background: #dce8d8;
    color: #1e3116;
}
