/* Custom styles for A To Z Auto Sales and Repair */

:root {
    --plum-950: #3b0764;
    --plum-800: #6b21a8;
    --plum-700: #7e22ce;
    --plum-600: #9333ea;
    --plum-500: #a855f7;
    --plum-200: #e9d5ff;
    --plum-100: #f3e8ff;
    --plum-50: #faf5ff;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-600: #d97706;
    --amber-700: #b45309;
}

* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Ensure all text has proper contrast */
.hero-gradient h1,
.hero-gradient p,
.hero-gradient .gold-gradient-text {
    color: inherit;
}

/* Fix for any potential contrast issues */
.text-plum-950 { color: #3b0764; }
.text-plum-700 { color: #7e22ce; }
.text-plum-600 { color: #9333ea; }
.text-plum-500 { color: #a855f7; }
.text-plum-400 { color: #c084fc; }
.text-plum-300 { color: #d8b4fe; }
.text-plum-200 { color: #e9d5ff; }
.text-plum-100 { color: #f3e8ff; }

.text-amber-950 { color: #451a03; }
.text-amber-800 { color: #92400e; }
.text-amber-700 { color: #b45309; }
.text-amber-600 { color: #d97706; }
.text-amber-500 { color: #f59e0b; }
.text-amber-400 { color: #fbbf24; }
.text-amber-200 { color: #fde68a; }
.text-amber-100 { color: #fef3c7; }

/* Ensure buttons have proper contrast */
.btn-primary {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #3b0764;
}

.btn-secondary {
    border: 2px solid #fbbf24;
    color: #fbbf24;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(59, 7, 100, 0.2);
}

/* Service card specific styles */
.service-card {
    background: #faf5ff;
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(59, 7, 100, 0.15);
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Pulse animation */
.pulse-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #faf5ff;
}

::-webkit-scrollbar-thumb {
    background: #9333ea;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7e22ce;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
}
