/* Custom styles for Marely's Auto Sales */

:root {
    --color-charcoal-900: #1A1A1A;
    --color-charcoal-800: #2D2D2D;
    --color-charcoal-700: #3A3A3A;
    --color-coral-400: #E8735A;
    --color-coral-500: #D45A3F;
}

html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: 'cv02', 'cv03', 'cv04';
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-charcoal-900);
}
::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral-400);
}

/* Selection color */
::selection {
    background: rgba(232, 115, 90, 0.2);
    color: var(--color-charcoal-900);
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-coral-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle pattern overlay for hero */
#top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Image lazy-load fade */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Hover underline animation for links */
a.hover-underline {
    position: relative;
}
a.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-coral-400);
    transition: width 0.3s ease;
}
a.hover-underline:hover::after {
    width: 100%;
}

/* Step cards connection line (mobile) */
@media (max-width: 767px) {
    .process-step {
        position: relative;
    }
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 1.5rem;
        background: linear-gradient(to bottom, transparent, var(--color-coral-400)/20);
    }
}
