/* ============================================
   783 Auto Sales LLC — Custom Styles
   Clean Minimalist | Burgundy & Blush
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---- Utility ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 9999;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ---- Navbar ---- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 248, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.06);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #fff;
}

#navbar.scrolled .nav-logo-text {
    color: #1C1917;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    font-size: 1.75rem;
    transition: color 0.3s ease;
}

/* ---- Hero ---- */
.hero {
    position: relative;
}

.hero-bg {
    will-change: transform;
}

.hero-img {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(28, 25, 23, 0.72) 0%,
        rgba(62, 15, 23, 0.65) 50%,
        rgba(28, 25, 23, 0.78) 100%
    );
}

/* ---- Scroll Indicator ---- */
@keyframes scroll-line {
    0% {
        top: -16px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 20px;
        opacity: 0;
    }
}

.scroll-line {
    animation: scroll-line 1.8s ease-in-out infinite;
}

/* ---- Section Labels & Titles ---- */
.section-label {
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-desc {
    font-size: 1.05rem;
}

/* ---- Vehicle Cards ---- */
.vehicle-card {
    transition: transform 0.4s ease;
}

.vehicle-card:hover {
    transform: translateY(-4px);
}

/* ---- Process Steps ---- */
.process-step {
    transition: transform 0.4s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

/* ---- Buttons ---- */
.btn-primary,
.btn-secondary,
.btn-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before,
.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before,
.btn-cta:hover::before {
    opacity: 1;
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .scroll-line {
        animation: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .process-number {
        font-size: 4rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .section-title {
        font-size: clamp(2rem, 3.5vw, 2.75rem);
    }
}
