/* Custom styles for Choice Auto Glass */

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

/* Navbar scroll effect */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(26, 95, 58, 0.08);
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #358a2e;
    border-radius: 1px;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile menu */
.mobile-nav-link {
    transition: all 0.2s ease;
}

/* Service cards */
.service-card {
    transition: all 0.3s ease;
}

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

/* Process steps */
.process-step {
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

.process-step:hover .w-20 {
    transform: scale(1.05);
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Form styling */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(53, 138, 46, 0.15);
}

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

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

::-webkit-scrollbar-thumb {
    background: #b9e0b0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #88c97e;
}

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

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating card animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Accessibility - focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #358a2e;
    outline-offset: 2px;
    border-radius: 4px;
}
