/* West Coast Tuners Garage - Custom Styles */

/* Additional custom styles beyond Tailwind */

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

/* Ensure all text is readable */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gold accent utilities */
.text-gold-500 {
    color: #c9a84c;
}

.bg-gold-500 {
    background-color: #c9a84c;
}

.border-gold-500 {
    border-color: #c9a84c;
}

/* Navy color utilities */
.bg-navy-900 {
    background-color: #0a0f1e;
}

.bg-navy-800 {
    background-color: #0d1528;
}

.bg-navy-700 {
    background-color: #111d35;
}

/* Mobile menu animations */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    max-height: 500px;
}

/* Navbar scroll effect */
.navbar.scrolled {
    background: rgba(10, 15, 30, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu,
    .pulse-gold {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .text-gold-500,
    .gold-text,
    .gold-shimmer {
        color: #333;
        -webkit-text-fill-color: #333;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    .btn-primary {
        border: 2px solid #c9a84c;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pulse-gold {
        animation: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .image-zoom:hover img {
        transform: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
}

/* Ensure proper rendering on all devices */
img {
    max-width: 100%;
    height: auto;
}

/* Form validation styles */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}

/* Loading state for buttons */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Selection color */
::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #ffffff;
}
