/* Custom styles for Ruttman Repair LLC */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111d33;
}
::-webkit-scrollbar-thumb {
    background: #2c4066;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #36507d;
}

/* Hero stat cards animation - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .stat-card {
        opacity: 0;
        transform: translateY(20px);
        animation: cardFloatIn 0.6s ease forwards;
    }
    .stat-card[data-delay="0"] { animation-delay: 0.3s; }
    .stat-card[data-delay="100"] { animation-delay: 0.45s; }
    .stat-card[data-delay="200"] { animation-delay: 0.6s; }
    .stat-card[data-delay="300"] { animation-delay: 0.75s; }

    @keyframes cardFloatIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Service cards - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(16px);
    }
    .service-card.revealed {
        animation: fadeUp 0.5s ease forwards;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 18, 33, 0.97) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Gold accent line animation */
.gold-line {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #eab308, #facc15);
    border-radius: 2px;
}

/* Button focus states for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #eab308;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus states */
input:focus,
textarea:focus {
    border-color: rgba(234, 179, 8, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1) !important;
}

/* Ensure all text meets WCAG AA contrast */
/* Navy-950 bg (#0a1221) + white text = ~15:1 ✓ */
/* Navy-900 bg (#111d33) + white text = ~13:1 ✓ */
/* Navy-800 bg (#1c2d4a) + white text = ~10:1 ✓ */
/* Gold-500 (#eab308) on navy-950 = ~9:1 ✓ */
/* Navy-400 (#718fbf) on navy-900 = ~4.8:1 ✓ */
/* Navy-300 (#9fb3d4) on navy-950 = ~8:1 ✓ */
