
/* =========================================================
   VALEN MOTORS - COMPLETE DESIGN SYSTEM
   Theme: Premium Automotive | Modern | Minimal | Monochrome
   Framework: Bootstrap 5.3
========================================================= */


/* =========================================================
   01. GLOBAL VARIABLES
========================================================= */

:root {
    --bg-canvas: #f4f6f9;
    --bg-surface: #ffffff;
    --bg-surface-muted: #eef1f6;
    --bg-obsidian: #111318;
    --border-hairline: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.18);
    --text-primary: #111318;
    --text-secondary: #525d6f;
    --accent-gold: #e09a2b;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-pill: 9999px;
    --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 16px 34px rgba(15, 23, 42, 0.10);
    --shadow-heavy: 0 18px 36px rgba(15, 23, 42, 0.18);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}


/* =========================================================
   02. GLOBAL RESET & BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

a {
    transition: color var(--transition-fast);
}

::selection {
    background: var(--bg-obsidian);
    color: #ffffff;
}


/* =========================================================
   03. TYPOGRAPHY
========================================================= */

.font-display {
    font-family: var(--font-display);
}

.font-mono-nums {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.text-secondary {
    color: var(--text-secondary);
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}


/* =========================================================
   04. NAVBAR
========================================================= */

.valen-navbar {
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-hairline);
    min-height: 66px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.valen-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

    .valen-brand:hover {
        color: var(--text-primary);
    }

.valen-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

    .valen-nav-link:hover,
    .valen-nav-link.active {
        color: var(--text-primary);
    }


/* =========================================================
   05. BUTTONS
========================================================= */

.btn-valen-primary {
    background-color: var(--bg-obsidian);
    border: 1px solid var(--bg-obsidian);
    color: #ffffff;
    font-weight: 600;
    min-height: 40px;
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.25rem;
    transition: all var(--transition-normal);
}

    .btn-valen-primary:hover {
        background-color: #292d36;
        border-color: #292d36;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: var(--shadow-soft);
    }

    .btn-valen-primary:focus-visible {
        outline: 3px solid rgba(17, 19, 24, 0.2);
        outline-offset: 3px;
    }


/* =========================================================
   06. COMMON CARDS
========================================================= */

.surface-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.highlight-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

    .highlight-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-soft);
    }


/* =========================================================
   07. SECTION STYLING
========================================================= */

.content-section {
    padding: 4rem 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-hairline);
}


/* =========================================================
   08. HERO SHOWROOM SECTION
========================================================= */

.hero-showroom-section {
    background: radial-gradient( ellipse 72% 58% at 50% 42%, #ffffff 0%, #f4f6f9 65%, #eceff4 100% );
    border-bottom: 1px solid var(--border-hairline);
    padding: 1.5rem 0 2.25rem;
}


/* =========================================================
   09. CATEGORY PILL BUTTONS
========================================================= */

.category-pill-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.category-pill-btn {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: #ffffff;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-normal);
}

    .category-pill-btn:hover {
        border-color: var(--border-strong);
        transform: translateY(-2px);
    }

    .category-pill-btn.active {
        background: var(--bg-obsidian);
        border-color: var(--bg-obsidian);
        color: #ffffff;
        font-weight: 600;
    }


/* =========================================================
   10. FLOATING TRUST CARDS
========================================================= */

@keyframes trustFloatSlow {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.floating-trust-card {
    background: linear-gradient( 145deg, rgba(24, 27, 34, 0.92) 0%, rgba(13, 15, 20, 0.95) 60%, rgba(6, 7, 10, 0.98) 100% );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.1rem;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    animation: trustFloatSlow 6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.floating-trust-card-delayed {
    animation-delay: -3s;
}


/* =========================================================
   11. TRUST STAT COMPONENTS
========================================================= */

.trust-stat-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.trust-icon-box {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-stat-value {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.15;
    color: #ffffff;
}

.trust-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #e2e8f0;
}

.trust-stat-sublabel {
    font-size: 0.72rem;
    color: #94a3b8;
}

.trust-separator {
    height: 1px;
    width: 100%;
    background: linear-gradient( 90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0.04) 100% );
    margin: 0.72rem 0;
}


/* =========================================================
   12. FEATURE SPOTLIGHT CARD
========================================================= */

.feature-spotlight-card {
    background: var(--bg-obsidian);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    color: #ffffff;
    box-shadow: var(--shadow-heavy);
}

.feature-spotlight-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.feature-spotlight-body {
    font-size: 0.8125rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.feature-spotlight-link {
    font-size: 0.78rem;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

    .feature-spotlight-link:hover {
        border-color: #ffffff;
    }


/* =========================================================
   13. 3D CAR STAGE
========================================================= */

.car-stage-card {
    position: relative;
    background-color: #f4f6f9;
    border-radius: var(--radius-lg);
    min-height: 460px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#car-canvas-container {
    flex: 1 1 auto;
    min-height: 420px;
    cursor: grab;
    position: relative;
}

    #car-canvas-container:active {
        cursor: grabbing;
    }

    #car-canvas-container canvas {
        display: block;
        width: 100%;
        height: 100%;
    }


/* =========================================================
   14. STAGE TOP BAR
========================================================= */

.stage-top-bar {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.stage-caption {
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 0.28rem 0.65rem;
}


/* =========================================================
   15. HOTSPOT PINS
========================================================= */

.hotspot-pin {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.34rem 0.72rem;
    min-height: 32px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-primary);
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.hotspot-pin-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
}

.hotspot-pin.active {
    background: var(--bg-obsidian);
    border-color: var(--bg-obsidian);
    color: #ffffff;
}

    .hotspot-pin.active .hotspot-pin-dot {
        background: #ffffff;
    }


/* =========================================================
   16. STAGE CONTROL BAR
========================================================= */
/*
.stage-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-pill);
    margin: 0.5rem auto 0;
    width: fit-content;
}
*/
.stage-controls-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start; /* Important */
    gap: 0.45rem;
    padding: 1.55rem 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-pill);
    margin: 0.5rem auto 0;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .stage-controls-bar::-webkit-scrollbar {
        display: none;
    }

    .stage-controls-bar button {
        flex: 0 0 auto;
        white-space: nowrap;
    }                  

.dock-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
    min-height: 32px;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

    .dock-action-btn:hover {
        color: var(--text-primary);
        background: var(--bg-surface-muted);
    }

    .dock-action-btn.active {
        background: var(--bg-obsidian);
        color: #ffffff;
    }


/* =========================================================
   17. COLORS BAR
========================================================= */

.colors-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.9rem;
}

