/* Custom Styles for Ultimate Auto Detailing */

:root {
    --midnight-900: #0f172a;
    --midnight-700: #334155;
    --midnight-600: #475569;
    --midnight-500: #64748b;
    --midnight-100: #f1f5f9;
    --mint-600: #059669;
    --mint-500: #10b981;
    --mint-400: #34d399;
    --mint-300: #6ee7b7;
    --mint-200: #a7f3d0;
    --mint-100: #d1fae5;
    --mint-50: #ecfdf5;
}

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

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeInDelay 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* Navigation active state */
.nav-link.active {
    color: #059669;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

/* Service card hover effect */
.group:hover .group-hover\\:bg-midnight-900 {
    background-color: #0f172a;
}

.group:hover .group-hover\\:text-white {
    color: #ffffff;
}

.group:hover .group-hover\\:text-mint-100 {
    color: #d1fae5;
}

/* Button hover effects */
a:hover {
    transition: all 0.3s ease;
}

/* Image hover zoom effect */
img {
    transition: transform 0.3s ease;
}

/* Form input focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

/* Remove default Tailwind colors and use custom palette */
.bg-midnight-900 {
    background-color: var(--midnight-900);
}

.text-midnight-900 {
    color: var(--midnight-900);
}

.bg-mint-600 {
    background-color: var(--mint-600);
}

.text-mint-600 {
    color: var(--mint-600);
}

.bg-mint-500 {
    background-color: var(--mint-500);
}

.text-mint-500 {
    color: var(--mint-500);
}

.bg-mint-100 {
    background-color: var(--mint-100);
}

.text-mint-100 {
    color: var(--mint-100);
}

.bg-mint-50 {
    background-color: var(--mint-50);
}

.text-mint-700 {
    color: #047857;
}

.text-mint-400 {
    color: var(--mint-400);
}

.border-mint-200 {
    border-color: var(--mint-200);
}

.border-mint-300 {
    border-color: var(--mint-300);
}

.border-mint-500 {
    border-color: var(--mint-500);
}

.focus\\:ring-mint-200:focus {
    --tw-ring-color: var(--mint-200);
}

.focus\\:border-mint-500:focus {
    border-color: var(--mint-500);
}
