/* Custom Styles for H&K Performance and Repair */

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Custom selection color */
::selection {
    background-color: #742020;
    color: white;
}

/* Editorial typography enhancements */
.font-serif {
    letter-spacing: -0.02em;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23742020' fill-opacity='%220.02'%22%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Reduced motion preferences */
@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 (forced-colors: active) {
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Improved form styling */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(116, 32, 32, 0.2);
}

/* Card hover effects */
.service-card:hover {
    border-color: #742020;
    box-shadow: 0 20px 40px rgba(116, 32, 32, 0.15);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 245, 245, 0.98) !important;
    box-shadow: 0 4px 20px rgba(116, 32, 32, 0.1);
}

/* Button ripple effect */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Image hover zoom */
.hero-image,
#about img {
    transition: transform 0.5s ease;
}

.hero-image:hover,
#about img:hover {
    transform: scale(1.02);
}
