/* Canady Auto Repair — Custom Styles */

:root {
    --burgundy-50: #FDF2F4;
    --burgundy-100: #F9E0E4;
    --burgundy-200: #F3C1C9;
    --burgundy-300: #E9969F;
    --burgundy-400: #DD6B6B;
    --burgundy-500: #7B2D3B;
    --burgundy-600: #6B2430;
    --burgundy-700: #5A1C27;
    --burgundy-800: #4A151E;
    --burgundy-900: #3A0F15;
    --blush-100: #FFF0EC;
    --cream-50: #FFFBF9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--cream-50);
    color: var(--burgundy-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 251, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08), 0 4px 20px rgba(123, 45, 59, 0.06);
}

nav.scrolled .font-display {
    color: var(--burgundy-700);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Service cards */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream-50);
}
::-webkit-scrollbar-thumb {
    background: var(--burgundy-200);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-400);
}

/* Selection */
::selection {
    background: var(--burgundy-100);
    color: var(--burgundy-800);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
