/* Custom styles for Anaheim Hills Caravan */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #0a1f3f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #153a66;
}

/* Navbar scroll state */
.nav-logo-text {
    transition: color 0.5s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #0a1f3f;
}

#navbar.scrolled .nav-link {
    color: #153a66;
}

#navbar.transparent .nav-logo-text {
    color: #ffffff;
}

#navbar.transparent .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#navbar.transparent .nav-link:hover {
    color: #5ec4a8;
}

#navbar.transparent .mobile-nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#navbar.transparent .mobile-nav-link:hover {
    color: #5ec4a8;
    background: rgba(94, 196, 168, 0.1);
}

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

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

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

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

/* Area item hover */
.area-item {
    transform: translateX(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.area-item:hover {
    transform: translateX(4px);
}

/* Testimonial card hover */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}

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

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Selection color */
::selection {
    background: #5ec4a8;
    color: #0a1f3f;
}

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

/* Loading animation for images */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
