/* Custom styles for Scott's Plumbing */

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

/* Hero gradient animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #9bbf9b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #729f72;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(46, 74, 45, 0.1);
}

/* Fade in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for emergency badge */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

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

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

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(79, 125, 79, 0.4);
}

/* Testimonial card hover */
.bg-cream-50:hover {
    box-shadow: 0 10px 40px rgba(46, 74, 45, 0.1);
}

/* Map section overlay */
.map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(254, 253, 248, 0.3), rgba(254, 253, 248, 0.1));
    pointer-events: none;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card,
    .btn-glow,
    button,
    a {
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #4f7d4f;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #back-to-top, .animate-bounce {
        display: none;
    }
    
    body {
        color: #1e301e;
        background: white;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* Small phone adjustments */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
