/* Allen Painting — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f3f4f6;
}
::-webkit-scrollbar-thumb {
    background: #821e3b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6d1a34;
}

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

/* Gallery hover effects */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    z-index: 1;
    pointer-events: none;
}
.gallery-item:hover::before {
    border-color: rgba(255, 192, 0, 0.5);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #d94d74;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    header, footer, .gallery-item, #testimonials {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
