@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700;800;900&family=Inter:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #050505;
    --bg-surface: #111111;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #d31a1a;
    /* Deep intense red */

    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

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

/* Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.logo span {
    font-weight: 400;
}

.desktop-nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.desktop-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s var(--ease-fast);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--text-main);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-main);
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s var(--ease-fast), background-color 0.2s var(--ease-fast);
}

.btn-primary:hover {
    background-color: #a61212;
    color: var(--text-main);
}

/* Mobile Nav Overlay */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.menu-btn svg {
    width: 30px;
    height: 30px;
}

.nav-overlay {
    display: none;
}

/* Epic Hero Full Background Section */
.hero.full-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 4rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.1) brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(to right, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, 0.8) 50%, rgba(5, 5, 5, 0.4) 100%);
    background-image: repeating-linear-gradient(-45deg,
            rgba(255, 255, 255, 0.02) 0px,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 10px), linear-gradient(to right, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, 0.8) 40%, rgba(5, 5, 5, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-headline {
    display: flex;
    flex-direction: column;
}

.hero-headline span {
    font-size: 8vw;
    line-height: 0.85;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-main);
    text-transform: uppercase;
}

.hero-headline span.accent {
    color: var(--accent);
}

.hero-subtext {
    margin-top: 2rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
}

.hero-stats {
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.stat-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 700;
}

/* Featured Section */
.featured {
    padding: 8rem 4rem;
    background-color: var(--bg-surface);
}

.section-head {
    margin-bottom: 4rem;
}

.section-head h2 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.section-head h2 span {
    color: var(--accent);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.car-card {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s var(--ease-fast);
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-img-wrap {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.car-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: filter 0.2s var(--ease-fast);
}

.car-card:hover img {
    filter: grayscale(0%);
}

.car-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.car-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.car-price {
    margin-top: auto;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
}

/* Other Pages Header */
.page-hero {
    padding: 12rem 4rem 4rem;
    background-color: var(--bg-surface);
    background-image: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.01) 0px,
            rgba(255, 255, 255, 0.01) 2px,
            transparent 2px,
            transparent 12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-hero h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Inventory Grid */
.inventory-container {
    padding: 4rem;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-select {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    min-width: 180px;
}

.filter-select:focus {
    border-color: var(--accent);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Finance Form */
.finance-wrapper {
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.card-panel {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.form-control {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 1.2rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s var(--ease-fast);
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
}

input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    background: var(--accent);
    border-radius: 4px;
    cursor: pointer;
    margin-top: -10px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.result-box {
    margin-top: 3rem;
    background: rgba(211, 26, 26, 0.05);
    border: 1px solid rgba(211, 26, 26, 0.2);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    border-radius: 4px;
}

.result-box span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-box .amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

/* Footer */
footer {
    padding: 4rem;
    background: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
}

.footer-logo span {
    font-weight: 400;
    color: var(--text-muted);
}

.footer-info {
    display: flex;
    gap: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-headline span {
        font-size: 8rem;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    header {
        padding: 1.5rem 2rem;
    }

    .desktop-nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero.full-hero {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .hero-content {
        padding: 0 2rem;
    }

    .hero-headline span {
        font-size: 4.5rem;
    }

    .hero-stats {
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .hero-bg img {
        object-position: right center;
    }

    .featured,
    .page-hero,
    .inventory-container,
    .finance-wrapper,
    footer {
        padding: 2rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .finance-wrapper {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile Nav Styles */
.nav-overlay.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg-surface);
    z-index: 200;
    padding: 2rem;
    justify-content: center;
}

.nav-overlay .close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.nav-overlay a {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    margin: 1rem 0;
    transition: color 0.2s var(--ease-fast);
}

.nav-overlay a:hover {
    color: var(--accent);
}

@media (max-width: 600px) {
    header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero.full-hero {
        padding-top: 6rem;
        min-height: auto;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-headline span {
        font-size: 11.5vw;
        letter-spacing: -0.02em;
    }

    .hero-subtext {
        font-size: 0.95rem;
        margin-top: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .stat-num {
        font-size: 2.5rem;
    }

    .page-hero {
        padding: 8rem 1.5rem 2rem;
    }

    .page-hero h1 {
        font-size: 3rem;
    }

    .section-head h2 {
        font-size: 2.5rem;
    }

    .card-panel {
        padding: 1.5rem;
    }

    .card-panel h2 {
        font-size: 2rem;
    }

    .featured,
    .inventory-container,
    .finance-wrapper,
    footer {
        padding: 1.5rem;
    }

    .nav-overlay a {
        font-size: 2rem;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
}