/* ============================================
   CAJUN AUTOMOTIVE & PERFORMANCE
   Premium Dark Luxury — Terracotta + Sand
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(184, 96, 59, 0.4);
    color: #FDF9F3;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0908;
}

::-webkit-scrollbar-thumb {
    background: #2E2B28;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8603B;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #B8603B, #D4924A);
    transition: width 0.3s ease;
}

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

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-nav-link {
    position: relative;
}

#mobile-menu {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    opacity: 0;
    transition: opacity 1.2s ease, transform 8s ease;
}

.hero-bg.loaded .hero-img {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 9, 8, 0.92) 0%,
        rgba(10, 9, 8, 0.82) 40%,
        rgba(10, 9, 8, 0.65) 70%,
        rgba(10, 9, 8, 0.75) 100%
    );
}

.hero-pattern {
    pointer-events: none;
}

.hero-badge {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.9s ease forwards;
    animation-delay: 0.5s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

.hero-scroll-indicator {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 1.3s;
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #B8603B 0%, #9A4E2F 100%);
    color: #FDF9F3;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(184, 96, 59, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #EB7F52 0%, #B8603B 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(184, 96, 59, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: 14px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(253, 249, 243, 0.06);
    border: 1px solid rgba(253, 249, 243, 0.15);
    color: #F9EDD9;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(253, 249, 243, 0.1);
    border-color: rgba(184, 96, 59, 0.5);
    transform: translateY(-2px);
}

.btn-secondary.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: 14px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-label {
    letter-spacing: 0.15em;
}

.section-title {
    line-height: 1.1;
}

.section-desc {
    line-height: 1.7;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    perspective: 1000px;
}

.service-card .card-inner {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
    transform-style: preserve-3d;
}

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

.service-card .card-icon {
    transition: all 0.4s ease;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.03);
}

/* ============================================
   REASON CARDS
   ============================================ */

.reason-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.reason-card:hover {
    transform: translateX(4px);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-img {
    opacity: 0;
    transition: opacity 1s ease, transform 10s ease;
}

.cta-bg.loaded .cta-img {
    opacity: 1;
    transform: scale(1.05);
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 9, 8, 0.90) 0%,
        rgba(10, 9, 8, 0.80) 50%,
        rgba(10, 9, 8, 0.88) 100%
    );
}

/* ============================================
   CONTACT FORM
   ============================================ */

.form-input {
    font-family: 'Space Grotesk', sans-serif;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(184, 96, 59, 0.15);
}

.form-input option {
    background: #1A1816;
    color: #F9EDD9;
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #B8603B 0%, #9A4E2F 100%);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDF9F3;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(184, 96, 59, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(184, 96, 59, 0.4);
}

/* ============================================
   REVEAL ANIMATIONS (progressive enhancement)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 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; }
}

/* Always visible regardless of JS — default state is visible */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-headline {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .btn-primary.btn-lg, .btn-secondary.btn-lg {
        padding: 14px 26px;
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.5rem;
    }
}
