/* Custom styles for Maple Valley Fire and Life Safety */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5ef;
}
::-webkit-scrollbar-thumb {
    background: #d4956a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c0603a;
}

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

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(252, 248, 243, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-transparent {
    background: transparent !important;
    box-shadow: none !important;
}

/* Selection color */
::selection {
    background: #FFD0BC;
    color: #663321;
}

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

/* Button ripple-like effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card {
        transition: none;
    }
    .service-card:hover {
        transform: none;
    }
}

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

/* Subtle gradient animation for hero */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, -10px); }
}

/* Fade in animation for scroll sections */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-hidden {
    opacity: 0;
    transform: translateY(20px);
}

@media (prefers-reduced-motion: no-preference) {
    .fade-in-section.is-hidden {
        opacity: 0;
        transform: translateY(20px);
    }
}
