/* Custom Styles for Wade Auto Sales & Services */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c5a028;
}

/* Selection Color */
::selection {
    background: #d4af37;
    color: #0a192f;
}

/* 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;
    }
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print Styles */
@media print {
    header, footer, #contact-form, iframe {
        display: none !important;
    }
    body {
        color: #000 !important;
        background: #fff !important;
    }
    a {
        color: #000 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .border {
        border-width: 2px !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Mobile Menu Animation */
.mobile-menu-open #line1 {
    transform: translateY(6px) rotate(45deg);
}
.mobile-menu-open #line2 {
    opacity: 0;
}
.mobile-menu-open #line3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
}

/* Navbar Scroll State */
.navbar-scrolled #nav-bg {
    opacity: 1;
}

/* Form Input Focus Animation */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Card Hover Effect */
.group:hover .group-hover\:translate-x-1 {
    transform: translateX(4px);
}

/* Image Loading Optimization */
img {
    content-visibility: auto;
}
