/* Custom styles for Premiere Imaging Services */

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

/* Prevent scroll-reveal from hiding content when JS is disabled */
.service-card,
.feature-card,
.stat-item {
    opacity: 1;
    transform: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

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

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

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

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

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(250, 250, 246, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

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

#navbar.scrolled .text-forest-600 {
    color: #365f3b !important;
}

#navbar.scrolled .text-forest-500 {
    color: #4a7d50 !important;
}

#navbar.scrolled .border-forest-200 {
    border-color: #bdd5be !important;
}

#navbar:not(.scrolled) .font-serif {
    color: #FAFAF6 !important;
}

#navbar:not(.scrolled) .text-forest-600 {
    color: #93bc96 !important;
}

#navbar:not(.scrolled) .text-forest-500 {
    color: #bdd5be !important;
}

#navbar:not(.scrolled) .border-forest-200 {
    border-color: rgba(157, 188, 150, 0.3) !important;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* Animation classes (progressive enhancement) */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.from-bottom {
    transform: translateY(30px);
}

.animate-on-scroll.from-left {
    transform: translateX(-30px);
}

.animate-on-scroll.from-right {
    transform: translateX(30px);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #1B4332;
    color: #FAFAF6;
}
