/* Custom Styles for Mill Lane Mechanical */

/* Color Variables */
:root {
    --plum-50: #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #6b21a8;
    --plum-900: #581c87;
    --plum-950: #3b0764;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
}

/* Tailwind Config Extension */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Tailwind Configuration */
@layer utilities {
    .text-plum-950 { color: var(--plum-950); }
    .text-plum-900 { color: var(--plum-900); }
    .text-plum-700 { color: var(--plum-700); }
    .text-plum-200 { color: var(--plum-200); }
    .text-plum-300 { color: var(--plum-300); }
    .bg-plum-950 { background-color: var(--plum-950); }
    .bg-plum-900 { background-color: var(--plum-900); }
    .bg-plum-800 { background-color: var(--plum-800); }
    .bg-plum-100 { background-color: var(--plum-100); }
    .bg-amber-500 { background-color: var(--amber-500); }
    .bg-amber-400 { background-color: var(--amber-400); }
    .text-amber-400 { color: var(--amber-400); }
    .text-amber-600 { color: var(--amber-600); }
}

/* Typography */
body {
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Lora', serif;
}

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

/* Service Card Hover Effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Navbar Scroll Effect */
#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Back to Top Button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6b21a8;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}
