/* Custom styles for Highside Hobbies and Raceway 3.0 */

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

/* Custom font families */
.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.font-open-sans {
    font-family: 'Open Sans', sans-serif;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 6px;
}

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

/* Custom selection color */
::selection {
    background: #d4a843;
    color: #1e3a5f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-montserrat {
        font-size: 0.875em;
    }
    
    .font-montserrat {
        font-size: 1.25em;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 3px solid #d4a843;
    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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-\[\#1e3a5f\] {
        background-color: #0a1628;
    }
    
    .text-\[\#1e3a5f\] {
        color: #0a1628;
    }
    
    .bg-\[\#d4a843\] {
        background-color: #b8922e;
    }
    
    .text-\[\#d4a843\] {
        color: #b8922e;
    }
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
