/* ========================================
   Way Auto Body — Custom Styles
   Premium Dark Luxury Theme
   Charcoal + Coral + Gold
   ======================================== */

/* --- Custom Properties --- */
:root {
    --charcoal-900: #0a0a0a;
    --charcoal-800: #121212;
    --charcoal-700: #1c1c1c;
    --charcoal-600: #2a2a2a;
    --coral-400: #FF7F6E;
    --coral-500: #FF6B5B;
    --coral-600: #E85A4A;
    --gold-400: #D4AF37;
    --gold-300: #E8C547;
}

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

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

body {
    overflow-x: hidden;
}

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

/* --- Selection --- */
::selection {
    background: rgba(255, 107, 91, 0.3);
    color: #fff;
}

/* --- Hero Animations --- */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* --- Scroll Down Animation --- */
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.animate-scroll-down {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* --- Navbar --- */
.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--coral-400) !important;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 91, 0.1);
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--coral-400), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* --- Process Steps --- */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    width: 1rem;
    height: 1px;
    background: linear-gradient(90deg, var(--coral-400)/30, transparent);
}

@media (max-width: 1023px) {
    .process-step::after {
        display: none;
    }
}

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    font-family: 'Cinzel', serif;
    color: rgba(255, 107, 91, 0.05);
    line-height: 1;
    pointer-events: none;
    transition: color 0.5s ease;
}

.testimonial-card:hover::before {
    color: rgba(255, 107, 91, 0.1);
}

/* --- Back to Top --- */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    pointer-events: all;
}

#backToTop:hover {
    transform: translateY(-3px);
}

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

/* --- Select Dropdown --- */
select option {
    background: #1c1c1c;
    color: #fff;
}

/* --- Utility --- */
.glow-coral {
    box-shadow: 0 0 30px rgba(255, 107, 91, 0.2);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .mobile-link {
        font-size: 1.5rem;
    }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--coral-400);
    outline-offset: 2px;
}

/* --- Print --- */
@media print {
    nav, #backToTop, .reveal {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
    }
}
