/* Custom styles for Jerry's Auto Repair */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

/* Focus visible styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure contrast on all interactive elements */
button, a {
    cursor: pointer;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 6, 13, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(122, 61, 122, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* 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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .float-1, .float-2, .float-3, .float-4 {
        animation: none !important;
    }
    .gold-shimmer {
        animation: none !important;
        background: none !important;
        -webkit-text-fill-color: #fbbf24 !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .gradient-border::before {
        padding: 1px;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .gradient-border {
        border: 2px solid ButtonText;
    }
    .service-card {
        border: 1px solid ButtonText;
    }
}
