/* Custom styles for US Xpress */

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Hero gradient background */
.bg-hero-gradient {
    background: linear-gradient(135deg, #742a1e 0%, #d14a2e 50%, #e0684a 100%);
}

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

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

::-webkit-scrollbar-thumb {
    background: #d14a2e;
    border-radius: 5px;
}

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

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

/* Reduced motion preference */
@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;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    button,
    a {
        border: 1px solid currentColor;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .group:hover .group-hover\:bg-terracotta-600 {
        background-color: #d14a2e;
    }
    
    .group:hover .group-hover\:text-white {
        color: white;
    }
}

/* Ensure proper text contrast */
.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-400 {
    color: #9ca3af;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(209, 74, 46, 0.2);
}

/* Button hover effects */
button:hover,
a:hover {
    transform: translateY(-1px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Image loading placeholder */
img {
    background-color: #e5e7eb;
}

/* Loading state for form */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}
