/* Custom styles for Windy City Appliance Solutions */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #c4c6ca;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a4aa;
}

/* Hero floating cards animation */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card-delayed {
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(30, 33, 40, 0.3);
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(30, 33, 40, 0.08);
}

/* Selection color */
::selection {
    background-color: rgba(249, 112, 102, 0.2);
    color: #1e2128;
}

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

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

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

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

/* Service card stagger animation */
.service-card {
    opacity: 1;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b808a' 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: 2.5rem;
}