.colors-bar-label {
    font-size: 0.82rem;
    font-weight: 600;
}

.paint-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

    .paint-swatch:hover {
        transform: scale(1.12);
    }

    .paint-swatch.active {
        box-shadow: 0 0 0 2px var(--bg-obsidian);
    }


/* =========================================================
   18. HIGHLIGHTS HEADER
========================================================= */

.highlights-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.75rem 0 1rem;
}

.highlights-heading {
    font-size: 1.05rem;
    font-weight: 700;
}


/* =========================================================
   19. HIGHLIGHT CARD CONTENT
========================================================= */

.highlight-kicker {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.highlight-metric {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.highlight-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

.highlight-dark-badge {
    display: inline-block;
    background: var(--bg-obsidian);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    margin-top: 0.4rem;
}


/* =========================================================
   20. SEGMENTED CONTROLS
========================================================= */

.segmented-group {
    display: inline-grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-pill);
}

.segmented-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    min-height: 34px;
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.85rem;
    transition: all var(--transition-fast);
}

    .segmented-btn:hover {
        color: var(--text-primary);
    }

    .segmented-btn.active {
        background: var(--bg-obsidian);
        color: #ffffff;
    }


/* =========================================================
   21. SERVICE LIST
========================================================= */

.service-list-item {
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    transition: all var(--transition-fast);
}

    .service-list-item:hover {
        border-color: var(--border-strong);
        transform: translateY(-1px);
    }

    .service-list-item.active {
        background: var(--bg-obsidian);
        border-color: var(--bg-obsidian);
        color: #ffffff;
    }

.service-item-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
}

.service-item-meta {
    display: block;
    font-size: 0.77rem;
    opacity: 0.78;
}


/* =========================================================
   22. FORM ELEMENTS
========================================================= */

.valen-input,
.valen-select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-primary);
    padding: 0.55rem 0.8rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

    .valen-input:focus,
    .valen-select:focus {
        border-color: var(--bg-obsidian);
        outline: none;
        box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.08);
    }

    .valen-input::placeholder {
        color: #94a3b8;
    }


/* =========================================================
   23. TABLE
========================================================= */

.valen-table {
    width: 100%;
    margin-bottom: 0;
}

    .valen-table th {
        font-size: 0.8rem;
        color: var(--text-secondary);
        font-weight: 600;
        white-space: nowrap;
    }

    .valen-table td {
        font-size: 0.85rem;
        vertical-align: middle;
    }


/* =========================================================
   24. RESPONSIVE - TABLET
========================================================= */

@media (max-width: 991.98px) {

    .hero-showroom-section {
        padding: 1.25rem 0 2rem;
    }

    .car-stage-card {
        min-height: 400px;
    }

    #car-canvas-container {
        min-height: 360px;
    }

    .floating-trust-card {
        animation-duration: 7s;
    }

    .stage-controls-bar {
        width: 100%;
        border-radius: 14px;
    }

    .content-section {
        padding: 3rem 0;
    }
}


/* =========================================================
   25. RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 575.98px) {

    body {
        font-size: 0.9rem;
    }

    .hero-showroom-section {
        padding: 1rem 0 1.5rem;
    }

    .car-stage-card {
        min-height: 300px;
        border-radius: 14px;
    }

    #car-canvas-container {
        min-height: 280px;
    }

    .stage-controls-bar {
        gap: 0.25rem;
        padding: 0.45rem;
        border-radius: 12px;
    }

    .dock-action-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .colors-bar {
        padding: 0.5rem 0.7rem;
    }

    .paint-swatch {
        width: 19px;
        height: 19px;
    }

    .floating-trust-card {
        padding: 0.85rem;
    }

    .highlights-header-row {
        margin: 1.25rem 0 0.85rem;
    }

    .segmented-group {
        width: 100%;
    }

    .segmented-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.72rem;
    }

    .content-section {
        padding: 2.5rem 0;
    }

    .surface-card {
        padding: 1rem;
    }

    .feature-spotlight-card {
        padding: 1rem;
    }
}


/* =========================================================
   26. ACCESSIBILITY & REDUCED MOTION
========================================================= */

:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-trust-card {
        animation: none;
    }
}

/* Feature Highlight Cards - Fixed Size */
.highlight-card {
    height: 150px;
    min-height: 150px;
    max-height: 150px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Card Heading */
.highlight-kicker {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Main Content */
.highlight-metric {
    font-size: 1.10rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

/* Other Card Text */
.highlight-card .fw-bold,
.highlight-card .fw-semibold,
.highlight-sub,
.highlight-dark-badge {
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
/* =========================================================
   END OF VALEN MOTORS DESIGN SYSTEM
========================================================= */
