/* Custom styles for Webb Plumbing & Septic Tank */

/* Smooth scroll behavior is handled by Tailwind's scroll-smooth */

/* Custom animations */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.03), transparent);
    transition: left 0.7s ease;
    z-index: 0;
}

.service-card:hover::before {
    left: 100%;
}

/* Metallic gold gradient text effect */
.text-metallic-gold {
    background: linear-gradient(135deg, #f0d89e 0%, #d4a84b 50%, #e6c474 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #0a0d0b;
}

::-webkit-scrollbar-thumb {
    background: #284f29;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #366335;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-pulse-slow {
        animation: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Selection color */
::selection {
    background-color: rgba(212, 168, 75, 0.3);
    color: #f2f7f4;
}
