/* Custom styles for Weiler Scale Company */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4a7c35;
}

/* Selection color */
::selection {
    background: #4a7c35;
    color: #faf9f6;
}

/* Service card hover animation */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu link hover */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.mobile-link:hover {
    padding-left: 1rem;
    color: #4a7c35;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

/* Form input focus animation */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(74, 124, 53, 0.1);
}

/* Industry card image transition */
.group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .group img,
    button,
    a {
        transition: none;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .font-serif {
        font-feature-settings: 'ss01';
    }
}

/* Print styles */
@media print {
    nav,
    #mobile-menu,
    button,
    form {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-forest-900,
    .bg-forest-700 {
        background: #2d4f22 !important;
        color: #fff !important;
    }
}
