/* Custom styles — beyond Tailwind */

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

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

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

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

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

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

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

#mobileMenu.open {
    max-height: 500px;
}

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

/* Selection color */
::selection {
    background-color: rgba(224, 82, 51, 0.2);
    color: inherit;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c9a56e;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #e05233;
    outline-offset: 2px;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #faf5ef inset !important;
    -webkit-text-fill-color: #1f2937 !important;
}

/* Active link highlight */
.nav-link-active {
    color: #e05233 !important;
}

/* Print styles */
@media print {
    header, footer, #contactForm, #formSuccess {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
    }
}
