/* Custom styles for Bass Hardware */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f6;
}
::-webkit-scrollbar-thumb {
    background: #a83232;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a2a2a;
}

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

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

/* Selection color */
::selection {
    background: #fce7e7;
    color: #551a1a;
}

/* Subtle animation for interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure hero images have proper aspect ratio */
.hero-img {
    aspect-ratio: 4/5;
    object-fit: cover;
}

/* Card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(85, 26, 26, 0.15);
}

/* Form input transitions */
input, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus, textarea:focus {
    border-color: #a83232 !important;
    box-shadow: 0 0 0 3px rgba(168, 50, 50, 0.1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
