/* Custom styles for Nicks Pressure Washing */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #d4a853;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e0b96a;
}

/* Selection color */
::selection {
    background: #d4a853;
    color: #0a1628;
}

/* Hero image gradient overlay */
.hero-image-overlay {
    background: linear-gradient(to top, rgba(10, 22, 40, 0.6) 0%, transparent 50%);
}

/* Service card hover effects */
.service-card {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery item hover */
.gallery-item {
    position: relative;
}
.gallery-item img {
    transition: transform 0.5s ease;
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Mobile link hover */
.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-link:hover {
    padding-left: 8px;
}

/* Scroll-triggered animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 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;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    border-color: #d4a853 !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15) !important;
}

/* Button ripple effect */
button {
    position: relative;
    overflow: hidden;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4a853 0%, #e0b96a 50%, #ecd08f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}
