/* ============================================
   Coley Painting Contractors — Custom Styles
   ============================================ */

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

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes floatDelay {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
}

@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* --- Utility --- */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: floatDelay 8s ease-in-out infinite;
}

.animate-scrollLine {
    animation: scrollLine 2s ease-in-out infinite;
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    display: block;
}

/* --- Service Cards --- */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Gallery --- */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* --- Navbar Transition --- */
#navbar.scrolled {
    background: rgba(13, 59, 18, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled .font-serif {
    color: #F5F0E8;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2E7D32;
}

/* --- Selection --- */
::selection {
    background: #1B5E20;
    color: #F5F0E8;
}

/* --- Focus Visible --- */
*:focus-visible {
    outline: 2px solid #1B5E20;
    outline-offset: 2px;
}

/* --- Mobile Menu --- */
#mobileMenu {
    animation: fadeInUp 0.3s ease-out;
}

.mobile-link {
    position: relative;
}

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

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

/* --- Select styling --- */
select option {
    background: #F5F0E8;
    color: #1B5E20;
}

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