/* Custom styles for Number One State Plumbing */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #F5F5F0;
}
::-webkit-scrollbar-thumb {
    background: #40916C;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2D6A4F;
}

/* Selection color */
::selection {
    background: #52B788;
    color: #0B2218;
}

/* Mobile menu animations */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #52B788;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 80%;
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.3);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(254, 252, 191, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(27, 67, 50, 0.1);
}

/* Hero image gradient overlay */
.hero-image-overlay {
    position: relative;
}
.hero-image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.1) 0%, transparent 50%);
    border-radius: 1.5rem;
    pointer-events: none;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-reverse {
    animation: float-reverse 8s ease-in-out infinite;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays */
.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; }

/* Geometric pattern overlay for sections */
.geo-pattern {
    background-image: radial-gradient(circle, rgba(82, 183, 136, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Button press effect */
.btn-press:active {
    transform: scale(0.97) !important;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid #52B788;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Custom 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='%232D6A4F' 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: 3rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-image-overlay::after {
        display: none;
    }
}
