/* ==========================================================================
   VROOM VROOM MOTOR'S CLUB - LUXURY AUTOMOTIVE DESIGN SYSTEM
   UI/UX Pro Max Architecture | OLED Dark Theme | Racing Amber & Laser Cyan
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Teko:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Palette Tokens: OLED Carbon Dark + Precision Racing Amber */
    --color-bg-base: #05070a;
    --color-bg-surface: #0a0e17;
    --color-bg-elevated: #111726;
    --color-bg-card: rgba(13, 18, 28, 0.72);
    
    --color-primary: #f59e0b;       /* Amber 500 */
    --color-primary-light: #fbbf24; /* Amber 400 */
    --color-primary-dark: #d97706;  /* Amber 600 */
    --color-primary-glow: rgba(245, 158, 11, 0.35);
    
    --color-accent-red: #ef4444;    /* Racing Red */
    --color-accent-emerald: #10b981;/* Warranty & WhatsApp Green */
    --color-accent-cyan: #06b6d4;   /* Laser Bi-LED Optics Cyan */
    
    --color-text-primary: #f8fafc;  /* 98% Contrast on Dark */
    --color-text-secondary: #94a3b8;/* Slate 400 */
    --color-text-tertiary: #64748b; /* Slate 500 */
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-glow: rgba(245, 158, 11, 0.4);
    --color-border-subtle: rgba(255, 255, 255, 0.05);

    /* 8dp Spacing System */
    --space-xs: 0.25rem;  /* 4px */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-2xl: 3rem;    /* 48px */
    --space-3xl: 4rem;    /* 64px */

    /* Radii */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
}

/* Base Resets & Typography */
html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.font-race {
    font-family: 'Teko', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.font-mono-tag {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.03em;
}

/* Keyboard accessibility focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px var(--color-bg-base), 0 0 0 4px var(--color-primary) !important;
}

/* Background Gradients & Mesh Patterns */
.bg-carbon {
    background-color: #05070a;
    background-image: 
        radial-gradient(rgba(245, 158, 11, 0.06) 1px, transparent 0),
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

.bg-radial-hero {
    background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.12) 0%, rgba(6, 182, 212, 0.04) 40%, rgba(5, 7, 10, 0.95) 80%);
}

.ambient-glow-amber {
    position: absolute;
    width: 32rem;
    height: 32rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.ambient-glow-cyan {
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    filter: blur(55px);
    pointer-events: none;
}

/* Glassmorphism Surface Panels */
.glass-panel {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px -5px rgba(245, 158, 11, 0.15);
}

.glass-panel-elevated {
    background: linear-gradient(145deg, rgba(19, 25, 38, 0.85) 0%, rgba(9, 13, 21, 0.95) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-panel-gold {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, rgba(13, 18, 28, 0.85) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.8), 0 0 24px -6px rgba(245, 158, 11, 0.2);
}

/* High-Converting Buttons */
.btn-gold {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
    color: #000000;
    font-weight: 800;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.45);
    cursor: pointer;
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.btn-gold:hover::after {
    left: 120%;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px 0px rgba(245, 158, 11, 0.65);
}

.btn-gold:active {
    transform: scale(0.98);
}

.btn-outline-gold {
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: #f59e0b;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.06);
    backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-outline-gold:hover {
    background-color: rgba(245, 158, 11, 0.18);
    border-color: #f59e0b;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-gold:active {
    transform: scale(0.98);
}

.btn-emerald {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.45);
    cursor: pointer;
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px 0px rgba(16, 185, 129, 0.65);
}

.btn-emerald:active {
    transform: scale(0.98);
}

/* Gradients */
.gold-gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #fef08a 45%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cyan-gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #67e8f9 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.red-gradient-text {
    background: linear-gradient(135deg, #ef4444 0%, #fca5a5 50%, #b91c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation capsule link styles */
.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-md);
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.825rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

@media (min-width: 1280px) {
    .nav-item {
        padding: 0.5rem 0.95rem;
        font-size: 0.875rem;
        gap: 0.4rem;
    }
}

.nav-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.nav-item.active {
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.08) 100%);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 16px -2px rgba(245, 158, 11, 0.25);
}

/* Cards & Hover Polish */
.service-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.85), 0 0 30px -5px rgba(245, 158, 11, 0.25);
}

/* Interactive Customizer Checkbox Tile Styles */
.customizer-item-label {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(14, 20, 31, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
}

.customizer-item-label:hover {
    background: rgba(20, 28, 44, 0.85);
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

.customizer-checkbox:checked + .customizer-item-label,
.customizer-item-label.is-checked {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(18, 25, 40, 0.9) 100%);
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 0 20px -2px rgba(245, 158, 11, 0.25);
}

/* Audio Waveform Equalizer Mockup */
.sound-bar {
    display: inline-block;
    width: 3px;
    background: #f59e0b;
    border-radius: 2px;
    animation: soundWave 1.4s infinite ease-in-out alternate;
}

@keyframes soundWave {
    0% { height: 6px; }
    50% { height: 26px; }
    100% { height: 12px; }
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #05070a;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}

/* Range input styling */
input[type=range] {
    accent-color: #f59e0b;
}

/* Mobile sticky action bar with safe area */
@media (max-width: 768px) {
    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background: rgba(5, 7, 10, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
    body.menu-open {
        overflow: hidden !important;
    }
    body.menu-open .mobile-bottom-bar {
        transform: translateY(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

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