/* =============================================
   Variety Detail LLC — Custom Styles
   ============================================= */

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #0A1628;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4B96A;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Service card stagger animation */
.service-card {
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* Header scroll state */
#header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* Testimonial card hover lift */
#testimonials .rounded-2xl:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Subtle parallax on hero image */
#hero img {
    will-change: transform;
}

/* Gold accent line animation */
.w-16.h-1.bg-gold-500 {
    transition: width 0.6s ease;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* Mobile menu link underline animation */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A84C;
    transition: width 0.2s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
