/* Custom styles for Florida United Tire */

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

/* Base styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #fdfbf7;
    color: #1a1a1a;
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1f8057;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
}

/* Animation delays for staggered reveals */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }
.reveal:nth-child(5) { transition-delay: 400ms; }
.reveal:nth-child(6) { transition-delay: 500ms; }

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 3px solid rgba(54, 163, 116, 0.3);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .hero-gradient {
        background: #f5f0e8 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .card-shadow {
        box-shadow: 0 0 0 2px currentColor;
    }
}

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

/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: white;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tooltip:hover::after {
    opacity: 1;
}
